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 = [
'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'

View file

@ -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',
],
},
}