Skip to content

Commit

Permalink
- Travail sur correction main.js et theme
Browse files Browse the repository at this point in the history
  • Loading branch information
jvk88511334 committed Aug 26, 2024
1 parent 3befdbc commit 80977b2
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 13 deletions.
11 changes: 1 addition & 10 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,13 @@ import App from './App.vue'

// Composables
import { createApp } from 'vue'
import { createVuetify } from 'vuetify'
import router from '@/router'
import { en, fr } from 'vuetify/locale'
import { createPinia } from 'pinia'
import vuetify from '@/plugins/vuetify'

const app = createApp(App)
app.config.productionTip = false

const vuetify = createVuetify({
locale: {
locale: 'fr',
fallback: 'en',
messages: { fr, en },
},
})

const pinia = createPinia()

registerPlugins(app)
Expand Down
34 changes: 31 additions & 3 deletions src/plugins/vuetify.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,38 @@ import 'vuetify/styles'

// Composables
import {createVuetify} from 'vuetify'
import {en, fr} from 'vuetify/locale'

// https://vuetifyjs.com/en/introduction/why-vuetify/#feature-guides
export default createVuetify({
theme: {
defaultTheme: 'light'
}
locale: {
locale: 'fr',
fallback: 'en',
messages: { fr, en },
},
theme: {
defaultTheme: 'light',
themes: {
light: {
primary: '#295494',
secondary: '#252C61',
accent: '#980827',
error: '#a32525',
warning: '#ec6839',
info: '#326bb1',
success: '#4da432',
disabled: '#808080',
},
dark: {
primary: '#404552',
secondary: '#383c4a',
accent: '#980827',
error: '#a32525',
warning: '#ec6839',
info: '#5294e2',
success: '#4da432',
disabled: '#4b5162',
},
},
},
})

0 comments on commit 80977b2

Please sign in to comment.