vuetify.ts 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. import { createVuetify } from 'vuetify'
  2. import 'vuetify/styles'
  3. import {defineNuxtPlugin} from "nuxt/app";
  4. import { aliases, fa } from 'vuetify/iconsets/fa'
  5. import { mdi } from 'vuetify/iconsets/mdi'
  6. import '@fortawesome/fontawesome-free/css/all.css'
  7. import '@mdi/font/css/materialdesignicons.css'
  8. import {fr} from 'vuetify/locale'
  9. export default defineNuxtPlugin(nuxtApp => {
  10. const vuetify = createVuetify({
  11. ssr: true,
  12. locale: {
  13. locale: 'fr',
  14. messages: { fr }
  15. },
  16. theme: {
  17. defaultTheme: 'otLightTheme',
  18. themes: {
  19. otLightTheme: {
  20. dark: false,
  21. colors: {
  22. 'ot-green': '#00ad8e',
  23. 'ot-light-green': '#a9e0d6',
  24. 'ot-dark-grey': '#324150',
  25. 'ot-dark-grey-hover': '#2c3a48',
  26. 'ot-grey': '#777777',
  27. 'ot-header-menu': '#ECE7E5',
  28. 'ot-light-grey': '#f5f5f5',
  29. 'ot-super-light-grey': '#ecf0f5',
  30. 'ot-danger': '#f56954',
  31. 'ot-success': '#00a65a',
  32. 'ot-warning': '#f39c12',
  33. 'ot-info': '#3c8dbc',
  34. 'ot-menu-color': '#b8c7ce',
  35. 'ot-content-color': '#ecf0f4',
  36. 'ot-border-menu': '#f4f4f4',
  37. 'ot-white': '#ffffff',
  38. 'ot-black': '#000000'
  39. }
  40. }
  41. },
  42. },
  43. icons: {
  44. defaultSet: 'fa',
  45. aliases,
  46. sets: {
  47. fa,
  48. mdi
  49. }
  50. },
  51. })
  52. nuxtApp.vueApp.use(vuetify)
  53. })