-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.cjs
131 lines (112 loc) · 3.18 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
const defaultTheme = require("tailwindcss/defaultTheme");
module.exports = {
content: ["./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}"],
theme: {
// Custom Colors
colors: {
transparent: "transparent",
// View / Component Backgrounds
page: {
light: "hsl(var(--color-page-light) / <alpha-value>)",
DEFAULT: "hsl(var(--color-page) / <alpha-value>)",
offset: "hsl(var(--color-page-offset) / <alpha-value>)",
},
// Border Color
border: "hsl(var(--color-border) / <alpha-value>)",
// Body Color
body: "hsl(var(--color-body) / <alpha-value>)",
// Muted Color
muted: "hsl(var(--color-muted) / <alpha-value>)",
// Primary Color
primary: {
DEFAULT: "hsl(var(--color-primary) / <alpha-value>)",
dark: "hsl(var(--color-primary-dark) / <alpha-value>)",
},
// Individual Colors
// White
white: "hsl(var(--color-white) / <alpha-value>)",
// Stone
stone: {
800: "hsl(var(--color-stone-800) / <alpha-value>)",
},
// Marine
marine: {
100: "hsl(var(--color-marine-100) / <alpha-value>)",
400: "hsl(var(--color-marine-400) / <alpha-value>)",
800: "hsl(var(--color-marine-800) / <alpha-value>)",
},
// Marine
moss: {
100: "hsl(var(--color-moss-100) / <alpha-value>)",
400: "hsl(var(--color-moss-400) / <alpha-value>)",
800: "hsl(var(--color-moss-800) / <alpha-value>)",
},
// Marine
plum: {
100: "hsl(var(--color-plum-100) / <alpha-value>)",
400: "hsl(var(--color-plum-400) / <alpha-value>)",
800: "hsl(var(--color-plum-800) / <alpha-value>)",
},
},
screens: {
xs: "460px",
sm: "640px",
md: "768px",
lg: "1024px",
xl: "1280px",
},
fontSize: {
xs: [".75rem", "1em"], // 12px
sm: ["var(--font-size-sm)", "1.25em"],
base: ["var(--font-size-base)", "1.5em"],
lg: ["var(--font-size-lg)", "1.5em"],
xl: ["var(--font-size-xl)", "1.375em"],
"2xl": ["var(--font-size-2xl)", "1.25em"],
"3xl": ["var(--font-size-3xl)", "1.05em"],
},
// Container
container: {
center: true,
padding: "var(--container-padding-x)",
screens: {
sm: "100%",
md: "100%",
lg: "100%",
xl: "103.125rem",
},
},
// Tracking
letterSpacing: {
tighter: "-.04em",
tight: "-.01em",
normal: "0",
wide: ".025em",
wider: ".05em",
widest: ".1em",
widest: ".25em",
},
// Border Radius
borderRadius: {
none: "0",
sm: "0.25rem",
DEFAULT: "0.25rem",
md: "0.625rem",
lg: "1rem",
full: "9999px",
xl: "1.875rem",
},
extend: {
// Custom Font
fontFamily: {
sans: ["GT America", defaultTheme.fontFamily.sans],
exteded: ["GT America Extended", defaultTheme.fontFamily.sans],
mono: ["GT America Mono", defaultTheme.fontFamily.sans],
},
// Transition Duration Default
transitionDuration: {
DEFAULT: "400ms",
},
},
},
plugins: [require("@tailwindcss/forms")],
};