@kolkrabbi/kol-theme 0.1.1 → 0.2.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-components-atoms.css +30 -0
- package/kol-components-molecules.css +50 -0
- package/package.json +1 -1
package/kol-components-atoms.css
CHANGED
|
@@ -707,3 +707,33 @@ a:hover .icon-hover,
|
|
|
707
707
|
transform: translate(0, 0) scale(1);
|
|
708
708
|
opacity: 1;
|
|
709
709
|
}
|
|
710
|
+
|
|
711
|
+
/* ─────────────────────────────────────────────────────────────────────
|
|
712
|
+
* CopyButton — atoms/CopyButton.jsx
|
|
713
|
+
* Copy-to-clipboard chip: clipboard icon + Copy/Copied label.
|
|
714
|
+
* Look extracted from CodeBlock's inline copy button; CodeBlock's
|
|
715
|
+
* .kol-codeblock-copy (kol-framework) now only positions it.
|
|
716
|
+
* ───────────────────────────────────────────────────────────────────── */
|
|
717
|
+
.kol-copy-btn {
|
|
718
|
+
display: inline-flex;
|
|
719
|
+
align-items: center;
|
|
720
|
+
gap: 6px;
|
|
721
|
+
padding: 6px 10px;
|
|
722
|
+
background: color-mix(in srgb, var(--kol-surface-primary) 80%, transparent);
|
|
723
|
+
border: 1px solid var(--kol-fg-16);
|
|
724
|
+
border-radius: 3px;
|
|
725
|
+
color: var(--kol-fg-64);
|
|
726
|
+
cursor: pointer;
|
|
727
|
+
font-family: var(--kol-font-family-mono, monospace);
|
|
728
|
+
font-size: 10px;
|
|
729
|
+
font-weight: 600;
|
|
730
|
+
letter-spacing: 0.08em;
|
|
731
|
+
line-height: 1;
|
|
732
|
+
text-transform: uppercase;
|
|
733
|
+
transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
.kol-copy-btn:hover {
|
|
737
|
+
color: var(--kol-surface-on-primary);
|
|
738
|
+
border-color: var(--kol-fg-48);
|
|
739
|
+
}
|
|
@@ -253,3 +253,53 @@
|
|
|
253
253
|
padding: 0 12px;
|
|
254
254
|
font-size: 14px;
|
|
255
255
|
}
|
|
256
|
+
|
|
257
|
+
/* ─────────────────────────────────────────────────────────────────────
|
|
258
|
+
* SegmentedToggle — molecules/SegmentedToggle.jsx
|
|
259
|
+
* Bordered strip of joined cells sharing one outer stroke, thin
|
|
260
|
+
* dividers between cells, filled active cell.
|
|
261
|
+
*
|
|
262
|
+
* Chrome lives HERE, not in Tailwind utilities: Tailwind never scans
|
|
263
|
+
* package sources, so utility-class chrome inside a published
|
|
264
|
+
* component silently vanishes for every consumer. Any component whose
|
|
265
|
+
* look depends on flex/border/rounded utilities needs a kol-* class
|
|
266
|
+
* in this package instead.
|
|
267
|
+
* ───────────────────────────────────────────────────────────────────── */
|
|
268
|
+
.kol-seg {
|
|
269
|
+
display: flex;
|
|
270
|
+
height: 26px;
|
|
271
|
+
border: 1px solid var(--kol-fg-04);
|
|
272
|
+
border-radius: var(--kol-radius-sm);
|
|
273
|
+
overflow: hidden;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.kol-seg--sm { height: 16px; }
|
|
277
|
+
|
|
278
|
+
.kol-seg-cell {
|
|
279
|
+
flex: 1;
|
|
280
|
+
display: inline-flex;
|
|
281
|
+
align-items: center;
|
|
282
|
+
justify-content: center;
|
|
283
|
+
padding: 0 10px;
|
|
284
|
+
background: transparent;
|
|
285
|
+
border: none;
|
|
286
|
+
cursor: pointer;
|
|
287
|
+
white-space: nowrap;
|
|
288
|
+
color: var(--kol-fg-meta);
|
|
289
|
+
transition: color var(--kol-transition-base),
|
|
290
|
+
background-color var(--kol-transition-base);
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.kol-seg-cell + .kol-seg-cell { border-left: 1px solid var(--kol-fg-04); }
|
|
294
|
+
|
|
295
|
+
.kol-seg-cell:hover { color: var(--kol-fg-emphasis); }
|
|
296
|
+
|
|
297
|
+
.kol-seg-cell.is-active {
|
|
298
|
+
background: var(--kol-surface-secondary);
|
|
299
|
+
color: var(--kol-fg-emphasis);
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.kol-seg-cell:focus-visible {
|
|
303
|
+
outline: 1px solid var(--kol-fg-emphasis);
|
|
304
|
+
outline-offset: -2px;
|
|
305
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kolkrabbi/kol-theme",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.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",
|