You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/spec.md
+12-8Lines changed: 12 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,18 +59,24 @@ components:
59
59
60
60
The `<scale-level>` placeholder represents a named level in a sizing or spacing scale. Common level names include `xs`, `sm`, `md`, `lg`, `xl`, and `full`. Any descriptive string key is valid.
61
61
62
-
**Color**: A color value is any valid CSS color string. Supported formats include:
62
+
**Color**: A color value is any valid CSS color string.
63
63
64
-
* Hex: `#RGB`, `#RGBA`, `#RRGGBB`, `#RRGGBBAA`
65
-
* Named colors: `red`, `cornflowerblue`, `transparent`
All color values are internally converted to sRGB for WCAG contrast checking. The original format is preserved for display and export.
71
73
72
74
Hex notation (`#RRGGBB`) remains the recommended default for simplicity and broad tooling support.
73
75
76
+
**Dimension**: A dimension value is a string with a unit suffix.
77
+
78
+
Valid units are: px, em, rem.
79
+
74
80
- `fontFamily`(string)
75
81
- `fontSize`(Dimension)
76
82
- `fontWeight`(number) - A numeric font weight value (e.g., `400`, `700`). In YAML, this may be expressed as either a bare number or a quoted string; both are equivalent.
@@ -81,8 +87,6 @@ Hex notation (`#RRGGBB`) remains the recommended default for simplicity and broa
**Dimension**: A dimension value is a string with a unit suffix. Valid units are: px, em, rem.
85
-
86
90
**Token References**: A token reference must be wrapped in curly braces, and contain an object path to another value in the YAML tree. For most token groups, the reference must point to a primitive value (e.g., `colors.primary-60`), not a group (e.g., `colors`). Within the `components` section, references to composite values (e.g., `{typography.label-md}`) are permitted.
The `<scale-level>` placeholder represents a named level in a sizing or spacing scale. Common level names include `xs`, `sm`, `md`, `lg`, `xl`, and `full`. Any descriptive string key is valid.
45
45
46
-
**Color**: A color value is any valid CSS color string. Supported formats include:
47
-
48
-
- Hex: `#RGB`, `#RGBA`, `#RRGGBB`, `#RRGGBBAA`
49
-
- Named colors: `red`, `cornflowerblue`, `transparent`
All color values are internally converted to sRGB for WCAG contrast checking. The original format is preserved for display and export.
55
-
56
-
Hex notation (`#RRGGBB`) remains the recommended default for simplicity and broad tooling support.
46
+
{typeDefinitions()}
57
47
58
48
{typographyPropertyList()}
59
49
60
-
**Dimension**: A dimension value is a string with a unit suffix. Valid units are: {STANDARD_UNITS.join(', ')}.
61
-
62
50
**Token References**: A token reference must be wrapped in curly braces, and contain an object path to another value in the YAML tree. For most token groups, the reference must point to a primitive value (e.g., `colors.primary-60`), not a group (e.g., `colors`). Within the `components` section, references to composite values (e.g., `{typography.label-md}`) are permitted.
0 commit comments