forked from d-es-ign/optimizely-saas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
187 lines (184 loc) · 4.57 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
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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
/* eslint-env node */
/* eslint-disable @typescript-eslint/no-var-requires */
/** @type {import('tailwindcss').Config} */
const screens = {
sm: '375px',
md: '752px',
lg: '1024px',
xl: '1408px',
xxl: '1600px',
};
module.exports = {
darkMode: 'selector',
prefix: 'tw-',
content: [
'./.storybook/**/*.{js,jsx,mdx,ts,tsx}',
'./src/components/**/*.{js,jsx,mdx,ts,tsx}',
'./src/pages/**/*.{js,jsx,mdx,ts,tsx}',
],
theme: {
screens,
listStyleType: {
none: 'none',
disc: 'disc',
decimal: 'decimal',
square: 'square',
},
container: {
screens,
center: true,
padding: {
DEFAULT: '16px',
sm: '16px',
md: '32px',
lg: '48px',
xl: '48px',
'2xl': '48px',
},
},
fontFamily: {
sans: '"Noto Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',
serif: '"Playfair Display",ui-serif, Georgia, Cambria, "Times New Roman", Times, serif',
mono: '"Noto Sans Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace',
icon: 'icomoon',
},
fontSize: {
xs: ['0.75rem', '1rem'],
sm: ['0.875rem', '1.25rem'],
base: ['1rem', '1.5rem'],
lg: ['1.125rem', '1.625rem'],
xl: ['1.3125rem', '1.75rem'],
'2xl': ['1.5rem', '2rem'],
'3xl': ['1.75rem', '2.25rem'],
'4xl': ['2rem', '2.5rem'],
'5xl': ['2.25rem', '2.75rem'],
'6xl': ['2.5rem', '3rem'],
'7xl': ['3rem', '3.5rem'],
'8xl': ['3.5rem', '4rem'],
},
lineHeight: {
xs: '1rem',
sm: '1.25rem',
base: '1.5rem',
lg: '1.625rem',
xl: '1.75rem',
'2xl': '2rem',
'3xl': '2.25rem',
'4xl': '2.5rem',
'5xl': '2.75rem',
'6xl': '3rem',
'7xl': '3.5rem',
'8xl': '4rem',
},
fontWeight: {
light: '300',
normal: '400',
semibold: '600',
},
colors: {
blue: {
DEFAULT: '#031E45',
},
yellow: {
DEFAULT: '#F0AB00',
hover: '#F1B32D',
active: '#EDBE46',
disabled: '#FBE6B3',
},
red: {
DEFAULT: '#D52B1E',
hover: '#E11E0F',
active: '#EC0E00',
disabled: '#F2BFBC',
},
green: {
DEFAULT: '#329E36',
},
grey: {
100: '#202020',
90: '#333333',
80: '#4D4D4D',
70: '#666666',
60: '#808080',
50: '#999999',
40: '#B3B3B3',
30: '#CCCCCC',
20: '#E6E6E6',
10: '#F7F7F7',
},
white: {
DEFAULT: '#FFFFFF',
},
black: {
DEFAULT: '#202020',
},
transparent: 'transparent',
background: {
white: '#FFFFFF', // light
lightgrey: '#F7F7F7', // light
pearl: '#F3F4ED', // light
sandDark: '#CEC1B1', // light
sand: '#E7DFCD', // light
brownGrey: '#79736D', // dark
graphite: '#70666C', //dark
amberDark: '#806A62', // dark
coral: '#DBC4B7', // light
amber: '#AF8A76', // light
coralDark: '#985F56', // dark
slate: '#A5BCC3', // light
slateDark: '#4E616C', // dark
olive: '#C9D0C5', // light
oliveDark: '#646556', // dark
beige: '#E9D8B8', // light
beigeDark: '#A98259', // light
jotunBlue: '#031E45', // dark
gbsGreen: '#276d00', // dark
gbsLightGreen: '#478326', // dark
darkGrey: '#E6E6E6', // light
lightGrey: '#F7F7F7', // light
},
},
extend: {
fill: {
current: 'currentColor',
},
stroke: {
current: 'currentColor',
},
transitionTimingFunction: {
'in-out-quart': 'cubic-bezier(0.76, 0, 0.24, 1)',
},
borderRadius: {
DEFAULT: '4px',
md: '10px',
},
borderWidth: {
1: '1px',
6: '6px',
},
spacing: {
'4xs': '0.125rem', // 2px
'3xs': '0.25rem', // 4px
xxs: '0.5rem', // 8px
xs: '1rem', // 16px
sm: '1.5rem', // 24px
md: '2rem', // 32px
lg: '2.5rem', // 40px
xl: '3rem', // 48px
'2xl': '4rem', // 64px
'3xl': '5rem', // 80px
'4xl': '6rem', // 96px
'5xl': '7.5rem', // 120px
buttonY: '0.875rem', // 14px
},
zIndex: {
max: '999',
100: '100',
90: '90',
80: '80',
70: '70',
60: '60',
},
},
},
};