Skip to content

Custom Theme ​

The modern themes are driven by --vje-* CSS variables. Add a class to the component and override the variables you need: no !important, no deep selectors. This demo uses a rose brand palette on top of the light theme.

Custom theme

Supporting dark mode ​

When using theme="auto", add a dark variant of your palette scoped to the dark state, for example:

css
html.dark .brand-editor {
  --vje-bg: #1c0a10;
  --vje-surface: #2a0f18;
  --vje-border: #4c0519;
  --vje-text: #ffe4e6;
  --vje-muted: #fda4af;
}

All variables are listed in the Theming guide.

Released under the MIT License.