# Thevio > A visual theme builder for shadcn/ui and Tailwind CSS v4: build one theme, preview it everywhere, share it by URL, export it anywhere. Every theme is checked against WCAG 2 contrast in light and dark mode. A theme lives entirely in its URL: `https://thevio.zubyr.dev/studio?t=`. The code is the whole theme (compressed), so there is no account and no database. The API below needs no key. ## Make a theme - `POST https://thevio.zubyr.dev/api/theme` with any of these as the body (≤ 32 KB): - a partial Thevio theme: `{"colors":{"brand":"#0f9d74"},"radius":0.75,"fonts":{"sans":"Manrope"}}` (colours can be any CSS colour); - a pasted shadcn/tweakcn `globals.css` (Content-Type: text/css, or JSON `{"css":"…"}`); - tweakcn theme JSON or a shadcn registry item. - The response has the fixed `theme`, its share code `t`, the Studio `url`, a shadcn `install` command, a URL per export, and `fixes`: every change made (clamped values, contrast fixes with before/after ratios). - Add `?fix=false` to skip contrast fixing. ## Read, fix or export a shared theme - `GET https://thevio.zubyr.dev/api/theme?t=`: the same response for an existing link. - `GET https://thevio.zubyr.dev/api/theme?t=&format=`: the export itself. Formats: - `css`: globals.css for shadcn/ui on Tailwind v4: :root, .dark and @theme inline. - `tailwind`: A @theme block with the 50–950 brand and neutral scales. - `scss`: Variables for both modes, plus the scales as maps. - `shadcn-registry`: Installs colors, radius, fonts, shadows. Component styles are not included. - `design-md`: The theme as instructions for Claude Code, Cursor, Copilot and Stitch. - `dtcg`: W3C DTCG 2025.10 files with a resolver, for Style Dictionary and Terrazzo. - `figma`: Light and Dark mode files for Figma's native variable import. - `tokens-studio`: One file with global, light and dark sets, shadows included. ## Install into a shadcn/ui project - `npx shadcn@latest add https://thevio.zubyr.dev/r/t/.json`: installs colours (light and dark), radius, fonts and shadows into globals.css. Component styles are not included; export `design-md` for those. - Sample themes: `https://thevio.zubyr.dev/r/default.json`, `https://thevio.zubyr.dev/r/grove.json`, `https://thevio.zubyr.dev/r/ember.json`, `https://thevio.zubyr.dev/r/iris.json`. ## Give an AI tool the design - `GET https://thevio.zubyr.dev/api/theme?t=&format=design-md` returns DESIGN.md (Google's DESIGN.md format): tokens in front matter, then colours with measured contrast, typography, layout, shapes, the exact Tailwind classes for each component style, and do's and don'ts. Save it as `DESIGN.md` and reference it from CLAUDE.md, AGENTS.md or a Cursor rule. ## Reference - [OpenAPI 3.1 description](https://thevio.zubyr.dev/openapi.json): every endpoint, parameter and response schema. - [Studio](https://thevio.zubyr.dev/studio): the visual editor. - Errors are RFC 9457 `application/problem+json` with a `detail` saying what to change.