Customize Appearance with CSS Variables
Survey Creator comes with an API that allows users to create, apply, and switch between custom UI themes. If your project doesn't require these capabilities, you can customize the Survey Creator UI by overriding a few CSS variables. This example shows which CSS variables you can redefine.
--sjs-primary-background-500
A primary accent color.--sjs-secondary-background-500
A secondary accent color.--sjs-special-background
A color for the surface background.
Other CSS variables are calculated automatically based on those variables. If you want to customize the Survey Creator UI in more detail, you can override the dependent variables as well.
Survey Creator users can modify the UI at runtime. You may want to disable this capability if you apply UI customizations in code. To do this, set the showCreatorThemeSettings
property to false
as shown in this demo.