@beehexa/design-tokens 2611.3.2 → 2611.3.3

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
@@ -1,6 +1,6 @@
1
1
  # @beehexa/design-tokens
2
2
 
3
- Source-checkout development package (`0.0.0`, `private: true`), not a registry release number. Managers must authorize a release before the GitHub runner stamps the real version. CI stages checked tarballs; npm maintainer approval with 2FA is required before publication.
3
+ Source-checkout development package (`0.0.0`, `private: true`), not a registry release number. Managers must authorize a release before the GitHub runner stamps the real version and publishes checked tarballs through npm Trusted Publishing/OIDC.
4
4
 
5
5
  ## Use the installed package
6
6
 
@@ -28,6 +28,7 @@ const spacing: TokenName = 'space.200';
28
28
  - Generated declarations preserve literal token keys and values. `TokenName` is `keyof typeof tokens.light`; a misspelled key is not widened into `Record<string, string>`.
29
29
  - `@beehexa/design-tokens/css` retains native `rem`. It defines `--bh-*` on `:root`, honors explicit `data-theme="light"`/`"dark"`, uses system dark preference only without an explicit light selection, and applies Vietnamese typography via `:lang(vi)` with resets on other explicit languages. It does not set the application's root font size.
30
30
  - `@beehexa/design-tokens/css/pixels` uses the identical generator and selectors, converting every `rem` literal to pixels at **16 px per rem**, including compound values. Import this instead of, not alongside, native CSS when integrating the dashboard's current 14px root. This compatibility choice is migration debt, not a 14px design-scale exemption or permission to change token values.
31
+ - Both CSS subpaths include package-owned side-effect declarations, so strict TypeScript consumers with `noUncheckedSideEffectImports` need no ambient module shims. The runtime exports still resolve to the actual CSS files.
31
32
  - `@beehexa/design-tokens/dtcg/color.json` (and every other original `tokens/*.json`) exposes the unchanged source data.
32
33
  - `@beehexa/design-tokens/package.json` exposes installed origin/version metadata.
33
34
 
package/dist/css.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ // CSS is imported for side effects only; no JavaScript bindings.
2
+ export {};
package/package.json CHANGED
@@ -1,7 +1,12 @@
1
1
  {
2
2
  "name": "@beehexa/design-tokens",
3
- "version": "2611.3.2",
3
+ "version": "2611.3.3",
4
4
  "description": "Beehexa design tokens generated from the authoritative DTCG source",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/beehexacorp/beehexa.design.git",
8
+ "directory": "packages/design-tokens"
9
+ },
5
10
  "type": "module",
6
11
  "main": "./dist/index.js",
7
12
  "types": "./dist/index.d.ts",
@@ -17,8 +22,14 @@
17
22
  "types": "./dist/index.d.ts",
18
23
  "import": "./dist/index.js"
19
24
  },
20
- "./css": "./dist/tokens.css",
21
- "./css/pixels": "./dist/tokens.pixels.css",
25
+ "./css": {
26
+ "types": "./dist/css.d.ts",
27
+ "default": "./dist/tokens.css"
28
+ },
29
+ "./css/pixels": {
30
+ "types": "./dist/css.d.ts",
31
+ "default": "./dist/tokens.pixels.css"
32
+ },
22
33
  "./dtcg/*": "./dist/dtcg/*",
23
34
  "./package.json": "./package.json"
24
35
  },