forked from airthemeone/Shopify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
85 lines (83 loc) · 2.15 KB
/
tailwind.config.js
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
const { colors } = require('tailwindcss/defaultTheme')
module.exports = {
purge: {
mode: 'all',
content: ['./**/*.liquid'],
// These options are passed through directly to PurgeCSS
options: {
safelist: ['h1', 'h2', 'h3', 'p', 'strong'],
}
},
future: {
removeDeprecatedGapUtilities: true,
purgeLayersByDefault: true
},
theme: {
colors: {
black: colors.black,
white: colors.white,
gray: colors.gray,
red: colors.red,
green: colors.green,
transparent: colors.transparent,
"button": {
"primary": 'var(--color-button-primary)',
"primary-hover": 'var(--color-button-primary-hover)',
"primary-text": 'var(--color-button-primary-text)',
"secondary": 'var(--color-button-secondary)',
"secondary-hover": 'var(--color-button-secondary-hover)',
"secondary-text": 'var(--color-button-secondary-text)',
},
"font-color": {
"light": 'var(--color-font-color-light)',
"dark": 'var(--color-font-color-dark)',
"darkest": 'var(--color-font-color-darkest)'
}
},
extend: {
fontSize: {
xxs: '0.5rem'
},
inset: {
'1/2': '50%',
'full': '100%'
},
spacing: {
'14': '3.5rem',
'80': '20rem',
},
typography: {
DEFAULT: {
css: {
color: 'var(--color-font-color-dark)',
a: {
color: 'var(--color-font-color-dark)',
'&:hover': {
color: 'var(--color-font-color-darkest)',
},
},
h1: {
color: 'var(--color-font-color-darkest)',
},
h2: {
color: 'var(--color-font-color-darkest)',
},
h3: {
color: 'var(--color-font-color-darkest)',
},
h4: {
color: 'var(--color-font-color-darkest)',
},
},
},
},
},
},
variants: {
textColor: ['responsive', 'hover', 'focus', 'group-hover']
},
plugins: [
require('@tailwindcss/forms'),
require('@tailwindcss/typography'),
],
}