Click a theme tab above to preview global color changes.
<html class="theme-forest">, <div class="theme-neon dark">. All descendants inherit the theme colors.dark class for dark mode: <div class="theme-sakura dark">.theme-forest, theme-ocean, theme-sunset, theme-lavender, theme-noir, theme-cyber, theme-sakura, theme-morandi, theme-peach, theme-terracotta, theme-glacier, theme-amber, theme-minimal, theme-twilight, theme-neon, theme-aurora, theme-midnight.Define your own theme using Tailwind's @utility syntax in any CSS file. Follow the same pattern as the built-in themes:
/* Custom ocean theme */
@utility theme-ocean {
--color-primary-base: #0a5fb4;
--color-secondary-base: #0f9baa;
--color-tertiary-base: #4fd1c5;
--color-warning-base: #f0883e;
--color-caution-base: #e8b64a;
--color-highlight-base: #cfe066;
--color-info-base: #2196d8;
--color-success-base: #2e9e6b;
--color-error-base: #e15a4d;
--color-ink-base: #0b1c2c;
@apply light;
}
Note: Custom themes do not need @apply dark; — dark mode is handled automatically by the system. In dark mode, color saturation decreases automatically. Text color derives from --color-ink-base: in light mode it equals the ink color; in dark mode the text inverts to white automatically.
For details on color variables, see demo-color.html.