refactor: keep only selected themes and consider "admin" theme as the default dark theme

This commit is contained in:
axolotle 2024-08-20 00:13:12 +02:00
parent 40b1a4ac29
commit 02706ac8a2
2 changed files with 21 additions and 28 deletions

View file

@ -29,39 +29,22 @@ const localesAsOptions = computed(() => {
const themesAsOptions = [ const themesAsOptions = [
'auto', 'auto',
'system', 'system',
// Daisyui default themes
'light', 'light',
// Custom dark
'dark', 'dark',
'omg',
'legacy', 'legacy',
'cupcake', // Daisyui dark
'bumblebee', 'black',
'emerald',
'corporate',
'synthwave', 'synthwave',
'retro', 'halloween',
'coffee',
// Daisyui light
'cupcake',
'cyberpunk', 'cyberpunk',
'valentine', 'valentine',
'halloween',
'garden',
'forest',
'aqua',
'lofi',
'pastel',
'fantasy',
'wireframe',
'black',
'luxury',
'dracula',
'cmyk',
'autumn',
'business',
'acid',
'lemonade',
'night',
'coffee',
'winter',
'dim',
'nord', 'nord',
'sunset',
].map((theme) => ({ ].map((theme) => ({
text: text:
theme !== 'auto' theme !== 'auto'

View file

@ -18,7 +18,6 @@ module.exports = {
], ],
daisyui: { daisyui: {
themes: [ themes: [
...Object.keys(require('daisyui/src/theming/themes')),
{ {
legacy: { legacy: {
primary: '#2980b9', primary: '#2980b9',
@ -44,7 +43,7 @@ module.exports = {
'--rounded-box': '0rem', '--rounded-box': '0rem',
'--rounded-btn': '0rem', '--rounded-btn': '0rem',
}, },
admin: { dark: {
primary: '#53a5fb', primary: '#53a5fb',
secondary: '#20cb98', secondary: '#20cb98',
accent: '#b957ea', accent: '#b957ea',
@ -93,6 +92,17 @@ module.exports = {
'--tab-radius': '0.5rem', '--tab-radius': '0.5rem',
}, },
}, },
'light',
// dark
'black', // to rework contrasts
'synthwave',
'halloween',
'coffee',
// light
'cupcake',
'cyberpunk',
'valentine',
'nord',
], ],
}, },
} }