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
/* Presentation for the token reference tables and swatch grids, plus a
generic data-table utility. All of this is documentation chrome — the
design system itself has no Table component (see the note on the removed
`table`/`progress`/`callout` pages in git history). */
.gl-swatch-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
gap: var(--gl-space-xs);
margin-block: var(--gl-space-xs) var(--gl-space-s);
padding: 0;
list-style: none;
}
.gl-swatch {
display: flex;
flex-direction: column;
border: 1px solid var(--gl-color-border-default);
border-radius: var(--gl-radius-sm);
overflow: hidden;
background: var(--gl-color-surface-card);
}
.gl-swatch__chip {
display: flex;
align-items: flex-end;
justify-content: flex-end;
height: 4rem;
padding: var(--gl-space-2xs);
font-family: var(--gl-font-mono);
font-size: 11px;
font-weight: 600;
}
.gl-swatch__meta {
display: flex;
flex-direction: column;
gap: 0.1rem;
padding: var(--gl-space-2xs);
border-top: 1px solid var(--gl-color-border-hairline);
font-family: var(--gl-font-mono);
font-size: 11px;
}
.gl-swatch__hex { color: var(--gl-color-text-primary); text-transform: uppercase; }
.gl-swatch__ratio { color: var(--gl-color-text-tertiary); }
.gl-alias-row { display: flex; align-items: center; gap: var(--gl-space-2xs); }
.gl-alias-chip {
width: 1.5rem;
height: 1.5rem;
flex: none;
border: 1px solid var(--gl-color-border-default);
border-radius: var(--gl-radius-sm);
}
.gl-alias-chip--pair { display: flex; }
.gl-alias-chip--pair > span { flex: 1; }
/* Type specimen rows. */
.gl-specimen {
display: grid;
grid-template-columns: minmax(0, 1fr);
gap: var(--gl-space-3xs);
padding-block: var(--gl-space-xs);
border-bottom: 1px solid var(--gl-color-border-hairline);
}
.gl-specimen__meta {
display: flex;
flex-wrap: wrap;
gap: var(--gl-space-xs);
font-family: var(--gl-font-mono);
font-size: 11px;
color: var(--gl-color-text-tertiary);
}
.gl-specimen__sample {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: var(--gl-color-text-primary);
}
/* Space and radius rulers. */
.gl-ruler { display: flex; flex-direction: column; gap: var(--gl-space-2xs); }
.gl-ruler__row { display: grid; grid-template-columns: 6.5rem 4.5rem 1fr; align-items: center; gap: var(--gl-space-xs); font-family: var(--gl-font-mono); font-size: 11px; }
.gl-ruler__bar { height: 0.75rem; background: var(--gl-color-accent); border-radius: var(--gl-radius-sm); }
.gl-ruler__num { color: var(--gl-color-text-tertiary); text-align: right; }
.gl-radius-grid, .gl-elevation-grid, .gl-motion-grid, .gl-accent-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
gap: var(--gl-space-xs);
margin-block: var(--gl-space-xs);
padding: 0;
list-style: none;
}
.gl-radius-demo {
height: 4.5rem;
background: var(--gl-color-accent-soft);
border: 1px solid var(--gl-color-accent);
margin-bottom: var(--gl-space-2xs);
}
.gl-elevation-demo {
height: 4.5rem;
background: var(--gl-color-surface-card);
border: 1px solid var(--gl-color-border-hairline);
border-radius: var(--gl-radius-lg);
margin-bottom: var(--gl-space-2xs);
}
.gl-motion-demo {
height: 4.5rem;
display: grid;
place-items: center;
background: var(--gl-color-surface-fill);
border: 1px solid var(--gl-color-border-hairline);
border-radius: var(--gl-radius-md);
margin-bottom: var(--gl-space-2xs);
cursor: pointer;
overflow: hidden;
}
.gl-motion-demo__dot {
width: 1.25rem;
height: 1.25rem;
border-radius: var(--gl-radius-full);
background: var(--gl-color-accent);
translate: -3rem 0;
transition-property: translate;
transition-duration: var(--gl-dur-base);
transition-timing-function: var(--gl-ease);
}
.gl-motion-demo:hover .gl-motion-demo__dot,
.gl-motion-demo:focus-visible .gl-motion-demo__dot { translate: 3rem 0; }
.gl-accent-demo {
height: 4.5rem;
display: flex;
align-items: flex-end;
padding: var(--gl-space-2xs);
border-radius: var(--gl-radius-md);
color: #fff;
font-family: var(--gl-font-mono);
font-size: 11px;
margin-bottom: var(--gl-space-2xs);
}
/* Token names read `<code>` sitewide, which already carries a mono chip
look for running prose (see :not(pre) > code in base/typography.css).
Inside these specimen/swatch/ruler rows the old `.gl-token-name` class was
plain mono text with no chip, so `<code>` is flattened back to that look
here the same way table cells are. */
.gl-swatch code, .gl-specimen code, .gl-ruler code, .gl-alias-row code {
background: none;
border: 0;
padding: 0;
font-size: var(--gl-step--2);
color: var(--gl-color-text-primary);
white-space: nowrap;
}
/* A documentation aside. Like `<table>`, this is site chrome for the prose
itself, not a system component — the real system has no Callout. */
.gl-callout {
margin-block: var(--gl-space-s);
padding: var(--gl-space-xs) var(--gl-space-s);
border: 1px solid var(--gl-color-border-hairline);
border-left: 3px solid var(--gl-color-accent);
border-radius: var(--gl-radius-md);
background: var(--gl-color-surface-fill);
}
.gl-callout p { margin: 0; font-size: var(--gl-step--1); }
.gl-callout .type-label { display: block; margin-bottom: var(--gl-space-2xs); }
/* Generic reference tables (component APIs, alias tables, the contrast
contract). `<table>` IS a table — no class needed to say so. Every table
on this site uses the one compact density, so there is no separate
modifier for it. `display: block` plus `overflow-x: auto` gives the table
its own horizontal scrollbar on narrow viewports without a wrapper div;
the anonymous table box the browser generates around `<thead>`/`<tbody>`
still does the row/column layout. `<code>` replaces the old
`.gl-token-name` / `.gl-table__code` cells — it is already styled
sitewide, just re-flattened here to a plain mono run instead of the
chip-with-border look prose code gets, to match this table's original
look. `.num` is the one sanctioned class left, for right-aligned numeric
columns — there is no attribute that means "this column is a number". */
table { width: 100%; border-collapse: collapse; font-size: var(--gl-step--1); display: block; overflow-x: auto; }
table th, table td {
padding: var(--gl-space-3xs) var(--gl-space-xs);
border-bottom: 1px solid var(--gl-color-border-hairline);
text-align: left;
vertical-align: top;
}
table th { font-family: var(--gl-font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gl-color-text-secondary); font-weight: 500; }
table code { background: none; border: 0; padding: 0; font-size: var(--gl-step--2); white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
/* Home page. */
.gl-hero { padding-block: var(--gl-space-m) var(--gl-space-l); }
.gl-hero__title {
font-size: var(--gl-step-4);
margin-bottom: var(--gl-space-xs);
}
.gl-hero__actions { display: flex; flex-wrap: wrap; gap: var(--gl-space-xs); margin-top: var(--gl-space-s); }
.gl-stat-row {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
gap: var(--gl-space-xs);
margin-block: var(--gl-space-l);
padding: var(--gl-space-xs);
background: var(--gl-color-surface-card);
border: 1px solid var(--gl-color-border-default);
border-radius: var(--gl-radius-lg);
}
.gl-stat__value {
display: block;
font-family: var(--gl-font-sans);
font-size: var(--gl-step-2);
font-weight: 600;
line-height: 1.16;
font-variant-numeric: tabular-nums;
}
.gl-stat__label {
font-family: var(--gl-font-mono);
font-size: 11px;
letter-spacing: 0.06em;
text-transform: uppercase;
color: var(--gl-color-text-tertiary);
}