CSS Crème

v1.8.1
com.csscreme/design-systems Checked 3 days ago Published 2 months ago

Give your agent a real design system: tokens, measured WCAG contrast, and rules to follow.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

search_themes Search design systems

Find a design system by describing what you are building ("dark developer tool", "calm fintech dashboard", "playful consumer app"). Returns matching themes with their DESIGN.md URL and shadcn install command. Call this first when the user has no design system defined.

ParameterTypeDescription
query *stringFree text: mood, industry, colour, or use case.
kindstringCurated palette theme, full page template, or either. Default any.
limitintegerMax results, 1-25. Default 8.
modestringPreferred light or dark. Default any.

list_themes List all design systems

Browse the full catalogue of curated themes and templates. Use when the user wants to see options rather than search for one.

ParameterTypeDescription
kindstring
modestring

get_design_md Get a DESIGN.md

Fetch the full DESIGN.md for one theme: semantic colour roles, the complete shadcn token set in light and dark, typography, radius, spacing, MEASURED WCAG contrast ratios, and numbered rules the generated UI must follow. Read this before writing any UI. Save it at the repo root as DESIGN.md so it applies to every session.

ParameterTypeDescription
id *stringTheme or template id, e.g. "deep-ocean". Get ids from search_themes or list_themes.

get_theme_tokens Get raw theme tokens

Get the shadcn/ui registry item (OKLCH tokens, light and dark) plus the paste-ready CSS variables for one theme, and the one-line command that installs it for real. Use after get_design_md when you are ready to write the tokens into globals.css.

ParameterTypeDescription
id *stringTheme or template id.
formatstringDefault both.

how_to_use How to wire a DESIGN.md into this tool

Explains where a DESIGN.md belongs for a given coding agent (Claude Code, Cursor, v0, Codex, Lovable) so the design rules apply to every session rather than one message.

ParameterTypeDescription
toolstringclaude-code | cursor | v0 | codex | lovable

get_install_command Get the one-line install command

Return the exact `npx shadcn@latest add <url>` command that installs one theme into a shadcn/ui project, plus the registry URL it reads. Use when the user says "install it" and you already know the id.

ParameterTypeDescription
id *stringTheme or template id.

get_agent_rules Get a rules block for CLAUDE.md / AGENTS.md / .cursor/rules

Return a short standing-instructions block that makes every future session read DESIGN.md before touching UI. Paste it whole into CLAUDE.md, AGENTS.md or .cursor/rules/design.mdc. It points at the DESIGN.md rather than restating it, and carries the token fingerprint so drift is detectable.

ParameterTypeDescription
id *stringTheme or template id.

decode_url Decode any live site into design tokens

Fetch a public site's HTML and stylesheets and return what its CSS declares: named custom properties that look like design tokens, the colours it uses most, its font stacks, border radii, spacing values, and the framework it appears to be built with. Also returns a "drop" report: roughly how many words a web-to-markdown reader would carry away from this page, against the design decisions it would discard, because markdown is defined by throwing the design layer away. It reads CSS and does not render the page, so it reports a confidence ("tokens" when named properties were found, "derived" when…

