@webority/tokens 0.150.0 → 0.153.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.
@@ -2,7 +2,7 @@
2
2
  "format": "webority-theme-tokens/2",
3
3
  "source": {
4
4
  "package": "@webority/tokens",
5
- "version": "0.150.0",
5
+ "version": "0.153.0",
6
6
  "brand": null,
7
7
  "platform": "phone",
8
8
  "width": null
@@ -28,23 +28,23 @@
28
28
  "text-muted": "#52525b",
29
29
  "text-subtle": "#62626b",
30
30
  "text-inverse": "#ffffff",
31
- "link": "#5b5bd6",
31
+ "link": "#4f46e5",
32
32
  "border": "#e5e5ec",
33
33
  "border-subtle": "#efeff3",
34
34
  "field-bg": "#f9fbfc",
35
35
  "field-border": "#ebedf3",
36
36
  "field-border-focus": "#bed2f9",
37
- "focus-ring": "#5b5bd6",
37
+ "focus-ring": "#4f46e5",
38
38
  "scrim": "#0f0f1a80",
39
39
  "on-scrim": "#ffffff",
40
40
  "thumb": "#ffffff",
41
- "primary": "#5b5bd6",
42
- "primary-hover": "#4f4fbf",
43
- "primary-soft": "#eeeefc",
44
- "primary-text": "#4f4fd3",
41
+ "primary": "#4f46e5",
42
+ "primary-hover": "#4338ca",
43
+ "primary-soft": "#e0e7ff",
44
+ "primary-text": "#4f46e5",
45
45
  "on-primary": "#ffffff",
46
- "primary-wash": "#5b5bd614",
47
- "primary-wash-strong": "#5b5bd633",
46
+ "primary-wash": "#4f46e514",
47
+ "primary-wash-strong": "#4f46e533",
48
48
  "neutral": "#f4f4f8",
49
49
  "neutral-hover": "#e9e9f0",
50
50
  "neutral-text": "#52525b",
@@ -68,13 +68,13 @@
68
68
  "info-soft": "#e9f3ff",
69
69
  "info-text": "#0958d9",
70
70
  "on-info": "#ffffff",
71
- "primary-pressed": "#4040a8",
71
+ "primary-pressed": "#3730a3",
72
72
  "switch-thumb": "#ffffff",
73
73
  "on-neutral-strong": "#ffffff",
74
74
  "text-disabled": "#b4b4bb",
75
75
  "surface-pressed": "#0f0f1a0f",
76
76
  "surface-hover": "#0f0f1a0a",
77
- "surface-selected": "#5b5bd61a",
77
+ "surface-selected": "#4f46e51a",
78
78
  "surface-disabled": "#f1f1f5",
79
79
  "skeleton": "#ebedf3",
80
80
  "skeleton-highlight": "#f5f6fa",
@@ -95,7 +95,7 @@
95
95
  "field-icon-disabled": "#c4cada",
96
96
  "field-caret": "#5b8dee",
97
97
  "field-message": "#d81736",
98
- "avatar-1": "#5b5bd6",
98
+ "avatar-1": "#4f46e5",
99
99
  "avatar-2": "#0a7979",
100
100
  "avatar-3": "#a45a05",
101
101
  "avatar-4": "#cd226e",
@@ -2,7 +2,7 @@
2
2
  "format": "webority-theme-tokens/2",
3
3
  "source": {
4
4
  "package": "@webority/tokens",
5
- "version": "0.150.0",
5
+ "version": "0.153.0",
6
6
  "brand": null,
7
7
  "platform": "web",
8
8
  "width": 390
@@ -127,7 +127,23 @@
127
127
  "chart-neutral": "#99a1b7",
128
128
  "chart-grid": "#ebedf3",
129
129
  "chart-axis": "#c4cada",
130
- "chart-label": "#626a82"
130
+ "chart-label": "#626a82",
131
+ "shell-bg": "#1f2d5c",
132
+ "shell-bg-deep": "#141e42",
133
+ "shell-bg-raised": "#2c3f7a",
134
+ "shell-text": "#c9d1e6",
135
+ "shell-text-strong": "#ffffff",
136
+ "shell-text-muted": "#8792b4",
137
+ "shell-accent": "#f4a261",
138
+ "shell-accent-ring": "#f4a26140",
139
+ "shell-hover": "#ffffff12",
140
+ "shell-active": "#ffffff1f",
141
+ "shell-rule": "#ffffff1a",
142
+ "shell-fill-subtle": "#ffffff14",
143
+ "shell-fill": "#ffffff1f",
144
+ "shell-fill-strong": "#ffffff2e",
145
+ "shell-border": "#ffffff38",
146
+ "shell-border-strong": "#ffffff66"
131
147
  },
132
148
  "dark": {
133
149
  "bg": "#0f1117",
@@ -244,7 +260,23 @@
244
260
  "chart-neutral": "#5d6475",
245
261
  "chart-grid": "#3d4554",
246
262
  "chart-axis": "#515b6e",
247
- "chart-label": "#8a90a0"
263
+ "chart-label": "#8a90a0",
264
+ "shell-bg": "#1f2d5c",
265
+ "shell-bg-deep": "#141e42",
266
+ "shell-bg-raised": "#2c3f7a",
267
+ "shell-text": "#c9d1e6",
268
+ "shell-text-strong": "#ffffff",
269
+ "shell-text-muted": "#8792b4",
270
+ "shell-accent": "#f4a261",
271
+ "shell-accent-ring": "#f4a26140",
272
+ "shell-hover": "#ffffff12",
273
+ "shell-active": "#ffffff1f",
274
+ "shell-rule": "#ffffff1a",
275
+ "shell-fill-subtle": "#ffffff14",
276
+ "shell-fill": "#ffffff1f",
277
+ "shell-fill-strong": "#ffffff2e",
278
+ "shell-border": "#ffffff38",
279
+ "shell-border-strong": "#ffffff66"
248
280
  }
249
281
  },
