@zovaris/sephiro 0.4.0 → 0.4.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/README.md +15 -2
- package/dist/components.css +2055 -0
- package/dist/index.css +978 -1092
- package/dist/themes.css +173 -0
- package/package.json +7 -4
package/README.md
CHANGED
|
@@ -13,7 +13,20 @@ import { Button, Field, Input, Select, Toggle } from "@zovaris/sephiro";
|
|
|
13
13
|
import "@zovaris/sephiro/styles.css";
|
|
14
14
|
```
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
`styles.css` is the complete, backwards-compatible bundle. It contains the
|
|
17
|
+
Sephiro theme tokens and every component rule, but no reset, global Tailwind
|
|
18
|
+
layer, or universal selector.
|
|
19
|
+
|
|
20
|
+
Tailwind 4 consumers can also keep the two concerns explicit:
|
|
21
|
+
|
|
22
|
+
```tsx
|
|
23
|
+
import "@zovaris/sephiro/themes.css";
|
|
24
|
+
import "@zovaris/sephiro/components.css";
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Import only `components.css` when the host defines the `--sph-*` token contract
|
|
28
|
+
itself. The published CSS is already compiled; consumers do not need to add
|
|
29
|
+
Sephiro to Tailwind's source scan.
|
|
17
30
|
|
|
18
31
|
## Themed usage
|
|
19
32
|
|
|
@@ -23,7 +36,7 @@ The stylesheet only defines component classes and token variables — it does no
|
|
|
23
36
|
</main>
|
|
24
37
|
```
|
|
25
38
|
|
|
26
|
-
Available presets: `
|
|
39
|
+
Available presets: `dark`, `light`, `asterism`, `fizza`, and `soffy`. The legacy `default` value remains an alias for `dark`. Multiple themes can coexist on one page through `data-sephiro-theme` on any ancestor. Dark and light share Sephiro's restrained green/neutral palette. Soffy is light by default and follows `data-theme="dark"` from its own element or an ancestor.
|
|
27
40
|
|
|
28
41
|
## Sizing
|
|
29
42
|
|