@kolkrabbi/kol-framework 0.6.2 → 0.6.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.
- package/README.md +6 -1
- package/kol-framework.css +9 -2
- package/package.json +1 -1
- package/src/ShellHeader.jsx +1 -1
package/README.md
CHANGED
|
@@ -17,9 +17,14 @@ npm i @kolkrabbi/kol-framework @kolkrabbi/kol-component @kolkrabbi/kol-theme
|
|
|
17
17
|
@import "tailwindcss";
|
|
18
18
|
@import "@kolkrabbi/kol-theme";
|
|
19
19
|
@import "@kolkrabbi/kol-framework/kol-brand-color.css";
|
|
20
|
-
@import "@kolkrabbi/kol-framework/kol-framework.css";
|
|
20
|
+
@import "@kolkrabbi/kol-framework/kol-framework.css" layer(components);
|
|
21
21
|
```
|
|
22
22
|
|
|
23
|
+
`layer(components)` is **required**, not optional. Unlayered rules outrank every
|
|
24
|
+
layered rule regardless of specificity, so a bare import promotes framework
|
|
25
|
+
chrome above the theme's type layer and the same package renders differently
|
|
26
|
+
per consumer.
|
|
27
|
+
|
|
23
28
|
```jsx
|
|
24
29
|
import { AppShell } from '@kolkrabbi/kol-framework'
|
|
25
30
|
import { NAV_TREE, getActivePage } from './sidebars.config'
|
package/kol-framework.css
CHANGED
|
@@ -828,7 +828,13 @@ body {
|
|
|
828
828
|
align-items: center;
|
|
829
829
|
gap: 6px;
|
|
830
830
|
font-family: var(--kol-font-family-mono, monospace);
|
|
831
|
-
|
|
831
|
+
/* The tab IS kol-mono-14 (14/18). Stated here, not as a utility class on the
|
|
832
|
+
element: this rule and the utility have equal specificity, so whichever
|
|
833
|
+
stylesheet loads last wins — and that flipped per consumer depending on
|
|
834
|
+
whether kol-framework.css was imported into a layer. Type lives in the
|
|
835
|
+
rule; do not re-add a kol-mono-* class to the tab. */
|
|
836
|
+
font-size: 14px;
|
|
837
|
+
line-height: 18px;
|
|
832
838
|
font-weight: 500;
|
|
833
839
|
letter-spacing: 0.02em;
|
|
834
840
|
color: var(--kol-fg-64);
|
|
@@ -856,7 +862,8 @@ body {
|
|
|
856
862
|
}
|
|
857
863
|
|
|
858
864
|
.kol-shell-header-tab {
|
|
859
|
-
|
|
865
|
+
/* No type bump — 14/18 is the tab size at every viewport (user ruling
|
|
866
|
+
2026-07-30). Only the spacing breathes at wide widths. */
|
|
860
867
|
gap: 8px;
|
|
861
868
|
padding-top: 10px;
|
|
862
869
|
padding-bottom: 14px;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kolkrabbi/kol-framework",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.3",
|
|
4
4
|
"description": "KOL app shell — sidenav, layout, theme toggle, footer, heroes + brand color layer. SideNav takes nav data as props so the tree stays app-local.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
package/src/ShellHeader.jsx
CHANGED
|
@@ -112,7 +112,7 @@ export default function ShellHeader({
|
|
|
112
112
|
<a
|
|
113
113
|
key={item.href ?? item.label}
|
|
114
114
|
href={item.href}
|
|
115
|
-
className="kol-shell-header-tab
|
|
115
|
+
className="kol-shell-header-tab"
|
|
116
116
|
aria-current={active ? 'page' : undefined}
|
|
117
117
|
onClick={onNavigate ? (event) => onNavigate(event, item) : undefined}
|
|
118
118
|
>
|