Sizing
Current sizing uses Tailwind width/height and container max-widths. No custom sizing tokens yet — values below are implementation conventions, not formal Davinci tokens.
Introduction#
Sizing covers fixed control heights, fluid widths, and container constraints. DavinciUI currently relies on Tailwind’s w-* / h-* scale and max-w-* containers. Future tokens will alias these.
Width#
w-full
Fills container
w-fit
w-screen
Fractional
Height#
Heights — content-driven and fixed
h-full / min-h-screen
Component Sizing#
Control heights — current conventions for buttons/inputs.
Container Sizes#
Max-width containers for readable layouts.
max-w-sm — 384px
Forms
max-w-2xl — 672px
Prose
max-w-6xl — 1152px
Docs content (current)
Responsive Sizing#
Elements adapt at Tailwind breakpoints (sm 640 md 768 lg 1024).
className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4"
Guidelines#
- Use
h-8 / h-9 / h-10for controls — keep touch target ≥ 32px. - Prefer
w-full max-w-*over fixed widths for responsiveness. - Use fractional
basis-1/2for split views (docs preview). - Containers:
max-w-smforms,max-w-2xlprose,max-w-6xldocs.

