UI Skins Anti-Patterns
When to Use
Reference this when setting up a UI Skins integration to avoid the most common configuration and authoring errors.
Common Mistakes
- Wrong: hardcoded hex colors in
.cssfiles for any value an editor should adjust → Right: declare a UI Skins CSS variable, usevar(--name)in CSS - Wrong: building runtime user theme switching with UI Skins alone → Right: UI Skins is config-time. Use DaisyUI's
.theme-controller(or any JS toggler) for user-facing runtime switching - Wrong: declaring one theme plugin per brand color combination, expecting per-component scoping → Right: themes are global. Use UI Skins variable scopes (
.callout-warning) or component-level CSS for per-component variation - Wrong: putting
.ui_skins.themes.ymlinside a subdirectory of the theme → Right: at the theme root only - Wrong: depending on plugin-manager evaluation order to compose themes → Right: use explicit
dependenciesand write CSS that handles the resulting class combinations - Wrong: storing brand colors in UI Styles options → Right: store the class in UI Styles (e.g.,
text-primary) and the value in UI Skins (--brand-primary: #0066cc)