-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.mjs
90 lines (89 loc) · 2.74 KB
/
tailwind.config.mjs
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
/** @type {import("tailwindcss").Config} */
import defaultTheme from 'tailwindcss/defaultTheme'
export default {
content: ["./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}"],
theme: {
extend: {
fontFamily: {
serif: ['"Source Serif 4 Variable"', ...defaultTheme.fontFamily.serif],
sans: ['"Inter Variable"', ...defaultTheme.fontFamily.sans],
},
gridTemplateColumns: {
// 24: "repeat(24, minmax(0, 1fr))",
2: "repeat(2, minmax(0, 100%))"
},
colors: {
primary: "#000000", /* #222224 */
secondary: "#FFFFFF", /* #F3F4F6 */
tertiary: "#E8710A",
},
transitionProperty: {
opacity: "opacity",
},
cursor: {
'default': 'url(/src/icons/cursor.svg) 16 16, default',
'pointer': 'url(/src/icons/cursor-hover.svg) 16 16, pointer',
'text': 'url(/src/icons/cursor.svg) 16 16, default',
'copy': 'url(/src/icons/cursor.svg) 16 16, default',
},
fontSize: {
// 'article-heading-1': ['var(--step-0)', {
// lineHeight: '2rem',
// letterSpacing: '-0.01em',
// fontWeight: '500',
// }],
'serif-2xl': ['var(--step-7)',
{
lineHeight: '80%',
}], // landing-title
'serif-xl': ['var(--step-6)',
{
lineHeight: '78%',
}], // landing-title
'serif-lg': ['var(--step-5)', {
lineHeight: '130%',
}], // tagline
'serif-md': ['var(--step-4)', {
lineHeight: '110%',
fontWeight: '650'
}], // section-title, timeline-heading, article-title, sent-title
'serif-sm': ['var(--step-3)', {
lineHeight: '132%',
fontWeight: '600',
}], // h2
'serif-xs': ['var(--step-2)'], // h3
'sans-lg': ['var(--step-1)',
{
lineHeight: '100%',
}
], // landing-subtitle, availability-tag
'sans-timeline': ['var(--step-1)',
{
lineHeight: '147%',
}
], // timeline copy
'sans-md': ['var(--step-0)'], // section-body, article-body, form,
'sans-sm': ['var(--step--1)'], // footer, navigation, section-tag, timeline-year, article-date, button
'sans-xs': ['var(--step--2)'], // contact button
}, // 320px, 14px, 1.125 2560px, 16px, 1.2
spacing: {},
margin: {},
size: {
'volume-icon': ['var(--step--1)']
},
typography: ({ theme }) => ({
DEFAULT: {
css: {
a: {
'hyperlink': '',
},
},
},
}),
},
},
plugins: [
require('@tailwindcss/typography'),
require('@tailwindcss/container-queries'),
],
};