-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
115 lines (110 loc) · 2.04 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
const defaultTheme = require('tailwindcss/defaultTheme')
const sizing = () => {
const obj = {}
for (i of new Array(9).keys()) {
obj[`${i + 1}/10`] = `${(i + 1) * 10}%`
}
return obj
}
const fontFamily = {
title: [
'Montserrat',
...defaultTheme.fontFamily.sans,
],
sans: [
'Roboto',
...defaultTheme.fontFamily.sans,
],
mono: [
'Inconsolata',
...defaultTheme.fontFamily.mono,
],
}
const colors = {
'kmb-blue': {
50: '#F2F8FE',
100: '#E6F1FC',
200: '#C0DCF8',
300: '#9AC7F4',
400: '#4E9DEB',
500: '#0273E3',
600: '#0268CC',
700: '#014588',
800: '#013466',
900: '#012344',
},
'kmb-gray': {
50: '#F7F7F7',
100: '#EFEFEF',
200: '#D7D7D7',
300: '#BFBFBF',
400: '#908F8F',
500: '#605F5F',
600: '#565656',
700: '#3A3939',
800: '#2B2B2B',
900: '#1D1D1D',
},
}
module.exports = {
mode: 'jit',
purge: ['./**/*.{css,pcss}', './{pages,components,www}/**/*.{js,ts,jsx,tsx}'],
darkMode: false,
theme: {
extend: {
screens: {
'xxl': {'min': '1480px'}
},
fontFamily,
scale: {
'invert': '-1',
},
spacing: {
...sizing(),
},
borderRadius: {
'xl': '1rem',
'full': '10010px',
},
inset: {
'-15': '-3.75rem',
'2': '0.5rem',
'1/2': '50%',
'1/4': '20%',
'2/5': '40%',
...sizing(),
'full': '100%',
},
zIndex: {
'-10': '-10',
},
colors,
typography: (theme) => ({
DEFAULT: {
css: {
color: theme('colors.kmb-gray.300'),
},
a: {
color: '#FFF',
},
h1: {
color: '#FFF',
},
h2: {
color: '#FFF',
},
h3: {
color: '#FFF',
},
h4: {
color: '#FFF',
},
},
}),
},
},
plugins: [
require('tailwindcss-safe-area'),
require('@tailwindcss/typography'),
],
}