-
Notifications
You must be signed in to change notification settings - Fork 12
/
tailwind.config.js
125 lines (124 loc) · 3.94 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
const plugin = require('tailwindcss/plugin')
module.exports = {
content: ['src/**/*.html','src/**/*.njk','src/**/*.md','src/**/*.svg','.eleventy.js'],
safelist: [
'ml-4',
'ml-8'
],
theme: {
extend: {
typography: (theme) => ({
DEFAULT: {
css: {
'--tw-prose-headings': theme('colors.gray.600'),
picture: {
marginTop: '0',
marginBottom: '0',
},
h1: {
fontWeight: '500',
},
h2: {
fontWeight: '400',
},
h3: {
fontWeight: '400',
},
h4: {
fontWeight: '400',
},
h5: {
fontWeight: '400',
},
h6: {
fontWeight: '400',
},
code: {
color: theme('colors.red.700'),
},
strong: {
color: theme('colors.gray.500'),
},
maxWidth: '80ch',
},
},
}),
fontSize: {
'page-h1': ['2.4rem', '3rem'],
'post-h4': ['1.25rem']
},
fontFamily: {
'sans': ['Heebo', 'Helvetica', 'Arial', 'sans-serif'],
},
textShadow: {
header: '1px 1px 0.25rem black'
},
boxShadow: {
nav: '0px 10px 20px #11182766;'
},
gridTemplateColumns: {
header: '1fr auto 1fr'
},
transitionProperty: {
'height': 'max-height',
'spacing': 'margin, padding',
'navdropdown': 'max-height, margin, padding'
},
colors: { // https://coolors.co/aa4444-2d2d2a-779fa1-efd09e-fafac6
current: 'currentColor',
black: "#000",
white: "#FFF",
gray: {
50: "#F9FAFB",
100: "#F3F4F6",
200: "#E5E7EB",
300: "#D1D5DB",
400: "#9CA3AF",
500: "#6B7280",
600: "#4B5563",
700: "#374151",
800: "#1F2937",
900: "#111827"
},
red: {
50: "#FFEFEA",
100: "#FFD9CE",
200: "#FFC5B3",
300: "#FFB29A",
400: "#ED4E4E",
500: "#EB6D46",
600: "#DA3D0B",
700: "#B33109",
800: "#8D2606",
900: "#671D06",
},
teal: {
50: "#E4FBFC",
100: "#C4F3F5",
200: "#B2EBEE",
300: "#8CE2E7",
400: "#74D4D9",
500: "#50C3C9",
600: "#35AAB0",
700: "#31959A",
800: "#397B7E",
900: "#406466"
}
}
}
},
plugins: [
// require('postcss-import'),
require('@tailwindcss/typography'),
plugin(function ({ matchUtilities, theme }) {
matchUtilities(
{
'text-shadow': (value) => ({
textShadow: value,
}),
},
{ values: theme('textShadow') }
)
}),
]
}