-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.mjs
112 lines (111 loc) · 3.59 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
import defaultTheme from "tailwindcss/defaultTheme";
/** @type {import('tailwindcss').Config} */
export default {
content: ["./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}"],
plugins: [
require("@tailwindcss/typography"),
require("tailwindcss-motion"),
require("tailwindcss-intersect"),
],
theme: {
borderRadius: {
6: "6px",
full: "9999px",
},
backgroundImage: {
"fg-1": "linear-gradient(to bottom, rgba(var(--fg-1-stop-1)), rgba(var(--fg-1-stop-2)))",
"fg-2": "linear-gradient(to bottom, rgba(var(--fg-2-stop-1)), rgba(var(--fg-2-stop-2)))",
modal: "linear-gradient(to bottom, rgba(var(--modal-stop-1)), rgba(var(--modal-stop-2)))",
},
colors: {
transparent: "transparent",
white: "#fff",
black: "#000",
"bg-1": "rgba(var(--bg-1))",
stroke: "rgba(var(--stroke))",
text: "rgba(var(--text))",
"text-invert": "rgba(var(--text-invert))",
accent: "rgba(var(--accent))",
red: "rgba(var(--red))",
yellow: "rgba(var(--yellow))",
green: "rgba(var(--green))",
},
fontFamily: {
sans: ["'DM Sans'", ...defaultTheme.fontFamily.sans],
mono: ["'DM Mono'", ...defaultTheme.fontFamily.mono],
},
fontSize: {
h1: "3rem",
h2: "2.25rem",
h3: "1.75rem",
h4: "1.25rem",
h5: "1.125rem",
body: "0.875rem",
sub: "0.6875rem",
},
spacing: {
256: "256px",
200: "200px",
128: "128px",
110: "110px",
96: "96px",
86: "86px",
72: "72px",
64: "64px",
56: "56px",
48: "48px",
36: "36px",
32: "32px",
30: "30px",
28: "28px",
24: "24px",
22: "22px",
20: "20px",
18: "18px",
16: "16px",
14: "14px",
12: "12px",
10: "10px",
8: "8px",
6: "6px",
4: "4px",
2: "2px",
0: "0px",
},
extend: {
boxShadow: {
skeuo: "0px 4px 17.4px 0px rgba(255, 255, 255, 0.05) inset, 0px -4px 11.5px -3px rgba(0, 0, 0, 0.22) inset",
"fg-1": "0px 4px 26.6px -1px rgba(0, 0, 0, 0.06)",
modal: "0px 10px 64px 0px var(--modal-shadow)",
},
backdropBlur: {
32: "32px",
},
keyframes: {
"scale-in": {
from: { opacity: "0", transform: "scale(0.98)" },
to: { opacity: "1", transform: "scale(1)" },
},
"scale-out": {
from: { opacity: "1", transform: "scale(1)" },
to: { opacity: "0", transform: "scale(0.98)" },
},
"fade-in": {
from: { opacity: "0" },
to: { opacity: "1" },
},
"fade-out": {
from: { opacity: "1" },
to: { opacity: "0" },
},
},
animation: {
"scale-in": "scale-in 150ms ease-out",
"scale-out": "scale-out 150ms ease-out",
"fade-in": "fade-in 150ms ease-out",
"fade-out": "fade-out 150ms ease-out",
},
},
},
darkMode: "class",
};