Customize Surveys with CSS

Edit in →

SurveyJS Form Library enables you to customize the appearance of your survey using CSS. Applied CSS classes for each theme are stored in individual JSON objects. Refer to our source code to find these objects and the style sheets they apply: Read more...

Themes
Color palette
Question appearance
Sorry, we can't retrieve the data from server. Please comeback later.

SurveyJS Form Library enables you to customize the appearance of your survey using CSS. Applied CSS classes for each theme are stored in individual JSON objects. Refer to our source code to find these objects and the style sheets they apply:

To override a CSS class, assign a substitute class to a corresponding JSON object property. In this demo, the customCss object is used to override CSS classes for question content, answered questions, and titles of required questions. Assign this object to SurveyModel's css property.

You can also override styles dynamically based on a condition. Depending on the survey element whose classes you want to override, handle the following events:

The event handlers accept an object with useful properties as the second options parameter. Redefine individual properties in the options.cssClasses object to override required CSS classes. For example, this demo shows how to handle the onUpdateQuestionCssClasses event to override styles for Checkboxes questions only.

Why we use cookies.

This site uses cookies to make your browsing experience more convenient and personal. Cookies store useful information on your computer to help us improve the efficiency and relevance of our site for you. In some cases, they are essential to making the site work properly. By accessing this site, you consent to the use of cookies.

For more information, refer to DevSoft Baltic’ Terms of Use & Privacy Statement.

Your renewal subscription expires soon.

Since the license is perpetual, you will still have permanent access to the product versions released within the first 12 month of the original purchase date.

If you wish to continue receiving technical support from our Help Desk specialists and maintain access to the latest product updates, make sure to renew your subscription by clicking the "Renew" button below.

Your renewal subscription has expired.

Since the license is perpetual, you will still have permanent access to the product versions released within the first 12 month of the original purchase date.

If you wish to continue receiving technical support from our Help Desk specialists and maintain access to the latest product updates, make sure to renew your subscription by clicking the "Renew" button below.