250
282
  "space": {
@@ -2,7 +2,7 @@
2
2
  "format": "webority-theme-tokens/2",
3
3
  "source": {
4
4
  "package": "@webority/tokens",
5
- "version": "0.150.0",
5
+ "version": "0.153.0",
6
6
  "brand": null,
7
7
  "platform": "web",
8
8
  "width": 1440
@@ -127,7 +127,23 @@
127
127
  "chart-neutral": "#99a1b7",
128
128
  "chart-grid": "#ebedf3",
129
129
  "chart-axis": "#c4cada",
130
- "chart-label": "#626a82"
130
+ "chart-label": "#626a82",
131
+ "shell-bg": "#1f2d5c",
132
+ "shell-bg-deep": "#141e42",
133
+ "shell-bg-raised": "#2c3f7a",
134
+ "shell-text": "#c9d1e6",
135
+ "shell-text-strong": "#ffffff",
136
+ "shell-text-muted": "#8792b4",
137
+ "shell-accent": "#f4a261",
138
+ "shell-accent-ring": "#f4a26140",
139
+ "shell-hover": "#ffffff12",
140
+ "shell-active": "#ffffff1f",
141
+ "shell-rule": "#ffffff1a",
142
+ "shell-fill-subtle": "#ffffff14",
143
+ "shell-fill": "#ffffff1f",
144
+ "shell-fill-strong": "#ffffff2e",
145
+ "shell-border": "#ffffff38",
146
+ "shell-border-strong": "#ffffff66"
131
147
  },
132
148
  "dark": {
133
149
  "bg": "#0f1117",
@@ -244,7 +260,23 @@
244
260
  "chart-neutral": "#5d6475",
245
261
  "chart-grid": "#3d4554",
246
262
  "chart-axis": "#515b6e",
247
- "chart-label": "#8a90a0"
263
+ "chart-label": "#8a90a0",
264
+ "shell-bg": "#1f2d5c",
265
+ "shell-bg-deep": "#141e42",
266
+ "shell-bg-raised": "#2c3f7a",
267
+ "shell-text": "#c9d1e6",
268
+ "shell-text-strong": "#ffffff",
269
+ "shell-text-muted": "#8792b4",
270
+ "shell-accent": "#f4a261",
271
+ "shell-accent-ring": "#f4a26140",
272
+ "shell-hover": "#ffffff12",
273
+ "shell-active": "#ffffff1f",
274
+ "shell-rule": "#ffffff1a",
275
+ "shell-fill-subtle": "#ffffff14",
276
+ "shell-fill": "#ffffff1f",
277
+ "shell-fill-strong": "#ffffff2e",
278
+ "shell-border": "#ffffff38",
279
+ "shell-border-strong": "#ffffff66"
248
280
  }
249
281
  },
