@asteby/metacore-theme 0.3.0 → 2.0.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 +12 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -9,6 +9,14 @@ Ships the canonical Metacore visual language:
|
|
|
9
9
|
- Font families (`Inter`, `Lora`, `IBM Plex Mono`)
|
|
10
10
|
- `@theme inline` block mapping tokens to Tailwind v4 utilities
|
|
11
11
|
|
|
12
|
+
## Stability
|
|
13
|
+
|
|
14
|
+
Stable as of v1.0. The token names, CSS variable contract (`--primary`,
|
|
15
|
+
`--background`, `--sidebar-*`, ...), `themeConfig` shape and the public
|
|
16
|
+
exports below follow semver. Internal `oklch` values may shift in minor
|
|
17
|
+
releases when the palette is re-tuned; if your UI depends on exact color
|
|
18
|
+
values, pin to a minor range.
|
|
19
|
+
|
|
12
20
|
## Install
|
|
13
21
|
|
|
14
22
|
```bash
|
|
@@ -65,6 +73,10 @@ import { themeConfig } from '@asteby/metacore-theme/preset'
|
|
|
65
73
|
Apply the `.dark` class to `<html>` or any ancestor. A `@custom-variant dark` is
|
|
66
74
|
registered so Tailwind utilities like `dark:bg-card` work out of the box.
|
|
67
75
|
|
|
76
|
+
The bundled `<ThemeProvider>` (light/dark/system, cookie-persisted) is the
|
|
77
|
+
recommended entry; consumer apps can drop their local copies and use
|
|
78
|
+
`useTheme()` for the toggle UI.
|
|
79
|
+
|
|
68
80
|
## License
|
|
69
81
|
|
|
70
82
|
Apache-2.0
|