@zooui/theme-forest 0.1.1 → 0.3.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/README.md +1 -0
- package/app.config.ts +5 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -163,6 +163,7 @@ otherwise, and the layer does not depend on nu-grid (`apps/forest` installs it):
|
|
|
163
163
|
| Header | Forest's kicker, in the mono face — through `ui.table`, which nu-grid inherits — and group labels the same |
|
|
164
164
|
| Group band | neutral (`bg-elevated/50`), **3px** accent leading edge on both modes |
|
|
165
165
|
| Cells | tabular figures |
|
|
166
|
+
| Stacking | `isolate` on the grid's root: its own stacking context, so its sticky header cells and group labels stay under a product's sticky page header |
|
|
166
167
|
|
|
167
168
|
The band overrides spell out `dark:` too: tailwind-merge only replaces a class with the same variant, and
|
|
168
169
|
`compact` tints its band `dark:bg-primary/12`. Tests check the band and edge in light and dark on both modes.
|
package/app.config.ts
CHANGED
|
@@ -62,6 +62,11 @@ export default defineAppConfig({
|
|
|
62
62
|
nuGrid: {
|
|
63
63
|
ui: {
|
|
64
64
|
slots: {
|
|
65
|
+
// `isolate` makes the grid its own stacking context. Its root is `relative` with no z-index, so without it
|
|
66
|
+
// the grid's z-10 header cells and z-50 group labels compete with the page's own chrome, and paint over a
|
|
67
|
+
// sticky page header (`z-10`) as the page scrolls the grid under it. Inside, nothing changes: the grid is
|
|
68
|
+
// still its own scroll container, and its sticky rows keep their order among themselves.
|
|
69
|
+
root: 'isolate',
|
|
65
70
|
groupHeader: 'bg-elevated/50 hover:bg-elevated dark:bg-elevated/50 dark:hover:bg-elevated',
|
|
66
71
|
groupHeaderLeft: 'border-l-3',
|
|
67
72
|
// headers come from `ui.table` (nu-grid inherits it); the group band's labels are its own slots
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zooui/theme-forest",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Forest, a Zoo UI theme: a Nuxt layer that extends @zooui/nuxt with Forest's colors, page ground, typefaces (Inter and JetBrains Mono, self-hosted), accent schemes and component styling. A product extends this one layer for Zoo UI and the theme together.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@fontsource-variable/inter": "^5.3.0",
|
|
34
34
|
"@fontsource-variable/jetbrains-mono": "^5.3.0",
|
|
35
|
-
"@zooui/nuxt": "0.
|
|
35
|
+
"@zooui/nuxt": "0.3.0"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"nuxt": "^4.1.0",
|