mirror of https://github.com/nocodb/nocodb
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
80 lines
2.4 KiB
80 lines
2.4 KiB
3 years ago
|
import { defineConfig } from 'windicss/helpers'
|
||
3 years ago
|
import formsPlugin from 'windicss/plugin/forms'
|
||
|
import typographyPlugin from 'windicss/plugin/typography'
|
||
|
import aspectRatioPlugin from 'windicss/plugin/aspect-ratio'
|
||
|
import lineClampPlugin from 'windicss/plugin/line-clamp'
|
||
|
import windiColors from 'windicss/colors'
|
||
3 years ago
|
// @ts-expect-error no types for plugin-scrollbar
|
||
|
import scrollbar from '@windicss/plugin-scrollbar'
|
||
3 years ago
|
// @ts-expect-error no types for plugin-animation
|
||
|
import animations from '@windicss/plugin-animations'
|
||
|
// @ts-expect-error no types for plugin-question-mark
|
||
|
import questionMark from '@windicss/plugin-question-mark'
|
||
|
|
||
2 years ago
|
import { theme as colors, themeColors, themeV2Colors } from './utils/colorsUtils'
|
||
3 years ago
|
|
||
|
export default defineConfig({
|
||
|
extract: {
|
||
2 years ago
|
include: ['**/*.{vue,html,jsx,tsx,css,scss}'],
|
||
3 years ago
|
exclude: ['node_modules', '.git'],
|
||
|
},
|
||
|
|
||
|
darkMode: 'class',
|
||
|
|
||
3 years ago
|
plugins: [
|
||
|
scrollbar,
|
||
|
animations,
|
||
|
questionMark,
|
||
|
formsPlugin,
|
||
|
typographyPlugin({
|
||
2 years ago
|
dark: true,
|
||
3 years ago
|
}),
|
||
|
aspectRatioPlugin,
|
||
|
lineClampPlugin,
|
||
|
],
|
||
|
|
||
|
preflight: {
|
||
|
alias: {
|
||
|
'nuxt-link': 'a',
|
||
|
'nuxt-img': 'img',
|
||
|
},
|
||
|
},
|
||
3 years ago
|
|
||
3 years ago
|
shortcuts: {
|
||
2 years ago
|
'color-transition': 'transition-color duration-100 ease-in',
|
||
2 years ago
|
'scrollbar-thin-primary': 'scrollbar scrollbar-thin scrollbar-thumb-rounded scrollbar-thumb-primary scrollbar-track-white',
|
||
|
'scrollbar-thin-dull': 'scrollbar scrollbar-thin scrollbar-thumb-rounded scrollbar-thumb-gray-300 scrollbar-track-white',
|
||
3 years ago
|
},
|
||
|
|
||
3 years ago
|
theme: {
|
||
3 years ago
|
fontFamily: {
|
||
|
sans: ['Vazirmatn', 'sans-serif'],
|
||
|
serif: ['Vazirmatn', 'serif'],
|
||
|
mono: ['Roboto', 'mono'],
|
||
|
},
|
||
3 years ago
|
extend: {
|
||
2 years ago
|
textColor: {
|
||
|
primary: 'rgba(var(--color-primary), var(--tw-text-opacity))',
|
||
|
accent: 'rgba(var(--color-accent), var(--tw-text-opacity))',
|
||
|
},
|
||
2 years ago
|
borderColor: {
|
||
|
primary: 'rgba(var(--color-primary), var(--tw-border-opacity))',
|
||
|
accent: 'rgba(var(--color-accent), var(--tw-border-opacity))',
|
||
|
},
|
||
|
backgroundColor: {
|
||
|
primary: 'rgba(var(--color-primary), var(--tw-bg-opacity))',
|
||
|
accent: 'rgba(var(--color-accent), var(--tw-bg-opacity))',
|
||
|
},
|
||
3 years ago
|
colors: {
|
||
3 years ago
|
...windiColors,
|
||
|
...themeColors,
|
||
2 years ago
|
...themeV2Colors,
|
||
|
primary: 'rgba(var(--color-primary), var(--tw-bg-opacity))',
|
||
|
accent: 'rgba(var(--color-accent), var(--tw-bg-opacity))',
|
||
3 years ago
|
dark: colors.dark,
|
||
|
light: colors.light,
|
||
|
},
|
||
|
},
|
||
|
},
|
||
|
})
|