250
282
  "space": {
package/dist/cli.js CHANGED
@@ -1,4 +1,4 @@
1
1
  import{brand as e}from"./build.js";import{check as t}from"./check.js";import{upgrade as n}from"./upgrade/index.js";import{writeFileSync as r}from"node:fs";var i=`Usage: webority <command>
2
2
  brand [--brand <file>] [--library] [--out <dir>] [--web <scss>] [--phone <ts>] [--check]
3
3
  upgrade <version> [--dry-run] [--app <folder>] [--path <p>]... [--alias <pkg>=<library pkg>]... [--report <path>]
4
- check`,a=[`brand`,`upgrade`,`check`],o=[`generated`,`design-map`,`repo-checks`],s={"--brand":`brand`,"--out":`out`,"--web":`web`,"--phone":`phone`},c=class extends Error{};function l(e){return console.error(e),console.error(i),2}function u(e){if(!(e instanceof Error))throw e;return console.error(e.message),1}function d(e,t,n){let r=[],i={},a=new Set;for(let o=0;o<e.length;o+=1){let s=e[o]??``;if(t.includes(s)){let t=e[o+1];if(t===void 0||t.startsWith(`--`))throw new c(`${s} needs a value.`);i[s]=[...i[s]??[],t],o+=1}else if(n.includes(s))a.add(s);else if(s.startsWith(`--`))throw new c(`Unknown flag ${s}.`);else r.push(s)}return{positionals:r,values:i,flags:a}}function f(e,t){if(e===`brand`){let{positionals:e,values:n,flags:r}=d(t,Object.keys(s),[`--library`,`--check`]);if(e.length>0)throw new c(`brand takes no argument, got ${e[0]}.`);let i={};for(let[e,t]of Object.entries(s)){let r=n[e];r!==void 0&&(i[t]=r.at(-1))}return r.has(`--library`)&&(i.library=!0),r.has(`--check`)&&(i.check=!0),{kind:`brand`,options:i}}if(e===`upgrade`){let{positionals:e,values:n,flags:r}=d(t,[`--path`,`--app`,`--alias`,`--report`],[`--dry-run`]),[i,...a]=e;if(i===void 0)throw new c(`upgrade needs a <version>.`);if(a.length>0)throw new c(`Unexpected argument ${a[0]}.`);let o={version:i};r.has(`--dry-run`)&&(o.dryRun=!0);let s=n[`--alias`];if(s!==void 0){o.aliases={};for(let e of s){let[t,n]=e.split(`=`);if(!t||!n||e.split(`=`).length!==2)throw new c(`--alias takes <pkg>=<library pkg>, got ${e}.`);o.aliases[t]=n}}let l=n[`--report`];if(l!==void 0){if(l.length>1)throw new c(`--report takes one path.`);o.report=l[0]}let u=n[`--app`];if(u!==void 0){if(u.length>1)throw new c(`--app takes one folder.`);if(n[`--path`]!==void 0)throw new c(`--app and --path cannot be combined.`);o.app=u[0]}let f=n[`--path`];return f!==void 0&&(o.paths=f),{kind:`upgrade`,options:o}}if(t.length>0)throw new c(`check takes no arguments, got ${t[0]}.`);return{kind:`check`}}async function p(s,d={brand:e,upgrade:n,check:t}){if(s.includes(`--help`)||s.includes(`-h`))return console.log(i),0;if(s.length===0)return console.error(i),2;let[p=``,...m]=s;if(!a.includes(p))return l(`Unknown command ${p}. Commands: brand, upgrade, check.`);let h;try{h=f(p,m)}catch(e){if(e instanceof c)return l(e.message);throw e}if(h.kind===`brand`){let e;try{e=await d.brand(h.options)}catch(e){return u(e)}for(let t of e.written)console.log(`wrote ${t}`);if(!h.options.check)return 0;for(let t of e.stale)console.log(`stale ${t}`);return+(e.stale.length>0)}if(h.kind===`upgrade`){let{report:e,...t}=h.options,n;try{n=await d.upgrade(t)}catch(e){return u(e)}for(let e of n.hits)console.log(`${e.file}:${e.line} ${e.from} -> ${e.to}`);for(let e of n.choose)console.log(`choose ${e.file}:${e.line} ${e.name}: ${e.hint}`);if(e!==void 0)try{r(e,`${JSON.stringify({hits:n.hits,choose:n.choose,changedFiles:n.changedFiles},null,4)}\n`,`utf8`)}catch(e){return u(e)}return+(n.choose.length>0)}let g;try{g=await d.check()}catch(e){return u(e)}for(let e of o)g.findings.some(t=>t.check===e)||console.log(`ok ${e}`);for(let e of g.findings){let t=e.file?`${e.file}: `:``;console.log(`FAIL ${e.check}: ${t}${e.message}`)}return+(g.findings.length>0)}export{e as brand,t as check,p as run,n as upgrade};
4
+ check`,a=[`brand`,`upgrade`,`check`],o=[`generated`,`design-map`,`repo-checks`],s={"--brand":`brand`,"--out":`out`,"--web":`web`,"--phone":`phone`},c=class extends Error{};function l(e){return console.error(e),console.error(i),2}function u(e){if(!(e instanceof Error))throw e;return console.error(e.message),1}function d(e,t,n){let r=[],i={},a=new Set;for(let o=0;o<e.length;o+=1){let s=e[o]??``;if(t.includes(s)){let t=e[o+1];if(t===void 0||t.startsWith(`--`))throw new c(`${s} needs a value.`);i[s]=[...i[s]??[],t],o+=1}else if(n.includes(s))a.add(s);else if(s.startsWith(`--`))throw new c(`Unknown flag ${s}.`);else r.push(s)}return{positionals:r,values:i,flags:a}}function f(e,t){if(e===`brand`){let{positionals:e,values:n,flags:r}=d(t,Object.keys(s),[`--library`,`--check`]);if(e.length>0)throw new c(`brand takes no argument, got ${e[0]}.`);let i={};for(let[e,t]of Object.entries(s)){let r=n[e]?.at(-1);r!==void 0&&(i[t]=r)}return r.has(`--library`)&&(i.library=!0),r.has(`--check`)&&(i.check=!0),{kind:`brand`,options:i}}if(e===`upgrade`){let{positionals:e,values:n,flags:r}=d(t,[`--path`,`--app`,`--alias`,`--report`],[`--dry-run`]),[i,...a]=e;if(i===void 0)throw new c(`upgrade needs a <version>.`);if(a.length>0)throw new c(`Unexpected argument ${a[0]}.`);let o={version:i};r.has(`--dry-run`)&&(o.dryRun=!0);let s=n[`--alias`];if(s!==void 0){o.aliases={};for(let e of s){let[t,n]=e.split(`=`);if(!t||!n||e.split(`=`).length!==2)throw new c(`--alias takes <pkg>=<library pkg>, got ${e}.`);o.aliases[t]=n}}let l=n[`--report`];if(l!==void 0){if(l.length>1)throw new c(`--report takes one path.`);let e=l[0];e!==void 0&&(o.report=e)}let u=n[`--app`];if(u!==void 0){if(u.length>1)throw new c(`--app takes one folder.`);if(n[`--path`]!==void 0)throw new c(`--app and --path cannot be combined.`);let e=u[0];e!==void 0&&(o.app=e)}let f=n[`--path`];return f!==void 0&&(o.paths=f),{kind:`upgrade`,options:o}}if(t.length>0)throw new c(`check takes no arguments, got ${t[0]}.`);return{kind:`check`}}async function p(s,d={brand:e,upgrade:n,check:t}){if(s.includes(`--help`)||s.includes(`-h`))return console.log(i),0;if(s.length===0)return console.error(i),2;let[p=``,...m]=s;if(!a.includes(p))return l(`Unknown command ${p}. Commands: brand, upgrade, check.`);let h;try{h=f(p,m)}catch(e){if(e instanceof c)return l(e.message);throw e}if(h.kind===`brand`){let e;try{e=await d.brand(h.options)}catch(e){return u(e)}for(let t of e.written)console.log(`wrote ${t}`);if(!h.options.check)return 0;for(let t of e.stale)console.log(`stale ${t}`);return+(e.stale.length>0)}if(h.kind===`upgrade`){let{report:e,...t}=h.options,n;try{n=await d.upgrade(t)}catch(e){return u(e)}for(let e of n.hits)console.log(`${e.file}:${e.line} ${e.from} -> ${e.to}`);for(let e of n.choose)console.log(`choose ${e.file}:${e.line} ${e.name}: ${e.hint}`);if(e!==void 0)try{r(e,`${JSON.stringify({hits:n.hits,choose:n.choose,changedFiles:n.changedFiles},null,4)}\n`,`utf8`)}catch(e){return u(e)}return+(n.choose.length>0)}let g;try{g=await d.check()}catch(e){return u(e)}for(let e of o)g.findings.some(t=>t.check===e)||console.log(`ok ${e}`);for(let e of g.findings){let t=e.file?`${e.file}: `:``;console.log(`FAIL ${e.check}: ${t}${e.message}`)}return+(g.findings.length>0)}export{e as brand,t as check,p as run,n as upgrade};
package/dist/emit/web.js CHANGED
@@ -1,4 +1,4 @@
1
- import{isObjectLike as e}from"../guards.js";import{BREAKPOINT_PX as t,TOUCH_MEDIA as n,breakpointRules as r,fluidLength as i,touchValue as a}from"../model/length.js";import{cssVarOfPath as o}from"../names.js";import{present as s}from"../present.js";var c={mode:`light`,platform:`web`,width:1440},l={mode:`dark`,platform:`web`,width:1440},u={mode:`light`,platform:`web`,width:390},d=/\{([a-z0-9-]+(?:\.[a-z0-9-]+)+)\}/g,ee=/^\{([a-z0-9-]+(?:\.[a-z0-9-]+)+)\}$/,te=/^#[0-9a-f]{6}$/i,f=[[`--bs-body-color`,`text`],[`--bs-emphasis-color`,`text`],[`--bs-secondary-color`,`text-muted`],[`--bs-tertiary-color`,`text-subtle`],[`--bs-heading-color`,`text`],[`--bs-body-bg`,`bg`],[`--bs-border-color`,`border`],[`--bs-secondary-bg`,`surface`],[`--bs-tertiary-bg`,`bg-muted`],[`--bs-primary`,`primary`]],p=[[`--bs-body-bg-rgb`,`bg`],[`--bs-primary-rgb`,`primary`],[`--bs-body-color-rgb`,`text`],[`--bs-emphasis-color-rgb`,`text`],[`--bs-secondary-color-rgb`,`text-muted`],[`--bs-tertiary-color-rgb`,`text-subtle`],[`--bs-secondary-bg-rgb`,`surface`],[`--bs-tertiary-bg-rgb`,`bg-muted`],[`--bs-border-color-rgb`,`border`]],ne=[[`--bs-secondary-rgb`,`text-muted`]],m=[[`$body-color`,`color.text-body`],[`$body-secondary-color`,`color.text-muted`],[`$body-tertiary-color`,`color.text-subtle`],[`$body-secondary-bg`,`color.bg-subtle`],[`$body-tertiary-bg`,`color.bg-muted`],[`$border-color`,`color.border`],[`$border-color-translucent`,null],[`$border-radius`,`radius.md`],[`$border-radius-sm`,`radius.sm`],[`$border-radius-lg`,`radius.lg`],[`$border-radius-pill`,`radius.pill`],[`$wui-shadow-overlay`,`shadow.popover`],[`$wui-shadow-overlay-lg`,`shadow.modal`],[`$link-color`,`color.link`],[`$line-height-base`,`leading.body`],[`$headings-line-height`,`leading.heading`],[`$display-line-height`,`leading.display`]],h=[[`$primary`,`color.primary`]],g={"$border-color-translucent":`rgba(13, 24, 43, 0.08)`},_=[`color.link`,`color.primary-hover`],re=`:root[data-theme="dark"],
1
+ import{isObjectLike as e}from"../guards.js";import{BREAKPOINT_PX as t,TOUCH_MEDIA as n,breakpointRules as r,fluidLength as i,touchValue as a}from"../model/length.js";import{cssVarOfPath as o}from"../names.js";import{present as s}from"../present.js";var c={mode:`light`,platform:`web`,width:1440},l={mode:`dark`,platform:`web`,width:1440},u={mode:`light`,platform:`web`,width:390},d=/\{([a-z0-9-]+(?:\.[a-z0-9-]+)+)\}/g,ee=/^\{([a-z0-9-]+(?:\.[a-z0-9-]+)+)\}$/,te=/^#[0-9a-f]{6}$/i,f=[[`--bs-body-color`,`text`],[`--bs-emphasis-color`,`text`],[`--bs-secondary-color`,`text-muted`],[`--bs-tertiary-color`,`text-subtle`],[`--bs-heading-color`,`text`],[`--bs-body-bg`,`bg`],[`--bs-border-color`,`border`],[`--bs-secondary-bg`,`surface`],[`--bs-tertiary-bg`,`bg-muted`],[`--bs-primary`,`primary`]],p=[[`--bs-body-bg-rgb`,`bg`],[`--bs-primary-rgb`,`primary`],[`--bs-body-color-rgb`,`text`],[`--bs-emphasis-color-rgb`,`text`],[`--bs-secondary-color-rgb`,`text-muted`],[`--bs-tertiary-color-rgb`,`text-subtle`],[`--bs-secondary-bg-rgb`,`surface`],[`--bs-tertiary-bg-rgb`,`bg-muted`],[`--bs-border-color-rgb`,`border`]],ne=[[`--bs-secondary-rgb`,`text-muted`]],m=[[`$body-color`,`color.text-body`],[`$body-secondary-color`,`color.text-muted`],[`$body-tertiary-color`,`color.text-subtle`],[`$body-secondary-bg`,`color.bg-subtle`],[`$body-tertiary-bg`,`color.bg-muted`],[`$border-color`,`color.border`],[`$border-color-translucent`,null],[`$border-radius`,`radius.md`],[`$border-radius-sm`,`radius.sm`],[`$border-radius-lg`,`radius.lg`],[`$border-radius-pill`,`radius.pill`],[`$wui-shadow-overlay`,`shadow.popover`],[`$wui-shadow-overlay-lg`,`shadow.modal`],[`$line-height-base`,`leading.body`],[`$headings-line-height`,`leading.heading`],[`$display-line-height`,`leading.display`]],h=[[`$primary`,`color.primary`],[`$link-color`,`color.link`]],g={"$border-color-translucent":`rgba(13, 24, 43, 0.08)`},_=[`color.link`,`color.primary-hover`],re=`:root[data-theme="dark"],
2
2
  :root[data-bs-theme="dark"]`,v=`[data-theme="dark"]:not(:root),
3
3
  [data-bs-theme="dark"]:not(:root)`,ie=`:root[data-theme="auto"]`,y=`:root[data-theme="dark"] [data-theme="light"],
4
4
  :root[data-theme="dark"] [data-bs-theme="light"],
@@ -20,5 +20,5 @@ import{isObjectLike as e}from"../guards.js";import{BREAKPOINT_PX as t,TOUCH_MEDI
20
20
  `)}function Y(e,t,n=!1){let{package:r,version:i,brand:a}=e.source,o=t?`Generated by ${r} ${i} for the ${a} brand. Do not edit; run webority brand.`:`Generated by ${r} ${i} from its token source. Do not edit; run webority brand --library.`;return n?`/* ${o} */`:`// ${o}`}function X(e,r){let i=P(e),o=new Map((r?P(r):[]).map(e=>[e.path,e])),s=[],l=i.filter(e=>o.get(e.path)?.root!==e.root).map(e=>`${e.name}: ${e.root};`);r&&(l.push(...R(e,r,c).map(e=>`${e.name}: ${e.text};`)),l.push(...B(e,r,c).map(e=>`${e.name}: ${e.text};`)),l.push(...K(e,r).map(e=>`${e.name}: ${e.text};`))),l.length>0&&s.push(q(`:root`,l));for(let[e,n]of Object.entries(t)){let t=[];for(let n of i)for(let r of n.tiers)r.tier===e&&o.get(n.path)?.tiers.find(t=>t.tier===e)?.text!==r.text&&t.push(`${n.name}: ${r.text};`);t.length>0&&s.push(q(`@media (min-width: ${n}px)`,[q(`:root`,t)]))}let u=[];for(let t of i){let n=k(e,t.path),i=a(n);if(i===null)continue;let o=A(n,i),s=r?.tokens.get(t.path),c=s?a(s):null;s&&c!==null&&A(s,c)===o||u.push(`${t.name}: ${o};`)}u.length>0&&s.push(q(`@media ${n}`,[q(`:root`,u)]));let d=W(e,r);if(d.length>0){let t=d.map(e=>`${e.name}: ${e.text};`),n=r?T:w;s.push(q(re,[...t,`color-scheme: dark;`]),q(v,t),`${n}\n${q(J(v),[`color-scheme: dark;`,`color: var(--color-text);`])}`);let i=d.map(e=>e.name.slice(2));if(r){let e=new Set(W(r,null).map(e=>e.name.slice(2))),t=i.filter(t=>!e.has(t));t.length>0&&s.push(le(t))}else s.push(ce(i));s.push(q(`@media (prefers-color-scheme: dark)`,[q(ie,[...t,`color-scheme: dark;`])])),s.push(...se(oe(e,r),r!==null))}return`${[Y(e,r!==null,r!==null),...s].join(`
21
21
 
22
22
  `)}\n`}function Z(e,t){let n=k(e,t);if(n.type===`color`)return String(e.resolvedIn(t,c));let r=e.valueIn(t,c),i=(typeof r==`string`?ee.exec(r):null)?.[1];if(i!==void 0)return Z(e,i);let a=A(n,r);if(a.includes(`var(`))throw Error(`emitWeb: ${t}: a Bootstrap variable needs a literal.`);return a}function Q(e,t,n){return n===null?g[t]:Z(e,n)}function $(e){let t=m.map(([t,n])=>`${t}: ${String(Q(e,t,n))} !default;`);return`${[Y(e,!1),...t].join(`
23
- `)}\n`}function ue(e,t){let n=[...h,...m].filter(([n,r])=>Q(e,n,r)!==Q(t,n,r)).map(([t,n])=>`${t}: ${String(Q(e,t,n))};`);return`${[Y(e,!0),...n].join(`
23
+ `)}\n`}function ue(e,t){let n=[...h,...m].filter(([n,r])=>Q(e,n,r)!==Q(t,n,r)),r=n.map(([t,n])=>`${t}: ${String(Q(e,t,n))};`),i=n.map(([e])=>e),a=i.length===0?[]:[`@use "@webority/theme/scss/config" with (`,...i.map((e,t)=>` ${e}: ${e}${t<i.length-1?`,`:``}`),`);`];return`${[Y(e,!0),...r,...a].join(`
24
24
  `)}\n`}function de(e,t){return t===void 0?{tokens:X(e,null),bootstrap:$(e)}:{css:X(e,t.library),variables:ue(e,t.library)}}export{de as emitWeb};
@@ -2,7 +2,7 @@
2
2
  "format": "webority-meanings/1",
3
3
  "source": {
4
4
  "package": "@webority/tokens",
5
- "version": "0.150.0"
5
+ "version": "0.153.0"
6
6
  },
7
7
  "color": {
8
8
  "bg": {
@@ -959,6 +959,102 @@
959
959
  "platforms": [
960
960
  "phone"
961
961
  ]
962
+ },
963
+ "shell-bg": {
964
+ "description": "Dark navigation shell background, the sidebar behind the nav items and the workspace switcher.",
965
+ "platforms": [
966
+ "web"
967
+ ]
968
+ },
969
+ "shell-bg-deep": {
970
+ "description": "Deepest shell tone, the ink on an accent mark or an avatar in the shell.",
971
+ "platforms": [
972
+ "web"
973
+ ]
974
+ },
975
+ "shell-bg-raised": {
976
+ "description": "Raised shell band, the fill of the active page row inside an open group.",
977
+ "platforms": [
978
+ "web"
979
+ ]
980
+ },
981
+ "shell-text": {
982
+ "description": "Body text and nav item labels on the dark shell.",
983
+ "platforms": [
984
+ "web"
985
+ ]
986
+ },
987
+ "shell-text-strong": {
988
+ "description": "Emphasis text on the dark shell: the brand name, hovered and open rows, the switcher label.",
989
+ "platforms": [
990
+ "web"
991
+ ]
992
+ },
993
+ "shell-text-muted": {
994
+ "description": "Quiet text on the dark shell: group labels, nav icons, carets and the sidebar toggle.",
995
+ "platforms": [
996
+ "web"
997
+ ]
998
+ },
999
+ "shell-accent": {
1000
+ "description": "Warm accent on the dark shell that marks where the user is: the active icon, the open group's guide line, the focus outline and the avatar.",
1001
+ "platforms": [
1002
+ "web"
1003
+ ]
1004
+ },
1005
+ "shell-accent-ring": {
1006
+ "description": "Translucent accent halo on the dark shell, for a selection or focus ring.",
1007
+ "platforms": [
1008
+ "web"
1009
+ ]
1010
+ },
1011
+ "shell-hover": {
1012
+ "description": "Hover fill for a nav row or the sidebar toggle on the dark shell.",
1013
+ "platforms": [
1014
+ "web"
1015
+ ]
1016
+ },
1017
+ "shell-active": {
1018
+ "description": "Fill of the active nav row on the dark shell.",
1019
+ "platforms": [
1020
+ "web"
1021
+ ]
1022
+ },
1023
+ "shell-rule": {
1024
+ "description": "Hairline divider between shell groups and under the shell brand.",
1025
+ "platforms": [
1026
+ "web"
1027
+ ]
1028
+ },
1029
+ "shell-fill-subtle": {
1030
+ "description": "Faint translucent fill on the dark shell, for the open group band and the workspace switcher pill.",
1031
+ "platforms": [
1032
+ "web"
1033
+ ]
1034
+ },
1035
+ "shell-fill": {
1036
+ "description": "Translucent fill for a badge and a focused or open switcher on the dark shell.",
1037
+ "platforms": [
1038
+ "web"
1039
+ ]
1040
+ },
1041
+ "shell-fill-strong": {
1042
+ "description": "Strongest translucent fill on the dark shell, for a control that is held.",
1043
+ "platforms": [
1044
+ "web"
1045
+ ]
1046
+ },
1047
+ "shell-border": {
1048
+ "description": "Border of a control on the dark shell, shown on hover.",
1049
+ "platforms": [
1050
+ "web"
1051
+ ]
1052
+ },
1053
+ "shell-border-strong": {
1054
+ "description": "Border of a focused or open control on the dark shell.",
1055
+ "platforms": [
1056
+ "web"
1057
+ ]
962
1058
  }
963
1059
  }
964
1060
  }
