Add working example of importing design tokens from tokens.module.scss

This commit is contained in:
Maximilian Harz 2024-04-17 16:29:33 +02:00
parent ebd618070c
commit 14acbdda62
2 changed files with 8 additions and 1 deletions

View File

@ -6,13 +6,15 @@ import { I18n, useI18n } from 'vue-i18n'
import { createVuetify, ThemeDefinition } from 'vuetify'
import { createVueI18nAdapter } from 'vuetify/locale/adapters/vue-i18n'
import tokens from '#assets/sass/tokens.module.scss'
const ocelotStandardLightTheme: ThemeDefinition = {
dark: false,
colors: {
background: 'rgb(255, 255, 255)',
surface: 'rgb(255, 255, 255)',
// primary: rgbToHex(23, 181, 63, '#'),
primary: 'rgb(23, 181, 63)',
primary: tokens.primaryColor,
// 'primary-darken-1': rgbToHex(25, 122, 49, '#'),
'primary-darken-1': 'rgb(25, 122, 49)',
secondary: 'rgb(0, 142, 230)',

View File

@ -0,0 +1,5 @@
$primary-color: rgba(20,20,20,10%);
:export {
primaryColor: $primary-color
}