@kolkrabbi/kol-theme 0.87.1 → 0.89.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kol-animation.css +79 -0
- package/kol-components-shell.css +33 -19
- package/package.json +1 -1
package/kol-animation.css
CHANGED
|
@@ -353,3 +353,82 @@
|
|
|
353
353
|
@media (prefers-reduced-motion: reduce) {
|
|
354
354
|
.kol-rail-grab::before { transition: none; }
|
|
355
355
|
}
|
|
356
|
+
|
|
357
|
+
/* ═════════════════════════════════════════════════════════════════════
|
|
358
|
+
* SCROLL ENTRANCE — the reveal family (promoted from kol-website's
|
|
359
|
+
* apps/web/src/styles/animations.css, 2026-08-28, on the user's "it's good to
|
|
360
|
+
* localise it"; that file's own header had marked it a DS candidate since
|
|
361
|
+
* 2026-07-28, and it was itself vendored from the elder @kol/ui).
|
|
362
|
+
*
|
|
363
|
+
* A consumer's IntersectionObserver adds `.is-visible`; the class is the whole
|
|
364
|
+
* API. `--kol-reveal-delay` staggers a group without a rule per child.
|
|
365
|
+
*
|
|
366
|
+
* The bare `.reveal*` names are kept as ALIASES beside the `kol-*` ones: they
|
|
367
|
+
* are live in dozens of kol-website call sites and renaming them would be a
|
|
368
|
+
* migration the promotion does not need. New code takes the prefixed name —
|
|
369
|
+
* `.reveal` is exactly the sort of word a consumer's own stylesheet also owns.
|
|
370
|
+
* ═════════════════════════════════════════════════════════════════════ */
|
|
371
|
+
.kol-reveal, .reveal {
|
|
372
|
+
opacity: 0;
|
|
373
|
+
transform: translateY(24px);
|
|
374
|
+
transition: opacity 600ms var(--kol-ease-house), transform 600ms var(--kol-ease-house);
|
|
375
|
+
transition-delay: var(--kol-reveal-delay, var(--reveal-delay, 0s));
|
|
376
|
+
}
|
|
377
|
+
/* the group rung: a shorter travel and a default 1s beat, so a set of children
|
|
378
|
+
* arrives after the block that introduces them */
|
|
379
|
+
.kol-reveal-group, .reveal-group {
|
|
380
|
+
opacity: 0;
|
|
381
|
+
transform: translateY(16px);
|
|
382
|
+
transition: opacity 600ms var(--kol-ease-house), transform 600ms var(--kol-ease-house);
|
|
383
|
+
transition-delay: var(--kol-reveal-delay, var(--reveal-delay, 1s));
|
|
384
|
+
}
|
|
385
|
+
/* the diagonal assembly: 40px in from the side AND 32 up, so a row of blocks
|
|
386
|
+
* converges rather than sliding in parallel */
|
|
387
|
+
.kol-reveal-from-left, .reveal-from-left {
|
|
388
|
+
opacity: 0;
|
|
389
|
+
transform: translate(-40px, 32px);
|
|
390
|
+
transition: opacity 700ms var(--kol-ease-house), transform 700ms var(--kol-ease-house);
|
|
391
|
+
transition-delay: var(--kol-reveal-delay, var(--reveal-delay, 0s));
|
|
392
|
+
}
|
|
393
|
+
.kol-reveal-from-right, .reveal-from-right {
|
|
394
|
+
opacity: 0;
|
|
395
|
+
transform: translate(40px, 32px);
|
|
396
|
+
transition: opacity 700ms var(--kol-ease-house), transform 700ms var(--kol-ease-house);
|
|
397
|
+
transition-delay: var(--kol-reveal-delay, var(--reveal-delay, 0s));
|
|
398
|
+
}
|
|
399
|
+
.kol-reveal.is-visible, .reveal.is-visible,
|
|
400
|
+
.kol-reveal-group.is-visible, .reveal-group.is-visible,
|
|
401
|
+
.kol-reveal-from-left.is-visible, .reveal-from-left.is-visible,
|
|
402
|
+
.kol-reveal-from-right.is-visible, .reveal-from-right.is-visible {
|
|
403
|
+
opacity: 1;
|
|
404
|
+
transform: translate(0, 0);
|
|
405
|
+
}
|
|
406
|
+
@media (prefers-reduced-motion: reduce) {
|
|
407
|
+
.kol-reveal, .reveal,
|
|
408
|
+
.kol-reveal-group, .reveal-group,
|
|
409
|
+
.kol-reveal-from-left, .reveal-from-left,
|
|
410
|
+
.kol-reveal-from-right, .reveal-from-right {
|
|
411
|
+
opacity: 1;
|
|
412
|
+
transform: none;
|
|
413
|
+
transition: none;
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
/* ═════════════════════════════════════════════════════════════════════
|
|
418
|
+
* AnimatedTitle — the word's rest state (promoted 2026-08-28, same pass).
|
|
419
|
+
*
|
|
420
|
+
* The DS has shipped `atoms/AnimatedTitle.jsx` for months while the CSS its
|
|
421
|
+
* words start from lived in kol-website: the component queried `.animatedWord`
|
|
422
|
+
* and set `opacity: 0` on nothing, so outside that one app the title rendered
|
|
423
|
+
* static and visible with no error. A component whose motion is in a consumer
|
|
424
|
+
* is not shipped. GSAP animates FROM this state; reduced motion skips the
|
|
425
|
+
* tween entirely (the hook), which is why the fallback below is not optional.
|
|
426
|
+
* ═════════════════════════════════════════════════════════════════════ */
|
|
427
|
+
.kol-animated-word, .animatedWord {
|
|
428
|
+
opacity: 0;
|
|
429
|
+
transform: translate3d(150vw, 3.125rem, 0) rotateY(-45deg) rotateX(15deg);
|
|
430
|
+
color: inherit;
|
|
431
|
+
}
|
|
432
|
+
@media (prefers-reduced-motion: reduce) {
|
|
433
|
+
.kol-animated-word, .animatedWord { opacity: 1; transform: none; }
|
|
434
|
+
}
|
package/kol-components-shell.css
CHANGED
|
@@ -8,31 +8,45 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
:root {
|
|
11
|
-
/* THE RAIL
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
|
|
20
|
-
--kol-shell-rail-width: var(--kol-sidenav-w, 16rem);
|
|
11
|
+
/* THE RAIL OWNS THIS VARIABLE (RailFlatGrabOpen, kol-mirror 2026-08-28). It
|
|
12
|
+
* is the rail's LIVE width: `NavRail` sets 48 on mount, writes it per
|
|
13
|
+
* pointermove while the grab is dragged and gsap-tweens it on release, and
|
|
14
|
+
* AppShell's content is offset by the same value — so the page is pushed
|
|
15
|
+
* through the drag. The 48 here is the closed default and the value a
|
|
16
|
+
* consumer's own fixed chrome (`--monitor-rail`, `--fxr-rail`) reads before
|
|
17
|
+
* the rail mounts. 0.80.0–0.87.x had it derive from the sidenav tokens,
|
|
18
|
+
* while the rail WAS a collapsed SideNav; that is reversed. */
|
|
19
|
+
--kol-shell-rail-width: 48px;
|
|
21
20
|
/* Page gutter — PageShell's padding and PageBleed's negative margin. */
|
|
22
21
|
--kol-shell-page-pad: 48px;
|
|
23
22
|
}
|
|
24
|
-
:root[data-sidenav="collapsed"] { --kol-shell-rail-width: var(--kol-sidenav-w-collapsed, 56px); }
|
|
25
|
-
@media (max-width: 1024px) { :root { --kol-shell-rail-width: var(--kol-sidenav-w-collapsed, 56px); } }
|
|
26
|
-
@media (max-width: 767px) { :root { --kol-shell-rail-width: 0px; } }
|
|
27
23
|
|
|
28
24
|
/* ── NavRail ────────────────────────────────────────────────────────────── */
|
|
29
25
|
|
|
30
|
-
/*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
* (
|
|
35
|
-
*
|
|
26
|
+
/* The flat rail's own stacking. Geometry (the fixed box, the padding, the gap)
|
|
27
|
+
* rides the element as utilities — it is one div and every child is a direct
|
|
28
|
+
* child of it, which is the shape the ruling asked for; only the z-tier needs a
|
|
29
|
+
* rule, because it must join the DS ladder rather than a consumer's raw number
|
|
30
|
+
* (monitor's z-70 rail sat above its own z-50 overlays, a live stacking bug).
|
|
31
|
+
* Above page content, BELOW overlay (50) and modal (100). */
|
|
32
|
+
.kol-shell-rail {
|
|
33
|
+
z-index: var(--kol-z-sticky);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/* The 2026-08-12 active-state ruling, carried natively so consumers delete
|
|
37
|
+
* their overrides: ink full-strength in EVERY state (the nav variant's oq-64
|
|
38
|
+
* rest is site-nav quiet, wrong on an icon rail — the rail also sets oq-96
|
|
39
|
+
* inline per rung); hover = the oq-04 wash from the variant; active route =
|
|
40
|
+
* that wash HELD ON. Never `selected`/`pressed` — navigation is location, not
|
|
41
|
+
* a toggled tool. Scoped to the rail: the global
|
|
42
|
+
* `.kol-btn-nav[aria-current="page"]` brightness-only rule stays the site-nav law. */
|
|
43
|
+
.kol-shell-rail .kol-btn-nav {
|
|
44
|
+
color: var(--kol-oq-96);
|
|
45
|
+
}
|
|
46
|
+
.kol-shell-rail .kol-btn-nav[aria-current="page"] {
|
|
47
|
+
background-color: var(--kol-oq-04);
|
|
48
|
+
color: var(--kol-oq-96);
|
|
49
|
+
}
|
|
36
50
|
|
|
37
51
|
/* ── GridCard preview fits ──────────────────────────────────────────────── */
|
|
38
52
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kolkrabbi/kol-theme",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.89.0",
|
|
4
4
|
"description": "KOL (Kolkrabbi) design-system tokens + base CSS — brand-neutral. The canonical token/cascade layer every other KOL package and consumer builds on.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|