synthesisui 0.16.66 → 0.16.68

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.
@@ -32,19 +32,27 @@
32
32
  * data-[checked]:bg-ocean-50 → states.checked
33
33
  */
34
34
  /**
35
- * Utility prefix → CSS property. Only the ones that carry DESIGN, which is the
35
+ * Utility prefix → the property name THE DOCUMENT USES, which is camelCase.
36
+ *
37
+ * Emitting kebab-case cost a whole slice in silence: the recipes validated,
38
+ * because `styleValue` is permissive about the value and says nothing about the
39
+ * key, and then not one metric could find them - a `RadioCard` with five real
40
+ * declarations had 2 of 8.6 weight applicable and read as unwritten (dono,
41
+ * 01/08). Valid and unread is the worst of the three outcomes.
42
+ *
43
+ * Only the ones that carry DESIGN, which is the
36
44
  * whole point: `flex`, `items-center` and `w-full` are structure, they are
37
45
  * identical in every design system, and a recipe carrying them would be
38
46
  * transcribing layout rather than a look.
39
47
  */
40
48
  const COLOR_PROPERTY = {
41
- bg: "background-color",
49
+ bg: "backgroundColor",
42
50
  text: "color",
43
- border: "border-color",
44
- ring: "outline-color",
51
+ border: "borderColor",
52
+ ring: "outlineColor",
45
53
  fill: "fill",
46
54
  stroke: "stroke",
47
- decoration: "text-decoration-color",
55
+ decoration: "textDecorationColor",
48
56
  };
49
57
  /** Tailwind's own spacing scale, in rem - the fixed part of the fixed table. */
50
58
  const SPACING = {
@@ -73,15 +81,15 @@ const SPACING = {
73
81
  };
74
82
  const SPACING_PROPERTY = {
75
83
  p: "padding",
76
- px: "padding-inline",
77
- py: "padding-block",
78
- pt: "padding-top",
79
- pr: "padding-right",
80
- pb: "padding-bottom",
81
- pl: "padding-left",
84
+ px: "paddingInline",
85
+ py: "paddingBlock",
86
+ pt: "paddingTop",
87
+ pr: "paddingRight",
88
+ pb: "paddingBottom",
89
+ pl: "paddingLeft",
82
90
  m: "margin",
83
- mx: "margin-inline",
84
- my: "margin-block",
91
+ mx: "marginInline",
92
+ my: "marginBlock",
85
93
  gap: "gap",
86
94
  };
87
95
  /** Tailwind's radius scale. */
@@ -182,13 +190,13 @@ export function readUtility(utility, declared) {
182
190
  const own = `--radius-${rest}`;
183
191
  if (declared.has(own)) {
184
192
  return {
185
- property: "border-radius",
193
+ property: "borderRadius",
186
194
  value: `{radius.${rest}}`,
187
195
  token: own,
188
196
  };
189
197
  }
190
198
  if (RADIUS[rest])
191
- return { property: "border-radius", value: RADIUS[rest] };
199
+ return { property: "borderRadius", value: RADIUS[rest] };
192
200
  }
193
201
  return null;
194
202
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "synthesisui",
3
- "version": "0.16.66",
3
+ "version": "0.16.68",
4
4
  "description": "Bring SynthesisUI design systems into any project - tokens, typed components, whole pages and an agent-ready CLAUDE.md manifest.",
5
5
  "type": "module",
6
6
  "bin": {