@microbit/ui 0.1.0-alpha.19 → 0.1.0-alpha.20

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": "@microbit/ui",
3
- "version": "0.1.0-alpha.19",
3
+ "version": "0.1.0-alpha.20",
4
4
  "description": "micro:bit design-system primitives: react-aria-components + Panda CSS with a design language ported from Chakra UI v2. Ships as source; see README for the consumption setup.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -49,7 +49,7 @@ export const ProgressBar = ({
49
49
  className={css(
50
50
  {
51
51
  height: "100%",
52
- bg: "progressFilledTrack",
52
+ bg: "brand.500",
53
53
  transition: "width 0.2s",
54
54
  },
55
55
  barCss,
@@ -65,7 +65,8 @@ export const slider = defineSlotRecipe({
65
65
  top: 0,
66
66
  left: 0,
67
67
  height: "100%",
68
- bg: "sliderFilledTrack",
68
+ // Fill colour is set per call site via `filledTrackCss`.
69
+ bg: "brand.500",
69
70
  },
70
71
  thumb: {
71
72
  position: "absolute",
@@ -179,15 +179,13 @@ export const basePreset = definePreset({
179
179
  },
180
180
  semanticTokens: {
181
181
  colors: {
182
- // Checked/focus states of form controls (Chakra's default blue
183
- // colorScheme). Checkbox/Switch checked backgrounds, Input focus
184
- // border, and the Slider/ProgressBar fills (the last two are
185
- // near-dead defaults - current call sites override them).
186
- controlCheckedBg: { value: "{colors.blue.500}" },
187
- controlCheckedHoverBg: { value: "{colors.blue.600}" },
188
- focusBorder: { value: "{colors.blue.500}" },
189
- sliderFilledTrack: { value: "{colors.blue.500}" },
190
- progressFilledTrack: { value: "{colors.blue.500}" },
182
+ // Checked/focus states of form controls: Checkbox/Switch/Radio
183
+ // checked backgrounds and the Input/Select focus border. Semantic
184
+ // so a brand can diverge them from its ramp — e.g. a light
185
+ // brand.500 needing a darker 3:1 focus border.
186
+ controlCheckedBg: { value: "{colors.brand.500}" },
187
+ controlCheckedHoverBg: { value: "{colors.brand.600}" },
188
+ focusBorder: { value: "{colors.brand.500}" },
191
189
  // Error/destructive ramp (Chakra red). Destructive button variants,
192
190
  // field error states and the error toast; the record* button
193
191
  // variants deliberately stay on red.* (recording vocabulary, not