@astryxdesign/cli 0.1.4-canary.fd7ab46 → 0.1.4-canary.ff77e1c

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astryxdesign/cli",
3
- "version": "0.1.4-canary.fd7ab46",
3
+ "version": "0.1.4-canary.ff77e1c",
4
4
  "displayName": "CLI",
5
5
  "description": "Scaffold projects, browse templates, generate themes, and get agent-ready docs from the command line.",
6
6
  "author": "Meta Open Source",
@@ -75,10 +75,10 @@
75
75
  "zod": "^4.4.3"
76
76
  },
77
77
  "peerDependencies": {
78
- "@astryxdesign/charts": "0.1.4-canary.fd7ab46",
79
- "@astryxdesign/core": "0.1.4-canary.fd7ab46",
80
- "@astryxdesign/lab": "0.1.4-canary.fd7ab46",
81
- "@astryxdesign/theme-neutral": "0.1.4-canary.fd7ab46",
78
+ "@astryxdesign/charts": "0.1.4-canary.ff77e1c",
79
+ "@astryxdesign/core": "0.1.4-canary.ff77e1c",
80
+ "@astryxdesign/lab": "0.1.4-canary.ff77e1c",
81
+ "@astryxdesign/theme-neutral": "0.1.4-canary.ff77e1c",
82
82
  "gpt-tokenizer": "^3.4.0"
83
83
  },
84
84
  "peerDependenciesMeta": {
@@ -96,10 +96,10 @@
96
96
  }
97
97
  },
98
98
  "devDependencies": {
99
- "@astryxdesign/charts": "0.1.4-canary.fd7ab46",
100
- "@astryxdesign/core": "0.1.4-canary.fd7ab46",
101
- "@astryxdesign/lab": "0.1.4-canary.fd7ab46",
102
- "@astryxdesign/theme-neutral": "0.1.4-canary.fd7ab46",
99
+ "@astryxdesign/charts": "0.1.4-canary.ff77e1c",
100
+ "@astryxdesign/core": "0.1.4-canary.ff77e1c",
101
+ "@astryxdesign/lab": "0.1.4-canary.ff77e1c",
102
+ "@astryxdesign/theme-neutral": "0.1.4-canary.ff77e1c",
103
103
  "gpt-tokenizer": "^3.4.0"
104
104
  },
105
105
  "scripts": {
@@ -939,15 +939,9 @@ export function registerTheme(program) {
939
939
  if (component.length > 0) {
940
940
  const componentInner = component.join('\n\n');
941
941
  const componentScope = `@scope (${scopeSelector}) to (${scopeTo}) {\n${componentInner}\n}`;
942
- // light-dark() needs a color-scheme declaration in this bundle, but a
943
- // bare `:root { color-scheme: light dark }` outranks reset.css's
944
- // `html[data-theme]` mapping (astryx-theme layer comes after reset),
945
- // silently defeating `<Theme mode>` forcing on <html>. Mirror the
946
- // attribute-keyed mapping so the declaration follows the active mode.
942
+ // #3658: also emit attribute-specific rules so <Theme mode> can override color-scheme
947
943
  const colorSchemeDecl = componentScope.includes('light-dark(')
948
- ? ' :root { color-scheme: light dark; }\n' +
949
- ' html[data-theme="light"] { color-scheme: light; }\n' +
950
- ' html[data-theme="dark"] { color-scheme: dark; }\n\n'
944
+ ? ' :root { color-scheme: light dark; }\n html[data-theme="light"] { color-scheme: light; }\n html[data-theme="dark"] { color-scheme: dark; }\n\n'
951
945
  : '';
952
946
  cssParts.push(
953
947
  `@layer astryx-theme {\n${colorSchemeDecl}${componentScope}\n}`,