@bolerish/tokens 0.11.1 → 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.11.1",
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
  }
@@ -119,5 +119,7 @@
119
119
  "alphaWhite10": "oklch(100% 0 0 / 10%)",
120
120
  "alphaWhite12": "oklch(100% 0 0 / 12%)",
121
121
  "alphaWhite20": "oklch(100% 0 0 / 20%)",
122
- "alphaWhite50": "oklch(100% 0 0 / 50%)"
122
+ "alphaWhite50": "oklch(100% 0 0 / 50%)",
123
+ "mist": "oklch(94.91192606% 0 0)",
124
+ "paper": "oklch(97.01507725% 0 0)"
123
125
  }
@@ -123,6 +123,8 @@ export const colorPalette = stylex.defineVars({
123
123
  alphaWhite12: "#FFFFFF1F",
124
124
  alphaWhite20: "#FFFFFF33",
125
125
  alphaWhite50: "#FFFFFF80",
126
+ mist: "#EEEEEE",
127
+ paper: "#F5F5F5",
126
128
  });
127
129
 
128
130
  export const colorPaletteGroups = {
@@ -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 },
@@ -3,12 +3,12 @@ import * as stylex from "@stylexjs/stylex";
3
3
  import { colorPalette } from "./color-palette.stylex";
4
4
 
5
5
  export const colorVars = stylex.defineVars({
6
- bgCanvas: colorPalette.chalk,
6
+ bgCanvas: colorPalette.mist,
7
7
  bgSurface: colorPalette.white,
8
8
  bgSurfacePressed: colorPalette.chalk,
9
9
  bgInverse: colorPalette.carbon,
10
10
  /** Neutral grouping surface; does not indicate selection. */
11
- bgSubtle: colorPalette.fog,
11
+ bgSubtle: colorPalette.paper,
12
12
  bgRaised: colorPalette.white,
13
13
  bgRaisedPressed: colorPalette.chalk,
14
14
  /** Flat persistent selection. Pair with fgPrimary and a check or boundary. */
@@ -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.fog,
40
+ strokeDefault: colorPalette.alphaBlack10,
41
41
  /** Emphasized grouping boundary, including menu separators. */
42
42
  strokeControl: colorPalette.neutral450,
43
43
  strokeStrong: colorPalette.steel,
@@ -4,11 +4,11 @@ import { colorPalette } from "./color-palette.stylex";
4
4
  import { colorVars, shadowVars } from "./semantic.stylex";
5
5
 
6
6
  export const lightColorTheme = stylex.createTheme(colorVars, {
7
- bgCanvas: colorPalette.chalk,
7
+ bgCanvas: colorPalette.mist,
8
8
  bgSurface: colorPalette.white,
9
9
  bgSurfacePressed: colorPalette.chalk,
10
10
  bgInverse: colorPalette.carbon,
11
- bgSubtle: colorPalette.fog,
11
+ bgSubtle: colorPalette.paper,
12
12
  bgRaised: colorPalette.white,
13
13
  bgRaisedPressed: colorPalette.chalk,
14
14
  bgSelected: colorPalette.fog,
@@ -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.fog,
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.neutral700,
90
+ strokeDefault: colorPalette.alphaWhite12,
91
91
  strokeControl: colorPalette.steel,
92
92
  strokeStrong: colorPalette.neutral450,
93
93
  strokeDropIndicator: colorPalette.chalk,
@@ -114,7 +114,7 @@ export const lightShadowTheme = stylex.createTheme(shadowVars, {
114
114
  });
115
115
 
116
116
  export const darkShadowTheme = stylex.createTheme(shadowVars, {
117
- subtle: "0 0 0 1px oklch(100% 0 0 / 6%), 0 1px 4px oklch(0% 0 0 / 36%)",
118
- floating: "0 0 0 1px oklch(100% 0 0 / 8%), 0 8px 24px oklch(0% 0 0 / 52%)",
119
- overlay: "0 0 0 1px oklch(100% 0 0 / 10%), 0 16px 40px oklch(0% 0 0 / 64%)",
117
+ subtle: "0 1px 4px oklch(0% 0 0 / 36%)",
118
+ floating: "0 8px 24px oklch(0% 0 0 / 52%)",
119
+ overlay: "0 16px 40px oklch(0% 0 0 / 64%)",
120
120
  });
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
  }