-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
88 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
86
87
88
/** @type {import('tailwindcss').Config} */
const decanter = require('decanter');
const path = require('path');
const dir = path.resolve(__dirname, 'src/styles');
let twoColumn = {}, threeColumn = {}, i;
for (i = 1; i <= 4; i++) {
twoColumn[`1-${i}`] = `minmax(0, 1fr) minmax(0, ${i}fr)`;
twoColumn[`${i}-1`] = `minmax(0, ${i}fr) minmax(0, 1fr)`;
}
for (i = 1; i <= 4; i++) {
threeColumn[`${i}-1-1`] = `minmax(0, ${i}fr) minmax(0, 1fr) minmax(0, 1fr)`;
threeColumn[`1-${i}-1`] = `minmax(0, 1fr) minmax(0, ${i}fr) minmax(0, 1fr)`;
threeColumn[`1-1-${i}`] = `minmax(0, 1fr) minmax(0, 1fr) minmax(0, ${i}fr)`;
}
module.exports = {
content: [
"./src/**/*.{js,ts,jsx,tsx,mdx}",
"./app/**/*.{js,ts,jsx,tsx,mdx}",
],
safelist: [
"max-w-prose",
"mb-2",
"mb-3",
"mb-4",
"pl-10",
"pl-20",
"pr-10",
"pr-5",
"pr-7",
"text-sm",
],
theme: {
fontFamily: decanter.theme.fontFamily,
decanter: decanter.theme.decanter,
screens: decanter.theme.screens,
extend: {
...decanter.theme.extend,
screens: {
"3xl": "1600px",
"4xl": "1800px",
},
gridTemplateColumns: {...twoColumn, ...threeColumn},
containers: {
'9xl': '90rem',
'10xl': '100rem',
'11xl': '110rem',
'12xl': '120rem',
'13xl': '130rem',
'14xl': '140rem',
'15xl': '150rem',
},
scale: {
'-100': '-1',
},
colors: {
...decanter.theme.extend.colors,
'press-indigo': '#003D69',
'press-grass': {
DEFAULT: '#00593e',
light: "#6FA287"
},
'press-bay': {
DEFAULT: "#6FA287",
light: '#a0d2bf',
dark: "#417865",
},
'press-sand': {
DEFAULT: '#9c9286',
light: "#C5BEB2",
dark: '#786E63',
},
},
},
},
plugins: [
...decanter.plugins,
require('@tailwindcss/container-queries'),
require(`${dir}/typography/local-footer.tsx`)(),
require(`${dir}/typography/global-message.tsx`)(),
require(`${dir}/typography/wysiwyg.tsx`)(),
require(`${dir}/centered-container.tsx`)(),
],
};