From 02706ac8a24911a8d0c8aa6de32bfe7f59b0156e Mon Sep 17 00:00:00 2001 From: axolotle Date: Tue, 20 Aug 2024 00:13:12 +0200 Subject: [PATCH] refactor: keep only selected themes and consider "admin" theme as the default dark theme --- pages/edit.vue | 35 +++++++++-------------------------- tailwind.config.js | 14 ++++++++++++-- 2 files changed, 21 insertions(+), 28 deletions(-) diff --git a/pages/edit.vue b/pages/edit.vue index 7e0f242..ade9ba6 100644 --- a/pages/edit.vue +++ b/pages/edit.vue @@ -29,39 +29,22 @@ const localesAsOptions = computed(() => { const themesAsOptions = [ 'auto', 'system', + // Daisyui default themes 'light', + // Custom dark 'dark', + 'omg', 'legacy', - 'cupcake', - 'bumblebee', - 'emerald', - 'corporate', + // Daisyui dark + 'black', 'synthwave', - 'retro', + 'halloween', + 'coffee', + // Daisyui light + 'cupcake', 'cyberpunk', 'valentine', - 'halloween', - 'garden', - 'forest', - 'aqua', - 'lofi', - 'pastel', - 'fantasy', - 'wireframe', - 'black', - 'luxury', - 'dracula', - 'cmyk', - 'autumn', - 'business', - 'acid', - 'lemonade', - 'night', - 'coffee', - 'winter', - 'dim', 'nord', - 'sunset', ].map((theme) => ({ text: theme !== 'auto' diff --git a/tailwind.config.js b/tailwind.config.js index b8d1142..d1e5eff 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -18,7 +18,6 @@ module.exports = { ], daisyui: { themes: [ - ...Object.keys(require('daisyui/src/theming/themes')), { legacy: { primary: '#2980b9', @@ -44,7 +43,7 @@ module.exports = { '--rounded-box': '0rem', '--rounded-btn': '0rem', }, - admin: { + dark: { primary: '#53a5fb', secondary: '#20cb98', accent: '#b957ea', @@ -93,6 +92,17 @@ module.exports = { '--tab-radius': '0.5rem', }, }, + 'light', + // dark + 'black', // to rework contrasts + 'synthwave', + 'halloween', + 'coffee', + // light + 'cupcake', + 'cyberpunk', + 'valentine', + 'nord', ], }, }