forked from yuga-labs/glyph-sdk-react
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.ts
More file actions
169 lines (166 loc) · 6.73 KB
/
tailwind.config.ts
File metadata and controls
169 lines (166 loc) · 6.73 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
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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
import tailwindScrollbar from "tailwind-scrollbar";
import type { Config } from "tailwindcss";
import tailwindAnimation from "tailwindcss-animate";
/**
* Returns a list of fallback fonts
* @param fontVar - The font variable to use as the first fallback
*/
function withFallbackFonts(fontVar: string) {
return [
fontVar,
"-apple-system",
"BlinkMacSystemFont",
"Segoe UI",
"Roboto",
"Helvetica",
"Arial",
"sans-serif",
"Apple Color Emoji",
"Segoe UI Emoji",
"Segoe UI Symbol"
];
}
export default {
darkMode: ["class"],
prefix: "gw-", // This is the prefix for the tailwind classes. If you change this, you need to change the prefix in the components.json file and update the tailwindMerge config in the utils.ts file.
content: ["./src/**/*.{js,ts,jsx,tsx,mdx}"],
theme: {
extend: {
spacing: {
"25": "6.25rem",
"85": "21.25rem",
"135": "33.75rem",
"140": "35rem"
},
backgroundImage: {
"success-gradient":
"linear-gradient(0deg, #FAFAFA, #FAFAFA), linear-gradient(180deg, rgba(85, 245, 138, 0.05) 0%, rgba(255, 255, 255, 0.5) 92.17%)",
"wallet-gradient": "linear-gradient(to bottom, rgb(246, 237, 226, 0.2), rgb(55, 101, 71, 0.2))"
},
colors: {
brand: {
earth: "hsl(var(--gw-brand-earth))",
grass: {
DEFAULT: "hsl(var(--gw-brand-grass))",
light: "hsl(var(--gw-brand-grass-light))",
dark: "hsl(var(--gw-brand-grass-dark))"
},
forest: "hsl(var(--gw-brand-forest))",
"deep-moss": {
DEFAULT: "hsl(var(--gw-brand-deep-moss))",
light: "hsl(var(--gw-brand-deep-moss-light))",
dark: "hsl(var(--gw-brand-deep-moss-dark))"
},
bone: "hsl(var(--gw-brand-bone))",
clay: "hsl(var(--gw-brand-clay))",
black: "hsl(var(--gw-brand-black))",
white: "hsl(var(--gw-brand-white))",
gray: {
"500": "hsl(var(--gw-brand-gray-500))",
"600": "hsl(var(--gw-brand-gray-600))",
"700": "hsl(var(--gw-brand-gray-700))",
"800": "hsl(var(--gw-brand-gray-800))",
"900": "hsl(var(--gw-brand-gray-900))",
black: "hsl(var(--gw-brand-gray-black))"
},
success: "hsl(var(--gw-brand-success))",
warning: "hsl(var(--gw-brand-warning))",
failure: "hsl(var(--gw-brand-failure))"
},
background: "hsl(var(--gw-background))",
foreground: "hsl(var(--gw-foreground))",
card: {
DEFAULT: "hsl(var(--gw-card))",
foreground: "hsl(var(--gw-card-foreground))"
},
popover: {
DEFAULT: "hsl(var(--gw-popover))",
foreground: "hsl(var(--gw-popover-foreground))"
},
primary: {
DEFAULT: "hsl(var(--gw-primary))",
foreground: "hsl(var(--gw-primary-foreground))"
},
secondary: {
DEFAULT: "hsl(var(--gw-secondary))",
light: "hsl(var(--gw-brand-grass-light))",
dark: "hsl(var(--gw-brand-grass-dark))",
foreground: "hsl(var(--gw-secondary-foreground))"
},
muted: {
DEFAULT: "hsl(var(--gw-muted))",
foreground: "hsl(var(--gw-muted-foreground))"
},
accent: {
DEFAULT: "hsl(var(--gw-accent))",
foreground: "hsl(var(--gw-accent-foreground))"
},
destructive: {
DEFAULT: "hsl(var(--gw-destructive))",
foreground: "hsl(var(--gw-destructive-foreground))"
},
border: "hsl(var(--gw-border))",
input: "hsl(var(--gw-input))",
ring: "hsl(var(--gw-ring))",
chart: {
"1": "hsl(var(--gw-chart-1))",
"2": "hsl(var(--gw-chart-2))",
"3": "hsl(var(--gw-chart-3))",
"4": "hsl(var(--gw-chart-4))",
"5": "hsl(var(--gw-chart-5))"
}
},
boxShadow: {
buttonSm: "0px 2px 3px 0px hsla(0, 0%, 0%, 0.1)",
buttonLg: "0px 6px 32px 0px hsla(0, 0%, 0%, 0.1)",
buttonMd: "0px 1px 10px 0px rgba(0, 0, 0, 0.12), 0px 1px 1px 0px rgba(0, 0, 0, 0.25)",
inputFocus: "0px 1px 2px 0px rgba(0, 0, 0, 0.08), 0px 1px 24px 0px rgba(0, 0, 0, 0.15)"
},
dropShadow: {
buttonLg: ["0px 2px 1px hsla(0, 0%, 0%, 0.1)", "0px 3px 4px hsla(0, 0%, 0%, 0.1)"]
},
fontSize: {
"4.375rem": "4.375rem",
"2.5rem": "2.5rem",
"2rem": "2rem",
"1.75rem": "1.75rem"
},
fontFamily: {
display: withFallbackFonts("var(--font-gramatika)"),
secondary: withFallbackFonts("var(--font-gramatika)")
},
borderRadius: {
lg: "var(--gw-radius)",
md: "calc(var(--gw-radius) - 2px)",
sm: "calc(var(--gw-radius) - 4px)",
"4xl": "1.75rem"
},
transitionDelay: {
"600": "600ms"
},
keyframes: {
"accordion-down": {
from: {
height: "0"
},
to: {
height: "var(--radix-accordion-content-height)"
}
},
"accordion-up": {
from: {
height: "var(--radix-accordion-content-height)"
},
to: {
height: "0"
}
}
},
animation: {
"accordion-down": "accordion-down 0.2s ease-out",
"accordion-up": "accordion-up 0.2s ease-out"
}
}
},
plugins: [tailwindAnimation, tailwindScrollbar({ nocompatible: true, preferredStrategy: "pseudoelements" })]
} satisfies Config;