vuetify.ts 1.7 KB

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