Responsive typography scale. Click any card to edit its properties.
UXDSL decouples visual style from HTML tags. While you can write standard HTML, the real power comes from the @ds-typo mixin.
This allows you to apply the visual properties of a "Heading 1" to any element, while maintaining semantic correctness.
Because these mixins are backed by CSS variables, changing the theme instantly updates every instance of that typography style across your entire application—spacing, weight, size, and line-height included.
h1 through h6 (Responsive sizes, tighter line-heights)body, p (Optimized for reading)span, small, caption (Subtle styles)pre, code (Monospace family)You can override the default type scale by adding a typography_details section to your uxdsl.theme.json file.
This allows you to fine-tune sizes, weights, and line-heights for every semantic tag.
The fontSize property supports UXDSL's responsive syntax, allowing you to define fluid scaling from mobile to desktop in a single line.