-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.ts
76 lines (75 loc) · 2.28 KB
/
tailwind.config.ts
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
import type { Config } from "tailwindcss";
const config: Config = {
darkMode: ["class"],
content: [
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
"./components/**/*.{js,ts,jsx,tsx,mdx}",
"./app/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
extend: {
fontSize: {
small: ['var(--font-size-small)', 'var(--line-height-body)'],
body: ['var(--font-size-body)', 'var(--line-height-body)'],
heading: ['var(--font-size-heading)', 'var(--line-height-headings)'],
title: ['var(--font-size-title)', 'var(--line-height-headings)'],
subheading: ['var(--font-size-subheading)', 'var(--line-height-headings)']
},
colors: {
background: 'var(--color-background)',
select: 'var(--color-select)',
fill: 'var(--color-fill)',
'primary-color': 'var(--color-primary)',
'primary-color-light': 'var(--color-primary-light)',
'secondary-color': 'var(--color-secondary)',
'tertiary-color': 'var(--color-tertiary)'
},
fontFamily: {
'commit-mono': ['var(--font-commit-mono)', 'monospace'],
'tiempos-headline': ['var(--font-tiempos-headline)', 'var(--font-jacques-francois)', 'serif'],
'tiempos-text': ['var(--font-tiempos-text)', 'var(--font-jacques-francois)', 'serif'],
'jacques-francois': ['var(--font-jacques-francois)', 'serif'],
},
spacing: {
'0': 'var(--spacing-0)',
'1': 'var(--spacing-1)',
'2': 'var(--spacing-2)',
'3': 'var(--spacing-3)',
'4': 'var(--spacing-4)',
'5': 'var(--spacing-5)'
},
maxWidth: {
default: 'var(--max-width-default)',
narrow: 'var(--max-width-narrow)',
caseStudy: 'var(--max-width-study)'
},
boxShadow: {
line: 'inset 0 0.05rem 0 0 var(--color-tertiary)'
},
keyframes: {
'accordion-down': {
from: {
height: '0'
},
to: {
height: 'var(--radix-accordion-content-height)'
}
},
'accordion-up': {
from: {
height: 'var(--radix-accordion-content-height)'
},
to: {
height: '0'
}
}
},
animation: {
'accordion-down': 'accordion-down 400ms cubic-bezier(0.24, 1.15, 0.5, 1)',
'accordion-up': 'accordion-up 400ms cubic-bezier(0.24, 1.15, 0.5, 1)'
}
}
},
plugins: [require("tailwindcss-animate")],
};
export default config;