@bcc-code/design-tokens 5.1.58 → 5.1.59

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
@@ -33,6 +33,50 @@ Component tokens are automatically picked up from `component.json` — no manual
33
33
 
34
34
  For BCC-specific layout/sizing overrides (not from Figma), add them to `MANUAL_COMPONENT_OVERRIDES` in `export-tokens/constants.js`.
35
35
 
36
+ ## Repository Structure
37
+
38
+ ### Generated folders
39
+
40
+ - `tokens/` is generated from Figma token exports (source of truth from design).
41
+ - `build/` is generated by running the build script (`npm run build` / `node export-tokens/build.js`).
42
+ - Do not hand-edit files in `build/`; regenerate instead.
43
+
44
+ ### `config/`
45
+
46
+ - `config/config-reference.json`
47
+ PrimeVue reference config used by the generator to understand PrimeVue's expected token structure and keys when creating `build/primevue/config.js`.
48
+ - **Can edit?** Usually **leave alone**. Edit only when intentionally updating PrimeVue mapping/reference behavior (for example after PrimeVue config structure changes).
49
+
50
+ ### `export-tokens/`
51
+
52
+ - `export-tokens/build.js`
53
+ Main build orchestrator. Runs validation, builds token outputs, combines theme files, generates types, and generates PrimeVue config.
54
+ - **Can edit?** **Yes**, when changing build flow or adding new outputs.
55
+
56
+ - `export-tokens/constants.js`
57
+ Central configuration for paths, token group lists, Tailwind mappings/utilities, known exceptions, and manual component overrides.
58
+ - **Can edit?** **Yes**. This is the primary file to update when adding token groups, mappings, or BCC manual overrides.
59
+
60
+ - `export-tokens/sd-formats.js`
61
+ Registers custom Style Dictionary transforms/formats (JS with refs, CSS variables, Tailwind utilities).
62
+ - **Can edit?** **Yes**, if you need to change output format behavior.
63
+
64
+ - `export-tokens/primevue-config.js`
65
+ Generates `build/primevue/config.js` from built tokens + `config/config-reference.json` and applies override logic/validation.
66
+ - **Can edit?** **Yes**, for PrimeVue mapping/resolution logic changes.
67
+
68
+ - `export-tokens/validation.js`
69
+ Validates light/dark token symmetry and warns about missing component theme overrides.
70
+ - **Can edit?** **Yes**, when adjusting validation rules.
71
+
72
+ - `export-tokens/bcc-build.js`
73
+ Creates combined `auto.css` and `tailwind-auto.css` from generated light/dark outputs.
74
+ - **Can edit?** **Yes**, if combined output strategy needs to change.
75
+
76
+ - `export-tokens/type-gen.js`
77
+ Generates `.d.ts` files for built JS/CSS outputs.
78
+ - **Can edit?** **Yes**, when changing published type declarations.
79
+
36
80
  ## License
37
81
 
38
82
  MIT
@@ -3679,7 +3679,7 @@ const BCCPreset = definePreset(Aura, {
3679
3679
  transitionDuration: "{transition.duration}"
3680
3680
  },
3681
3681
  tablist: {
3682
- borderWidth: "0 0 1px 0",
3682
+ borderWidth: "var(--border-width-0)",
3683
3683
  background: "transparent",
3684
3684
  borderColor: "var(--color-border-default)"
3685
3685
  },
@@ -3687,7 +3687,7 @@ const BCCPreset = definePreset(Aura, {
3687
3687
  background: "transparent",
3688
3688
  hoverBackground: "transparent",
3689
3689
  activeBackground: "transparent",
3690
- borderWidth: "0 0 1px 0",
3690
+ borderWidth: "var(--border-width-2)",
3691
3691
  borderColor: "var(--color-border-default)",
3692
3692
  hoverBorderColor: "var(--color-border-default)",
3693
3693
  activeBorderColor: "var(--color-border-selected)",
@@ -3696,7 +3696,7 @@ const BCCPreset = definePreset(Aura, {
3696
3696
  activeColor: "var(--color-text-selected)",
3697
3697
  padding: "var(--space-150)",
3698
3698
  fontWeight: "var(--font-weight-medium)",
3699
- margin: "0 0 -1px 0",
3699
+ margin: "0",
3700
3700
  gap: "var(--space-100)",
3701
3701
  focusRing: {
3702
3702
  width: "{focus.ring.width}",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bcc-code/design-tokens",
3
- "version": "5.1.58",
3
+ "version": "5.1.59",
4
4
  "description": "Design tokens build system",
5
5
  "type": "module",
6
6
  "engines": {