-
Notifications
You must be signed in to change notification settings - Fork 107
/
tailwind.config.cjs
140 lines (140 loc) · 3.49 KB
/
tailwind.config.cjs
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
'./templates/**/*.{html,js}',
'./foundation/okfplugins/**/*.{html,py}',
'./sendemail/**/*.{html,py}',
],
theme: {
extend: {
borderWidth: {
'3': '3px',
},
colors: {
'okfn-blue': {
DEFAULT: '#00d1ff', // pastel blue light
},
'okfn-green': {
DEFAULT: '#adffed' // pastel green light
},
'okfn-purple': {
DEFAULT: '#e077ff' // purple
},
'okfn-yellow': {
DEFAULT: '#e4ff36' // yellow
},
'okfn-light-gray': {
DEFAULT: '#f8f8f8' // light-gray
},
'okfn-link': {
DEFAULT: '#00a9e0' // link
},
'okfn-content': {
DEFAULT: '#e4ff36' // content
},
},
dropShadow: {
'okfn': '0 4px 4px rgba(0, 0, 0, 0.4)',
},
fontFamily: {
'sans': '"HK Grotesk", sans-serif',
'mono': '"Necto Mono", monospace',
'display': '"HK Grotesk", sans-serif',
},
fontSize: {
'2xs': '.6875rem',
'base-h0': ['6.25rem', {
lineHeight: '100%',
}],
'base-h1': ['3.4375rem', {
lineHeight: '100%',
}],
'base-h2': ['2.5rem', {
lineHeight: '100%',
}],
'base-h3': ['1.5rem', {
lineHeight: '120%',
}],
'base-h4': ['1.25rem', {
lineHeight: '120%',
}],
'base-h5': ['1rem', {
lineHeight: '120%',
}],
'base-m-h0': ['3.125rem', {
lineHeight: '111%',
}],
'base-m-h1': ['2.0625rem', {
lineHeight: '107%',
}],
'base-m-h2': ['1.6875rem', {
lineHeight: '120%',
}],
'base-m-h3': ['1.375rem', {
lineHeight: '120%',
}],
'base-m-h4': ['0.875rem', {
lineHeight: '120%',
}],
'base-m-h5': ['0.75rem', {
lineHeight: '120%',
}],
'base-okfn-lg': ['2.5rem', '120%'],
'base-okfn-md': ['1.375rem', '140%'],
'base-okfn-sm': ['1rem', '140%'],
'base-m-okfn-lg': ['2rem', '130%'],
'base-m-okfn-md': ['1.1875rem', '150%'],
'base-m-okfn-sm': ['1rem', '140%'],
},
gridTemplateColumns: {
'14': 'repeat(14, minmax(0, 1fr))',
},
gridColumnEnd: {
'14': '14',
'15': '15',
},
spacing: {
'3': '0.75rem',
'24': '6rem',
},
screens: {
'2lg': '1200px',
'portrait': {'raw': '(orientation: portrait)'},
'landscape': { 'raw': '(orientation: landscape)' },
'max-sm': { 'max': '640px' },
'max-md': { 'max': '767px' },
'max-lg': { 'max': '1023px' },
'max-2lg': { 'max': '1199px' },
'max-xl': { 'max': '1279px' },
'max-2xl': { 'max': '1535px' },
},
},
},
safelist: [
{
pattern: /^(bg|border|text)-okfn-(blue|green|purple|yellow|light-gray|link|content)(-[a-z]+)?$/,
variants: ['md'],
},
{
pattern: /^text-h([0-9]+)?$/,
variants: ['md'],
},
{
pattern: /^text-hl-h([0-9]+)?$/,
variants: ['md'],
},
{
pattern: /^text-okfn-(lg|md|sm)?$/,
variants: ['md'],
},
{
pattern: /^(bg|border|text)-(black|gray|white)(-[0-9]+)?$/,
variants: ['md'],
},
{
pattern: /^(w|h)-(full|screen|auto|16|20|30|40|52|60|72|80)/,
variants: ['md'],
},
],
plugins: [],
}