DESIGN.md · Foundation v1.0

Design System

Every shadcn/ui primitive and Syncblocks component, rendered with the tokens from DESIGN.md: Geist type, semantic color roles with brand blue as primary, a 4 px spacing rhythm, layered elevation, and accessible interaction by default.

  • Primary · #0564C9
  • Geist Sans + Geist Mono
  • Hugeicons
  • Contrast ≥ 4.5:1
  • Reduced motion honored

41 primitives · 11 Syncblocks components · 39 live examples

Foundations

Tokens every component consumes. Components use semantic roles — never raw hex or palette classes — so a token change updates every product at once.

Typography

DESIGN.md §2

Geist Sans for interface text, Geist Mono for identifiers and aligned figures. Hierarchy comes from size, spacing and 600 weight before color.

font-sans · Geist Sans

Save employee

Regular 400Medium 500Semibold 600Bold 700
font-mono · Geist Mono

EMP-000123

₱125,000.00

display40 / 48 · 600

Payroll overview

h132 / 40 · 600

Employees

h224 / 32 · 600

Pay period details

h320 / 28 · 600

Deductions

title16 / 24 · 600

Payslip summary

body-lg16 / 24 · 400

Review every entry before approving the run.

body14 / 22 · 400

Default application text for forms, tables and dialogs.

label14 / 20 · 500

Employee name

body-sm13 / 20 · 400

Last updated by Maria Santos.

caption12 / 16 · 400

Updated Sep 14, 2026, 9:20 AM

mono-sm13 / 20 · 400

EMP-000123

mono-xs12 / 16 · 400

TXN-2026-09-000481

Brand primary

DESIGN.md §3.2

Blue is the primary brand expression. Light mode uses brand-blue-600 with white text (5.72:1), since the core #0574EC only reaches 4.45:1. Dark mode uses brand-blue-300 with near-black text (8.95:1).

Primary actionprimary / primary-foreground
Button (default)

Surface and content roles

DESIGN.md §3.3
backgroundApplication canvas
foregroundDefault text
cardContained surface
popoverFloating surface
secondarySecondary surface
mutedQuiet surface
muted-foregroundSupporting text
accentHover and selection
borderStructural edge
inputForm control edge
ringFocus indicator

Status roles

DESIGN.md §3.3, §10.4

Five semantic roles, used the same way in every product. The subtle pair (-muted / -muted-foreground) is the default for badges and labels; the solid pair is reserved for high attention. Every pair meets 4.5:1, and every status carries a text label — color is never the only cue.

Paid · subtle
Paid · strong
SuccesssuccessCompleted, valid, healthy, active, approved
Pending · subtle
Pending · strong
WarningwarningNeeds attention, at risk, near a limit
Failed · subtle
Failed · strong
DangerdestructiveFailed, invalid, blocked, critical
Processing · subtle
Processing · strong
InformationinfoIn progress, scheduled, contextual
Draft · subtle
No strong treatment
NeutralsecondaryInactive, draft, not started, archived

Status vs category

DESIGN.md §10.4

Status has semantic meaning and always uses its role. A category (department, type, project) has none, so it uses the outline badge or a brand accent tint — never a status color.

ActivePendingFailedProcessingDraft
status · semantic role
HRFinanceOperationsIT
category · outline
FinanceActive
both at once

Brand palette

DESIGN.md §3.2

Theme layer only. Components reach these through semantic roles, not directly.

brand-orange
50
100
200
300
500
600
700
900
brand-blue
50
100
200
300
500
600
700
900

Spacing

DESIGN.md §4

A 4 px grid. Prefer gap-* between related items and larger steps between unrelated groups.

space-14 px
space-28 px
space-312 px
space-416 px
space-520 px
space-624 px
space-832 px
space-1040 px
space-1248 px
space-1664 px
space-2080 px
space-2496 px

Radius

DESIGN.md §7
Inputs, badges, compact controlsrounded-sm
Buttons, menusrounded-md
Cards, popoversrounded-lg
Dialogs, larger cardsrounded-xl
Large product surfacesrounded-2xl
Pills, avatarsrounded-full

Elevation

DESIGN.md §8

Four levels of layered shadow. Elevated surfaces keep a subtle border so edges stay crisp.

E0 · flatPage, default table
shadow-none
E1 · raisedSticky toolbars
shadow-e1
E2 · floatingMenus, popovers
shadow-e2
E3 · modalDialogs, drawers
shadow-e3

Iconography

DESIGN.md §30

Hugeicons at a stroke width of 2. Decorative icons are aria-hidden; icon-only controls carry an accessible name.

16 px
18 px
20 px
Common set
Icon-only control

Actions

One primary action per context. Labels name the action, loading keeps the label, and icon-only controls carry an accessible name.

Button · variants

DESIGN.md §10.1
variant="default"
variant="secondary"
variant="outline"
variant="ghost"
variant="destructive"
variant="link"

Button · sizes

