forked from adonisjs/adonisjs.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
126 lines (110 loc) · 2.37 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
/** @type {import('tailwindcss').Config} */
/**
* Convert Radix colors to their CSS variable reference. This way
* we can use p3 color scales, which it not possible via JS API
* and Tailwind.
*/
function colorsToVars(tailwindShade, radixShade) {
return new Array(12).fill(0).reduce((result, _, index) => {
result[`${tailwindShade}${index + 1}`] = `var(--${radixShade}${index + 1})`
return result
}, {})
}
export default {
content: ['./resources/**/*.{edge,js,ts,jsx,tsx,vue}', './content/**/*.svg'],
theme: {
extend: {
fontFamily: {
sans: ['Instrument Sans'],
mono: ['DM Mono'],
},
boxShadow: {
card: '0 0 0 1px #0101370f,0 8px 40px #0000000d,0 12px 32px -16px #0101370f',
},
fontSize: {
/**
* Overrides
*/
'sm': [
'15px',
{
lineHeight: '22px',
},
],
'hero': [
'62px',
{
lineHeight: '62px',
letterSpacing: '-2px',
},
],
'hero-small': [
'52px',
{
lineHeight: '52px',
letterSpacing: '-1.5px',
},
],
'hero-mobile': [
'48px',
{
lineHeight: '48px',
letterSpacing: '-1.5px',
},
],
'lede': [
'20px',
{
letterSpacing: '-0.1px',
lineHeight: '30px',
},
],
'lede-small': [
'18px',
{
lineHeight: '28px',
},
],
'section-title': [
'46px',
{
lineHeight: '50px',
letterSpacing: '-1.8px',
},
],
'section-text': [
'18px',
{
lineHeight: '27px',
},
],
'pre': [
'15px',
{
lineHeight: '24px',
},
],
},
maxWidth: {
content: '1104px',
},
colors: {
brand: '#5a45ff',
sand13: 'color(display-p3 0.05 0.06 0.06)',
...colorsToVars('sand', 'sand-'),
...colorsToVars('sanda', 'sand-a'),
},
saturate: {
110: '1.1',
},
contrast: {
88: '.88',
},
},
},
safelist: [
{
pattern: /(bg|text)-(cyan|teal|pink|indigo)-\d/,
},
],
}