ParameterTypeDescription
url *stringAbsolute public http(s) URL of the page to read.
expectstringOptional brand hex, like #635BFF. The json response then carries `expect`: the nearest value the site declares (a token when it has any, else a literal), its CIE76 distance, and whether that is within…
expectSpecobjectOptional brand spec to check field by field, for example {"primary":"#635BFF","bg":"#FFFFFF","font":"Inter","heading":"Sohne","radius":"8px","base":"16px","spacing":"4px","darkMode":true,"tokens":{"--…
formatstringDefault json (the measurement). Or one artefact from the same read: md (DESIGN.md), tokens (W3C DTCG tokens.json with the site's declared names by scope), css (globals.css: shadcn variables, Tailwind…
maxAgeintegerHow old a reused read may be, in seconds. Default 600; 0 reads the site now. A reused read keeps its own fetchedAt and says cache.hit: true.

css_feature Is this CSS feature safe to ship, and who ships it

Answers two questions about a modern CSS feature with data instead of recall. First, its Baseline status (widely available, newly available, or limited availability), the date, and which core browsers lack it, read from the open web-features dataset at build time. Second, how many of CSS Crème's curated, decoded showcase sites ship it, which ones, how many of them guard it with @supports, and the exact @supports conditions they test. Also returns a fallback note where we have one, any name the feature has shipped under before (an agent that learned the old name will otherwise write it), and t…

ParameterTypeDescription
featurestringA web-features id or a plain name: "container-queries", "has", ":has()", "anchor positioning", "oklch", "subgrid", "@scope". Omit for the whole Ship Gap summary.

get_design_md_for_url Get a complete DESIGN.md for any public URL

Read the stylesheets of a public site and return a full DESIGN.md: semantic roles with the token each came from, measured WCAG contrast pairs, the tokens the site itself declares (framework internals counted separately), font families, the type scale with the ratio between steps, colour frequency, gradients, corner radii, spacing, an elevation ladder of shadows, breakpoints, the z-index ladder, interaction-state rule counts, motion, and whether a dark theme is declared. This is the artefact to hand a coding agent before it writes UI that should match a site. It reads declared CSS and does not…

ParameterTypeDescription
url *stringAbsolute public http(s) URL of the page to read.
maxAgeintegerHow old a reused read may be, in seconds. Default 600; 0 reads the site now. A reused read keeps its own fetchedAt and says cache.hit: true.

decode_site Measure a design system across a whole site, not one page

Read a sample of pages from one site (from its sitemap.xml, or the homepage links when there is no sitemap) and report what is CONSISTENT across them: which declared tokens, colours, font stacks, radii and spacing values appear on every page read, and which appear on only some. One page shows what a page uses; a design system is a claim about consistency, and only a sample can test it. Returns counts and the pages actually read, never a score. Use when the user asks whether a site is really on a system, or wants the system rather than one page of it.

ParameterTypeDescription
url *stringAbsolute public http(s) URL anywhere on the site.
maxAgeintegerHow old a reused read may be, in seconds. Default 600; 0 reads the site now. A reused read keeps its own fetchedAt and says cache.hit: true.
pagesintegerHow many pages to read, 2 to 8. Default 5.

verify_design_md Check whether a DESIGN.md copy is still current

Every DESIGN.md carries a Fingerprint line. Pass the id and that fingerprint; the server answers whether the copy matches the current token set, and if not, returns the current tokens so the agent can update the file instead of following a stale one. Call this at the start of a session when a DESIGN.md is already in the repo.

ParameterTypeDescription
fingerprint *stringThe value from the DESIGN.md Fingerprint line, e.g. "fnv1a-9c2a41d7".
id *stringTheme or template id from the DESIGN.md Source line.

get_scene_embed Embed code for a living 3D scene, in a brand's colours

Returns paste-ready code for a CSS Crème Scene: an interactive 3D meadow (four seasons, dandelion clocks, or a garden of peonies, white roses, lilies, irises, hydrangeas, tulips or daffodils, at any hour) grown by code in the browser, with no models or images to load. Give it the `roles` (and optionally `colors`) from a decode_url result and the three flowers take that site's declared colours, each with its source named; or pass a `palette` of hex values. It reads no URL itself. Returns the <creme-scene> element, an iframe, a full-screen link and the licence line. Free to embed with the visib…

ParameterTypeDescription
colorsarrayOptional: the colors array from decode_url, used when roles alone hold fewer than three strong colours.
modestringbackground sits the scene behind a section's own content.
paletteobjectOptional explicit colours: { a, b, c, grass, sky, light } as #hex. Wins over roles.
rolesobjectThe roles object from decode_url (primary, accent and so on). The flowers take its strongest declared colours.
seasonstringDefault summer.
timenumberHour of the day, 0 to 24. 9 is morning, 18.5 golden hour, 22 night. Default 16.2.