Replace local styles with 2fauth/styles package

This commit is contained in:
Bubka 2025-06-17 13:43:16 +02:00
parent 1a8d142a0a
commit 7213cec998
3 changed files with 2 additions and 1476 deletions

2
resources/js/app.js vendored
View File

@ -1,4 +1,4 @@
import '/resources/js/assets/app.scss'; import '@2fauth/styles/src/app.scss';
import Notifications from '@kyvg/vue3-notification' import Notifications from '@kyvg/vue3-notification'
import App from './App.vue' import App from './App.vue'

File diff suppressed because one or more lines are too long

View File

@ -108,7 +108,7 @@ export const useUserStore = defineStore({
*/ */
applyTheme() { applyTheme() {
const mode = useColorMode({ const mode = useColorMode({
attribute: 'data-theme', class: 'dark',
}) })
mode.value = this.preferences.theme == 'system' ? 'auto' : this.preferences.theme mode.value = this.preferences.theme == 'system' ? 'auto' : this.preferences.theme
}, },