@vokril/ui-solid 0.26.0 → 0.27.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/CHANGELOG.md CHANGED
@@ -5,6 +5,15 @@ All notable changes to `@vokril/ui-solid` are listed here. Versions follow
5
5
  contain breaking changes. From 0.1.1 on, entries are written by Changesets
6
6
  (`npm run release:version`) above the previous release.
7
7
 
8
+ ## 0.27.0
9
+
10
+ ### Minor Changes
11
+
12
+ - Vokril design: the inverse band and a script-free system mode (decision 0021).
13
+
14
+ - `--ui-color-inverse-surface`, `--ui-color-on-inverse`, `--ui-color-on-inverse-muted`, `--ui-color-inverse-brand` and `--ui-color-on-inverse-brand`: vokril.com's dark hero band, dark in both themes. Only the Vokril design defines them; inside a band, rebind the text and brand roles to them.
15
+ - `<html data-design="vokril">` (or `"viper"`) without `data-app-theme` follows `prefers-color-scheme`: theme.css carries the design's dark and light theme in two exclusive media queries, so a page whose CSP allows no inline script still gets the system theme. The unmarked default (Viper Dark) no longer applies to a root that carries `data-design`.
16
+
8
17
  ## 0.26.0
9
18
 
10
19
  ### Minor Changes
package/README.md CHANGED
@@ -193,7 +193,8 @@ setThemeDesign('vokril'); // once, before the first render; the default design i
193
193
  - **Persistence:** the choice is saved in `localStorage` under `vokril-ui-theme`. `storageKey` changes the key; `storage` takes `sessionStorage` or any `{ getItem, setItem }`; `storage={null}` turns persistence off.
194
194
  - **Other windows:** `document={popup.document}` themes a detached window's document and follows that window's `prefers-color-scheme`.
195
195
  - **Hook:** `useTheme()` returns `theme`, `resolvedTheme`, `themeId`, `setTheme`, `toggleTheme` and the colour-vision-safe switch.
196
- - **Without the provider:** `applyAppTheme('light')` themes a document directly, and `theme.css` carries the same values as static CSS (`<html data-app-theme="vokril-dark">` is enough for a static page).
196
+ - **Without the provider:** `applyAppTheme('light')` themes a document directly, and `theme.css` carries the same values as static CSS. On a static page `<html data-app-theme="vokril-dark">` picks a theme, and `<html data-design="vokril">` without a theme follows `prefers-color-scheme` — no script needed.
197
+ - **Inverse band (Vokril):** `--ui-color-inverse-surface`, `--ui-color-on-inverse`, `--ui-color-on-inverse-muted`, `--ui-color-inverse-brand` and `--ui-color-on-inverse-brand` are the design's dark hero band in both themes; inside a band, rebind `--ui-color-text`, `--ui-color-brand` and the like to them.
197
198
 
198
199
  The Viper palettes are original and generated in OKLCH; the Vokril palettes carry vokril.com's colours.
199
200