@dataimago/tokens 0.1.0-alpha.15 → 0.1.0-alpha.16

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 CHANGED
@@ -5,7 +5,7 @@ Canonical design tokens for the dataimago ethical AI design system.
5
5
  ## What's in the box
6
6
 
7
7
  - `src/*.json` — the hand-authored JSON sources (colors, typography, spacing, effects, etc.).
8
- - `dist/tokens.css` / `dist/tokens.scss` — CSS custom properties emitted from the JSON sources, theme-aware (`[data-bs-theme]` + `prefers-color-scheme`).
8
+ - `dist/tokens.css` / `dist/tokens.scss` — CSS custom properties emitted from the JSON sources, theme-aware (`[data-bs-theme]` + `prefers-color-scheme`). The system preference applies only while the root has no `data-bs-theme="light"`, so an explicit choice (e.g. `@dataimago/ui`'s `ThemeToggle`) wins in both directions.
9
9
  - `dist/index.{mjs,cjs,d.ts}` — typed JS/TS imports for token values.
10
10
  - `dist/tokens.dtcg.json` — additive DTCG-style export for tools and agents. It does not replace the current runtime JSON shape.
11
11
 
package/dist/tokens.css CHANGED
@@ -253,7 +253,7 @@
253
253
  }
254
254
 
255
255
  @media (prefers-color-scheme: dark) {
256
- :root {
256
+ :root:where(:not([data-bs-theme="light"])) {
257
257
  --color-surface-page: #141410;
258
258
  --color-surface-page: color(display-p3 0.0784 0.0784 0.0643);
259
259
  --color-surface-page-scrolled: #141410;
package/dist/tokens.scss CHANGED
@@ -253,7 +253,7 @@
253
253
  }
254
254
 
255
255
  @media (prefers-color-scheme: dark) {
256
- :root {
256
+ :root:where(:not([data-bs-theme="light"])) {
257
257
  --color-surface-page: #141410;
258
258
  --color-surface-page: color(display-p3 0.0784 0.0784 0.0643);
259
259
  --color-surface-page-scrolled: #141410;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dataimago/tokens",
3
- "version": "0.1.0-alpha.15",
3
+ "version": "0.1.0-alpha.16",
4
4
  "description": "dataimago design tokens — canonical JSON sources plus generated TS/CSS artifacts",
5
5
  "license": "MIT",
6
6
  "repository": {