forked from Lilly-Protocol/lily-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathglobals.css
More file actions
211 lines (179 loc) · 5.04 KB
/
Copy pathglobals.css
File metadata and controls
211 lines (179 loc) · 5.04 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
@import 'tailwindcss';
:root {
/* Surface and layout colors */
--color-surface: #f7f7f5;
--color-panel: #ffffff;
--color-panel-solid: #ffffff;
--color-panel-muted: #f1f3f5;
--color-panel-contrast: #ffffff;
--color-header-bg: rgba(255, 255, 255, 0.9);
/* Typography and interactive colors */
--color-ink: #111827;
--color-muted: #374151;
--color-line: #9ca3af;
--color-accent: #0f766e;
--focus-ring-color: rgba(15, 118, 110, 0.45);
--focus-ring-width: 2px;
--focus-ring-offset: 2px;
--shadow-soft: 0 16px 40px rgba(17, 24, 39, 0.06);
--duration-fast: 150ms;
--duration-base: 250ms;
--duration-slow: 400ms;
--ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
}
@theme inline {
--color-background: var(--color-surface);
--color-foreground: var(--color-ink);
--color-status-success: var(--color-success);
--color-status-success-soft: var(--color-success-soft);
--color-status-warning: var(--color-warning);
--color-status-warning-soft: var(--color-warning-soft);
--color-status-danger: var(--color-danger);
--color-status-danger-soft: var(--color-danger-soft);
--color-status-info: var(--color-info);
--color-status-info-soft: var(--color-info-soft);
--font-sans: var(--font-space-grotesk);
--font-mono: var(--font-ibm-plex-mono);
/* Typography Scale Tokens */
--text-display: 3rem;
--text-h1: 2.25rem;
--text-h2: 1.875rem;
--text-h3: 1.5rem;
--text-h4: 1.25rem;
--text-body-lg: 1.125rem;
--text-body: 1rem;
--text-body-sm: 0.875rem;
--text-caption: 0.75rem;
--text-eyebrow: 0.78rem;
--leading-display: 1.1;
--leading-heading: 1.2;
--leading-body: 1.6;
--leading-tight: 1.3;
--tracking-display: -0.025em;
--tracking-heading: -0.02em;
--tracking-eyebrow: 0.16em;
}
* {
box-sizing: border-box;
}
html {
background: var(--color-surface);
}
@media (prefers-reduced-motion: no-preference) {
html {
scroll-behavior: smooth;
}
}
body {
color: var(--color-ink);
font-family: var(--font-space-grotesk), sans-serif;
}
a {
color: inherit;
text-decoration: none;
}
:where(a, button, [role="button"], input, select, textarea, summary):focus {
outline: none;
}
:where(a, button, [role="button"], input, select, textarea, summary):focus-visible {
outline: 3px solid var(--focus-ring);
outline-offset: 3px;
}
::selection {
background: rgba(15, 118, 110, 0.18);
}
:focus-visible {
outline: var(--focus-ring-width) solid var(--focus-ring-color);
outline-offset: var(--focus-ring-offset);
border-radius: 2px;
}
.surface {
border: 1px solid var(--color-line);
background: var(--color-panel);
box-shadow: var(--shadow-soft);
}
/* Typography utility classes backed by tokens */
.text-display {
font-size: var(--text-display);
line-height: var(--leading-display);
letter-spacing: var(--tracking-display);
font-weight: 700;
}
.text-h1 {
font-size: var(--text-h1);
line-height: var(--leading-heading);
letter-spacing: var(--tracking-heading);
font-weight: 600;
}
.text-h2 {
font-size: var(--text-h2);
line-height: var(--leading-heading);
letter-spacing: var(--tracking-heading);
font-weight: 600;
}
.text-h3 {
font-size: var(--text-h3);
line-height: var(--leading-heading);
font-weight: 600;
}
.text-h4 {
font-size: var(--text-h4);
line-height: var(--leading-heading);
font-weight: 600;
}
.text-body-lg {
font-size: var(--text-body-lg);
line-height: var(--leading-body);
}
.text-body {
font-size: var(--text-body);
line-height: var(--leading-body);
}
.text-body-sm {
font-size: var(--text-body-sm);
line-height: var(--leading-body);
}
.text-caption {
font-size: var(--text-caption);
line-height: var(--leading-body);
}
.eyebrow {
font-family: var(--font-ibm-plex-mono), monospace;
font-size: var(--text-eyebrow);
letter-spacing: var(--tracking-eyebrow);
text-transform: uppercase;
line-height: var(--leading-tight);
}
/* Focus is the one state a keyboard user has. The scaffold styled :hover only,
which leaves tab navigation invisible — so every interactive control gets a
ring here rather than each component remembering to add one.
:focus-visible, not :focus, so a mouse click does not leave a ring behind.
The 2px offset keeps the ring off the control's own border, which matters on
the pill links where the border is the only edge. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
outline: 2px solid var(--color-accent);
outline-offset: 2px;
border-radius: inherit;
}
/* Skip link: visually hidden until focused, then pinned to the top-left. Gives
keyboard and screen-reader users a way past the header nav on every page,
which is WCAG 2.4.1 (Bypass Blocks). */
.skip-link {
position: absolute;
left: -9999px;
top: 0;
z-index: 100;
}
.skip-link:focus-visible {
left: 0.5rem;
top: 0.5rem;
padding: 0.75rem 1rem;
border-radius: 0.75rem;
background: var(--color-ink);
color: #fff;
}
/* A programmatically focused landmark should not also draw a ring — the point
of focusing it is to move the reading position, not to highlight a control. */
main:focus {
outline: none;
}