@kolkrabbi/kol-theme 0.8.0 → 0.9.1
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 +0 -78
- package/kol-components-chess.css +51 -0
- package/kol-typography-mono.css +17 -1
- package/package.json +1 -1
package/kol-components-atoms.css
CHANGED
|
@@ -711,84 +711,6 @@
|
|
|
711
711
|
}
|
|
712
712
|
|
|
713
713
|
|
|
714
|
-
/* ═══════════════════════════════════════════════════════════════
|
|
715
|
-
* Section label typography — promoted from residual kol-components.css.
|
|
716
|
-
* Used by molecules/SectionLabel.jsx. Mono variants + compact variants.
|
|
717
|
-
* Typography-adjacent; lives here because consumed by atom-tier
|
|
718
|
-
* components (SectionLabel etc.).
|
|
719
|
-
* ═══════════════════════════════════════════════════════════════ */
|
|
720
|
-
|
|
721
|
-
.kol-label-mono-sm {
|
|
722
|
-
font-family: var(--kol-font-family-mono);
|
|
723
|
-
font-weight: 470;
|
|
724
|
-
font-size: clamp(14px, 1.5vw, 24px);
|
|
725
|
-
line-height: 100%;
|
|
726
|
-
text-transform: uppercase;
|
|
727
|
-
letter-spacing: 0.05em;
|
|
728
|
-
color: var(--kol-surface-on-primary);
|
|
729
|
-
}
|
|
730
|
-
|
|
731
|
-
.kol-label-mono-md {
|
|
732
|
-
font-family: var(--kol-font-family-mono);
|
|
733
|
-
font-weight: 470;
|
|
734
|
-
font-size: clamp(12px, 1vw, 16px);
|
|
735
|
-
line-height: 125%;
|
|
736
|
-
text-transform: uppercase;
|
|
737
|
-
letter-spacing: 0.05em;
|
|
738
|
-
color: var(--kol-surface-on-primary);
|
|
739
|
-
}
|
|
740
|
-
|
|
741
|
-
.kol-label-mono-xs {
|
|
742
|
-
font-family: var(--kol-font-family-mono);
|
|
743
|
-
font-weight: 470;
|
|
744
|
-
font-size: clamp(10px, 0.8vw, 14px);
|
|
745
|
-
line-height: 100%;
|
|
746
|
-
text-transform: uppercase;
|
|
747
|
-
letter-spacing: 0.05em;
|
|
748
|
-
color: var(--kol-surface-on-primary);
|
|
749
|
-
}
|
|
750
|
-
|
|
751
|
-
.kol-label-compact-lg {
|
|
752
|
-
font-family: var(--kol-font-family-mono);
|
|
753
|
-
font-weight: 500;
|
|
754
|
-
font-size: clamp(24px, 2vw, 28px);
|
|
755
|
-
line-height: 100%;
|
|
756
|
-
text-transform: uppercase;
|
|
757
|
-
letter-spacing: 0.03em;
|
|
758
|
-
color: var(--kol-surface-on-primary);
|
|
759
|
-
}
|
|
760
|
-
|
|
761
|
-
.kol-label-compact-md {
|
|
762
|
-
font-family: var(--kol-font-family-mono);
|
|
763
|
-
font-weight: 500;
|
|
764
|
-
font-size: clamp(12px, 1vw, 16px);
|
|
765
|
-
line-height: 100%;
|
|
766
|
-
text-transform: uppercase;
|
|
767
|
-
letter-spacing: 0.03em;
|
|
768
|
-
color: var(--kol-surface-on-primary);
|
|
769
|
-
}
|
|
770
|
-
|
|
771
|
-
.kol-label {
|
|
772
|
-
font-family: var(--kol-font-family-mono);
|
|
773
|
-
font-weight: 470;
|
|
774
|
-
font-size: clamp(14px, 1.5vw, 24px);
|
|
775
|
-
line-height: 100%;
|
|
776
|
-
text-transform: uppercase;
|
|
777
|
-
letter-spacing: 0.05em;
|
|
778
|
-
color: var(--kol-surface-on-primary);
|
|
779
|
-
}
|
|
780
|
-
|
|
781
|
-
.kol-label-compact {
|
|
782
|
-
font-family: var(--kol-font-family-mono);
|
|
783
|
-
font-weight: 500;
|
|
784
|
-
font-size: clamp(12px, 1vw, 16px);
|
|
785
|
-
line-height: 100%;
|
|
786
|
-
text-transform: uppercase;
|
|
787
|
-
letter-spacing: 0.03em;
|
|
788
|
-
color: var(--kol-surface-on-primary);
|
|
789
|
-
}
|
|
790
|
-
|
|
791
|
-
|
|
792
714
|
/* ═══════════════════════════════════════════════════════════════
|
|
793
715
|
* Icon-swap utility — promoted from residual kol-components.css.
|
|
794
716
|
* Used by molecules/SectionLabel.jsx and any <button>/<a> with
|
package/kol-components-chess.css
CHANGED
|
@@ -97,6 +97,57 @@
|
|
|
97
97
|
z-index: 1;
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
+
/* board input (brief 3.0) — selection wash + legal-target marks; amber
|
|
101
|
+
* rides the same highlight language as --highlighted so it reads on all
|
|
102
|
+
* six board themes */
|
|
103
|
+
.chess-square--interactive {
|
|
104
|
+
cursor: pointer;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.chess-square--selected::after {
|
|
108
|
+
content: '';
|
|
109
|
+
position: absolute;
|
|
110
|
+
inset: 0;
|
|
111
|
+
background-color: rgba(251, 191, 36, 0.55);
|
|
112
|
+
pointer-events: none;
|
|
113
|
+
z-index: 1;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.chess-square--target::before {
|
|
117
|
+
content: '';
|
|
118
|
+
position: absolute;
|
|
119
|
+
left: 36%;
|
|
120
|
+
top: 36%;
|
|
121
|
+
width: 28%;
|
|
122
|
+
height: 28%;
|
|
123
|
+
border-radius: 999px;
|
|
124
|
+
background-color: rgba(251, 191, 36, 0.7);
|
|
125
|
+
pointer-events: none;
|
|
126
|
+
z-index: 2;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.chess-square--target-capture::before {
|
|
130
|
+
content: '';
|
|
131
|
+
position: absolute;
|
|
132
|
+
inset: 6%;
|
|
133
|
+
border: 3px solid rgba(251, 191, 36, 0.7);
|
|
134
|
+
border-radius: 999px;
|
|
135
|
+
pointer-events: none;
|
|
136
|
+
z-index: 11; /* over the piece (its wrapper is z-10) */
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/* armed palette cell (edit mode) — same amber, unmissable */
|
|
140
|
+
.chess-palette--armed {
|
|
141
|
+
background-color: rgba(251, 191, 36, 0.35);
|
|
142
|
+
box-shadow: inset 0 0 0 2px rgba(251, 191, 36, 0.9);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/* sideline moves in notation carry the board's amber; color-mix keeps
|
|
146
|
+
* contrast on both themes (leans ink on light, cream on dark) */
|
|
147
|
+
.kol-btn.chess-notation-sideline {
|
|
148
|
+
color: color-mix(in srgb, #f59e0b 72%, var(--kol-surface-on-primary));
|
|
149
|
+
}
|
|
150
|
+
|
|
100
151
|
.chess-board__coordinate-label {
|
|
101
152
|
display: inline-flex;
|
|
102
153
|
align-items: center;
|
package/kol-typography-mono.css
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
16
|
/* =============================================================================
|
|
17
|
-
* FONT-FACE — JetBrains Mono (
|
|
17
|
+
* FONT-FACE — JetBrains Mono (6 faces: 400, 400i, 500, 500i, 600, 600i)
|
|
18
18
|
* ============================================================================= */
|
|
19
19
|
|
|
20
20
|
@font-face {
|
|
@@ -25,6 +25,14 @@
|
|
|
25
25
|
font-display: swap;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
+
@font-face {
|
|
29
|
+
font-family: 'JetBrains Mono';
|
|
30
|
+
src: url('/fonts/jetbrains-mono/JetBrainsMono-Italic.woff2') format('woff2');
|
|
31
|
+
font-weight: 400;
|
|
32
|
+
font-style: italic;
|
|
33
|
+
font-display: swap;
|
|
34
|
+
}
|
|
35
|
+
|
|
28
36
|
@font-face {
|
|
29
37
|
font-family: 'JetBrains Mono';
|
|
30
38
|
src: url('/fonts/jetbrains-mono/JetBrainsMono-Medium.woff2') format('woff2');
|
|
@@ -49,6 +57,14 @@
|
|
|
49
57
|
font-display: swap;
|
|
50
58
|
}
|
|
51
59
|
|
|
60
|
+
@font-face {
|
|
61
|
+
font-family: 'JetBrains Mono';
|
|
62
|
+
src: url('/fonts/jetbrains-mono/JetBrainsMono-SemiBoldItalic.woff2') format('woff2');
|
|
63
|
+
font-weight: 600;
|
|
64
|
+
font-style: italic;
|
|
65
|
+
font-display: swap;
|
|
66
|
+
}
|
|
67
|
+
|
|
52
68
|
/* =============================================================================
|
|
53
69
|
* FAMILY TOKEN + TAILWIND CONTRACT
|
|
54
70
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kolkrabbi/kol-theme",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.1",
|
|
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",
|