Design system
Skill ulpi-io/plugin-marketplace/plugins/resend/skills/resend-design-skills/design-system
Use when building or modifying UI in the Resend codebase. Provides component APIs, variant options, design tokens, and composition patterns for all src/ui/ primitives.From its SKILL.md
npx -y skills add ulpi-io/plugin-marketplace --skill design-systemAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
4.5 KB, ~1.1k tokens by cl100k_base, as published. Nobody here has run it
Resend Design System
Use primitives from src/ui/ for all UI work. Never create custom components when a primitive exists. Check /design/components pages for live examples.
Quick Reference
All primitives use @/ui/{name} imports. Icons in @/ui/icons/icon-{name}.
Core Components
| Component | Import | Key Variants |
|---|---|---|
| Button | @/ui/button | appearance: white, gray, fade-gray, fade, fade-red, red. size: 1, 2 |
| TextField | @/ui/text-field/text-field | Compound: Root > Slot + Input + Slot. state/size on Input. size: 1, 2, 3 |
| Heading | @/ui/heading | size: 1-8. color: white, gray. weight: medium, semibold, bold |
| Text | @/ui/text | size: 1-9. color: white, gray, red, yellow |
| Tag | @/ui/tag | appearance: gray, green, red, yellow, blue, orange, violet, sand |
| Banner | @/ui/banner | Page/section-level messages (role="alert"). Auto icon. green=success, yellow=warning, red=error, blue=info. Use Tag for inline item labels |
| Select | @/ui/select | Namespace: Root > Trigger + Content > Item. For value selection (forms) |
| Dialog | @/ui/dialog | Namespace: Root > Trigger + Content > Title. size: 1, 2, full-screen |
| Switch | @/ui/switch | checked, onCheckedChange, disabled |
| Checkbox | @/ui/checkbox | checked (boolean | 'indeterminate'), onCheckedChange |
| IconButton | @/ui/icon-button | Same variants as Button. Always provide aria-label |
| DropdownMenu | @/ui/dropdown-menu | Namespace: Root > Trigger + Content > Item. For actions, not value selection |
Sizing Scale
| Size | Height | Text | Radius |
|---|---|---|---|
'1' | h-6 | text-xs | rounded-lg |
'2' | h-8 | text-sm | rounded-xl |
'3' | h-10 | text-sm | rounded-xl |
Color Conventions
- Primary action:
appearance="white"(inverted black/white, flips in dark mode) - Secondary:
appearance="gray" - Subtle/ghost:
appearance="fade"orappearance="fade-gray" - Destructive:
appearance="red"orappearance="fade-red"
Key Rules
- Use
cn()from@/lib/cnfor class merging - Use
@/absolute imports everywhere - Prefer Server Components;
'use client'only at lowest interactive leaf — extract the interactive part into a small leaf component, don't mark the whole page client - Use sentence case for all UI copy
- State via
stateprop, not booleans —state="loading",state="disabled",state="invalid",state="read-only". Each value is self-sufficient:state="loading"already prevents interaction, so don't also adddisabled={} - Compound TextField:
TextField.Root > TextField.Slot? + TextField.Input + TextField.Slot?—stateandsizego onTextField.Input, not Root. Use<TextField.Error message={msg} id="x" />inside a trailing Slot for validation errors — it auto-wiresaria-describedby. Don't also passerror=on Input or setaria-describedbymanually. - Radix namespaces:
import * as Select from '@/ui/select' asChildfor links:<Button asChild><Link href="/x">Label</Link></Button>— also works on Dialog.Trigger, Tooltip.Trigger
Server vs Client
Already client (built-in, no extra 'use client' needed on your part): TextField, Checkbox, Dialog, Drawer, Collapsible, Calendar, BulkActions.
Server-safe: Button, Heading, Text, Tag, Banner, Card, EmptyState, Kbd, IconButton.
Correct pattern — extract only the interactive leaf:
// page.tsx — Server Component
export default function Page() {
return <Card><Heading>Title</Heading><DeleteDialog /></Card>;
}
// delete-dialog.tsx — small Client Component
'use client';
export function DeleteDialog() {
return (
<Dialog.Root>
<Dialog.Trigger asChild><Button appearance="fade-red">Delete</Button></Dialog.Trigger>
<Dialog.Content size="1"><Dialog.Title>Confirm delete</Dialog.Title></Dialog.Content>
</Dialog.Root>
);
}
References
For detailed documentation, load these as needed:
design-system/references/components.md— Full component catalog with all props and usagedesign-system/references/design-tokens.md— Colors, typography, shadows, animationsdesign-system/references/patterns.md— CVA conventions, compound components, slot system
What ships with it: 3 files
11.8 KB alongside SKILL.md
references/
- components.md5.3 KB
- design-tokens.md3.2 KB
- patterns.md3.3 KB