feat(KB-173): add Zen theme to dashboard
- Add Zen to COLOR_THEMES array in core types - Add Zen theme CSS styles with dark and light variants - Add Zen theme option to ThemeSelector component - Add tests for Zen theme selection in ThemeSelector - Update index.html theme initialization to include Zen - Add changeset for the new theme
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
try {
|
||||
var mode = localStorage.getItem('kb-dashboard-theme-mode') || 'dark';
|
||||
var colorTheme = localStorage.getItem('kb-dashboard-color-theme') || 'default';
|
||||
var validThemes = ['default', 'ocean', 'forest', 'sunset', 'berry', 'monochrome', 'high-contrast', 'solarized', 'factory', 'ayu', 'one-dark'];
|
||||
var validThemes = ['default', 'ocean', 'forest', 'sunset', 'zen', 'berry', 'monochrome', 'high-contrast', 'solarized', 'factory', 'ayu', 'one-dark'];
|
||||
if (!validThemes.includes(colorTheme)) {
|
||||
colorTheme = 'default';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user