Vastu

Vastu

A small design system of web components, built with Lit. Every promise it makes, from its API and keyboard behaviour to its theming hooks and usage guidance, is written once in a machine-readable manifest. Docs, agent tools and tests are all generated from that one description.

The name comes from Vastu Shastra, the ancient Indian science of space, layout and proportion. Components take their whole look from a brand: Vastu, in sandstone and indigo, is the default, and Lekha, in paper and teal, is the second. Every brand has light, dark and high-contrast modes. Switch brand and mode at the top of the page; no component changes between them.

Components

Status

Milestone M1: eight components, each checked on every change by contract tests generated from the manifest, behaviour tests, axe accessibility checks in every mode, visual regression at phone and desktop widths, size budgets, and a strict Content Security Policy with Trusted Types, in Chromium, Firefox and WebKit. Next is the agent layer: a markup validator, an MCP server and an eval. Read thedesign document.