Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.humic.dev/llms.txt

Use this file to discover all available pages before exploring further.

List primitives

Returns all primitives grouped by type.
type
string
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

TypeValueUnit
spacingnumberpx
radiusnumberpx
font.sizenumberpx
font.weightnumber
font.familystring
font.lineHeightnumber
font.letterSpacingnumberem
opacitynumber
durationnumberms
easingstring
shadowstringpx
z-indexnumber