-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.cjs
113 lines (112 loc) · 2.79 KB
/
tailwind.config.cjs
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
/** @type {import('tailwindcss').Config} */
const defaultTheme = require("tailwindcss/defaultTheme");
const plugin = require("tailwindcss/plugin");
module.exports = {
content: ["./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}"],
theme: {
fontFamily: {
sans: ["Neue Montreal", ...defaultTheme.fontFamily.sans],
serif: ["Cirka", ...defaultTheme.fontFamily.serif],
},
fontMetrics: {
sans: {
capHeight: 715,
ascent: 958,
descent: -242,
lineGap: 0,
unitsPerEm: 1000,
},
serif: {
capHeight: 637,
ascent: 640,
descent: -200,
lineGap: 0,
unitsPerEm: 1000,
},
},
fontSize: {
14: ["0.875rem", "1.25rem"],
16: ["1rem", "1.5rem"],
18: ["1.125rem", "1.75rem"],
20: ["1.25rem", "2rem"],
24: ["1.5rem", "2.25rem"],
28: ["1.75rem", "2.5rem"],
32: ["2rem", "2.5rem"],
40: ["2.5rem", "3rem"],
},
spacing: {
0: "0",
2: "0.125rem",
4: "0.25rem",
8: "0.5rem",
12: "0.75rem",
16: "1rem",
20: "1.25rem",
24: "1.5rem",
32: "2rem",
40: "2.5rem",
48: "3rem",
64: "4rem",
80: "5rem",
96: "6rem",
120: "7.5rem",
160: "10rem",
200: "12.5rem",
240: "15rem",
280: "17.5rem",
320: "20rem",
360: "22.5rem",
},
borderRadius: {
none: "0",
2: "0.125rem",
4: "0.25rem",
8: "0.5rem",
16: "1rem",
full: "50%",
},
keyframes: {
"eq-bar-one-scale": {
"0%, 100%": { transform: "scaleY(0)" },
"50%": { transform: "scaleY(1.5)" },
},
"eq-bar-two-scale": {
"0%, 100%": { transform: "scaleY(1)" },
"50%": { transform: "scaleY(0.5)" },
},
"eq-bar-three-scale": {
"0%, 100%": { transform: "scaleY(0)" },
"50%": { transform: "scaleY(1)" },
},
},
animation: {
"eq-bar-one": "eq-bar-one-scale 0.5s linear 0.1s infinite",
"eq-bar-two": "eq-bar-two-scale 0.5s linear 0.2s infinite",
"eq-bar-three": "eq-bar-three-scale 0.5s linear 0.3s infinite",
},
screens: {
mobile: "376px",
tablet: "768px",
desktop: "1024px",
},
extend: {
colors: {
"neutral-01": "var(--color-neutral-01)",
"neutral-02": "var(--color-neutral-02)",
"neutral-03": "var(--color-neutral-03)",
"neutral-04": "var(--color-neutral-04)",
"theme-selected": "var(--color-theme-selected)",
},
borderWidth: {
6: "6px",
},
},
},
plugins: [
require("tailwindcss-capsize"),
plugin(function ({ addVariant }) {
addVariant("hover-none", "@media (hover: none)");
addVariant("supports-svh", "@supports (height: 100svh)");
}),
],
};