@kolkrabbi/kol-theme 0.11.12 → 0.11.14
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-color.css +0 -29
- package/kol-components-molecules.css +59 -0
- package/kol-type-roles.css +2 -14
- package/package.json +1 -1
package/kol-color.css
CHANGED
|
@@ -306,32 +306,3 @@
|
|
|
306
306
|
--color-ui-info: var(--ui-info);
|
|
307
307
|
--color-ui-success: var(--ui-success);
|
|
308
308
|
}
|
|
309
|
-
|
|
310
|
-
/* ── Syntax token palette (CodeBlock highlighting, 2026-07-28) ─────────────
|
|
311
|
-
* Light-mode base; dark values in BOTH dark blocks below (MIRROR law —
|
|
312
|
-
* edit all three together). Classes live in kol-type-roles.css. */
|
|
313
|
-
:root {
|
|
314
|
-
--kol-tok-comment: var(--kol-fg-48);
|
|
315
|
-
--kol-tok-punctuation: var(--kol-fg-64);
|
|
316
|
-
--kol-tok-keyword: #7638c9;
|
|
317
|
-
--kol-tok-function: #1e66d0;
|
|
318
|
-
--kol-tok-string: #a35200;
|
|
319
|
-
--kol-tok-number: #a35200;
|
|
320
|
-
--kol-tok-property: #b0303c;
|
|
321
|
-
}
|
|
322
|
-
[data-theme="dark"] {
|
|
323
|
-
--kol-tok-keyword: #ba8cf5;
|
|
324
|
-
--kol-tok-function: #6ea8fe;
|
|
325
|
-
--kol-tok-string: #f0a35e;
|
|
326
|
-
--kol-tok-number: #f0a35e;
|
|
327
|
-
--kol-tok-property: #ef7c8a;
|
|
328
|
-
}
|
|
329
|
-
@media (prefers-color-scheme: dark) {
|
|
330
|
-
:root:not([data-theme]) {
|
|
331
|
-
--kol-tok-keyword: #ba8cf5;
|
|
332
|
-
--kol-tok-function: #6ea8fe;
|
|
333
|
-
--kol-tok-string: #f0a35e;
|
|
334
|
-
--kol-tok-number: #f0a35e;
|
|
335
|
-
--kol-tok-property: #ef7c8a;
|
|
336
|
-
}
|
|
337
|
-
}
|
|
@@ -447,3 +447,62 @@
|
|
|
447
447
|
);
|
|
448
448
|
box-shadow: 0 0 0 1px var(--kol-fg-32);
|
|
449
449
|
}
|
|
450
|
+
|
|
451
|
+
/* ─────────────────────────────────────────────────────────────────────
|
|
452
|
+
* CodeBlock — molecules/CodeBlock.jsx (chrome REPLICATED from the elder
|
|
453
|
+
* reference build, 2026-07-28; moved here from kol-framework.css — theme
|
|
454
|
+
* is chrome's home). Text metrics/colors come from the component's oneDark
|
|
455
|
+
* overrides (14px/1.6); this is frame + chip + copy button only.
|
|
456
|
+
* ──────────────────────────────────────────────────────────────────── */
|
|
457
|
+
.kol-codeblock-wrapper {
|
|
458
|
+
margin-block: 1.5rem;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
.kol-codeblock {
|
|
462
|
+
/* verbatim from the reference build's rule (user DevTools, 2026-07-28) */
|
|
463
|
+
background: var(--kol-surface-tertiary);
|
|
464
|
+
border: 1px solid var(--kol-border-default);
|
|
465
|
+
font-family: var(--kol-font-family-mono);
|
|
466
|
+
white-space: pre-wrap;
|
|
467
|
+
overflow-wrap: break-word;
|
|
468
|
+
border-radius: 4px;
|
|
469
|
+
padding: 1rem;
|
|
470
|
+
font-size: 14px;
|
|
471
|
+
line-height: 1.6;
|
|
472
|
+
position: relative;
|
|
473
|
+
overflow-x: auto;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
/* the ONE chip — filename if present, else the language. In-flow above the code. */
|
|
477
|
+
.kol-codeblock-filename {
|
|
478
|
+
font-family: var(--kol-font-family-mono, monospace);
|
|
479
|
+
font-size: 10px;
|
|
480
|
+
font-weight: 600;
|
|
481
|
+
letter-spacing: 0.08em;
|
|
482
|
+
text-transform: uppercase;
|
|
483
|
+
color: var(--kol-fg-40);
|
|
484
|
+
margin-bottom: 8px;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
/* 32×32 icon button, tinted square, copy → check */
|
|
488
|
+
.kol-codeblock-copy {
|
|
489
|
+
position: absolute;
|
|
490
|
+
top: 8px;
|
|
491
|
+
right: 8px;
|
|
492
|
+
width: 32px;
|
|
493
|
+
height: 32px;
|
|
494
|
+
display: inline-flex;
|
|
495
|
+
align-items: center;
|
|
496
|
+
justify-content: center;
|
|
497
|
+
background: var(--kol-fg-08);
|
|
498
|
+
border: none;
|
|
499
|
+
border-radius: var(--kol-radius-sm);
|
|
500
|
+
color: var(--kol-fg-64);
|
|
501
|
+
cursor: pointer;
|
|
502
|
+
transition: color 150ms ease, background 150ms ease;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
.kol-codeblock-copy:hover {
|
|
506
|
+
color: var(--kol-surface-on-primary);
|
|
507
|
+
background: var(--kol-fg-16);
|
|
508
|
+
}
|
package/kol-type-roles.css
CHANGED
|
@@ -78,9 +78,9 @@
|
|
|
78
78
|
.kol-prose pre,
|
|
79
79
|
.kol-doc-code {
|
|
80
80
|
font-family: var(--kol-font-family-mono);
|
|
81
|
-
font-size:
|
|
81
|
+
font-size: 14px; /* matches CodeBlock's reference voice (14/1.6) */
|
|
82
82
|
font-weight: 400;
|
|
83
|
-
line-height: 1.
|
|
83
|
+
line-height: 1.6;
|
|
84
84
|
padding: 16px 20px;
|
|
85
85
|
background: var(--kol-fg-04);
|
|
86
86
|
border-radius: var(--kol-radius-sm);
|
|
@@ -247,15 +247,3 @@
|
|
|
247
247
|
text-transform: uppercase;
|
|
248
248
|
color: var(--kol-fg-48);
|
|
249
249
|
}
|
|
250
|
-
|
|
251
|
-
/* =============================================================================
|
|
252
|
-
* SYNTAX TOKENS — refractor/Prism token classes emitted by CodeBlock as
|
|
253
|
-
* .kol-tok-<type>. Colors are the --kol-tok-* vars (kol-color.css, themed).
|
|
254
|
-
* ============================================================================= */
|
|
255
|
-
.kol-tok-comment, .kol-tok-prolog, .kol-tok-doctype, .kol-tok-cdata { color: var(--kol-tok-comment); font-style: italic; }
|
|
256
|
-
.kol-tok-punctuation, .kol-tok-operator { color: var(--kol-tok-punctuation); }
|
|
257
|
-
.kol-tok-keyword, .kol-tok-atrule, .kol-tok-rule, .kol-tok-important { color: var(--kol-tok-keyword); }
|
|
258
|
-
.kol-tok-function, .kol-tok-class-name, .kol-tok-selector, .kol-tok-tag { color: var(--kol-tok-function); }
|
|
259
|
-
.kol-tok-string, .kol-tok-char, .kol-tok-attr-value, .kol-tok-url { color: var(--kol-tok-string); }
|
|
260
|
-
.kol-tok-number, .kol-tok-boolean, .kol-tok-constant, .kol-tok-symbol, .kol-tok-unit { color: var(--kol-tok-number); }
|
|
261
|
-
.kol-tok-property, .kol-tok-attr-name, .kol-tok-variable, .kol-tok-parameter { color: var(--kol-tok-property); }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kolkrabbi/kol-theme",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.14",
|
|
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",
|