-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
546 lines (490 loc) · 23.4 KB
/
Copy pathindex.html
File metadata and controls
546 lines (490 loc) · 23.4 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
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Components | corporate-memphis-theme</title>
<meta
name="description"
content="The five core components of corporate-memphis-theme plus the illustration layer, rendered live with the markup to copy."
/>
<!-- The real token file, the real component file, the real illustration
layer, in that order. This page holds no copy of any of them. -->
<link rel="stylesheet" href="../tokens/tokens.css" />
<link rel="stylesheet" href="./components.css" />
<link rel="stylesheet" href="./illustration.css" />
<style>
/* Page chrome for this gallery only. Tokens throughout, no literals. */
*,
*::before,
*::after {
box-sizing: border-box;
}
html,
body {
overflow-x: clip;
}
body {
margin: 0;
background: var(--cm-ground);
color: var(--cm-ink);
font-family: var(--cm-font-sans);
font-size: var(--cm-text-body);
line-height: var(--cm-leading-body);
}
.wrap {
max-width: var(--cm-container);
margin: 0 auto;
padding: var(--cm-space-14) var(--cm-space-4) var(--cm-space-28);
}
@media (min-width: 768px) {
.wrap {
padding-left: var(--cm-space-6);
padding-right: var(--cm-space-6);
}
}
h1 {
margin: 0 0 var(--cm-space-3);
font-size: var(--cm-text-h1);
font-weight: var(--cm-weight-display);
line-height: var(--cm-leading-tight);
letter-spacing: var(--cm-tracking-tight);
}
.page-lead {
max-width: var(--cm-measure);
margin: 0 0 var(--cm-space-14);
font-size: var(--cm-text-lead);
color: var(--cm-ink-muted);
}
section {
margin-top: var(--cm-space-20);
}
h2 {
margin: 0 0 var(--cm-space-2);
font-size: var(--cm-text-h2);
font-weight: var(--cm-weight-display);
line-height: var(--cm-leading-snug);
letter-spacing: var(--cm-tracking-tight);
}
.note {
max-width: var(--cm-measure);
margin: 0 0 var(--cm-space-6);
color: var(--cm-ink-muted);
}
.row {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--cm-space-4);
margin-bottom: var(--cm-space-6);
}
.stack {
display: grid;
gap: var(--cm-space-6);
max-width: 420px;
margin-bottom: var(--cm-space-6);
}
.shapes {
display: flex;
flex-wrap: wrap;
gap: var(--cm-space-8);
align-items: center;
margin-bottom: var(--cm-space-6);
}
.shapes svg {
width: 200px;
height: auto;
}
pre {
overflow-x: auto;
margin: 0;
padding: var(--cm-space-4);
background: var(--cm-surface);
border: var(--cm-border-width) solid var(--cm-border);
border-radius: var(--cm-radius);
box-shadow: var(--cm-shadow-sm);
}
code {
font-family: var(--cm-font-mono);
font-size: var(--cm-text-sm);
line-height: var(--cm-leading-body);
}
a {
color: var(--cm-ink);
}
footer {
margin-top: var(--cm-space-28);
padding-top: var(--cm-space-6);
border-top: var(--cm-border-width) solid var(--cm-border);
color: var(--cm-ink-muted);
font-size: var(--cm-text-sm);
}
</style>
</head>
<body>
<div class="wrap">
<h1>Components</h1>
<p class="page-lead">
Five components and the illustration layer, rendered by the real
stylesheets. Copy the markup, copy <code>tokens/tokens.css</code> and
<code>components/</code>, and you have the register. Every value
resolves back to a token. See <a href="../README.md">the README</a> for
the position map and <a href="../CUSTOMIZE.md">CUSTOMIZE.md</a> for
moving it.
</p>
<!-- ================= BUTTON ================= -->
<section aria-labelledby="button-heading">
<h2 id="button-heading">Button</h2>
<p class="note">
Four variants and three sizes, all fully round. Hover raises the
button by three pixels and grows its shadow a step; pressing puts it
back down. The quiet variant is the one control here that draws an
edge, because it has no fill to be recognized by.
</p>
<div class="row">
<button class="cm-btn cm-btn-primary" type="button">Book time off</button>
<button class="cm-btn cm-btn-secondary" type="button">Find cover</button>
<button class="cm-btn cm-btn-quiet" type="button">Not yet</button>
<button class="cm-btn cm-btn-destructive" type="button">Cancel request</button>
<button class="cm-btn cm-btn-primary" type="button" disabled>Disabled</button>
</div>
<div class="row">
<button class="cm-btn cm-btn-sm cm-btn-quiet" type="button">Small</button>
<button class="cm-btn cm-btn-quiet" type="button">Base</button>
<button class="cm-btn cm-btn-lg cm-btn-primary" type="button">Large</button>
</div>
<pre><code><button class="cm-btn cm-btn-primary" type="button">Book time off</button>
<button class="cm-btn cm-btn-secondary" type="button">Find cover</button>
<button class="cm-btn cm-btn-quiet" type="button">Not yet</button>
<button class="cm-btn cm-btn-destructive" type="button">Cancel request</button>
<button class="cm-btn cm-btn-lg cm-btn-primary" type="button">Large</button></code></pre>
</section>
<!-- ================= CARD ================= -->
<section aria-labelledby="card-heading">
<h2 id="card-heading">Card</h2>
<p class="note">
Three variants. The base card carries a soft shadow and a hairline
that is decorative; the outlined card drops the shadow and takes a
real edge instead, because a card with neither is not a card. The
third is a link: hover raises it, click lands it.
</p>
<div class="cm-cards" style="margin-bottom: var(--cm-space-6)">
<div class="cm-card">
<div class="cm-card-spot cm-card-spot-1" aria-hidden="true">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 96 96" class="cm-illo cm-illo-spot">
<rect class="cm-art-fill-paper" fill="#ffffff" x="8" y="16" width="80" height="72" rx="14" />
<path class="cm-art-fill-plum" fill="#8c6bd8"
d="M8 30 A14 14 0 0 1 22 16 L74 16 A14 14 0 0 1 88 30 L88 36 L8 36 Z" />
<g class="cm-art-fill-plum" fill="#8c6bd8">
<rect x="26" y="4" width="8" height="18" rx="4" />
<rect x="62" y="4" width="8" height="18" rx="4" />
</g>
<g class="cm-art-fill-sky" fill="#7ec8f2">
<rect x="38" y="46" width="18" height="14" rx="5" />
<rect x="62" y="46" width="18" height="14" rx="5" />
<rect x="16" y="66" width="18" height="14" rx="5" />
<rect x="38" y="66" width="18" height="14" rx="5" />
<rect x="62" y="66" width="18" height="14" rx="5" />
</g>
<rect class="cm-art-fill-coral" fill="#f4796a" x="16" y="46" width="18" height="14" rx="5" />
</svg>
</div>
<div class="cm-card-header">
<h3 class="cm-card-title">Base</h3>
<span class="cm-badge cm-badge-neutral">Default</span>
</div>
<p class="cm-card-body">
Soft shadow, hairline edge, and a square slot reserved for a spot
scene. This is the surface most of a page is built from.
</p>
</div>
<div class="cm-card cm-card-soft">
<div class="cm-card-header">
<h3 class="cm-card-title">Soft</h3>
<span class="cm-badge cm-badge-info">Tinted</span>
</div>
<p class="cm-card-body">
A tinted fill and no edge at all. Use it inside a white band,
where the tint is the thing separating the card from the page.
</p>
</div>
<a class="cm-card cm-card-outlined cm-card-link" href="#card-heading">
<div class="cm-card-header">
<h3 class="cm-card-title">Outlined link</h3>
<span class="cm-badge cm-badge-success">Real edge</span>
</div>
<p class="cm-card-body">
A whole card as one target. Hover raises it, press lands it flat.
</p>
</a>
</div>
<pre><code><div class="cm-card">
<div class="cm-card-spot cm-card-spot-1" aria-hidden="true"><!-- spot svg --></div>
<div class="cm-card-header">
<h3 class="cm-card-title">Base</h3>
<span class="cm-badge cm-badge-neutral">Default</span>
</div>
<p class="cm-card-body">Body copy.</p>
</div></code></pre>
</section>
<!-- ================= INPUT ================= -->
<section aria-labelledby="input-heading">
<h2 id="input-heading">Input</h2>
<p class="note">
Four states: default, focus, invalid, disabled. The field's edge is
the one border in this theme that has to clear the 3:1 floor, because
it is what tells a person where they may type. Body text holds at
16px, which is what stops iOS Safari zooming the page on focus.
</p>
<div class="stack">
<div class="cm-field">
<label class="cm-label" for="f-team">Team name</label>
<input class="cm-input" id="f-team" type="text" placeholder="Platform" />
<span class="cm-hint">Whatever people already call it.</span>
</div>
<div class="cm-field">
<label class="cm-label" for="f-dates">Dates</label>
<input
class="cm-input"
id="f-dates"
type="text"
value="14 Aug to 9 Aug"
aria-invalid="true"
aria-describedby="f-dates-error"
/>
<span class="cm-error" id="f-dates-error">
The end date is before the start date.
</span>
</div>
<div class="cm-field">
<label class="cm-label" for="f-policy">Policy</label>
<input class="cm-input" id="f-policy" type="text" value="25 days, UK" disabled />
<span class="cm-hint">Set once, by an admin.</span>
</div>
</div>
<pre><code><div class="cm-field">
<label class="cm-label" for="f-dates">Dates</label>
<input class="cm-input" id="f-dates" type="text"
aria-invalid="true" aria-describedby="f-dates-error" />
<span class="cm-error" id="f-dates-error">The end date is before the start date.</span>
</div></code></pre>
</section>
<!-- ================= BADGE ================= -->
<section aria-labelledby="badge-heading">
<h2 id="badge-heading">Badge</h2>
<p class="note">
Ink text on a pale tint, in sentence case rather than uppercase. Every
pairing clears 11:1, so the fill is picked for what it means rather
than for whether the label survives on it. Uppercase labels address
the reader as an operator, which is the register this theme declines.
</p>
<div class="row">
<span class="cm-badge cm-badge-neutral">Draft</span>
<span class="cm-badge cm-badge-success">Approved</span>
<span class="cm-badge cm-badge-info">Pending</span>
<span class="cm-badge cm-badge-warning">Needs cover</span>
<span class="cm-badge cm-badge-danger">Clashes</span>
</div>
<pre><code><span class="cm-badge cm-badge-success">Approved</span>
<span class="cm-badge cm-badge-warning">Needs cover</span>
<span class="cm-badge cm-badge-danger">Clashes</span></code></pre>
</section>
<!-- ================= NAV ================= -->
<section aria-labelledby="nav-heading">
<h2 id="nav-heading">Nav</h2>
<p class="note">
One bar with a round brand mark, inline links above 768px, and a
disclosure panel below it. The panel is a <code><details></code>
element, so the pattern ships without a line of JavaScript and keeps
working when scripts fail. Narrow the window to watch it swap.
</p>
<div style="margin-bottom: var(--cm-space-6)">
<nav class="cm-nav" aria-label="Component example">
<div class="cm-nav-inner">
<a class="cm-nav-brand" href="#nav-heading">
<span class="cm-nav-mark" aria-hidden="true">F</span>
Fallow
</a>
<ul class="cm-nav-links">
<li><a class="cm-nav-link" href="#nav-heading" aria-current="page">Calendar</a></li>
<li><a class="cm-nav-link" href="#nav-heading">Requests</a></li>
<li><a class="cm-nav-link" href="#nav-heading">Policy</a></li>
</ul>
<a class="cm-btn cm-btn-sm cm-btn-primary cm-nav-cta" href="#nav-heading">
Sign in
</a>
<details class="cm-nav-disclosure">
<summary aria-label="Open menu">Menu</summary>
<ul class="cm-nav-panel">
<li><a class="cm-nav-link" href="#nav-heading" aria-current="page">Calendar</a></li>
<li><a class="cm-nav-link" href="#nav-heading">Requests</a></li>
<li><a class="cm-nav-link" href="#nav-heading">Policy</a></li>
<li><a class="cm-nav-link" href="#nav-heading">Sign in</a></li>
</ul>
</details>
</div>
</nav>
</div>
<pre><code><nav class="cm-nav" aria-label="Main">
<div class="cm-nav-inner">
<a class="cm-nav-brand" href="/">
<span class="cm-nav-mark" aria-hidden="true">F</span>
Fallow
</a>
<ul class="cm-nav-links">
<li><a class="cm-nav-link" href="/calendar" aria-current="page">Calendar</a></li>
<li><a class="cm-nav-link" href="/requests">Requests</a></li>
</ul>
<a class="cm-btn cm-btn-sm cm-btn-primary cm-nav-cta" href="/signin">Sign in</a>
<details class="cm-nav-disclosure">
<summary aria-label="Open menu">Menu</summary>
<ul class="cm-nav-panel">
<li><a class="cm-nav-link" href="/calendar">Calendar</a></li>
</ul>
</details>
</div>
</nav></code></pre>
</section>
<!-- ================= ILLUSTRATION ================= -->
<section aria-labelledby="illo-heading">
<h2 id="illo-heading">Illustration</h2>
<p class="note">
The layer tokens cannot carry. Four scenes and three spots live in
<a href="../illustrations/">illustrations/</a>, along with the two
background shapes below. Inline them into your markup rather than
loading them through <code><img></code>: an SVG inside an
<code><img></code> cannot read your custom properties, so it
would have to carry its own colors and the single source would be
gone. Each file's construction is written up in the file.
</p>
<p class="note">
One full scene, inlined from
<code>illustrations/scene-cover.svg</code>, paired with this
paragraph the way <code>.cm-pair</code> pairs them. Look at the three
figures where they overlap: the white gap between them is not a
highlight, it is a paper copy of each solid drawn five units larger
underneath it. Without it the middle figure's coral torso and the left
figure's skin sit at 1.62:1 and merge into one silhouette.
</p>
<div class="cm-pair" style="margin-bottom: var(--cm-space-8)">
<p class="note" style="margin: 0">
The three heads are at three different heights and the tallest
figure is in the middle rather than at an end, so the group has a
peak instead of a slope. The raised arm belongs to an outer figure:
on the centre one it would pass over the other two heads and turn
into a shape nobody can name.
</p>
<figure class="cm-illo-plate" aria-hidden="true">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300" class="cm-illo cm-illo-scene">
<g stroke-linecap="round" stroke-linejoin="round">
<g fill="none">
<path stroke="#ffffff" stroke-width="32" d="M106 184 L100 250" />
<path stroke="#ffffff" stroke-width="32" d="M128 184 L134 250" />
<path class="cm-art-stroke-plum" stroke="#8c6bd8" stroke-width="22" d="M106 184 L100 250" />
<path class="cm-art-stroke-plum" stroke="#8c6bd8" stroke-width="22" d="M128 184 L134 250" />
</g>
<rect fill="#ffffff" x="86" y="99" width="62" height="96" rx="31" />
<rect class="cm-art-fill-teal" fill="#2aa79b" x="91" y="104" width="52" height="86" rx="26" />
<g fill="none">
<path stroke="#ffffff" stroke-width="27" d="M95 128 L64 92" />
<path stroke="#ffffff" stroke-width="27" d="M139 130 L146 178" />
<path class="cm-art-stroke-skin-2" stroke="#a9694a" stroke-width="17" d="M95 128 L64 92" />
<path class="cm-art-stroke-skin-2" stroke="#a9694a" stroke-width="17" d="M139 130 L146 178" />
</g>
<circle fill="#ffffff" cx="117" cy="62" r="26" />
<circle class="cm-art-fill-skin-2" fill="#a9694a" cx="117" cy="62" r="21" />
<path class="cm-art-fill-line" fill="#22303c" d="M96 62 A21 21 0 0 1 138 62 Z" />
<g fill="none">
<path stroke="#ffffff" stroke-width="32" d="M272 190 L266 254" />
<path stroke="#ffffff" stroke-width="32" d="M294 190 L302 254" />
<path class="cm-art-stroke-teal" stroke="#2aa79b" stroke-width="22" d="M272 190 L266 254" />
<path class="cm-art-stroke-teal" stroke="#2aa79b" stroke-width="22" d="M294 190 L302 254" />
</g>
<rect fill="#ffffff" x="252" y="105" width="62" height="96" rx="31" />
<rect class="cm-art-fill-plum" fill="#8c6bd8" x="257" y="110" width="52" height="86" rx="26" />
<g fill="none">
<path stroke="#ffffff" stroke-width="27" d="M261 134 L246 180" />
<path stroke="#ffffff" stroke-width="27" d="M305 136 L314 180" />
<path class="cm-art-stroke-skin-1" stroke="#e9a887" stroke-width="17" d="M261 134 L246 180" />
<path class="cm-art-stroke-skin-1" stroke="#e9a887" stroke-width="17" d="M305 136 L314 180" />
</g>
<circle fill="#ffffff" cx="283" cy="70" r="26" />
<circle class="cm-art-fill-skin-1" fill="#e9a887" cx="283" cy="70" r="21" />
<path class="cm-art-fill-line" fill="#22303c" d="M262 70 A21 21 0 0 1 304 70 Z" />
<g fill="none">
<path stroke="#ffffff" stroke-width="32" d="M189 170 L182 248" />
<path stroke="#ffffff" stroke-width="32" d="M211 170 L220 248" />
<path class="cm-art-stroke-plum" stroke="#8c6bd8" stroke-width="22" d="M189 170 L182 248" />
<path class="cm-art-stroke-plum" stroke="#8c6bd8" stroke-width="22" d="M211 170 L220 248" />
</g>
<rect fill="#ffffff" x="169" y="81" width="62" height="96" rx="31" />
<rect class="cm-art-fill-coral" fill="#f4796a" x="174" y="86" width="52" height="86" rx="26" />
<g fill="none">
<path stroke="#ffffff" stroke-width="27" d="M178 110 L162 158" />
<path stroke="#ffffff" stroke-width="27" d="M222 112 L238 154" />
<path class="cm-art-stroke-skin-1" stroke="#e9a887" stroke-width="17" d="M178 110 L162 158" />
<path class="cm-art-stroke-skin-1" stroke="#e9a887" stroke-width="17" d="M222 112 L238 154" />
</g>
<circle fill="#ffffff" cx="200" cy="44" r="26" />
<circle class="cm-art-fill-skin-1" fill="#e9a887" cx="200" cy="44" r="21" />
<path class="cm-art-fill-line" fill="#22303c" d="M179 44 A21 21 0 0 1 221 44 Z" />
</g>
</svg>
</figure>
</div>
<p class="note">
Below are the two background shapes on their own. The rule for both is
one per block, never two, and never behind a block that already has a
tinted background. The demo's rest section drops its shape for exactly
that reason.
</p>
<div class="shapes">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400" role="img"
aria-label="The background blob">
<path class="cm-art-fill-blob-1" fill="#fce3dd"
d="M388 226
C388 274, 320 319, 272 341
C223 362, 133 378, 96 354
C59 330, 49 247, 48 197
C47 147, 53 79, 90 55
C128 31, 222 24, 272 53
C322 81, 388 178, 388 226 Z" />
</svg>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 260 160" role="img"
aria-label="The background arc stack">
<g fill="none" stroke-linecap="butt">
<path class="cm-art-stroke-blob-1" stroke="#fce3dd" stroke-width="22"
d="M12 150 A118 118 0 0 1 248 150" />
<path class="cm-art-stroke-blob-2" stroke="#dff2ec" stroke-width="18"
d="M46 150 A84 84 0 0 1 214 150" />
<path class="cm-art-stroke-blob-1" stroke="#fce3dd" stroke-width="14"
d="M80 150 A50 50 0 0 1 180 150" />
</g>
</svg>
</div>
<p class="note">
The pairing rule is one block of copy against one scene, on a row
whose split is <code>--cm-illo-share</code>. That token is the dial
this theme turns on, and CUSTOMIZE.md moves it in both directions.
</p>
<pre><code><div class="cm-pair">
<div><h2>Heading</h2><p>Copy.</p></div>
<figure class="cm-illo-plate" aria-hidden="true">
<svg viewBox="0 0 400 400" class="cm-illo cm-illo-blob">...</svg>
<svg viewBox="0 0 400 300" class="cm-illo cm-illo-scene">...</svg>
</figure>
</div>
<!-- cm-pair-reverse puts the picture first on desktop and leaves it
second in the source, so the reading order stays the written one. --></code></pre>
</section>
<footer>
<p>
corporate-memphis-theme. MIT. Questions go to
<a href="https://github.com/rampstackco/claude-skills/discussions">
the claude-skills discussions
</a>.
</p>
</footer>
</div>
</body>
</html>