forked from lmsqueezy/wedges
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.ts
133 lines (128 loc) · 3.22 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
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
import { wedgesTW } from "@lemonsqueezy/wedges";
import type { ThemableColorScale } from "@lemonsqueezy/wedges/src/tw-plugin/foundation/colors/themableColors";
import tailwindTypography from "@tailwindcss/typography";
import type { Config } from "tailwindcss";
const primaryBlue: ThemableColorScale = {
100: "#DAF0FF",
200: "#B5DEFF",
300: "#90C9FF",
400: "#75B6FF",
500: "#4796FF",
600: "#3374DB",
700: "#2356B7",
800: "#163C93",
900: "#0D297A",
DEFAULT: "#4796FF", // 500
};
const config: Config = {
content: [
"./src/pages/**/*.{js,ts,jsx,tsx,mdx}",
"./src/components/**/*.{js,ts,jsx,tsx,mdx}",
"./src/examples/**/*.{js,ts,jsx,tsx,mdx}",
"./src/content/**/*.{js,ts,jsx,tsx,mdx}",
"./src/app/**/*.{js,ts,jsx,tsx,mdx}",
// This is required in order to include Tailwind classes from Wedges.
"node_modules/@lemonsqueezy/wedges/dist/**/*.{js,ts,jsx,tsx}",
],
darkMode: "class",
theme: {
extend: {
typography: {
DEFAULT: {
css: {
pre: {
padding: 0,
borderRadius: "0.5rem",
margin: 0,
},
},
},
},
animation: {
flash: "flash 1s ease-in-out infinite",
"fade-in": "fadeIn 0.5s ease-in-out",
"fade-out": "fadeOut 0.5s ease-in-out",
},
keyframes: {
flash: {
"0%, 20%": { opacity: "0.4" },
"70%, 100%": { opacity: "1" },
},
fadeIn: {
"0%": { opacity: "0" },
"100%": { opacity: "1" },
},
fadeOut: {
"0%": { opacity: "1" },
"100%": { opacity: "0" },
},
},
maxWidth: {
"8xl": "88rem",
"9xl": "96rem",
"10xl": "102rem",
"11xl": "108rem",
},
colors: {
"gray-50": "#F7F7F8",
"gray-100": "#E8E8ED",
"gray-500": "#6C6C89",
"gray-800": "#282833",
"gray-900": "#121217",
"purple-200": "#fcc5f3",
"purple-400": "#8D6CEF",
"purple-500": "#7047EB",
"purple-600": "#5423E7",
"yellow-500": "#FFC233",
"wtf-gainsboro": "#EAEAEB",
},
container: {
center: true,
screens: {
md: "100%",
xl: "77rem", // 72 + 5 for padding
},
padding: {
DEFAULT: "1.5rem",
md: "2.5rem",
xl: "2.5rem",
},
},
fontFamily: {
sans: ["Inter", "ui-sans-serif", "system-ui", "-apple-system"],
mono: ["var(--font-mono)", "ui-monospace", "SFMono-Regular"],
display: ["var(--font-display)", "Inter", "ui-monospace", "SFMono-Regular"],
},
minHeight: {
"screen-dvh": "100dvh",
},
transitionDuration: {
180: "180ms",
},
},
},
plugins: [
wedgesTW({
themes: {
"dark-blue": {
extend: "dark",
colors: {
primary: primaryBlue,
},
},
light: {
colors: {
primary: {
DEFAULT: "#7047EB",
400: "#8D6CEF",
500: "#7047EB",
600: "#5423E7",
},
},
},
},
}),
tailwindTypography,
],
};
export default config;