@kolkrabbi/kol-theme 0.31.2 → 0.31.3

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
  /* ─────────────────────────────────────────────────────────────────────
@@ -561,27 +561,13 @@
561
561
  margin-block-end: 0.75rem;
562
562
  }
563
563
 
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. */
564
+ /* in-frame position only — the button IS the CopyButton atom (.kol-copy-btn
565
+ * carries the 32×32 look, promoted there 2026-08-09); offset 0.75rem into
566
+ * the 1rem pad. */
566
567
  .kol-codeblock-copy {
567
568
  position: absolute;
568
569
  top: 0.75rem;
569
570
  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
571
  }
586
572
 
587
573
  /* ─────────────────────────────────────────────────────────────────────
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kolkrabbi/kol-theme",
3
- "version": "0.31.2",
3
+ "version": "0.31.3",
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",