@sharadox/style-web-library 0.2.2-development.7 → 0.2.2-every-export-documented.11
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 -0
- package/llms.txt +4 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -72,6 +72,12 @@ CSS uses each palette's keys as variables (`var(--background)`, `var(--radius)`)
|
|
|
72
72
|
- Unknown stored values fall back to the default.
|
|
73
73
|
- With System, the page follows the device and other tabs live.
|
|
74
74
|
|
|
75
|
+
### Also exported
|
|
76
|
+
|
|
77
|
+
Smaller parts, mostly building blocks of the main exports:
|
|
78
|
+
|
|
79
|
+
- `…/style-keeper`: StyleKeeper: applies every group's remembered style again when it mounts (layouts that replace <html>)
|
|
80
|
+
|
|
75
81
|
## Develop
|
|
76
82
|
|
|
77
83
|
`pnpm verify` runs formatting, lint, type-check, tests with 100% coverage and the build. Branches follow `<feature>.development` → `development` → `index`, and releases are `v<version>` tags on `index`.
|
package/llms.txt
CHANGED
|
@@ -8,5 +8,9 @@
|
|
|
8
8
|
- styleChoices(group): order light options, "system", dark options (for switches)
|
|
9
9
|
- html attributes: data-style-<group>, data-style-<group>-choice; color-scheme set for groups with schemes
|
|
10
10
|
- Storage: localStorage "style-<group>" (or storageKey); choosing the default removes it
|
|
11
|
+
- /style-choice: styleChoices(group): a group's switch entries in display order (light, system, dark)
|
|
12
|
+
- /style-script: styleScript and StyleScript: the inline script that applies remembered styles before the first paint
|
|
13
|
+
- /use-style: useStyle(group): a group's choice and option in use, with choose()
|
|
14
|
+
- /style-sheet: styleSheet(groups): the CSS of every style group
|
|
11
15
|
- License: Sharadox Open Source License 0.1.0
|
|
12
16
|
- /style-keeper StyleKeeper({ groups }) client component re-applying remembered styles on mount (rendered by StyleScript; fixes styles lost when a navigation replaces <html>, e.g. switching locale)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sharadox/style-web-library",
|
|
3
|
-
"version": "0.2.2-
|
|
3
|
+
"version": "0.2.2-every-export-documented.11",
|
|
4
4
|
"description": "Styles (themes) for websites: several independent style groups (color, corners, fonts…), each with options, a default, System following the device and a remembered choice, applied before the first paint.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "SEE LICENSE IN LICENCA.md",
|