@@ -1075,6 +1075,150 @@
1075
1075
  "platforms": ["phone"]
1076
1076
  }
1077
1077
  }
1078
+ },
1079
+ "shell-bg": {
1080
+ "$value": "#1f2d5c",
1081
+ "$description": "Dark navigation shell background, the sidebar behind the nav items and the workspace switcher.",
1082
+ "$extensions": {
1083
+ "com.webority": {
1084
+ "platforms": ["web"]
1085
+ }
1086
+ }
1087
+ },
1088
+ "shell-bg-deep": {
1089
+ "$value": "#141e42",
1090
+ "$description": "Deepest shell tone, the ink on an accent mark or an avatar in the shell.",
1091
+ "$extensions": {
1092
+ "com.webority": {
1093
+ "platforms": ["web"]
1094
+ }
1095
+ }
1096
+ },
1097
+ "shell-bg-raised": {
1098
+ "$value": "#2c3f7a",
1099
+ "$description": "Raised shell band, the fill of the active page row inside an open group.",
1100
+ "$extensions": {
1101
+ "com.webority": {
1102
+ "platforms": ["web"]
1103
+ }
1104
+ }
1105
+ },
1106
+ "shell-text": {
1107
+ "$value": "#c9d1e6",
1108
+ "$description": "Body text and nav item labels on the dark shell.",
1109
+ "$extensions": {
1110
+ "com.webority": {
1111
+ "platforms": ["web"]
1112
+ }
1113
+ }
1114
+ },
1115
+ "shell-text-strong": {
1116
+ "$value": "#FFFFFF",
1117
+ "$description": "Emphasis text on the dark shell: the brand name, hovered and open rows, the switcher label.",
1118
+ "$extensions": {
1119
+ "com.webority": {
1120
+ "platforms": ["web"]
1121
+ }
1122
+ }
1123
+ },
1124
+ "shell-text-muted": {
1125
+ "$value": "#8792b4",
1126
+ "$description": "Quiet text on the dark shell: group labels, nav icons, carets and the sidebar toggle.",
1127
+ "$extensions": {
1128
+ "com.webority": {
1129
+ "platforms": ["web"]
1130
+ }
1131
+ }
1132
+ },
1133
+ "shell-accent": {
1134
+ "$value": "#f4a261",
1135
+ "$description": "Warm accent on the dark shell that marks where the user is: the active icon, the open group's guide line, the focus outline and the avatar.",
1136
+ "$extensions": {
1137
+ "com.webority": {
1138
+ "platforms": ["web"]
1139
+ }
1140
+ }
1141
+ },
1142
+ "shell-accent-ring": {
1143
+ "$value": "color-mix(in srgb, #f4a261 25%, transparent)",
1144
+ "$description": "Translucent accent halo on the dark shell, for a selection or focus ring.",
1145
+ "$extensions": {
1146
+ "com.webority": {
1147
+ "platforms": ["web"]
1148
+ }
1149
+ }
1150
+ },
1151
+ "shell-hover": {
1152
+ "$value": "color-mix(in srgb, #FFFFFF 7%, transparent)",
1153
+ "$description": "Hover fill for a nav row or the sidebar toggle on the dark shell.",
1154
+ "$extensions": {
1155
+ "com.webority": {
1156
+ "platforms": ["web"]
1157
+ }
1158
+ }
1159
+ },
1160
+ "shell-active": {
1161
+ "$value": "color-mix(in srgb, #FFFFFF 12%, transparent)",
1162
+ "$description": "Fill of the active nav row on the dark shell.",
1163
+ "$extensions": {
1164
+ "com.webority": {
1165
+ "platforms": ["web"]
1166
+ }
1167
+ }
1168
+ },
1169
+ "shell-rule": {
1170
+ "$value": "color-mix(in srgb, #FFFFFF 10%, transparent)",
1171
+ "$description": "Hairline divider between shell groups and under the shell brand.",
1172
+ "$extensions": {
1173
+ "com.webority": {
1174
+ "platforms": ["web"]
1175
+ }
1176
+ }
1177
+ },
1178
+ "shell-fill-subtle": {
1179
+ "$value": "color-mix(in srgb, #FFFFFF 8%, transparent)",
1180
+ "$description": "Faint translucent fill on the dark shell, for the open group band and the workspace switcher pill.",
1181
+ "$extensions": {
1182
+ "com.webority": {
1183
+ "platforms": ["web"]
1184
+ }
1185
+ }
1186
+ },
1187
+ "shell-fill": {
1188
+ "$value": "color-mix(in srgb, #FFFFFF 12%, transparent)",
1189
+ "$description": "Translucent fill for a badge and a focused or open switcher on the dark shell.",
1190
+ "$extensions": {
1191
+ "com.webority": {
1192
+ "platforms": ["web"]
1193
+ }
1194
+ }
1195
+ },
1196
+ "shell-fill-strong": {
1197
+ "$value": "color-mix(in srgb, #FFFFFF 18%, transparent)",
1198
+ "$description": "Strongest translucent fill on the dark shell, for a control that is held.",
1199
+ "$extensions": {
1200
+ "com.webority": {
1201
+ "platforms": ["web"]
1202
+ }
1203
+ }
1204
+ },
1205
+ "shell-border": {
1206
+ "$value": "color-mix(in srgb, #FFFFFF 22%, transparent)",
1207
+ "$description": "Border of a control on the dark shell, shown on hover.",
1208
+ "$extensions": {
1209
+ "com.webority": {
1210
+ "platforms": ["web"]
1211
+ }
1212
+ }
1213
+ },
1214
+ "shell-border-strong": {
1215
+ "$value": "color-mix(in srgb, #FFFFFF 40%, transparent)",
1216
+ "$description": "Border of a focused or open control on the dark shell.",
1217
+ "$extensions": {
1218
+ "com.webority": {
1219
+ "platforms": ["web"]
1220
+ }
1221
+ }
1078
1222
  }
