-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.ts
68 lines (66 loc) · 1.52 KB
/
tailwind.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
import { withTV } from 'tailwind-variants/transformer'
import plugin from 'tailwindcss/plugin'
import { showAnimationPlugin } from 'zelindro-ui/plugins/tailwindcss'
export default withTV({
mode: 'jit',
darkMode: 'class',
content: ['./src/**/*.{js,jsx,ts,tsx,css}'],
corePlugins: {
container: false,
transitionDelay: false,
},
theme: {
colors: {
transparent: 'transparent',
current: {
DEFAULT: 'currentColor',
primary: 'var(--color-primary)',
background: 'var(--color-background)',
accent: {
DEFAULT: 'var(--color-accent)',
text: 'var(--color-accent-text)',
},
},
gray: {
dark: '#333',
light: '#c9c9d1',
},
red: '#b40f20',
white: '#fff',
black: '#000',
},
extend: {
fontFamily: {
roboto: ['var(--font-roboto)'],
amatic: ['var(--font-amaticsc)'],
},
transitionDuration: {
DEFAULT: '300ms',
},
transitionTimingFunction: {
DEFAULT: 'var(--ease-out)',
},
boxShadow: {
card: '',
},
},
},
safelist: [
'animated',
'animation-only-opacity',
{
pattern: /delay-/,
variants: ['md'],
},
],
plugins: [
showAnimationPlugin({}),
plugin(function ({ addVariant }) {
addVariant('group-active', () => {
return `:merge(.group).active &`
})
addVariant('control-active', '.control-active &')
addVariant('current-active', '&.current-active')
}),
],
})