DESIGN.md §10.1
size="xs"
size="sm"
size="default"
size="lg"
size="icon-xs"
size="icon-sm"
size="icon"
size="icon-lg"

Button · states

DESIGN.md §9, §18

Disable only when the action truly cannot run. Loading preserves the label with an ellipsis.

with icon
loading
disabled
aria-invalid="true"

Button Group

DESIGN.md §10.1
orientation="horizontal"
orientation="vertical"
with separator
https://
with text addon

Badge · status roles

DESIGN.md §10.4

Each semantic role has one variant, all on a subtle surface. The label names the actual state and still makes sense with the color removed.

PaidSuccess · variant="success"
PendingWarning · variant="warning"
FailedDanger · variant="destructive"
ProcessingInformation · variant="info"
DraftNeutral · variant="secondary"

Badge · status with icon

DESIGN.md §10.4

Critical states, and states that are easy to confuse, pair an icon with the label. The icon is decorative because the text already carries the meaning.

ApprovedSuccess
Pending reviewWarning
FailedDanger
ProcessingInformation
DraftNeutral

Badge · other variants

DESIGN.md §10.4

Not status roles. Categories use outline so they never read as a status, and the solid default is brand emphasis — don’t use it to mean Active or Approved.

Financecategory · variant="outline"
Newbrand emphasis, not a status · variant="default"
Internallow emphasis · variant="ghost"
Viewnavigation · variant="link"

Kbd

DESIGN.md §2.1

Keyboard shortcuts render in Geist Mono.

⌘Ksingle
Ctrl+EnterKbdGroup

Forms

Every control has a visible label. Placeholders show examples, errors sit next to the field and say how to fix it, and input is preserved through validation.

Input · states

DESIGN.md §11.2, §11.8

Assigned by HR when the record is created.

Locked while the payroll run is open.

Read-only.

Input Group

DESIGN.md §11.2
leading icon
₱
text addon
trailing action
Ctrl + Enter to save
textarea + block-end addon

Textarea

DESIGN.md §11.3

Select

DESIGN.md §11.4

For short, known option sets. Long entity lists use a searchable Combobox instead.

Checkbox

DESIGN.md §11.5

Independent choices. The label and control share one hit target.

Radio Group

DESIGN.md §11.6

Mutually exclusive choices where seeing every option helps.

Input OTP

DESIGN.md §1.8

One-time codes accept paste and autofill.

Field · layouts

DESIGN.md §11.1

Label → control 8 px, control → helper 4–8 px, field → field 16–20 px.

Employee details

Used on payslips and tax forms.

Feedback

Loading, empty, success and error states are part of every component’s contract. Errors explain what happened and offer a next step.

Alert

DESIGN.md §10.5
variant="default"
variant="info"
variant="success"
variant="warning"
variant="destructive"

Progress

DESIGN.md §18
Uploading records
x
Uploading records
x
Uploading records
x

Spinner

DESIGN.md §18

For short, localized work. Pages and tables use skeletons instead.

size-4
size-5
size-6

Skeleton

DESIGN.md §18

Placeholders mirror the final geometry to avoid layout shift.

Empty

DESIGN.md §19
No employees yet
Add your first employee to start managing payroll information.

Toast

DESIGN.md §21

Brief, non-blocking confirmation — never the only place an error is explained.

type="success"
type="info"
type="warning"
type="error"

Overlays

Overlays move focus in when they open and return it to the trigger when they close. Destructive confirmations name the action and its consequence.

Tooltip

DESIGN.md §22
side="top"
side="right"
side="bottom"
side="left"

Popover

DESIGN.md §15

Dialog

DESIGN.md §14.1

Alert Dialog

DESIGN.md §14.2
size="default"
size="sm"

Sheet

DESIGN.md §14.3
side="right"
side="left"
side="top"
side="bottom"

Drawer

DESIGN.md §14.3

Command

DESIGN.md §15

Keyboard-first search across entities and actions.

Data display

Identifiers in Geist Mono, numbers right-aligned in tabular figures with consistent precision, and statuses labelled in text.

Table

DESIGN.md §12, §25
Payroll run · Sep 1–15, 2026
Employee IDNameDepartmentStatusNet pay
EMP-000123Maria SantosFinancePaid₱42,600.00
EMP-000124Jose Dela CruzOperationsPending₱31,250.50
EMP-000125Ana ReyesPeopleFailed₱28,900.00
EMP-000126Carlos Mendoza-VillanuevaEngineeringScheduled₱125,000.00
Total₱227,750.50

Card

DESIGN.md §10.6
Payroll summary
Sep 1–15, 2026
Approved
Gross
₱125,000.00
Deductions
₱82,400.00
Net
₱42,600.00
size="default"
Payroll summary
Sep 1–15, 2026
Approved
Gross
₱125,000.00
Deductions
₱82,400.00
Net
₱42,600.00
size="sm"

Item

Payslip · September

variant="default"

Payslip · September

