-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathtailwind.config.ts
50 lines (48 loc) · 1.42 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
import type { Config } from "tailwindcss";
import plugin from "tailwindcss/plugin";
import designColors from "./assets/design-tokens/tailwind-colors.generated";
import designTypography from "./assets/design-tokens/tailwind-typography.generated";
const config: Partial<Config> = {
darkMode: "class",
theme: {
fontFamily: {
sans: ["Inter", "sans-serif"],
},
colors: {
...designColors,
},
extend: {
gridTemplateColumns: {
tracklist: "min-content auto auto auto min-content",
tilesWide: "repeat(auto-fit, minmax(350px, 1fr))",
tilesNarrow: "repeat(auto-fit, minmax(200px, 1fr))",
tilesOneLine: "repeat(10, minmax(220px, 1fr))",
coverList: "repeat(auto-fill, minmax(158px, 1fr))",
},
transitionTimingFunction: {
"in-expo": "cubic-bezier(0.95, 0.05, 0.795, 0.035)",
"out-expo": "cubic-bezier(0.19, 1, 0.22, 1)",
},
zIndex: {
"100": "100",
"110": "110",
},
screens: {
tall: { raw: "(min-height: 700px)" },
"x-tall": { raw: "(min-height: 800px)" },
},
keyframes: {
"player-enter": {
"0%": { opacity: "0", transform: "translateY(1rem)" },
"100%": { opacity: "1", transform: "translateY(0)" },
},
},
},
},
plugins: [
plugin(({ addComponents }) => {
addComponents(designTypography);
}),
],
};
export default config;