UI components for the AI agents in your productUI components for AI-native products
Free, MIT-licensed components and templates for AI agent products: 55 components in HTML, React and Astro, in three styles.55 free, MIT-licensed components for AI agent products, in HTML, React and Astro.
Whole apps, made of the components
Views of three templates, live: a sales CRM's accounts, pipeline, calendar and forecast, an agent workflow editor and a whiteboard.
Accounts, live
All 55 components
39 for the agent and 16 app basics around it, each with its own page, demo and code.
Three styles, light and dark
One set of components, drawn three ways. Drag the handles to compare the same Decision prompt in each. It’s live, and all three answer together.Switch between them on the same Decision prompt, live.
Blueprint needs no attribute. Soft and Studio are data-style on <html>, and dark mode is data-theme="dark".
Square corners, hairline edges and a lime accent, like a technical sheet. <html>
Rounded, plush surfaces with a blue accent. <html data-style="soft">
Black, white and grey, with fully round controls. Data keeps its colours. <html data-style="studio">
One command, and the code is yours
The CLI copies a component into your project, one file for each part, so the code is yours.
Installationnpx designme add permission-gateOpen demo.html to see it working, then copy its markup into your page.
npx designme add permission-gate --reactA typed component that brings its own CSS, for React 19 and up.
npx designme add permission-gate --astroThe same markup, CSS and script as the HTML one, as an .astro component.
npx shadcn@latest add https://designme.dev/r/shadcn/permission-gate.json Every component is also a shadcn registry item, in React or in Astro.
permission-gate/permission-gate.html18 lines
<div class="card" data-c="permission-gate"> <div class="stage-in"> <div class="pgx panel mx-grow mx-ic"> <div class="pgx-h"><span class="pgx-ic"><svg class="i s"><use href="#i-figma"/></svg></span><div class="pgx-ht"><b>Allow the agent to edit Figma?</b><span class="muted">It needs this to apply the pricing fixes</span></div></div> <div class="pgx-sc"> <label class="pgx-o" data-k="read"><input type="checkbox" checked><span class="bx"><svg class="i xs"><use href="#i-check"/></svg></span><span class="t">Read frames<span class="d">Pricing, Checkout</span></span></label> <label class="pgx-o" data-k="edit"><input type="checkbox" checked><span class="bx"><svg class="i xs"><use href="#i-check"/></svg></span><span class="t">Edit frames<span class="d">Only on a new page</span></span></label> <label class="pgx-o" data-k="publish"><input type="checkbox"><span class="bx"><svg class="i xs"><use href="#i-check"/></svg></span><span class="t">Publish library<span class="d">Affects 4 other files</span></span><span class="tag warn" data-tip="Checkout, Marketing site, Email kit and Docs use this library">Risky</span></label> </div> <div class="pgx-f"><button class="pgx-db mx-press" aria-haspopup="menu" aria-expanded="false" aria-label="How long" data-pop=".pgx-pop"><span class="pgx-dv mx-w">For this task</span><svg class="i xs"><use href="#i-chev-d"/></svg></button><span class="sp"></span><button class="pill ghost sm pgx-no mx-press">Not now</button><button class="pill primary sm pgx-ok mx-w">Allow 2 scopes</button></div> <div class="pop pgx-pop mx-pop mx-rows mx-glide" role="menu" aria-label="How long"> <button class="mi mx-press" role="menuitemradio" aria-checked="true" data-close data-v="This task"><span>For this task<span class="d">Until the pricing fixes are done</span></span><span class="ck"><svg class="i xs"><use href="#i-check"/></svg></span></button> <button class="mi mx-press" role="menuitemradio" aria-checked="false" data-close data-v="Today"><span>For today<span class="d">Until midnight</span></span><span class="ck"><svg class="i xs"><use href="#i-check"/></svg></span></button> <button class="mi mx-press" role="menuitemradio" aria-checked="false" data-close data-v="Always"><span>Always<span class="d">Until you revoke it</span></span><span class="ck"><svg class="i xs"><use href="#i-check"/></svg></span></button> </div> </div> </div></div>permission-gate/permission-gate.css147 lines
/* ---------- Permission gate ---------- *//* the agent asks in the chat as one card: the question, the scopes to tick, and a footer with how long and the two answers. Without .panel it sits flat in the thread */.pgx{position:relative;width:100%;max-width:400px;margin:0 auto;padding:var(--dm-s-1) 0;display:flex;flex-direction:column;gap:var(--dm-s-3)}.pgx.panel{padding:var(--dm-s-4)}/* its motion (the core's motion pieces, owner, 26 Nov): How long's menu grows out of its button and goes back quicker, its rows settle one after another and one highlight glides between them; a press shows at once (.mx-press, no scale); How long's words and Allow ease their box to the new width (.mx-w); the spinner crossfades to the done mark (.mx-ic); and the card eases to each new height on the spring (.mx-grow) */.pgx-h{display:flex;gap:var(--dm-s-3);align-items:center}.pgx-ic{width:32px;height:32px;border-radius:calc(9px * var(--dm-rk-m,var(--dm-rk)));background:var(--dm-chip);display:grid;place-items:center;flex:none}.pgx-ht{display:flex;flex-direction:column;min-width:0}.pgx-ht b{font-weight:500;font-size:14px}.pgx-ht span{font-size:13px}/* the scopes line up with the head (owner, 18 Nov): each box centred in a 32px column under the icon tile, its words where the question's start, and a tag at the row's end on the right edge the buttons below end on. The row's hover fill reaches 8px out round it, into the padding (owner, 26 Nov) */.pgx-sc{display:flex;flex-direction:column}permission-gate/permission-gate.js125 lines
DM.def('permission-gate', (r, c) => { r.innerHTML = r.innerHTML.replace('{figma}', I('figma')).replace(/\{chk\}/g, I('check','xs')).replace('{chev}', I('chev-d','xs')); const root = $('.pgx', r), ok = $('.pgx-ok', r), no = $('.pgx-no', r), sc = $('.pgx-sc', r), title = $('.pgx-ht b', r), sub = $('.pgx-ht .muted', r); const first = { sc:sc.innerHTML, title:title.textContent, sub:sub.textContent, no:no.textContent }; const boxes = () => $$('.pgx-o input', sc); // the card fits what it holds at every moment, in every style (grow(), never a kept height: owner, 17 and 18 Nov). Studio // (owner, 18 Nov) has its own touches: // the count on Allow rolls, the answer gets a summary line in the foot strip, and the done mark is a tick that draws. // Soft and Blueprint keep theirs const ds = r.closest('[data-style]'), studio = !!ds && ds.dataset.style === 'studio'; // grow() starts once the card's entrance (which scales it from .98) has ended, so it measures the card at its real size Promise.resolve().then(() => Promise.all(root.getAnimations().map(a => a.finished.catch(() => {})))).then(() => { if (!c.dead && root.isConnected) c.offs.push(grow(root)); }); // where a result row goes: in the card, or in grow()'s wrapper inside it const into = () => $(':scope>.dm-grow', root) || root; // how long: This task, Today or Always, from the dropdown in the footer let dur = 'This task'; const span = () => dur === 'Always' ? 'always' : 'for ' + dur.toLowerCase(); const word = n => n > 1 ? 'scopes' : 'scope';permission-gate/demo.htmlwritten by the CLI
A page with the component on its own, on the shared core, written beside it. Open it in a browser to see it working before you copy its markup into yours.
core/core.css774 lines
/* Designme shared core: tokens for Blueprint (default), Soft (data-style="soft") and Studio (data-style="studio"), on <html> or on any element around the components, light and dark (<html data-theme="dark">) */:where([data-c]) [hidden]{display:none!important}/* hold(): an end state centred in the height its component had */.held{display:flex;flex-direction:column;justify-content:center}/* the glide starts fast in both styles, so the field is on its way up before an opening list reaches the stage's edge */.glide{transform:translateY(var(--dm-gy,0px));transition:transform var(--dm-t) cubic-bezier(.22,1,.36,1)}/* and a list that opens under a gliding field fades in a beat after it starts to move */.glide>.csx-pop.open{transition-delay:.08s}.glide>.msc-pop.open{transition-delay:.08s,.08s,.08s,0s}.glide>.six-pop.open{transition-delay:.08s}/* Soft 2: one quiet surface per object, grey type for finished work, motion only on what is happening now */:root,[data-style="soft"],[data-style="studio"]{ --dm-motion:soft; --dm-page:#f7f7f7; --dm-stage:#fafafa; --dm-surface:#ffffff; --dm-raised:#ffffff; --dm-fg:#171717; --dm-fg2:#525252; --dm-muted:#6a6a6a; --dm-faint:#c4c4c4; --dm-rail:#d4d4d4; --dm-line:#e8e8e8; --dm-field-line:#d4d4d4; --dm-line-strong:#858585; --dm-field-line-strong:#b3b3b3; --dm-chip:#f3f3f3; --dm-hover:#ebebeb; --dm-press:#e3e3e3; --dm-wash:#f9f9f9; --dm-row:#fafafa; --dm-soft:#ececec; --dm-soft-h:#e3e3e3; --dm-soft-ring:inset 0 0 0 1px rgba(0,0,0,.03); --dm-dis:#a6a6a6; /* disabled: text and icons take --dm-dis; a control with a fill swaps it for --dm-dis-fill (Blueprint hatches it) */core/core.js982 lines
/* Soft 2 core: mounting, replay, motion helpers, tooltips, popovers */const $ = (s, r = document) => r.querySelector(s);const $$ = (s, r = document) => Array.from(r.querySelectorAll(s));/* reduced motion, read live: REDUCE follows the device's setting as it changes, so turning it on or off mid-visit takes effect at once, without a reload. Turning it on also finishes what a script is animating in the components right now */let REDUCE = false;{ const mq = matchMedia('(prefers-reduced-motion: reduce)'); const set = () => { REDUCE = mq.matches; if (!REDUCE || !document.getAnimations) return; for (const a of document.getAnimations()){ const t = a.effect && a.effect.target; if (a instanceof CSSAnimation || a instanceof CSSTransition || !t || !t.closest || !t.closest('[data-c],.v2,.stage-in')) continue; try { a.finish(); } catch(e){ a.cancel(); } } }; set(); if (mq.addEventListener) mq.addEventListener('change', set); else mq.addListener(set);permission-gate/PermissionGate.tsx219 lines
'use client';import { useEffect, useRef, useState, type ReactNode } from 'react';import { cx } from '../lib/cx';import { useControllable, useIsoLayoutEffect, useReducedMotion } from '../lib/hooks';import { Icon } from '../lib/icons';import { enter, growFit, Spin, Swap, SwapIcon, Tip } from '../lib/motion';import { usePopover } from '../lib/popover';import '../designme.css';// its menus' rows glide in Studioimport '../lib/glide';import './permission-gate.css'; /** Something the agent is asking to be allowed to do */export interface PermissionScope { key: string; /** Like "Edit frames" */ label: string; /** The quiet line under it, like "Only on a new page" */permission-gate/permission-gate.css148 lines
/* Generated from designme.dev by scripts/sync.mjs. Edit the site, then sync. *//* ---------- Permission gate ---------- *//* the agent asks in the chat as one card: the question, the scopes to tick, and a footer with how long and the two answers. Without .panel it sits flat in the thread */.dm-pgx{position:relative;width:100%;max-width:400px;margin:0 auto;padding:var(--dm-s-1) 0;display:flex;flex-direction:column;gap:var(--dm-s-3)}.dm-pgx.dm-panel{padding:var(--dm-s-4)}/* its motion (the core's motion pieces, owner, 26 Nov): How long's menu grows out of its button and goes back quicker, its rows settle one after another and one highlight glides between them; a press shows at once (.mx-press, no scale); How long's words and Allow ease their box to the new width (.mx-w); the spinner crossfades to the done mark (.mx-ic); and the card eases to each new height on the spring (.mx-grow) */.dm-pgx-h{display:flex;gap:var(--dm-s-3);align-items:center}.dm-pgx-ic{width:32px;height:32px;border-radius:calc(9px * var(--dm-rk-m,var(--dm-rk)));background:var(--dm-chip);display:grid;place-items:center;flex:none}.dm-pgx-ht{display:flex;flex-direction:column;min-width:0}.dm-pgx-ht b{font-weight:500;font-size:14px}.dm-pgx-ht span{font-size:13px}/* the scopes line up with the head (owner, 18 Nov): each box centred in a 32px column under the icon tile, its words where the question's start, and a tag at the row's end on the right edge the buttons below end on. The row's hover fill reaches 8px out round it, into the padding (owner, 26 Nov) */designme.css763 lines, added once
/* Generated from designme.dev by scripts/sync.mjs. Edit the site, then sync. *//* Designme shared core: tokens for Blueprint (default), Soft (data-style="soft") and Studio (data-style="studio"), on <html> or on any element around the components, light and dark (<html data-theme="dark">) */:where([data-dm]) [hidden]{display:none!important}/* hold(): an end state centred in the height its component had */.dm-held{display:flex;flex-direction:column;justify-content:center}/* the glide starts fast in both styles, so the field is on its way up before an opening list reaches the stage's edge */.dm-glide{transform:translateY(var(--dm-gy,0px));transition:transform var(--dm-t) cubic-bezier(.22,1,.36,1)}/* and a list that opens under a gliding field fades in a beat after it starts to move */.dm-glide>.dm-csx-pop.dm-open{transition-delay:.08s}.dm-glide>.dm-msc-pop.dm-open{transition-delay:.08s,.08s,.08s,0s}.dm-glide>.dm-six-pop.dm-open{transition-delay:.08s}/* Soft 2: one quiet surface per object, grey type for finished work, motion only on what is happening now */:root,[data-style="soft"],[data-style="studio"]{ --dm-motion:soft; --dm-page:#f7f7f7; --dm-stage:#fafafa; --dm-surface:#ffffff; --dm-raised:#ffffff; --dm-fg:#171717; --dm-fg2:#525252; --dm-muted:#6a6a6a; --dm-faint:#c4c4c4; --dm-rail:#d4d4d4; --dm-line:#e8e8e8; --dm-field-line:#d4d4d4; --dm-line-strong:#858585; --dm-field-line-strong:#b3b3b3; --dm-chip:#f3f3f3; --dm-hover:#ebebeb; --dm-press:#e3e3e3; --dm-wash:#f9f9f9; --dm-row:#fafafa; --dm-soft:#ececec; --dm-soft-h:#e3e3e3; --dm-soft-ring:inset 0 0 0 1px rgba(0,0,0,.03); --dm-dis:#a6a6a6;lib/7 files, added once
cx.ts 4 linesglide.ts 124 lineshits.ts 53 lineshooks.ts 82 linesicons.tsx 134 linesmotion.tsx 466 linespopover.tsx 151 linespermission-gate/PermissionGate.astro36 lines
---// Generated from designme.dev by scripts/sync.mjs. Edit the site, then sync.// Permission gate: The agent asks before it touches something new.// The markup, CSS and script are designme.dev's own, run by the shared core in ../core, which mounts the component when it scrolls// into view and plays its demo. To show your own data, change permission-gate.js. The markup is kept exactly as it is (is:raw).import type { HTMLAttributes } from 'astro/types';import '../core/designme.css';import './permission-gate.css'; export interface Props extends HTMLAttributes<'div'> { /** "soft" or "studio" draws it in that style. Leave it out for Blueprint, or for the style set on <html> (data-style="soft" or "studio") */ 'data-style'?: 'soft' | 'studio';}const { class: className, ...rest } = Astro.props;---<div class:list={['card', className]} data-c="permission-gate" {...rest}> <div class="stage-in"><Fragment is:raw><div class="pgx panel mx-grow mx-ic">permission-gate/permission-gate.css148 lines
/* Generated from designme.dev by scripts/sync.mjs. Edit the site, then sync. *//* ---------- Permission gate ---------- *//* the agent asks in the chat as one card: the question, the scopes to tick, and a footer with how long and the two answers. Without .panel it sits flat in the thread */.pgx{position:relative;width:100%;max-width:400px;margin:0 auto;padding:var(--dm-s-1) 0;display:flex;flex-direction:column;gap:var(--dm-s-3)}.pgx.panel{padding:var(--dm-s-4)}/* its motion (the core's motion pieces, owner, 26 Nov): How long's menu grows out of its button and goes back quicker, its rows settle one after another and one highlight glides between them; a press shows at once (.mx-press, no scale); How long's words and Allow ease their box to the new width (.mx-w); the spinner crossfades to the done mark (.mx-ic); and the card eases to each new height on the spring (.mx-grow) */.pgx-h{display:flex;gap:var(--dm-s-3);align-items:center}.pgx-ic{width:32px;height:32px;border-radius:calc(9px * var(--dm-rk-m,var(--dm-rk)));background:var(--dm-chip);display:grid;place-items:center;flex:none}.pgx-ht{display:flex;flex-direction:column;min-width:0}.pgx-ht b{font-weight:500;font-size:14px}.pgx-ht span{font-size:13px}/* the scopes line up with the head (owner, 18 Nov): each box centred in a 32px column under the icon tile, its words where the question's start, and a tag at the row's end on the right edge the buttons below end on. The row's hover fill reaches 8px out round it, into the padding (owner, 26 Nov) */permission-gate/permission-gate.js127 lines
// Generated from designme.dev by scripts/sync.mjs. Edit the site, then sync.import { $, $$, DM, I, REDUCE, enter, grow, html, iconSwap, mxWidth, stagger, swap } from '../core/core.js';DM.def('permission-gate', (r, c) => { r.innerHTML = r.innerHTML.replace('{figma}', I('figma')).replace(/\{chk\}/g, I('check','xs')).replace('{chev}', I('chev-d','xs')); const root = $('.pgx', r), ok = $('.pgx-ok', r), no = $('.pgx-no', r), sc = $('.pgx-sc', r), title = $('.pgx-ht b', r), sub = $('.pgx-ht .muted', r); const first = { sc:sc.innerHTML, title:title.textContent, sub:sub.textContent, no:no.textContent }; const boxes = () => $$('.pgx-o input', sc); // the card fits what it holds at every moment, in every style (grow(), never a kept height: owner, 17 and 18 Nov). Studio // (owner, 18 Nov) has its own touches: // the count on Allow rolls, the answer gets a summary line in the foot strip, and the done mark is a tick that draws. // Soft and Blueprint keep theirs const ds = r.closest('[data-style]'), studio = !!ds && ds.dataset.style === 'studio'; // grow() starts once the card's entrance (which scales it from .98) has ended, so it measures the card at its real size Promise.resolve().then(() => Promise.all(root.getAnimations().map(a => a.finished.catch(() => {})))).then(() => { if (!c.dead && root.isConnected) c.offs.push(grow(root)); }); // where a result row goes: in the card, or in grow()'s wrapper inside it const into = () => $(':scope>.dm-grow', root) || root; // how long: This task, Today or Always, from the dropdown in the footer let dur = 'This task';core/designme.css775 lines
/* Generated from designme.dev by scripts/sync.mjs. Edit the site, then sync. *//* Designme shared core: tokens for Blueprint (default), Soft (data-style="soft") and Studio (data-style="studio"), on <html> or on any element around the components, light and dark (<html data-theme="dark">) */:where([data-c]) [hidden]{display:none!important}/* hold(): an end state centred in the height its component had */.held{display:flex;flex-direction:column;justify-content:center}/* the glide starts fast in both styles, so the field is on its way up before an opening list reaches the stage's edge */.glide{transform:translateY(var(--dm-gy,0px));transition:transform var(--dm-t) cubic-bezier(.22,1,.36,1)}/* and a list that opens under a gliding field fades in a beat after it starts to move */.glide>.csx-pop.open{transition-delay:.08s}.glide>.msc-pop.open{transition-delay:.08s,.08s,.08s,0s}.glide>.six-pop.open{transition-delay:.08s}/* Soft 2: one quiet surface per object, grey type for finished work, motion only on what is happening now */:root,[data-style="soft"],[data-style="studio"]{ --dm-motion:soft; --dm-page:#f7f7f7; --dm-stage:#fafafa; --dm-surface:#ffffff; --dm-raised:#ffffff; --dm-fg:#171717; --dm-fg2:#525252; --dm-muted:#6a6a6a; --dm-faint:#c4c4c4; --dm-rail:#d4d4d4; --dm-line:#e8e8e8; --dm-field-line:#d4d4d4; --dm-line-strong:#858585; --dm-field-line-strong:#b3b3b3; --dm-chip:#f3f3f3; --dm-hover:#ebebeb; --dm-press:#e3e3e3; --dm-wash:#f9f9f9; --dm-row:#fafafa; --dm-soft:#ececec; --dm-soft-h:#e3e3e3; --dm-soft-ring:inset 0 0 0 1px rgba(0,0,0,.03); --dm-dis:#a6a6a6;core/core.js993 lines
// Generated from designme.dev by scripts/sync.mjs. Edit the site, then sync.// The shared core of designme.dev (core.js), as an ES module: the same code, with its helpers exported for the components' scripts.// Only the last block differs: it also mounts the cards a page brings in through Astro's client router./* Soft 2 core: mounting, replay, motion helpers, tooltips, popovers */const $ = (s, r = document) => r.querySelector(s);const $$ = (s, r = document) => Array.from(r.querySelectorAll(s));/* reduced motion, read live: REDUCE follows the device's setting as it changes, so turning it on or off mid-visit takes effect at once, without a reload. Turning it on also finishes what a script is animating in the components right now */let REDUCE = false;{ const mq = matchMedia('(prefers-reduced-motion: reduce)'); const set = () => { REDUCE = mq.matches; if (!REDUCE || !document.getAnimations) return; for (const a of document.getAnimations()){ const t = a.effect && a.effect.target; if (a instanceof CSSAnimation || a instanceof CSSTransition || !t || !t.closest || !t.closest('[data-c],.v2,.stage-in')) continue; try { a.finish(); } catch(e){ a.cancel(); } }permission-gate/PermissionGate.tsx219 lines
'use client';import { useEffect, useRef, useState, type ReactNode } from 'react';import { cx } from '../lib/cx';import { useControllable, useIsoLayoutEffect, useReducedMotion } from '../lib/hooks';import { Icon } from '../lib/icons';import { enter, growFit, Spin, Swap, SwapIcon, Tip } from '../lib/motion';import { usePopover } from '../lib/popover';import '../designme.css';// its menus' rows glide in Studioimport '../lib/glide';import './permission-gate.css'; /** Something the agent is asking to be allowed to do */export interface PermissionScope { key: string; /** Like "Edit frames" */ label: string; /** The quiet line under it, like "Only on a new page" */permission-gate/permission-gate.css148 lines
/* Generated from designme.dev by scripts/sync.mjs. Edit the site, then sync. *//* ---------- Permission gate ---------- *//* the agent asks in the chat as one card: the question, the scopes to tick, and a footer with how long and the two answers. Without .panel it sits flat in the thread */.dm-pgx{position:relative;width:100%;max-width:400px;margin:0 auto;padding:var(--dm-s-1) 0;display:flex;flex-direction:column;gap:var(--dm-s-3)}.dm-pgx.dm-panel{padding:var(--dm-s-4)}/* its motion (the core's motion pieces, owner, 26 Nov): How long's menu grows out of its button and goes back quicker, its rows settle one after another and one highlight glides between them; a press shows at once (.mx-press, no scale); How long's words and Allow ease their box to the new width (.mx-w); the spinner crossfades to the done mark (.mx-ic); and the card eases to each new height on the spring (.mx-grow) */.dm-pgx-h{display:flex;gap:var(--dm-s-3);align-items:center}.dm-pgx-ic{width:32px;height:32px;border-radius:calc(9px * var(--dm-rk-m,var(--dm-rk)));background:var(--dm-chip);display:grid;place-items:center;flex:none}.dm-pgx-ht{display:flex;flex-direction:column;min-width:0}.dm-pgx-ht b{font-weight:500;font-size:14px}.dm-pgx-ht span{font-size:13px}/* the scopes line up with the head (owner, 18 Nov): each box centred in a 32px column under the icon tile, its words where the question's start, and a tag at the row's end on the right edge the buttons below end on. The row's hover fill reaches 8px out round it, into the padding (owner, 26 Nov) */designme.css763 lines, added once
/* Generated from designme.dev by scripts/sync.mjs. Edit the site, then sync. *//* Designme shared core: tokens for Blueprint (default), Soft (data-style="soft") and Studio (data-style="studio"), on <html> or on any element around the components, light and dark (<html data-theme="dark">) */:where([data-dm]) [hidden]{display:none!important}/* hold(): an end state centred in the height its component had */.dm-held{display:flex;flex-direction:column;justify-content:center}/* the glide starts fast in both styles, so the field is on its way up before an opening list reaches the stage's edge */.dm-glide{transform:translateY(var(--dm-gy,0px));transition:transform var(--dm-t) cubic-bezier(.22,1,.36,1)}/* and a list that opens under a gliding field fades in a beat after it starts to move */.dm-glide>.dm-csx-pop.dm-open{transition-delay:.08s}.dm-glide>.dm-msc-pop.dm-open{transition-delay:.08s,.08s,.08s,0s}.dm-glide>.dm-six-pop.dm-open{transition-delay:.08s}/* Soft 2: one quiet surface per object, grey type for finished work, motion only on what is happening now */:root,[data-style="soft"],[data-style="studio"]{ --dm-motion:soft; --dm-page:#f7f7f7; --dm-stage:#fafafa; --dm-surface:#ffffff; --dm-raised:#ffffff; --dm-fg:#171717; --dm-fg2:#525252; --dm-muted:#6a6a6a; --dm-faint:#c4c4c4; --dm-rail:#d4d4d4; --dm-line:#e8e8e8; --dm-field-line:#d4d4d4; --dm-line-strong:#858585; --dm-field-line-strong:#b3b3b3; --dm-chip:#f3f3f3; --dm-hover:#ebebeb; --dm-press:#e3e3e3; --dm-wash:#f9f9f9; --dm-row:#fafafa; --dm-soft:#ececec; --dm-soft-h:#e3e3e3; --dm-soft-ring:inset 0 0 0 1px rgba(0,0,0,.03); --dm-dis:#a6a6a6;lib/16 files, added once
brands.tsx 23 linescalendar.ts 101 linescarousel.ts 140 lineschart.ts 25 linescolumns.tsx 132 linescx.ts 4 linesflags.tsx 12 linesglide.ts 124 lineshits.ts 53 lineshooks.ts 82 linesicons.tsx 134 linesmotion.tsx 466 linespixels.ts 212 linespopover.tsx 151 linesuseScript.ts 92 linesDemo.tsx 13 linesWorks with
Or hand it to your coding agent
Give your agent this prompt, and it finds, reads and installs what your screen needs.
Using with AIYou ask
Your coding agentRead
https://designme.dev/llms.txtand pick the components for our screen. For each one, read its .md page, then install it with:npx designme add <name> --reactKeep the installed files as they are and drive the components through their props from our state.It reads
It installs
Terminal$ npx designme add status-pill --react- status-pill/StatusPill.tsx
- status-pill/status-pill.css
- designme.cssadded once
- lib/added once
Then, from your state
<StatusPill state="working" label="Editing" />
Is it free?
Yes. Every component is free for personal and commercial work under the MIT licence. Fonts, icons, flags and brand marks from other projects keep their own licences, listed in NOTICE.md.
What do I need?
Node 18 or later to run the CLI. The React components need React 19 and work in Next.js, Vite and Astro islands. The HTML version needs only the shared core, which the CLI adds once.
Do I need Tailwind or shadcn/ui?
No. The components bring their own CSS. If your project uses shadcn/ui or Tailwind v4, the theme bridge (--theme-bridge) gives them your theme, and the shadcn CLI can add any of them.
Will their CSS clash with mine?
No. Every CSS variable starts with --dm-, and in React every class and animation name starts with dm- too, so nothing meets your own names.
Are they accessible?
They come with ARIA roles and labels, live regions for what the agent is doing, keyboard support in most components, tap areas on touch screens, and reduced motion.
What are Blueprint, Soft and Studio?
Three styles for the same components: Blueprint is technical and square with a lime accent, Soft is rounded with a blue accent, and Studio is black, white and grey with fully round controls. Each has a light and a dark theme. In your project, data-style on <html> picks one.
Can AI coding tools use it?
Yes. Every component and docs page has a Markdown copy at its address plus .md, and llms.txt lists every component with its install command. The Using with AI page in the docs has prompts to start from.
Is there a Figma file?
It is in progress on the roadmap. Leave your email in the library and you will get it when it lands.
Who made it?
DesignMe, a design and development studio working with startups and enterprises. If you want help building your product, book a call.
Want it designed into your product?
DesignMe made designme.dev. We design and build AI products, React apps and Astro sites.