variant="outline"

Payslip · September

variant="muted"

Avatar

DESIGN.md §23
MSsize="sm"
MSsize="default"
MSsize="lg"
JDwith badge
MSJDAR
+4
AvatarGroup

Attachment · states

payroll-sep.csvDrop a CSV to upload
state="idle"
payroll-sep.csvUploading… 48%
state="uploading"
payroll-sep.csvValidating rows…
state="processing"
payroll-sep.csv128 rows · 24 KB
state="done"
payroll-sep.csvRow 42: invalid employee ID
state="error"

Attachment · sizes and orientation

contract.pdf2.4 MB
size="default"
contract.pdf2.4 MB
size="sm"
contract.pdf2.4 MB
size="xs"
id-photo.png820 KB
orientation="vertical"

Calendar

DESIGN.md §24
October 2026

Layout

Structure from spacing and hierarchy first; borders only where an edge must stay crisp.

Separator

DESIGN.md §6
Maria SantosPayroll Specialist
FinanceRegularEMP-000123

Scroll Area

Resizable

Employees
Details

Syncblocks components

Distributable components from the @syncblocks registry, composed from the primitives above. Every example is live — switch to Code to see its source.

Bulk Toolbar

@syncblocks/bulk-toolbarDocs
bulk-toolbar

Data Filter

@syncblocks/data-filterDocs
data-filter
TitleStatusPriorityDone
Design onboarding flowIn Progress2No
Fix invoice rounding bugDone1Yes
Write Q3 reportTodo3No
Review PR #482In Progress1No

Data Grid

@syncblocks/data-gridDocs
data-grid
data-grid-add-delete
Title
Estimate (h)
data-grid-all-column-types
Name
Email
Seats
MRR
Plan
Active
Renews on
Tags
Owner
data-grid-basic
Title
Estimate (h)
data-grid-empty-state
Title
Estimate (h)
No tasks yet
Add your first task to start tracking estimates.
data-grid-loading
TitleEstimate (h)
data-grid-mixed-editable
Order #
Customer
Status
#1001
#1002
data-grid-narrow
Title
Estimate (h)
data-grid-selection
Title
Estimate (h)

Data Pagination

@syncblocks/data-paginationDocs
data-pagination
InvoiceCustomerAmount
1Customer 1$100
2Customer 2$137
3Customer 3$174
4Customer 4$211
5Customer 5$248
6Customer 6$285
7Customer 7$322
8Customer 8$359
9Customer 9$396
10Customer 10$433
0 of 42 row(s) selected
Page 1 of 5

Filter Bar

@syncblocks/filter-barDocs
filter-bar
  • Ana ReyesFinance · Full-time
  • Ben CruzHR · Full-time
  • Cara LimHR · Contract
  • Dan SantosFinance · Contract

Page

@syncblocks/pageDocs
page

Billing

Beta
Manage your subscription and invoices

Page content goes here.

page-actions-group

Report

Q3 2026 performance

Page content goes here.

page-default

Settings

Manage your account

Page content goes here.

page-full

Billing

Beta
Manage your subscription and invoices

Page content goes here.

page-scroll

Changelog

The header stays fixed while content scrolls

Release 12.0

Notes for this release.

Release 11.0

Notes for this release.

Release 10.0

Notes for this release.

Release 9.0

Notes for this release.

Release 8.0

Notes for this release.

Release 7.0

Notes for this release.

Release 6.0

Notes for this release.

Release 5.0

Notes for this release.

Release 4.0

Notes for this release.

Release 3.0

Notes for this release.

Release 2.0

Notes for this release.

Release 1.0

Notes for this release.

page-title-only

Dashboard

Page content goes here.

page-with-badge-and-actions

Billing

Beta

Page content goes here.

page-with-breadcrumbs

Billing

Page content goes here.

page-with-subtitle

Billing

Manage your subscription and invoices

Page content goes here.

page-without-header

Full-bleed content, no header.

Password Input

@syncblocks/password-inputDocs
password-input
  • At least 8 characters— not met
  • An uppercase letter— not met
  • A lowercase letter— not met
  • A number— not met
  • A symbol— not met

Click the eye to reveal. The meter and checklist appear as you type.

password-input-checklist
x
  • At least 8 characters— not met
  • An uppercase letter— met
  • A lowercase letter— met
  • A number— met
  • A symbol— not met
password-input-default
password-input-strength
x

Workspace

@syncblocks/workspaceDocs
workspace

Dashboard

Settings

workspace-add-tab

Press + to open a tab

workspace-badges

Inbox

workspace-dirty-tabs
workspace-fallback

scratch

workspace-persistence

Split a pane by dragging a tab to an edge, then save.

Home

workspace-programmatic

dashboard

workspace-single-pane

Home

workspace-split

Dashboard

Workspace Context

@syncblocks/workspace-context
workspace-context

Workspace Tabs

@syncblocks/workspace-tabs
workspace-tabs

Home