@kolkrabbi/kol-theme 0.31.2 → 0.32.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.
@@ -777,32 +777,28 @@ a:hover .icon-hover,
777
777
 
778
778
  /* ─────────────────────────────────────────────────────────────────────
779
779
  * CopyButton — atoms/CopyButton.jsx
780
- * Copy-to-clipboard chip: clipboard icon + Copy/Copied label.
781
- * Look extracted from CodeBlock's inline copy button; CodeBlock's
782
- * .kol-codeblock-copy (kol-framework) now only positions it.
780
+ * THE copy-to-clipboard control (2026-08-09 user ruling): the 32×32
781
+ * icon button CodeBlock carried privately since the 2026-07-28 elder
782
+ * replication — 16px icon + 0.5rem padding. The old Copy/Copied label
783
+ * chip (one-off SVGs, auto-uppercase) is retired; CodeBlock composes
784
+ * this atom and .kol-codeblock-copy only positions it in-frame.
783
785
  * ───────────────────────────────────────────────────────────────────── */
784
786
  .kol-copy-btn {
785
787
  display: inline-flex;
786
788
  align-items: center;
787
- gap: 6px;
788
- padding: 6px 10px;
789
- background: color-mix(in srgb, var(--kol-surface-primary) 80%, transparent);
790
- border: 1px solid var(--kol-fg-16);
791
- border-radius: 3px;
792
- color: var(--kol-fg-64);
789
+ justify-content: center;
790
+ padding: 0.5rem;
791
+ background: color-mix(in srgb, var(--kol-surface-on-primary) 2%, transparent);
792
+ border: none;
793
+ border-radius: var(--kol-radius-sm);
794
+ color: color-mix(in srgb, var(--kol-surface-on-primary) 72%, transparent);
793
795
  cursor: pointer;
794
- font-family: var(--kol-font-family-mono, monospace);
795
- font-size: 10px;
796
- font-weight: 600;
797
- letter-spacing: 0.08em;
798
- line-height: 1;
799
- text-transform: uppercase;
800
- transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
796
+ transition: background-color var(--kol-transition-base), color var(--kol-transition-base);
801
797
  }
802
798
 
803
799
  .kol-copy-btn:hover {
800
+ background: color-mix(in srgb, var(--kol-surface-on-primary) 8%, transparent);
804
801
  color: var(--kol-surface-on-primary);
805
- border-color: var(--kol-fg-48);
806
802
  }
807
803
 
808
804
  /* ─────────────────────────────────────────────────────────────────────
@@ -257,6 +257,32 @@
257
257
  border-color: currentColor;
258
258
  }
259
259
 
260
+ /* StatusChip tones — the record-surface status control (reference: Framer
261
+ * CMS, 2026-08-09). Tint + ink ride the --ui-* ladder; the chip stays a Tag
262
+ * underneath, so these only override color/fill. .kol-tag doubled for source-
263
+ * order safety against the tag variants above. */
264
+ .kol-tag.kol-status-chip { gap: var(--kol-spacing-1); }
265
+ .kol-tag.kol-status-chip--success {
266
+ color: var(--ui-success);
267
+ background-color: color-mix(in srgb, var(--ui-success) 12%, transparent);
268
+ border-color: transparent;
269
+ }
270
+ .kol-tag.kol-status-chip--warning {
271
+ color: var(--ui-warning);
272
+ background-color: color-mix(in srgb, var(--ui-warning) 12%, transparent);
273
+ border-color: transparent;
274
+ }
275
+ .kol-tag.kol-status-chip--error {
276
+ color: var(--ui-error);
277
+ background-color: color-mix(in srgb, var(--ui-error) 12%, transparent);
278
+ border-color: transparent;
279
+ }
280
+ .kol-tag.kol-status-chip--info {
281
+ color: var(--ui-info);
282
+ background-color: color-mix(in srgb, var(--ui-info) 12%, transparent);
283
+ border-color: transparent;
284
+ }
285
+
260
286
  /* inverse — the flipped chip. Mirrors .pill-inverse. */
261
287
  .kol-tag--inverse {
262
288
  background-color: var(--kol-surface-on-primary);
@@ -561,27 +587,13 @@
561
587
  margin-block-end: 0.75rem;
562
588
  }
563
589
 
564
- /* icon copy buttonVERBATIM from the live reference build: 16px icon +
565
- * 0.5rem padding = the 32×32 box, offset 0.75rem into the 1rem pad. */
590
+ /* in-frame position only — the button IS the CopyButton atom (.kol-copy-btn
591
+ * carries the 32×32 look, promoted there 2026-08-09); offset 0.75rem into
592
+ * the 1rem pad. */
566
593
  .kol-codeblock-copy {
567
594
  position: absolute;
568
595
  top: 0.75rem;
569
596
  right: 0.75rem;
570
- padding: 0.5rem;
571
- display: flex;
572
- align-items: center;
573
- justify-content: center;
574
- background: color-mix(in srgb, var(--kol-surface-on-primary) 2%, transparent);
575
- border: none;
576
- border-radius: 4px;
577
- color: color-mix(in srgb, var(--kol-surface-on-primary) 72%, transparent);
578
- cursor: pointer;
579
- transition: all 0.15s;
580
- }
581
-
582
- .kol-codeblock-copy:hover {
583
- background: color-mix(in srgb, var(--kol-surface-on-primary) 8%, transparent);
584
- color: var(--kol-surface-on-primary);
585
597
  }
586
598
 
587
599
  /* ─────────────────────────────────────────────────────────────────────
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kolkrabbi/kol-theme",
3
- "version": "0.31.2",
3
+ "version": "0.32.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",