forked from SO4-Markets/interface
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathglobals.css
More file actions
223 lines (211 loc) · 8.39 KB
/
Copy pathglobals.css
File metadata and controls
223 lines (211 loc) · 8.39 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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
@import "tailwindcss";
@import "tw-animate-css";
@import "shadcn/tailwind.css";
@import "@fontsource-variable/geist";
@custom-variant dark (&:is(.dark *));
@source "../../../apps/**/*.{ts,tsx}";
@source "../../../components/**/*.{ts,tsx}";
@source "../**/*.{ts,tsx}";
@theme inline {
--font-heading: var(--font-sans);
--color-sidebar-ring: var(--sidebar-ring);
--color-sidebar-border: var(--sidebar-border);
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
--color-sidebar-accent: var(--sidebar-accent);
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
--color-sidebar-primary: var(--sidebar-primary);
--color-sidebar-foreground: var(--sidebar-foreground);
--color-sidebar: var(--sidebar);
--color-chart-5: var(--chart-5);
--color-chart-4: var(--chart-4);
--color-chart-3: var(--chart-3);
--color-chart-2: var(--chart-2);
--color-chart-1: var(--chart-1);
--color-ring: var(--ring);
--color-input: var(--input);
--color-border: var(--border);
--color-destructive: var(--destructive);
--color-destructive-foreground: var(--destructive-foreground);
--color-success: var(--success);
--color-success-foreground: var(--success-foreground);
--color-warning: var(--warning);
--color-warning-foreground: var(--warning-foreground);
--color-info: var(--info);
--color-info-foreground: var(--info-foreground);
--color-neutral: var(--neutral);
--color-danger: var(--danger);
--color-long: var(--long);
--color-short: var(--short);
--color-accent-foreground: var(--accent-foreground);
--color-accent: var(--accent);
--color-muted-foreground: var(--muted-foreground);
--color-muted: var(--muted);
--color-secondary-foreground: var(--secondary-foreground);
--color-secondary: var(--secondary);
--color-primary-foreground: var(--primary-foreground);
--color-primary: var(--primary);
--color-popover-foreground: var(--popover-foreground);
--color-popover: var(--popover);
--color-card-foreground: var(--card-foreground);
--color-card: var(--card);
--color-foreground: var(--foreground);
--color-background: var(--background);
--radius-sm: calc(var(--radius) * 0.6);
--radius-md: calc(var(--radius) * 0.8);
--radius-lg: var(--radius);
--radius-xl: calc(var(--radius) * 1.4);
--radius-2xl: calc(var(--radius) * 1.8);
--radius-3xl: calc(var(--radius) * 2.2);
--radius-4xl: calc(var(--radius) * 2.6);
--font-sans: 'Geist Variable', sans-serif;
/*
* Micro-typography scale (DS-050).
*
* The default Tailwind scale (xs=12px, sm=14px, base=16px, lg=18px) has
* no steps for the dense, data-table-heavy UI in this app (order books,
* position tables, referral stats), which had accumulated 250+ ad hoc
* `text-[Npx]` arbitrary values across the codebase instead. These are
* the exact values that usage actually converged on, promoted to named
* tokens so they're an intentional, documented scale instead of
* per-callsite magic numbers. Named by pixel value (at the default
* 16px root) rather than a semantic step name (2xs/3xs/...) since a
* dozen-plus half-pixel steps don't fit a small semantic vocabulary
* without the names becoming arbitrary themselves.
*/
--text-9-5: 0.59375rem; /* 9.5px */
--text-10: 0.625rem; /* 10px */
--text-10-5: 0.65625rem; /* 10.5px */
--text-11: 0.6875rem; /* 11px */
--text-11-5: 0.71875rem; /* 11.5px */
--text-12-5: 0.78125rem; /* 12.5px */
--text-13: 0.8125rem; /* 13px */
--text-13-5: 0.84375rem; /* 13.5px */
--text-14-5: 0.90625rem; /* 14.5px */
--text-15: 0.9375rem; /* 15px */
--text-17: 1.0625rem; /* 17px */
--text-22: 1.375rem; /* 22px */
--text-26: 1.625rem; /* 26px */
--text-40: 2.5rem; /* 40px */
}
:root {
--background: oklch(1 0 0);
--foreground: oklch(0.145 0 0);
--card: oklch(1 0 0);
--card-foreground: oklch(0.145 0 0);
--popover: oklch(1 0 0);
--popover-foreground: oklch(0.145 0 0);
--primary: oklch(0.5 0.134 242.749);
--primary-foreground: oklch(0.977 0.013 236.62);
--secondary: oklch(0.967 0.001 286.375);
--secondary-foreground: oklch(0.21 0.006 285.885);
--muted: oklch(0.97 0 0);
--muted-foreground: oklch(0.556 0 0);
--accent: oklch(0.97 0 0);
--accent-foreground: oklch(0.205 0 0);
--destructive: oklch(0.577 0.245 27.325);
--destructive-foreground: oklch(0.985 0 0);
--border: oklch(0.922 0 0);
--input: oklch(0.922 0 0);
--ring: oklch(0.708 0 0);
--chart-1: oklch(0.809 0.105 251.813);
--chart-2: oklch(0.623 0.214 259.815);
--chart-3: oklch(0.546 0.245 262.881);
--chart-4: oklch(0.488 0.243 264.376);
--chart-5: oklch(0.424 0.199 265.638);
/* Semantic status roles — shared by badges, alerts, numeric text and the
trading chart so a "long" candle is the same green as a positive PnL. */
--success: oklch(0.596 0.145 163.225);
--success-foreground: oklch(0.985 0 0);
--warning: oklch(0.681 0.162 75.834);
--warning-foreground: oklch(0.21 0 0);
--info: oklch(0.546 0.245 262.881);
--info-foreground: oklch(0.985 0 0);
--neutral: oklch(0.556 0 0);
--danger: var(--destructive);
--long: var(--success);
--short: var(--destructive);
/* Trading chart surface roles. The chart renders to canvas and cannot use
Tailwind classes, so it reads these through the typed chart adapter. */
--chart-surface: var(--background);
--chart-text: var(--muted-foreground);
--chart-grid: var(--border);
--chart-crosshair: oklch(0.708 0 0);
--chart-crosshair-label: oklch(0.955 0 0);
--chart-border: var(--border);
--chart-up: var(--long);
--chart-down: var(--short);
--chart-liquidation: var(--warning);
--radius: 0;
--sidebar: oklch(0.985 0 0);
--sidebar-foreground: oklch(0.145 0 0);
--sidebar-primary: oklch(0.588 0.158 241.966);
--sidebar-primary-foreground: oklch(0.977 0.013 236.62);
--sidebar-accent: oklch(0.97 0 0);
--sidebar-accent-foreground: oklch(0.205 0 0);
--sidebar-border: oklch(0.922 0 0);
--sidebar-ring: oklch(0.708 0 0);
}
.dark {
--background: oklch(0.145 0 0);
--foreground: oklch(0.985 0 0);
--card: oklch(0.205 0 0);
--card-foreground: oklch(0.985 0 0);
--popover: oklch(0.205 0 0);
--popover-foreground: oklch(0.985 0 0);
--primary: oklch(0.443 0.11 240.79);
--primary-foreground: oklch(0.977 0.013 236.62);
--secondary: oklch(0.274 0.006 286.033);
--secondary-foreground: oklch(0.985 0 0);
--muted: oklch(0.269 0 0);
--muted-foreground: oklch(0.708 0 0);
--accent: oklch(0.269 0 0);
--accent-foreground: oklch(0.985 0 0);
--destructive: oklch(0.704 0.191 22.216);
--destructive-foreground: oklch(0.145 0 0);
--border: oklch(1 0 0 / 10%);
--input: oklch(1 0 0 / 15%);
--ring: oklch(0.556 0 0);
--chart-1: oklch(0.809 0.105 251.813);
--chart-2: oklch(0.623 0.214 259.815);
--chart-3: oklch(0.546 0.245 262.881);
--chart-4: oklch(0.488 0.243 264.376);
--chart-5: oklch(0.424 0.199 265.638);
--success: oklch(0.792 0.184 158.6);
--success-foreground: oklch(0.145 0 0);
--warning: oklch(0.828 0.159 82.5);
--warning-foreground: oklch(0.145 0 0);
--info: oklch(0.707 0.165 254.624);
--info-foreground: oklch(0.145 0 0);
--neutral: oklch(0.708 0 0);
--danger: var(--destructive);
--long: var(--success);
--short: var(--destructive);
--chart-surface: oklch(0.145 0 0);
--chart-text: var(--muted-foreground);
--chart-grid: oklch(0.269 0 0);
--chart-crosshair: oklch(0.44 0 0);
--chart-crosshair-label: oklch(0.269 0 0);
--chart-border: oklch(0.269 0 0);
--chart-up: var(--long);
--chart-down: var(--short);
--chart-liquidation: var(--warning);
--sidebar: oklch(0.205 0 0);
--sidebar-foreground: oklch(0.985 0 0);
--sidebar-primary: oklch(0.685 0.169 237.323);
--sidebar-primary-foreground: oklch(0.293 0.066 243.157);
--sidebar-accent: oklch(0.269 0 0);
--sidebar-accent-foreground: oklch(0.985 0 0);
--sidebar-border: oklch(1 0 0 / 10%);
--sidebar-ring: oklch(0.556 0 0);
}
@layer base {
* {
@apply border-border outline-ring/50;
}
body {
@apply bg-background text-foreground;
}
button:not(:disabled), [role="button"]:not(:disabled) {
cursor: pointer;
}
}