@bolerish/tokens 0.12.0 → 0.13.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 ADDED
@@ -0,0 +1,17 @@
1
+ # @bolerish/tokens
2
+
3
+ ## 0.13.0
4
+
5
+ ### Patch Changes
6
+
7
+ - 67a2652: Keep the token release aligned with `@bolerish/ui` through their fixed release
8
+ group. Exported token names and runtime CSS variable names remain stable;
9
+ existing token imports require no migration.
10
+
11
+ Move palette conversion and generation tools into the token package for
12
+ maintainers. Exclude these authoring tools, colocated tests and test support from
13
+ the published package while retaining the token source exports.
14
+ - Make standard surface borders easier to distinguish with black at 10% in light
15
+ mode and white at 12% in dark mode. Existing `strokeDefault` consumers receive
16
+ the revised boundaries without changing imports. Control, focus and interaction
17
+ tokens retain their existing roles and values.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bolerish/tokens",
3
- "version": "0.12.0",
3
+ "version": "0.13.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,6 +26,9 @@
26
26
  "@stylexjs/stylex": "^0.19.0"
27
27
  },
28
28
  "scripts": {
29
+ "palette:check": "node --experimental-strip-types palette/generate-palette.ts --check",
30
+ "palette:generate": "node --experimental-strip-types palette/generate-palette.ts",
31
+ "test": "node --experimental-strip-types --experimental-vm-modules --test palette/*.test.ts src/*.test.ts",
29
32
  "typecheck": "tsc --noEmit"
30
33
  }
31
34
  }
@@ -1,6 +1,6 @@
1
1
  import * as stylex from "@stylexjs/stylex";
2
2
 
3
- /** Keep focus strokes, 24px icon-xs controls and touch targets independent of density. */
3
+ /** Keep focus strokes, 24px controlXs controls and touch targets independent of density. */
4
4
  export const densityStyles = stylex.create({
5
5
  default: { "--bolerish-density": 1 },
6
6
  compact: { "--bolerish-density": 0.875 },
@@ -37,7 +37,7 @@ export const colorVars = stylex.defineVars({
37
37
  fgFeedbackSuccess: colorPalette.greenFeedback,
38
38
  fgFeedbackWarning: colorPalette.yellowFeedback,
39
39
  fgFeedbackError: colorPalette.redFeedback,
40
- strokeDefault: colorPalette.alphaBlack6,
40
+ strokeDefault: colorPalette.alphaBlack10,
41
41
  /** Emphasized grouping boundary, including menu separators. */
42
42
  strokeControl: colorPalette.neutral450,
43
43
  strokeStrong: colorPalette.steel,
@@ -35,7 +35,7 @@ export const lightColorTheme = stylex.createTheme(colorVars, {
35
35
  fgFeedbackSuccess: colorPalette.greenFeedback,
36
36
  fgFeedbackWarning: colorPalette.yellowFeedback,
37
37
  fgFeedbackError: colorPalette.redFeedback,
38
- strokeDefault: colorPalette.alphaBlack6,
38
+ strokeDefault: colorPalette.alphaBlack10,
39
39
  strokeControl: colorPalette.neutral450,
40
40
  strokeStrong: colorPalette.steel,
41
41
  strokeDropIndicator: colorPalette.carbon,
@@ -87,7 +87,7 @@ export const darkColorTheme = stylex.createTheme(colorVars, {
87
87
  fgFeedbackSuccess: colorPalette.greenContrastDark,
88
88
  fgFeedbackWarning: colorPalette.yellowContrastDark,
89
89
  fgFeedbackError: colorPalette.redContrastDark,
90
- strokeDefault: colorPalette.alphaWhite5,
90
+ strokeDefault: colorPalette.alphaWhite12,
91
91
  strokeControl: colorPalette.steel,
92
92
  strokeStrong: colorPalette.neutral450,
93
93
  strokeDropIndicator: colorPalette.chalk,
package/tsconfig.json CHANGED
@@ -1,4 +1,7 @@
1
1
  {
2
2
  "extends": "../../tsconfig.json",
3
- "include": ["src"]
3
+ "include": ["src", "palette"],
4
+ "compilerOptions": {
5
+ "types": ["node"]
6
+ }
4
7
  }