List primitives
Returns all primitives grouped by type.Filter by primitive type (e.g.,
spacing, font.size, radius).curl https://humic.dev/api/v1/primitives \
-H "Authorization: Bearer sk_live_your_key"
{
"data": {
"primitives": {
"spacing": [
{ "key": "xs", "value": 4, "unit": "px" },
{ "key": "sm", "value": 8, "unit": "px" },
{ "key": "md", "value": 16, "unit": "px" },
{ "key": "lg", "value": 24, "unit": "px" }
],
"radius": [
{ "key": "sm", "value": 4, "unit": "px" },
{ "key": "md", "value": 8, "unit": "px" }
],
"font.size": [
{ "key": "sm", "value": 14, "unit": "px" },
{ "key": "base", "value": 16, "unit": "px" },
{ "key": "lg", "value": 18, "unit": "px" }
],
"font.weight": [
{ "key": "normal", "value": 400, "unit": null },
{ "key": "bold", "value": 700, "unit": null }
],
"font.family": [
{ "key": "sans", "value": "Inter", "unit": null },
{ "key": "mono", "value": "JetBrains Mono", "unit": null }
],
"opacity": [
{ "key": "disabled", "value": 0.4, "unit": null }
],
"duration": [
{ "key": "fast", "value": 100, "unit": "ms" },
{ "key": "normal", "value": 200, "unit": "ms" }
],
"z-index": [
{ "key": "dropdown", "value": 10, "unit": null },
{ "key": "modal", "value": 50, "unit": null }
]
}
}
}
Primitive types
| Type | Value | Unit |
|---|---|---|
spacing | number | px |
radius | number | px |
font.size | number | px |
font.weight | number | — |
font.family | string | — |
font.lineHeight | number | — |
font.letterSpacing | number | em |
opacity | number | — |
duration | number | ms |
easing | string | — |
shadow | string | px |
z-index | number | — |

