Design system
Design guidelines
How Job Fit Studio looks, feels and reads. The components are built on Radix UI primitives for accessibility, styled with Tailwind and a small set of colour tokens: charcoal, dusty purple and gold on white. Changing the palette is one edit in a JSON file.
Principles
How we decide what the interface should do and say.
Calm and honest
We help people through a stressful search. Say what we know and how sure we are. Never a verdict where a signal will do, never celebration for its own sake.
One main action
Each area of a screen has one filled button. Everything else is outlined or quiet. If two things compete, one of them is a link.
Meaning is never only colour
Status always carries words or an icon as well as colour: “Verified open”, not just a green pill. People with colour blindness depend on it.
Reach everything by keyboard
Every control can be reached and used with the keyboard, with a visible focus ring. Radix gives us arrow keys, Escape, focus return and screen-reader roles; keep them by building on the primitives, not around them.
Words people would say
Buttons name what happens (“Mark messaged”, “Analyze fit”), errors say what to do next, and we never blame the person.
Private by default
Signed-in screens are wrapped in Masked so session recordings hide their text. Overlays rendered in a portal pick it up from the primitives. Never put a person’s data in a URL.
Writing
- Do: Mark messaged
- Do: We couldn’t read that file. Try a PDF or Word document.
- Do: Possibly stale
- Don’t: Submit
- Don’t: Error 422: invalid upload
- Don’t: This job is fake
Using colour
Components use semantic tokens, never raw palette colours. bg-success-soft text-success-foreground works in every theme; bg-green-50 text-green-700 does not.
// Good: a theme can change these
<Badge variant="success">Verified open</Badge>
<p className="text-danger-foreground">Couldn't save</p>
// Not allowed in app screens
<span className="bg-green-50 text-green-700">Verified open</span>Changing the palette
The tokens in one JSON file are the single source: the CSS, this page and the contrast check are all built from it.
// 1. src/design/tokens.json: edit the values ("H S% L%"). brand is dusty purple, gold is the highlight.
"brand": "270 18% 42%",
"gold": "42 54% 54%"
// 2. Build. scripts/gen-tokens.mjs writes the CSS and fails if any text pair drops below WCAG AA.
npm run buildFoundations
The colour, type, shape and motion every screen is built from.
Colour
Charcoal for text and buttons, dusty purple for links and focus, gold for small highlights. Contrast is calculated from the values, and the build fails if a text pair falls below 4.5:1 (WCAG AA).
Surfaces
The page, cards and menus, and the text that sits on them.
background
#ffffff · 0 0% 100%
foreground
#201e1d · 20 5% 12%
16.6:1 on background · AAA
card
#ffffff · 0 0% 100%
card-foreground
#201e1d · 20 5% 12%
16.6:1 on card · AAA
popover
#ffffff · 0 0% 100%
muted
#f7f5f3 · 30 17% 96%
muted-foreground
#665f5c · 20 5% 38%
5.7:1 on muted · AA
secondary
#f7f5f3 · 30 17% 96%
accent
#f0ecf3 · 270 22% 94%
Lines
border
#e6e3e0 · 26 12% 89%
input
#dbd6d1 · 26 12% 84%
ring (focus)
#755e8d · 270 20% 46%
Brand
Charcoal is the filled button. Dusty purple is for links, selected chips and the focus ring.
primary
#201e1d · 20 5% 12%
primary-foreground
#ffffff · 0 0% 100%
16.6:1 on primary · AAA
brand
#6b587e · 270 18% 42%
brand-foreground
#ffffff · 0 0% 100%
6.3:1 on brand · AA
brand-soft
#f2eff5 · 270 25% 95%
brand-border
#d6cede · 270 20% 84%
destructive
#db2424 · 0 72% 50%
destructive-foreground
#fafafa · 0 0% 98%
4.7:1 on destructive · AA
Gold
A small highlight: badges and key moments. As a fill it carries charcoal text; as text it uses the darker gold-text.
gold
#c9a34a · 42 54% 54%
gold-foreground
#201e1d · 20 5% 12%
7.0:1 on gold · AA
gold-soft
#faf3e1 · 43 70% 93%
gold-border
#e9d5a5 · 43 60% 78%
gold-text
#77580d · 42 80% 26%
6.0:1 on gold-soft · AA
Status
Each status has a solid colour for dots and icons, a soft background, a border and readable text.
success
#1b9d4a · 142 71% 36%
success-soft
#f2fdf5 · 138 76% 97%
success-border
#bbf7d0 · 141 79% 85%
success-foreground
#157f3c · 142 72% 29%
4.9:1 on success-soft · AA
warning
#f59f0a · 38 92% 50%
warning-soft
#fffbeb · 48 100% 96%
warning-border
#fde68b · 48 97% 77%
warning-foreground
#833f0c · 26 83% 28%
7.5:1 on warning-soft · AAA
danger
#ef4343 · 0 84% 60%
danger-soft
#fef1f1 · 0 86% 97%
danger-border
#fec8c8 · 0 96% 89%
danger-foreground
#ba1c1c · 0 74% 42%
5.8:1 on danger-soft · AA
info
#3c83f6 · 217 91% 60%
info-soft
#f0f6ff · 214 100% 97%
info-border
#bedbfe · 213 97% 87%
info-foreground
#1d4fd7 · 224 76% 48%
6.1:1 on info-soft · AA
Tints
Soft colours that tell people apart (avatars).
tint-1
#ede8f3 · 270 30% 93%
tint-2
#defce9 · 141 84% 93%
tint-3
#fef3c8 · 48 96% 89%
tint-4
#f7edd4 · 43 70% 90%
tint-5
#ffe5e8 · 355 100% 95%
tint-6
#d6faff · 187 100% 92%
tint-1-foreground
#4d3762 · 270 28% 30%
tint-2-foreground
#137236 · 142 72% 26%
tint-3-foreground
#793b0b · 26 83% 26%
tint-4-foreground
#6e4e0c · 40 80% 24%
tint-5-foreground
#b11039 · 345 83% 38%
tint-6-foreground
#0b5d74 · 193 82% 25%
Typography
DM Sans, weights 400 to 700. Use the named sizes; no arbitrary pixel values.
text-microFind your fit before you apply10px · Counts, tiny badgestext-2xsFind your fit before you apply11px · Captions, chipstext-xsFind your fit before you apply12px · Secondary texttext-compactFind your fit before you apply13px · Dense controlstext-smFind your fit before you apply14px · Body text and controlstext-baseFind your fit before you apply16px · Card titlestext-2xlFind your fit before you apply24px · Score numberstext-3xlFind your fit before you apply30px · Page headingsRadius and shadow
Spacing
14px28px312px416px624px832px1248pxMotion
- Transitions are quick: 150 to 300 ms, for colour, opacity and small movements.
- Toasts slide in from the top and can be swiped away; the loading shimmer and floating landing chips run only for people who have not asked for reduced motion.
- Nothing animates just to decorate the work screens.
Components
Radix-based building blocks, each with its variants and states.
Button
One filled button per area. Use asChild to make a link look like a button.
Show code
<Button>Analyze fit</Button>
<Button variant="outline">Open posting</Button>
<Button variant="ghost" size="icon" aria-label="Star job"><Star /></Button>
<Button asChild><a href="/app">Go to your jobs</a></Button>Badge
Status badges say it in words and colour, never colour alone.
Show code
<Badge variant="success">Verified open</Badge>
<Badge variant="warning">Possibly stale</Badge>Alert
A message that belongs to the page. Errors and warnings are announced immediately.
Choose a PDF or Word file.
Show code
<Alert variant="warning">This analysis used profile version 1.</Alert>
<FormError>Choose a PDF or Word file.</FormError>Toast
A short-lived message about something that just happened. Hover to pause, swipe right to dismiss, F8 to jump to it.
Show code
toast.success('Saved', 'Your profile is at version 2.')
toast.error('Could not save', 'Please try again')
toast.rateLimit('Limited availability', 'Try again in a few minutes.')Tabs
One part of a page at a time. Arrow keys, Home and End move between tabs.
Skills you have and the gaps to address.
Show code
<Tabs value={tab} onValueChange={setTab}>
<TabsList aria-label="Parts of this job">
<TabsTrigger value="fit">Fit</TabsTrigger>
<TabsTrigger value="pitch">Pitch</TabsTrigger>
</TabsList>
<TabsContent value="fit">…</TabsContent>
</Tabs>Segmented control and toggles
ToggleGroup for one-of-few views. Toggle for a filter that is on or off; its colour says what it means.
Show code
<ToggleGroup type="single" value={view} onValueChange={v => v && setView(v)} aria-label="View">
<ToggleGroupItem value="list">List</ToggleGroupItem>
<ToggleGroupItem value="board">Board</ToggleGroupItem>
</ToggleGroup>
<Toggle tone="warning" pressed={starred} onPressedChange={setStarred}>Starred</Toggle>Form controls
Field wires the label, hint and error to the control for screen readers.
As it appears on LinkedIn
That doesn’t look like a LinkedIn profile.
Show code
<Field id="name" label="Name" hint="As on LinkedIn" error={error}>
{props => <Input {...props} value={name} onChange={…} />}
</Field>Overlays: dialog, menu, tooltip
Built on Radix: focus is trapped and returned, Escape closes, and screen readers get the right roles. They open in your own theme.
Show code
<Dialog>
<DialogTrigger asChild><Button>Open</Button></DialogTrigger>
<DialogContent>
<DialogHeader><DialogTitle>Remove Maya?</DialogTitle><DialogDescription>…</DialogDescription></DialogHeader>
</DialogContent>
</Dialog>Card, avatar, separator
Initials stand in when there is no picture.
Show code
<Card><CardHeader><CardTitle>Create a token</CardTitle></CardHeader><CardContent>…</CardContent></Card>
<Avatar><AvatarFallback>MC</AvatarFallback></Avatar>Loading and empty
No jobs yet
Set a location and search, or add one yourself.
Show code
<Spinner label="Loading jobs" />
<Skeleton className="h-14 w-full" />
<Progress value={60} />
<EmptyState title="No jobs yet" action={<Button>Find jobs</Button>}>Set a location and search.</EmptyState>Patterns
How the pieces come together in the product.
Fit score
Colour follows the score: 70 and up is success, 50 to 69 warning, below 50 danger. The number is always shown.
Show code
<FitRing score={87} size="lg" />Reality check
Soft wording on purpose: these are signals about a posting, not a verdict on the company. Evidence opens under “Why?”.
Show code
<RealityPanel reality={job.reality} compact />
<RealityChip reality={job.reality} />People on a job
Initials in a soft tint. A tick marks someone you have already messaged. Hover for who they are.
Show code
<PersonStack people={people} total={people.length} size="md" />Tour card
The first-time tours use one card: progress dots, a title, a sentence or two, and quiet navigation.
Find jobs
Show code
<Joyride tooltipComponent={TourCard} steps={steps} />