-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.ts
More file actions
86 lines (83 loc) · 1.95 KB
/
tailwind.config.ts
File metadata and controls
86 lines (83 loc) · 1.95 KB
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
import type { Config } from "tailwindcss";
const colors = {
backgroundSecondary: "#F2F2F7",
backgroundPrimary: "#FFFFFF",
white: "#ffffff",
primary: "#0066FF",
gray100: "#F2F2F7",
gray200: "#E5E5EA",
gray300: "#D1D1D6",
gray400: "#C7C7CC",
gray500: "#AEAEB2",
gray600: "#8E8E93",
systemRed: "#FF3B30",
};
const textColors = {
textDefault: "#1E1E1E",
textSecondary: "#757575",
textTertiary: "#B3B3B3",
};
export default {
content: [
"./src/pages/**/*.{js,ts,jsx,tsx,mdx}",
"./src/components/**/*.{js,ts,jsx,tsx,mdx}",
"./src/app/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
extend: {
colors,
textColors,
},
},
plugins: [
({ addComponents }: { addComponents: any }) => {
addComponents({
".text-title-bold": {
fontSize: "24px",
fontWeight: "700",
letterSpacing: "-0.02em",
},
".text-title-md": {
fontSize: "20px",
fontWeight: "600",
letterSpacing: "-0.02em",
},
".text-body-md": {
fontSize: "16px",
fontWeight: "500",
letterSpacing: "-0.02em",
},
".text-body-sm": {
fontSize: "16px",
fontWeight: "600",
letterSpacing: "-0.02em",
},
".text-body2-md": {
fontSize: "15px",
fontWeight: "500",
letterSpacing: "-0.02em",
},
".text-body3-sm": {
fontSize: "15px",
fontWeight: "500",
letterSpacing: "-0.02em",
},
".text-body3-rg": {
fontSize: "15px",
fontWeight: "400",
letterSpacing: "-0.02em",
},
".text-caption-sm": {
fontSize: "13px",
fontWeight: "600",
letterSpacing: "-0.02em",
},
".text-caption-md": {
fontSize: "12px",
fontWeight: "500",
letterSpacing: "-0.02em",
},
});
},
],
} satisfies Config;