1079
1223
  },
1080
1224
  "effect": {
@@ -768,7 +768,7 @@
768
768
  },
769
769
  "phone-link": {
770
770
  "$type": "color",
771
- "$value": "#5B5BD6",
771
+ "$value": "#4F46E5",
772
772
  "$extensions": {
773
773
  "com.webority": {
774
774
  "platforms": ["phone"]
@@ -795,7 +795,7 @@
795
795
  },
796
796
  "phone-focus-ring": {
797
797
  "$type": "color",
798
- "$value": "#5B5BD6",
798
+ "$value": "#4F46E5",
799
799
  "$extensions": {
800
800
  "com.webority": {
801
801
  "platforms": ["phone"]
@@ -849,7 +849,7 @@
849
849
  },
850
850
  "phone-primary": {
851
851
  "$type": "color",
852
- "$value": "#5B5BD6",
852
+ "$value": "#4F46E5",
853
853
  "$extensions": {
854
854
  "com.webority": {
855
855
  "platforms": ["phone"]
@@ -858,7 +858,7 @@
858
858
  },
859
859
  "phone-primary-hover": {
860
860
  "$type": "color",
861
- "$value": "#4F4FBF",
861
+ "$value": "#4338CA",
862
862
  "$extensions": {
863
863
  "com.webority": {
864
864
  "platforms": ["phone"]
@@ -867,7 +867,7 @@
867
867
  },
868
868
  "phone-primary-soft": {
869
869
  "$type": "color",
870
- "$value": "#EEEEFC",
870
+ "$value": "#E0E7FF",
871
871
  "$extensions": {
872
872
  "com.webority": {
873
873
  "platforms": ["phone"]
@@ -876,7 +876,7 @@
876
876
  },
877
877
  "phone-primary-text": {
878
878
  "$type": "color",
879
- "$value": "#4F4FD3",
879
+ "$value": "#4F46E5",
880
880
  "$extensions": {
881
881
  "com.webority": {
882
882
  "platforms": ["phone"]
@@ -1038,7 +1038,7 @@
1038
1038
  },
1039
1039
  "phone-primary-pressed": {
1040
1040
  "$type": "color",
1041
- "$value": "#4040A8",
1041
+ "$value": "#3730A3",
1042
1042
  "$extensions": {
1043
1043
  "com.webority": {
1044
1044
  "platforms": ["phone"]
@@ -1083,7 +1083,7 @@
1083
1083
  },
1084
1084
  "phone-surface-selected": {
1085
1085
  "$type": "color",
1086
- "$value": "rgba(91, 91, 214, 0.1)",
1086
+ "$value": "rgba(79, 70, 229, 0.1)",
1087
1087
  "$extensions": {
1088
1088
  "com.webority": {
1089
1089
  "platforms": ["phone"]
@@ -1272,7 +1272,7 @@
1272
1272
  },
1273
1273
  "phone-avatar-1": {
1274
1274
  "$type": "color",
1275
- "$value": "#5B5BD6",
1275
+ "$value": "#4F46E5",
1276
1276
  "$extensions": {
1277
1277
  "com.webority": {
1278
1278
  "platforms": ["phone"]
@@ -586,6 +586,16 @@
586
586
  "platforms": ["web"]
587
587
  }
588
588
  }
589
+ },
590
+ "linear": {
591
+ "$type": "cubicBezier",
592
+ "$value": [0, 0, 1, 1],
593
+ "$description": "Constant-speed curve for spinners, marquees and scroll-linked motion.",
594
+ "$extensions": {
595
+ "com.webority": {
596
+ "platforms": ["web"]
597
+ }
598
+ }
589
599
  }
590
600
  }
591
601
  },
@@ -664,6 +674,19 @@
664
674
  }
665
675
  }
666
676
  },
677
+ "touch-target": {
678
+ "$type": "dimension",
679
+ "$value": {
680
+ "value": 44,
681
+ "unit": "px"
682
+ },
683
+ "$description": "Smallest tap area of a button on a touch screen; small, text and icon-only buttons grow to it.",
684
+ "$extensions": {
685
+ "com.webority": {
686
+ "platforms": ["web"]
687
+ }
688
+ }
689
+ },
667
690
  "container-max": {
668
691
  "$type": "dimension",
669
692
  "$value": {
@@ -683,16 +706,30 @@
683
706
  "value": 88,
684
707
  "unit": "px"
685
708
  },
686
- "$description": "Side padding of the page container at desktop width.",
709
+ "$description": "Side padding of the page container: 24px on a phone, 64px from 768px, 88px from 1200px.",
687
710
  "$extensions": {
688
711
  "com.webority": {
689
712
  "platforms": ["web"],
690
713
  "breakpoints": {
691
- "md": "{space.4xl}"
714
+ "md": "{space.4xl}",
715
+ "xl": "{size.container-pad-xl}"
692
716
  }
693
717
  }
694
718
  }
695
719
  },
720
+ "container-pad-xl": {
721
+ "$type": "dimension",
722
+ "$value": {
723
+ "value": 88,
724
+ "unit": "px"
725
+ },
726
+ "$description": "Side padding the page container takes from 1200px; no space step is 88px.",
727
+ "$extensions": {
728
+ "com.webority": {
729
+ "platforms": ["web"]
730
+ }
731
+ }
732
+ },
696
733
  "table-pad": {
697
734
  "$type": "dimension",
698
735
  "$value": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webority/tokens",
3
- "version": "0.150.0",
3
+ "version": "0.153.0",
4
4
  "description": "The Webority design tokens in one W3C Design Tokens source (palette, scale, meaning and component tiers, with light and dark, web and phone, and 390 and 1440 widths), and the webority command that brands a product, upgrades it between releases and checks it against the token source.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "type": "module",
@@ -41,6 +41,7 @@
41
41
  "devDependencies": {
42
42
  "@babel/types": "7.29.8",
43
43
  "@types/node": "25.6.0",
44
+ "@webority/biome-config": "0.153.0",
44
45
  "ajv": "8.20.0",
45
46
  "typescript": "^7.0.2",
46
47
  "vite": "^8.3.6"
@@ -558,6 +558,21 @@
558
558
  "hint": "AppDropdown item or confirm() request: danger: true is now tone: \"danger\"",
559
559
  "importedFrom": "@webority/ui-react"
560
560
  },
561
+ {
562
+ "pattern": "\\bshow\\s*:",
563
+ "hint": "show is now open on AppDropdown, AppPopover, AppModal and AppTooltip: an object key, spread or props map that sets show: keeps the component closed on 0.130.0; rename the key to open",
564
+ "importedFrom": "@webority/ui-react"
565
+ },
566
+ {
567
+ "pattern": "\\bonToggle\\s*:",
568
+ "hint": "onToggle is now onOpenChange on AppDropdown and AppPopover: an object key, spread or props map that sets onToggle: is ignored on 0.130.0; rename the key to onOpenChange",
569
+ "importedFrom": "@webority/ui-react"
570
+ },
571
+ {
572
+ "pattern": "\\bonHide\\s*:",
573
+ "hint": "onHide is now onClose on AppModal: an object key, spread or props map that sets onHide: is ignored on 0.130.0; rename the key to onClose. AppTooltip has no close callback; AppDropdown and AppPopover use onOpenChange",
574
+ "importedFrom": "@webority/ui-react"
575
+ },
561
576
  {
562
577
  "pattern": "\\bAVATAR_ACCEPT\\b",
563
578
  "hint": "AVATAR_ACCEPT is no longer exported from the @webority/ui-elements root in 0.130.0; import it from the module that owns it",
@@ -0,0 +1,30 @@
1
+ {
2
+ "version": "0.152.0",
3
+ "css": {
4
+ "rename": [],
5
+ "reads": [],
6
+ "choose": {},
7
+ "checkRole": []
8
+ },
9
+ "classes": [],
10
+ "themeReads": [],
11
+ "props": [],
12
+ "propValues": [],
13
+ "propSplits": [],
14
+ "razorAttributes": [],
15
+ "componentProps": [],
16
+ "valueSplits": [],
17
+ "components": [],
18
+ "razorValueSplits": [
19
+ {
20
+ "tags": ["app-button", "app-action-icon"],
21
+ "attribute": "confirm-danger",
22
+ "values": {
23
+ "true": { "confirm-tone": "danger" },
24
+ "false": {}
25
+ },
26
+ "flag": "confirm-danger is now confirm-tone=\"danger\"; set the new attribute by hand"
27
+ }
28
+ ],
29
+ "razorTags": []
30
+ }