-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
736 lines (692 loc) · 38.1 KB
/
Copy pathindex.html
File metadata and controls
736 lines (692 loc) · 38.1 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
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
---
layout: null
---
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SLASHED — a cascade-layer CSS framework</title>
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 100 100%27%3E%3Ctext y=%27.9em%27 font-size=%2790%27 font-family=%27system-ui%27 font-weight=%27800%27%3E/%3C/text%3E%3C/svg%3E">
<meta name="description" content="A cascade-layer CSS framework: 729 design tokens, automatic dark mode, fluid type & spacing — zero JavaScript, zero build step.">
<!-- The page is styled by the framework it advertises — served from the
jsDelivr CDN off the dist branch (updated on every release). -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/codeslash-dev/SLASHED@dist/slashed.optimal.min.css">
<style>
/* Page-specific rules live in the reserved top layer and compose
framework tokens only — exactly the customisation path the
framework documents. No raw colors, sizes, or fonts. */
@layer slashed.overrides {
/* ---------- buttons ---------- */
.btn {
display: inline-flex;
align-items: center;
gap: var(--sf-space-2xs);
padding: var(--sf-space-2xs) var(--sf-space-m);
border-radius: var(--sf-radius-m);
font-weight: var(--sf-font-weight-interactive);
font-size: var(--sf-text-s);
text-decoration: none;
transition: background-color var(--sf-duration-fast) var(--sf-ease-out),
box-shadow var(--sf-duration-fast) var(--sf-ease-out),
translate var(--sf-duration-fast) var(--sf-ease-out);
}
.btn--primary {
background-image: var(--sf-gradient-brand);
color: var(--sf-color-text--on-primary);
}
.btn--primary:hover {
color: var(--sf-color-text--on-primary);
box-shadow: var(--sf-shadow-glow);
translate: 0 -2px;
}
.btn--quiet {
background: var(--sf-color-surface);
color: var(--sf-color-text);
border: 1px solid var(--sf-color-border);
}
.btn--quiet:hover { background: var(--sf-color-bg--hover); border-color: var(--sf-color-primary); }
/* ---------- nav ---------- */
/* :not(.btn) keeps this from out-specificity-ing .btn--primary's
on-primary text color — .site-nav a (0,1,1) otherwise beats
.btn--primary (0,1,0) in the same layer and leaves the button's
text the same color as its gradient background. */
.site-nav a:not(.btn) {
text-decoration: none;
color: var(--sf-color-text--subtle);
font-size: var(--sf-text-s);
font-weight: var(--sf-font-weight-medium);
}
.site-nav a:not(.btn):hover { color: var(--sf-color-primary); }
.site-nav .brand {
color: var(--sf-color-heading);
font-weight: var(--sf-font-weight-display);
font-size: var(--sf-text-m);
letter-spacing: var(--sf-tracking-tight);
}
.site-nav .brand b { color: var(--sf-color-primary); }
/* The header is a nav bar, not a content section: .sf-section--xs still
resolves to the section rhythm scale (--sf-space-xl ≈ 3.25rem a side),
which stacks a ~150px-tall band around a 49px nav. Pin it to a compact,
symmetric bar instead — the gutter (inline padding) stays. */
/* The standalone .sf-divider that used to follow the header stacked
its own margin-block on top of the header's padding AND the hero's
cover padding — three independent gaps compounding into a dead
band nobody designed on purpose. A border on the header itself
gives the same visual seam with none of the extra margin. */
header:has(.site-nav) {
padding-block: var(--sf-space-s);
border-block-end: 1px solid var(--sf-color-border--subtle);
}
/* The link cluster is the part that has room to give: on narrow
viewports it's dropped in favor of the primary CTA + theme toggle,
instead of wrapping into three cramped rows. */
@media (max-width: 47.99em) {
.nav-links { display: none; }
.nav-actions .btn { padding: var(--sf-space-2xs) var(--sf-space-s); font-size: var(--sf-text-xs); }
}
/* ---------- hero ---------- */
.hero {
position: relative;
overflow: hidden;
background-image: radial-gradient(ellipse 60% 50% at 50% 0%, var(--sf-color-primary-a10), transparent 70%);
}
.hero::before {
content: "/";
position: absolute;
inset-block-start: 50%;
inset-inline-end: 4%;
translate: 0 -54%;
font-size: min(64rem, 130vh);
line-height: 1;
font-weight: var(--sf-font-weight-display);
background-image: var(--sf-gradient-brand);
background-clip: text;
color: transparent;
opacity: 0.08;
pointer-events: none;
user-select: none;
}
/* The name unfolds into the manifesto. Pure CSS.
Default (touch / no-hover — i.e. almost every phone): there is no
working hover affordance on touch, so there's nothing to hide —
the words are shown straight away, wrapped like a normal heading.
Hover-capable devices instead get the collapsed letter-row below,
with each word unfolding on hover. */
.hero { container-type: inline-size; container-name: hero; }
.acronym-hero {
display: flex;
flex-wrap: wrap;
row-gap: var(--sf-space-2xs);
justify-content: center;
align-items: baseline;
font-size: var(--sf-text-3xl);
line-height: var(--sf-display-s-line-height);
letter-spacing: var(--sf-tracking-tight);
font-weight: var(--sf-font-weight-display);
color: var(--sf-color-heading);
margin: 0;
}
.al { position: relative; display: inline-flex; align-items: baseline; cursor: default; }
.al b {
background-image: var(--sf-gradient-brand);
background-clip: text;
color: transparent;
transition: opacity var(--sf-duration-fast) var(--sf-ease-out);
}
.al .rest { font-weight: inherit; }
.al + .al::before {
content: "/";
color: var(--sf-color-border--strong);
font-weight: var(--sf-font-weight-light);
margin-inline: 0.1em;
}
/* Gate the collapsed/unfold interaction on a PRIMARY input that can
actually hover (a fine pointer), not `any-hover` — which is true on
hybrid devices (touchscreen laptops, a phone with a stylus/mouse)
even while the user is touching, which would strand the acronym in
its collapsed state with no touch way to reveal the words. Touch /
coarse-pointer devices keep the default in-flow state above, where
every word is already shown. */
@media (hover: hover) and (pointer: fine) {
/* Collapsed to the tight letter-row; each word unfolds on hover.
The unfolded text is taken OUT OF FLOW — absolutely positioned and
revealed with clip-path — so unfolding a word changes the size and
position of nothing else. No letter ever moves under the cursor, so
a hovered word can't slide onto a neighbour and re-fire the hover.
(The old approach animated real width and tried to counter-shift the
centered row by a hardcoded per-word amount; the amounts couldn't
match the real glyph widths, so siblings leapt and re-triggered.) */
.acronym-hero {
/* Never wrap mid-interaction; cap the size relative to the hero's
own container, with a readable floor for narrow hover-capable
viewports (resized browser, laptop touchscreen). */
flex-wrap: nowrap;
row-gap: 0;
/* Floor sized so the longest unfolded word (Deterministic) still
fits the hero without clipping on narrow hover-capable widths. */
font-size: max(2.4rem, min(var(--sf-text-4xl), 4.4cqi));
line-height: var(--sf-display-l-line-height);
}
.al { white-space: nowrap; }
.al .rest {
position: absolute;
inset-block-start: 0;
inset-inline-start: 100%; /* immediately after the bold letter */
width: max-content;
opacity: 0;
clip-path: inset(0 100% 0 0); /* hidden by clip, so it occupies no layout space */
/* The revealed word visually overlaps the next collapsed letters,
but it must not catch the pointer — otherwise sweeping the mouse
left-to-right hits this overlay instead of the next .al's own
(still tiny, unmoved) hit target, and the sweep gets stuck on
whichever word revealed first. */
pointer-events: none;
transition: clip-path var(--sf-duration-slow) var(--sf-ease-out),
opacity var(--sf-duration-normal) var(--sf-ease-out);
}
/* The unfolded word overlays its dimmed neighbours cleanly. */
.al:hover { z-index: 1; }
.al:hover .rest {
opacity: 1;
clip-path: inset(0 0 0 0);
transition-delay: 60ms;
}
.acronym-hero:hover .al:not(:hover) b { opacity: 0.35; }
/* One-sentence gloss for the hovered letter, pulled from its own
data-tip so the acronym and the philosophy section below share
a single source of copy. pointer-events: none for the same
reason as .rest above — it must never be what the sweep hits. */
.al[data-tip]::after {
content: attr(data-tip);
position: absolute;
inset-block-start: 100%;
inset-inline-start: 50%;
translate: -50% var(--sf-space-xs);
width: max-content;
max-width: min(70vw, 26rem);
padding: var(--sf-space-2xs) var(--sf-space-s);
border-radius: var(--sf-radius-s);
background: var(--sf-color-surface);
color: var(--sf-color-text--subtle);
border: 1px solid var(--sf-color-border--subtle);
box-shadow: var(--sf-shadow-m);
font-size: var(--sf-text-xs);
font-weight: var(--sf-font-weight-normal);
letter-spacing: normal;
line-height: 1.4;
text-align: start;
text-wrap: balance;
opacity: 0;
pointer-events: none;
transition: opacity var(--sf-duration-fast) var(--sf-ease-out);
z-index: 2;
}
.al:hover[data-tip]::after {
opacity: 1;
transition-delay: 300ms; /* let the word unfold first */
}
}
@media (prefers-reduced-motion: reduce) {
.acronym-hero, .al b, .al .rest, .al[data-tip]::after { transition: none; }
}
.tagline {
font-size: var(--sf-text-l);
font-weight: var(--sf-font-weight-semibold);
color: var(--sf-color-heading);
}
.lede {
font-size: var(--sf-text-m);
color: var(--sf-color-text--subtle);
max-width: 56ch;
}
.pill {
display: inline-block;
padding: var(--sf-space-px) var(--sf-space-s);
border: 1px solid var(--sf-color-border--subtle);
border-radius: var(--sf-radius-pill);
background: var(--sf-color-surface);
color: var(--sf-color-text--subtle);
font-size: var(--sf-text-xs);
font-weight: var(--sf-font-weight-semibold);
text-decoration: none;
}
.pill:hover { border-color: var(--sf-color-primary); color: var(--sf-color-primary); }
/* ---------- stats strip ---------- */
.stat dt {
font-size: var(--sf-text-3xl);
font-weight: var(--sf-font-weight-display);
letter-spacing: var(--sf-tracking-tight);
line-height: var(--sf-display-s-line-height);
background-image: var(--sf-gradient-brand);
background-clip: text;
color: transparent;
}
.stat dd {
margin: 0;
font-size: var(--sf-text-xs);
font-weight: var(--sf-font-weight-bold);
letter-spacing: var(--sf-tracking-widest);
text-transform: uppercase;
color: var(--sf-color-text--muted);
}
.stats { padding-block: var(--sf-space-l); }
.stats > .stat:not(:first-child) { border-inline-start: 1px solid var(--sf-color-border--subtle); }
/* ---------- cards ---------- */
.card {
position: relative;
background: var(--sf-color-surface);
border: 1px solid var(--sf-color-border--subtle);
border-radius: var(--sf-radius-l);
padding: var(--sf-space-m);
box-shadow: var(--sf-shadow-xs);
overflow: hidden;
transition: box-shadow var(--sf-duration-fast) var(--sf-ease-out),
translate var(--sf-duration-fast) var(--sf-ease-out),
border-color var(--sf-duration-fast) var(--sf-ease-out);
}
.card:hover { box-shadow: var(--sf-shadow-l); translate: 0 -3px; border-color: var(--sf-color-border); }
/* A quiet gradient edge on every card — the same brand gradient the
buttons and headings use, so the color shows up at rest too, not
only on hover. */
.card::before {
content: "";
position: absolute;
inset-block-start: 0;
inset-inline: 0;
block-size: 3px;
background-image: var(--sf-gradient-brand);
}
.card h3 { font-size: var(--sf-text-m); }
.card p { font-size: var(--sf-text-s); color: var(--sf-color-text--subtle); }
.card .demo { margin-block-start: auto; }
/* The featured tile spans two rows — center its content as a group
instead of anchoring the demo to the bottom, which left a dead
zone the height of a whole extra card. */
.sf-bento-featured { justify-content: center; }
.sf-bento-featured .demo { margin-block-start: 0; }
.sf-bento-featured .ramp i { height: var(--sf-space-4xl); }
.ramp-label {
display: block;
font-size: var(--sf-text-xs);
font-weight: var(--sf-font-weight-semibold);
color: var(--sf-color-text--muted);
margin-block-end: var(--sf-space-2xs);
}
.ramp-alpha {
background: var(--sf-gradient-brand);
border-radius: var(--sf-radius-m);
padding: var(--sf-space-2xs);
}
/* card demos — every visual below is live framework tokens */
.ramp { display: flex; gap: var(--sf-space-px); }
.ramp i { flex: 1; height: var(--sf-space-2xl); border-radius: var(--sf-radius-xs); }
.chip {
display: inline-block; padding: var(--sf-space-px) var(--sf-space-xs);
border-radius: var(--sf-radius-s); font-size: var(--sf-text-xs);
font-weight: var(--sf-font-weight-semibold);
}
.mini {
flex: 1; border: 1px solid var(--sf-color-border--subtle);
border-radius: var(--sf-radius-m); padding: var(--sf-space-s);
background: var(--sf-color-bg); color: var(--sf-color-text);
font-weight: var(--sf-font-weight-heading);
}
.mini small { display: block; color: var(--sf-color-text--muted); font-weight: var(--sf-font-weight-normal); }
.type-row { display: flex; align-items: baseline; gap: var(--sf-space-s); color: var(--sf-color-heading); font-weight: var(--sf-font-weight-heading); }
.layer-stack { display: flex; flex-direction: column; gap: var(--sf-space-px); font-size: var(--sf-text-xs); font-weight: var(--sf-font-weight-semibold); }
.layer-stack span { padding: var(--sf-space-px) var(--sf-space-xs); border-radius: var(--sf-radius-xs); }
.card--link { text-decoration: none; display: flex; }
.card--link:hover { box-shadow: var(--sf-shadow-glow); }
/* Bento featured spans collapse gracefully on narrow containers */
@container sf-bento (max-width: 29.99em) {
.sf-bento-featured, .sf-bento-wide { grid-column: auto; grid-row: auto; }
}
/* Staggered scroll-driven entrances, using the framework's own range knobs */
.sf-bento > :nth-child(2) { --sf-scroll-timeline-range-end: cover 35%; }
.sf-bento > :nth-child(3) { --sf-scroll-timeline-range-end: cover 40%; }
.sf-bento > :nth-child(4) { --sf-scroll-timeline-range-end: cover 45%; }
.sf-bento > :nth-child(5) { --sf-scroll-timeline-range-end: cover 50%; }
.sf-bento > :nth-child(6) { --sf-scroll-timeline-range-end: cover 55%; }
/* ---------- philosophy ---------- */
.acronym { margin: 0; }
.acronym dt {
font-size: var(--sf-text-m);
font-weight: var(--sf-font-weight-heading);
color: var(--sf-color-heading);
}
.acronym dt b {
background-image: var(--sf-gradient-brand);
background-clip: text;
color: transparent;
}
.acronym dd {
margin: 0;
font-size: var(--sf-text-s);
color: var(--sf-color-text--subtle);
}
/* A quiet tinted band for visual rhythm between the plain-bg
sections above and below it. */
.band-surface {
background: var(--sf-color-surface);
border-block: 1px solid var(--sf-color-border--subtle);
}
.band-surface .card { background: var(--sf-color-bg); }
/* ---------- dark band (data-theme demo) ---------- */
.band-dark {
background: var(--sf-color-bg);
color: var(--sf-color-text);
}
/* Code tokens don't yet follow section-scoped data-theme (they track the
page scheme), so pin ALL of the band's code to theme-safe tokens. */
.band-dark pre {
background: var(--sf-color-surface);
color: var(--sf-color-text);
border: 1px solid var(--sf-color-border--subtle);
white-space: pre-wrap;
overflow-wrap: anywhere;
}
.band-dark pre code { color: inherit; background: none; border: none; }
.band-dark code {
background: var(--sf-color-surface);
color: var(--sf-color-text);
border: 1px solid var(--sf-color-border--subtle);
}
/* ---------- docs ---------- */
.doc-list a {
display: block;
padding-block: var(--sf-space-2xs);
border-bottom: 1px solid var(--sf-color-border--subtle);
text-decoration: none;
color: var(--sf-color-text);
font-size: var(--sf-text-s);
transition: padding-inline-start var(--sf-duration-fast) var(--sf-ease-out),
color var(--sf-duration-fast) var(--sf-ease-out);
}
.doc-list a:hover { color: var(--sf-color-primary); padding-inline-start: var(--sf-space-xs); }
.doc-list a small { color: var(--sf-color-text--muted); margin-inline-start: var(--sf-space-2xs); }
.footer-meta, .footer-meta a { color: var(--sf-color-text--muted); font-size: var(--sf-text-xs); }
/* The hover hint only makes sense where hovering is a thing — and it
must match the interaction gate above, or a hybrid touch device
would see "hover the name" over an already-unfolded acronym. */
.hover-hint { display: none; }
@media (hover: hover) and (pointer: fine) { .hover-hint { display: inline; } }
.eyebrow {
font-size: var(--sf-text-xs);
font-weight: var(--sf-font-weight-bold);
letter-spacing: var(--sf-tracking-widest);
text-transform: uppercase;
color: var(--sf-color-text--muted);
}
.eyebrow::before { content: "/ "; color: var(--sf-color-primary); }
h2 { letter-spacing: var(--sf-tracking-tight); }
}
</style>
</head>
<!-- No data-theme attribute: the whole page follows the OS light/dark
preference out of the box — that IS the demo. -->
<body>
<header class="sf-section sf-section--xs sf-section--guttered">
<nav class="sf-container sf-container--wide sf-cluster sf-cluster--between sf-cluster--no-wrap site-nav" aria-label="Site">
<a class="brand" href="/">SLASHED<b>/</b></a>
<div class="nav-links sf-cluster sf-cluster--s sf-cluster--no-wrap">
<a href="/docs/architecture">Docs</a>
<a href="/docs/tokens">Tokens</a>
<a href="/demo/">Demo</a>
<a href="https://github.com/codeslash-dev/SLASHED">GitHub</a>
</div>
<div class="nav-actions sf-cluster sf-cluster--xs sf-cluster--no-wrap">
<a class="btn btn--primary" href="/configurator/">Configurator →</a>
<button class="btn btn--quiet" id="theme-toggle" type="button" aria-label="Toggle color scheme">Auto</button>
</div>
</nav>
</header>
<main>
<!-- Hero — the name unfolds into the manifesto -->
<section class="sf-cover sf-cover--min sf-section--guttered hero">
<div class="sf-cover__center sf-container sf-container--wide sf-stack sf-stack--m sf-stack--center" style="text-align: center;">
<a class="pill" href="https://github.com/codeslash-dev/SLASHED/releases">Latest release — see what's new →</a>
<h1 class="acronym-hero" aria-label="SLASHED — Standalone, Lean, Agnostic, Structured, Hybrid, Explicit, Deterministic">
<span aria-hidden="true" style="display: contents;">
<span class="al" data-tip="One stylesheet. No build step, no Node, no runtime dependencies."><b>S</b><span class="rest">tandalone</span></span><span class="al" data-tip="A foundation, not a kit. No utility bloat, nothing to purge, nothing you didn't ask for."><b>L</b><span class="rest">ean</span></span><span class="al" data-tip="No stack assumptions. Any CMS, any builder, any framework, plain HTML — no vendor lock-in, ever."><b>A</b><span class="rest">gnostic</span></span><span class="al" data-tip="Fifteen named cascade layers in a fixed order, and a catalogued token API with stability tiers."><b>S</b><span class="rest">tructured</span></span><span class="al" data-tip="Classless where it can be — base elements, opt-in forms — class-based where it counts: layout, macros, states."><b>H</b><span class="rest">ybrid</span></span><span class="al" data-tip="Every visual value is a named token; hardcoded numbers are treated as bugs. Even the browser floor is stated up front."><b>E</b><span class="rest">xplicit</span></span><span class="al" data-tip="Same tokens in, same design out. Load order never changes the cascade; every derived color is computed by formula."><b>D</b><span class="rest">eterministic</span></span>
</span>
</h1>
<p class="tagline">The name is the manifesto. Seven promises, one stylesheet.</p>
<p class="lede">A cascade-layer CSS framework: 729 design tokens, automatic dark mode, fluid type & spacing — zero JavaScript, zero build step. Override six tokens and the whole site rebrands.</p>
<div class="sf-cluster sf-cluster--center sf-cluster--s">
<a class="btn btn--primary" href="/configurator/">Open Configurator →</a>
<a class="btn btn--quiet" href="/demo/">Live Demo</a>
<a class="btn btn--quiet" href="https://github.com/codeslash-dev/SLASHED">GitHub</a>
</div>
<p class="footer-meta"><span class="hover-hint">Hover the name for the full words. </span>Styled by <code>slashed.optimal.css</code> — toggle your OS color scheme to see dark mode apply with no JS.</p>
</div>
</section>
<!-- Stats strip -->
<section class="sf-section sf-section--s sf-section--guttered">
<dl class="stats sf-container sf-container--wide sf-grid-flex sf-grid-flex--center sf-grid-flex--s sf-gap--m" style="text-align: center; margin: 0;">
<div class="stat sf-tabular-nums"><dt>729</dt><dd>design tokens</dd></div>
<div class="stat sf-tabular-nums"><dt>15</dt><dd>cascade layers</dd></div>
<div class="stat sf-tabular-nums"><dt>0</dt><dd>lines of frontend JS</dd></div>
<div class="stat sf-tabular-nums"><dt>0</dt><dd>build steps</dd></div>
</dl>
</section>
<!-- Features — the framework's own bento grid, with live token demos -->
<section class="sf-section sf-section--l sf-section--guttered">
<div class="sf-container sf-container--wide sf-stack sf-stack--m">
<div class="sf-stack sf-stack--xs">
<p class="eyebrow">Features</p>
<h2>Live CSS, not screenshots</h2>
</div>
<div class="sf-bento sf-bento--3 sf-gap--m">
<div class="card sf-bento-featured sf-stack sf-stack--m sf-entrance--fade-up">
<h3>OKLCH Color Engine</h3>
<p>Six brand colors in, a full palette out. Hover states, tints, shades, status colors, and the entire dark palette all derive in plain CSS — nothing on this card is an image.</p>
<div class="demo sf-stack sf-stack--m">
<div>
<span class="ramp-label"><code>--sf-color-primary</code> · 50 → 950</span>
<div class="ramp" aria-hidden="true">
<i style="background: var(--sf-color-primary-50)"></i><i style="background: var(--sf-color-primary-100)"></i><i style="background: var(--sf-color-primary-200)"></i><i style="background: var(--sf-color-primary-300)"></i><i style="background: var(--sf-color-primary-400)"></i><i style="background: var(--sf-color-primary-500)"></i><i style="background: var(--sf-color-primary-600)"></i><i style="background: var(--sf-color-primary-700)"></i><i style="background: var(--sf-color-primary-800)"></i><i style="background: var(--sf-color-primary-900)"></i><i style="background: var(--sf-color-primary-950)"></i>
</div>
</div>
<div>
<span class="ramp-label"><code>--sf-color-primary-a5</code> → <code>a80</code> · alpha ramp</span>
<div class="ramp ramp-alpha" aria-hidden="true">
<i style="background: var(--sf-color-primary-a5)"></i><i style="background: var(--sf-color-primary-a10)"></i><i style="background: var(--sf-color-primary-a30)"></i><i style="background: var(--sf-color-primary-a50)"></i><i style="background: var(--sf-color-primary-a80)"></i>
</div>
</div>
<div class="sf-cluster sf-cluster--xs">
<span class="chip" style="background: var(--sf-color-primary); color: var(--sf-color-text--on-primary)">primary</span>
<span class="chip" style="background: var(--sf-color-primary--hover); color: var(--sf-color-text--on-primary)">--hover</span>
<span class="chip" style="background: var(--sf-color-primary--active); color: var(--sf-color-text--on-primary)">--active</span>
<span class="chip" style="background: var(--sf-color-success); color: var(--sf-color-text--on-success)">success</span>
<span class="chip" style="background: var(--sf-color-warning); color: var(--sf-color-text--on-warning)">warning</span>
<span class="chip" style="background: var(--sf-color-danger); color: var(--sf-color-text--on-danger)">danger</span>
<span class="chip" style="background: var(--sf-color-info); color: var(--sf-color-text--on-info)">info</span>
</div>
</div>
</div>
<div class="card sf-stack sf-stack--xs sf-entrance--fade-up">
<h3>Automatic Dark Mode</h3>
<p>Follows the OS by default. Mix modes on one page with a single attribute — like these two panels:</p>
<div class="demo sf-cluster sf-cluster--xs" style="align-items: stretch;">
<div class="mini" data-theme="light">Aa <small>data-theme="light"</small></div>
<div class="mini" data-theme="dark">Aa <small>data-theme="dark"</small></div>
</div>
</div>
<div class="card sf-stack sf-stack--xs sf-entrance--fade-up">
<h3>Fluid Type & Space</h3>
<p>Modular scales computed in the browser from 12 dials using <code>pow()</code> and <code>clamp()</code> — phone to 4K, no breakpoints. Resize the window:</p>
<div class="demo type-row" aria-hidden="true">
<span style="font-size: var(--sf-text-s)">Aa</span>
<span style="font-size: var(--sf-text-xl)">Aa</span>
<span style="font-size: var(--sf-text-3xl)">Aa</span>
</div>
</div>
<div class="card sf-stack sf-stack--xs sf-entrance--fade-up">
<h3>@layer Architecture</h3>
<p>Fifteen named cascade layers in a fixed order. No <code>!important</code>, no specificity wars:</p>
<div class="demo layer-stack" aria-hidden="true">
<span style="background: var(--sf-color-primary-50); color: var(--sf-color-primary-900)">tokens → reset → base…</span>
<span style="background: var(--sf-color-primary-100); color: var(--sf-color-primary-900)">…layout → macros → states…</span>
<span style="background: var(--sf-color-primary); color: var(--sf-color-text--on-primary)">your overrides — always wins</span>
</div>
</div>
<div class="card sf-stack sf-stack--xs sf-entrance--fade-up">
<h3>Zero Build Step</h3>
<p>Pure CSS custom properties. No Node, no Sass, no purge step. The entire install is:</p>
<p class="demo"><code><link rel="stylesheet" href="slashed.optimal.css"></code></p>
</div>
<a class="card card--link sf-entrance--fade-up" href="/configurator/">
<span class="sf-stack sf-stack--xs">
<h3>Visual Configurator</h3>
<p>Tune every token with a live light/dark preview, export override CSS, or share a config link — in the browser, nothing to install.</p>
<span class="demo" style="color: var(--sf-color-primary); font-weight: var(--sf-font-weight-interactive);">Open it →</span>
</span>
</a>
</div>
</div>
</section>
<!-- Philosophy — the acronym, spelled out -->
<section class="sf-section sf-section--l sf-section--guttered band-surface">
<div class="sf-container sf-container--wide sf-stack sf-stack--m">
<div class="sf-stack sf-stack--xs">
<p class="eyebrow">Philosophy</p>
<h2>Seven letters, seven promises</h2>
<p class="lede">Every letter of SLASHED is a design commitment — and each one is checkable against the source.</p>
</div>
<dl class="sf-grid sf-grid--fit sf-grid--m sf-gap--m acronym">
<div class="card sf-stack sf-stack--xs">
<dt><b>S</b>tandalone</dt>
<dd>One stylesheet. No build step, no Node, no runtime dependencies.</dd>
</div>
<div class="card sf-stack sf-stack--xs">
<dt><b>L</b>ean</dt>
<dd>A foundation, not a kit. No utility bloat, nothing to purge, nothing you didn't ask for.</dd>
</div>
<div class="card sf-stack sf-stack--xs">
<dt><b>A</b>gnostic</dt>
<dd>No stack assumptions. Any CMS, any builder, any framework, plain HTML — no vendor lock-in, ever.</dd>
</div>
<div class="card sf-stack sf-stack--xs">
<dt><b>S</b>tructured</dt>
<dd>Fifteen named cascade layers in a fixed order, and a catalogued token API with stability tiers.</dd>
</div>
<div class="card sf-stack sf-stack--xs">
<dt><b>H</b>ybrid</dt>
<dd>Classless where it can be — base elements, opt-in forms — class-based where it counts: layout, macros, states.</dd>
</div>
<div class="card sf-stack sf-stack--xs">
<dt><b>E</b>xplicit</dt>
<dd>Every visual value is a named token; hardcoded numbers are treated as bugs. Even the browser floor is stated up front.</dd>
</div>
<div class="card sf-stack sf-stack--xs">
<dt><b>D</b>eterministic</dt>
<dd>Same tokens in, same design out. Load order never changes the cascade; every derived color is computed by formula.</dd>
</div>
</dl>
</div>
</section>
<!-- Install — this whole band is data-theme="dark": the demo is the layout -->
<section class="sf-section sf-section--l sf-section--guttered band-dark" data-theme="dark">
<div class="sf-container sf-stack sf-stack--m">
<div class="sf-stack sf-stack--xs">
<p class="eyebrow">Install</p>
<h2>Install: one link tag</h2>
<p class="footer-meta">This section is <code><section data-theme="dark"></code> — mixing light and dark sections is one attribute, no wrapper JS.</p>
</div>
<pre><code><!-- jsDelivr CDN — recommended -->
<link rel="stylesheet"
href="https://cdn.jsdelivr.net/gh/codeslash-dev/SLASHED@dist/slashed.optimal.min.css"></code></pre>
<pre><code>/* or @import — render-blocking & serialized, prefer <link> */
@import "https://cdn.jsdelivr.net/gh/codeslash-dev/SLASHED@dist/slashed.optimal.min.css";</code></pre>
<div class="sf-prose">
<table>
<thead>
<tr><th>Bundle</th><th>Includes</th></tr>
</thead>
<tbody>
<tr><td><code>slashed.optimal.css</code></td><td>Core + classless forms — the lean foundation, <strong>recommended</strong></td></tr>
<tr><td><code>slashed.full.css</code></td><td>Optimal + the component layer (<code>.sf-btn</code>, <code>.sf-card</code>) and the utility layer</td></tr>
</tbody>
</table>
<p>SLASHED relies on 2024 CSS — <code>light-dark()</code>, OKLCH relative colors, <code>@property</code>, <code>pow()</code> — so the browser floor is <strong>Chrome 125+, Safari 18+, Firefox 129+</strong>.</p>
</div>
<p class="sf-cluster sf-cluster--s footer-meta">
<a href="https://cdn.jsdelivr.net/gh/codeslash-dev/SLASHED@dist/">All CDN bundles →</a>
<a href="https://github.com/codeslash-dev/SLASHED/releases">GitHub Releases</a>
</p>
</div>
</section>
<!-- Documentation -->
<section class="sf-section sf-section--l sf-section--guttered">
<div class="sf-container sf-container--wide sf-stack sf-stack--m">
<p class="eyebrow">Documentation</p>
<div class="sf-grid sf-grid--fit sf-grid--m sf-gap--l">
<div class="sf-stack sf-stack--xs doc-list">
<h3 class="eyebrow">Guides</h3>
<a href="/docs/architecture">Architecture <small>layers, cascade, bundle structure</small></a>
<a href="/docs/theming">Theming <small>dark mode, overrides, fluid engine</small></a>
<a href="/docs/migration">Migration <small>upgrade across versions</small></a>
<a href="/docs/roadmap">Roadmap <small>planned features</small></a>
</div>
<div class="sf-stack sf-stack--xs doc-list">
<h3 class="eyebrow">Reference</h3>
<a href="/docs/tokens">Tokens <small>every design token + defaults</small></a>
<a href="/docs/token-index">Token Index <small>browseable index</small></a>
<a href="/docs/classes">Classes <small>every shipped class</small></a>
<a href="/docs/layout">Layout <small>container, stack, grid, cluster…</small></a>
<a href="/docs/macros">Macros <small>prose, flow, aspect, scroll-shadow</small></a>
<a href="/docs/motion">Motion <small>animation & transition tokens</small></a>
</div>
<div class="sf-stack sf-stack--xs doc-list">
<h3 class="eyebrow">Developer</h3>
<a href="/docs/llm-guide">LLM Guide <small>AI-assisted development reference</small></a>
<a href="/docs/api-index">API Index <small>machine-readable catalogue</small></a>
<a href="/docs/source-comment-policy">Comment Policy <small>contributor conventions</small></a>
<a href="/demo/">Live Demo <small>every class & token, live · dark mode · coverage surface</small></a>
</div>
</div>
</div>
</section>
</main>
<footer class="sf-section sf-section--m sf-section--guttered">
<div class="sf-container sf-container--wide sf-stack sf-stack--s">
<div class="sf-divider sf-divider--soft" role="presentation"></div>
<div class="sf-cluster sf-cluster--between footer-meta">
<div class="sf-cluster sf-cluster--s">
<a href="/CHANGELOG">Changelog</a>
<a href="/CONTRIBUTING">Contributing</a>
<a href="https://github.com/codeslash-dev/SLASHED/actions/workflows/ci.yml">CI status</a>
<a href="https://github.com/codeslash-dev/SLASHED">GitHub</a>
<a href="https://github.com/codeslash-dev/SLASHED-Plugins">WordPress plugin</a>
</div>
<span>MIT · © CODE/</span>
</div>
</div>
</footer>
<script>
// Page nicety, not framework: cycle auto → dark → light. The framework's
// dark mode itself is pure CSS (light-dark() + [data-theme]).
(function () {
var btn = document.getElementById('theme-toggle');
var states = ['auto', 'dark', 'light'];
var current = 'auto';
try {
var stored = localStorage.getItem('slashed-home-theme');
if (states.indexOf(stored) !== -1) current = stored;
} catch (e) {}
function apply(state) {
if (state === 'auto') document.documentElement.removeAttribute('data-theme');
else document.documentElement.setAttribute('data-theme', state);
btn.textContent = state[0].toUpperCase() + state.slice(1);
}
apply(current);
btn.addEventListener('click', function () {
current = states[(states.indexOf(current) + 1) % states.length];
try { localStorage.setItem('slashed-home-theme', current); } catch (e) {}
apply(current);
});
})();
</script>
</body>
</html>