Skip to content

Commit

Permalink
Restore theme colors
Browse files Browse the repository at this point in the history
  • Loading branch information
chvp committed Aug 17, 2023
1 parent b5ecf2a commit e782b01
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
15 changes: 15 additions & 0 deletions env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,19 @@

declare module '@sqlite.org/sqlite-wasm'

declare module 'vuetify/lib/util/colors' {
let blue: {
base: string
darken2: string
darken3: string
lighten1: string
}
let red: {
base: string
darken2: string
darken3: string
lighten1: string
}
}

declare const APP_VERSION: string
23 changes: 23 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import '@mdi/font/css/materialdesignicons.css'
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import 'vuetify/styles'
import colors from 'vuetify/lib/util/colors'
import { createVuetify } from 'vuetify'
import { aliases, mdi } from 'vuetify/iconsets/mdi'

Expand All @@ -21,6 +22,28 @@ app.use(
sets: {
mdi
}
},
theme: {
themes: {
light: {
dark: false,
colors: {
primary: colors.blue.darken2,
'primary-darken-1': colors.blue.darken3,
secondary: colors.red.darken2,
'secondary-darken-1': colors.red.darken3
}
},
dark: {
dark: true,
colors: {
primary: colors.blue.base,
'primary-darken-1': colors.blue.lighten1,
secondary: colors.red.base,
'secondary-darken-1': colors.red.lighten1
}
}
}
}
})
)
Expand Down

0 comments on commit e782b01

Please sign in to comment.