updates for daisyui 4

This commit is contained in:
seriousm4x
2023-11-15 19:47:03 +01:00
parent 2423f64f60
commit 5acfcbbcba
4 changed files with 1932 additions and 757 deletions

2669
frontend/pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -11,8 +11,8 @@
const theme = localStorage.getItem('theme')
? localStorage.getItem('theme')
: preferesDark
? darkTheme
: lightTheme;
? darkTheme
: lightTheme;
document.documentElement.setAttribute('data-theme', theme);
window

View File

@@ -48,7 +48,10 @@
'lemonade',
'night',
'coffee',
'winter'
'winter',
'dim',
'nord',
'sunset'
];
let activeTheme: string | null = '';
let avatar = $pocketbase.authStore.model?.avatar;

View File

@@ -11,7 +11,7 @@ export default {
themes: [
{
light: {
...themes['[data-theme=light]'],
...themes['light'],
primary: '#55BCD9',
secondary: '#D4A35C',
'primary-content': '#ffffff'
@@ -19,7 +19,7 @@ export default {
},
{
dark: {
...themes['[data-theme=dark]'],
...themes['dark'],
primary: '#55BCD9',
secondary: '#D4A35C',
'base-300': '#12161b',
@@ -30,7 +30,7 @@ export default {
},
{
cupcake: {
...themes['[data-theme=cupcake]'],
...themes['cupcake'],
primary: '#55BCD9',
secondary: '#D4A35C',
'primary-content': '#ffffff'
@@ -61,7 +61,10 @@ export default {
'lemonade',
'night',
'coffee',
'winter'
'winter',
'dim',
'nord',
'sunset'
]
}
};