Custom CSS

  1. OPTIS Color Swatch
  2. Global Settings


Custom CSS


For advanced styling beyond the built-in options, you can add your own CSS in Global settings → Custom CSS. The CSS is loaded on your storefront and applies to the OPTIS Color Swatch elements.


The Custom CSS editor in Global settings


Custom CSS is an advanced feature. Incorrect rules can affect how swatches look. Test on a draft theme first if you are unsure, and keep a copy of your CSS so you can revert.


How to add custom CSS


  1. Open Global settings


Go to Global settings and find the Custom CSS section.


  1. Write your CSS


Enter your CSS rules in the editor.


  1. Save


Click Save. Refresh your storefront to see the result.


Targeting OPTIS elements


The app renders its variant picker inside a custom element. You can target it in your CSS, for example:


Most appearance changes (size, spacing, colors, borders, alignment) can be made without code on the Styling page. Use Custom CSS only for adjustments the Styling page does not cover.


If you are not sure how to target a specific element, reach out via live chat and our support team can help.

Updated on: 25/09/2026

Was this article helpful?

Share your feedback

Cancel

Thank you!