Skip to content
WebJs
Menu

Designing with WebJs UI in Figma.

Using a community kit

WebJs UI shares its design with a widely used family of community Figma kits: the layout, the type scale, the spacing, the neutral oklch palette, the radii, the variant names and the sizes. A design built from one of those kits maps onto WebJs UI by name: a Button with the outline variant is buttonClass({ variant: 'outline' }), and a DialogContent is <ui-dialog-content>.

Pick a kit from this Figma kits page, and use each component's docs page here for its variants and sizes as you build.

Theme tokens

The kit's colours, radius and chart palette are CSS variables in your stylesheet (--background, --primary, --radius and the rest). Set the same values as variables in your Figma file and the design and the app share one theme. See Theming for the full list.

Contributing a kit

Built a Figma kit for WebJs UI? Open an issue on the WebJs repository and we will list it here.