forked from yorgai/ORG2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
182 lines (178 loc) · 6.31 KB
/
Copy pathtailwind.config.js
File metadata and controls
182 lines (178 loc) · 6.31 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
170
171
172
173
174
175
176
177
178
179
180
181
182
/** @type {import('tailwindcss').Config} */
const COLOR_STEPS_3 = [1, 2, 3];
const COLOR_STEPS_4 = [1, 2, 3, 4];
const COLOR_STEPS_6 = [1, 2, 3, 4, 5, 6];
const COLOR_STEPS_7 = [1, 2, 3, 4, 5, 6, 7];
const colorVariable = (tokenName) =>
`color-mix(in srgb, var(--color-${tokenName}) calc(<alpha-value> * 100%), transparent)`;
const colorScale = (tokenName, steps) =>
Object.fromEntries(
steps.map((step) => [step, colorVariable(`${tokenName}-${step}`)])
);
module.exports = {
content: ["./src/**/*.{html,ts,tsx,js,jsx}"],
theme: {
extend: {
colors: {
pane: {
raised: colorVariable("pane-raised"),
input: colorVariable("pane-input"),
},
workstation: {
bg: colorVariable("workstation-bg"),
},
chat: {
pane: colorVariable("chat-pane"),
input: colorVariable("chat-input"),
container: colorVariable("chat-container"),
"panel-info-container": colorVariable("chat-panel-info-container"),
},
button: {
hover: colorVariable("button-hover"),
},
surface: {
hover: colorVariable("surface-hover"),
selected: colorVariable("surface-selected"),
"selected-hover": colorVariable("surface-selected-hover"),
container: colorVariable("surface-container"),
},
sidebar: {
selected: "var(--sidebar-selected-row-bg)",
},
event: {
block: colorVariable("event-block"),
"block-fade": colorVariable("event-block-fade"),
},
primary: colorScale("primary", COLOR_STEPS_7),
bg: {
...colorScale("bg", COLOR_STEPS_3),
overlay: "rgba(0, 0, 0, 0.5)",
"overlay-heavy": "rgba(0, 0, 0, 0.7)",
},
border: colorScale("border", COLOR_STEPS_3),
text: {
...colorScale("text", COLOR_STEPS_4),
white: colorVariable("text-white"),
},
fill: colorScale("fill", COLOR_STEPS_4),
// IMPORTANT:
// Tailwind expects `white` to be a string or an object with `DEFAULT`.
// If we define only `white.100`, classes like `text-white` / `bg-white`
// (and `text-white/70`) won't be generated correctly.
white: {
DEFAULT: "#ffffff",
100: "#ffffff",
},
danger: colorScale("danger", COLOR_STEPS_6),
success: colorScale("success", COLOR_STEPS_6),
warning: colorScale("warning", COLOR_STEPS_6),
},
spacing: {
180: "180px",
},
borderRadius: {
page: "var(--radius-page)",
},
screens: {
lg: "960px",
},
boxShadow: {
// Dropdown panel shadow (light mode). The `.theme-dark` override
// for this utility lives in `src/index.scss` because Tailwind's
// `dark:` variant does not align with the app's `.theme-dark`
// root class.
dropdown:
"0 4px 16px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.08)",
// Sticky header shadow - used in Git changes view file headers
"sticky-header": "0 4px 8px -2px rgba(0, 0, 0, 0.3)",
// Liquid Glass Pattern - Light Theme Shadows
// Subtle, soft shadows that complement the glass material
"light-ultrathin":
"0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02)",
"light-thin":
"0 4px 12px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04)",
"light-medium":
"0 8px 20px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.06)",
"light-thick":
"0 12px 28px rgba(0, 0, 0, 0.10), 0 6px 12px rgba(0, 0, 0, 0.08)",
// Liquid Glass Pattern - Dark Theme Shadows
// Deeper shadows for depth against dark backgrounds
"dark-ultrathin":
"0 2px 8px rgba(0, 0, 0, 0.20), 0 1px 2px rgba(0, 0, 0, 0.15)",
"dark-thin":
"0 4px 12px rgba(0, 0, 0, 0.30), 0 2px 4px rgba(0, 0, 0, 0.25)",
"dark-medium":
"0 8px 20px rgba(0, 0, 0, 0.40), 0 4px 8px rgba(0, 0, 0, 0.35)",
"dark-thick":
"0 12px 28px rgba(0, 0, 0, 0.50), 0 6px 12px rgba(0, 0, 0, 0.45)",
},
fontSize: {
xs: ["0.75rem", "1.25rem"],
sm: ["0.875rem", "1.375rem"],
},
animation: {
marquee: "marquee 2s linear infinite",
"stamp-slam": "stamp-slam 0.4s ease-out",
"fade-in-up": "fade-in-up 0.6s ease-out",
"progress-slide": "progress-slide 1s ease-in-out infinite",
"shimmer-text": "shimmer-text 2.5s linear infinite",
"fade-in": "fade-in 250ms ease-out both",
"dropdown-in": "dropdown-in 0.2s cubic-bezier(0.4, 0, 0.2, 1)",
},
keyframes: {
marquee: {
"0%": { backgroundPosition: "0% 0%" },
"100%": { backgroundPosition: "200% 0%" },
},
"stamp-slam": {
"0%": { transform: "scale(0) rotate(0deg)", opacity: "0" },
"50%": { transform: "scale(1.1) rotate(-5deg)", opacity: "0.8" },
"100%": { transform: "scale(1) rotate(0deg)", opacity: "1" },
},
"fade-in-up": {
"0%": { transform: "translateY(20px)", opacity: "0" },
"100%": { transform: "translateY(0)", opacity: "1" },
},
"progress-slide": {
"0%": { left: "-33%" },
"100%": { left: "100%" },
},
"shimmer-text": {
"0%": { backgroundPosition: "200% 50%" },
"100%": { backgroundPosition: "-100% 50%" },
},
"fade-in": {
"0%": { opacity: "0" },
"100%": { opacity: "1" },
},
"dropdown-in": {
"0%": { opacity: "0", transform: "translateY(-8px)" },
"100%": { opacity: "1", transform: "translateY(0)" },
},
},
backgroundImage: {
"paper-texture":
'url(\'data:image/svg+xml,%3Csvg width="100" height="100" xmlns="http://www.w3.org/2000/svg"/%3E\')',
"leather-texture": "linear-gradient(135deg, #2c2416 0%, #1a1410 100%)",
},
perspective: {
1500: "1500px",
},
transformStyle: {
"preserve-3d": "preserve-3d",
},
backfaceVisibility: {
hidden: "hidden",
},
},
},
plugins: [
require("tailwind-scrollbar-hide"),
require("@tailwindcss/container-queries"),
],
variants: {
extend: {
opacity: ["group-hover"],
},
},
};