Components

Every component of this project on one page, in all its states. Fluent 2's structure in GridXray's blue, ink and Geist.

Foundations

The tokens in root.css. Components read roles (text, surface, stroke); the palette sits underneath.

Brand

80 is the fill under white text. 90 is the logo's signal: lines, marks and charts.
10
20
30
40
50
60
70
80
90
100
110
120
130
140
150
160

Neutrals

Fluent's gray steps with a trace of the logo's ink.
dark
gray-700
gray-600
gray-550
gray-500
gray-450
gray-400
gray-350
gray-300
gray-200
gray-150
gray-100
gray-50
gray-25

Status

For state and urgency only.
info
Fill
Text
Tint
Line
success
Fill
Text
Tint
Line
warning
Fill
Text
Tint
Line
danger
Fill
Text
Tint
Line
accent
Fill
Text
Tint
Line

Type

Geist
.text-display 68 / 76 Every block on the grid
.text-large-title 40 / 52 Every block on the grid
.text-title 32 / 40 Every block on the grid
.text-title-2 28 / 36 Every block on the grid
.text-title-3 24 / 32 Every block on the grid
.text-subtitle 20 / 28 Every block on the grid
.text-subtitle-2 16 / 22 Every block on the grid
.text-body-2 16 / 22 Every block on the grid
.text-body 14 / 20 Every block on the grid
.text-caption 12 / 16 Every block on the grid
.text-caption-2 10 / 14 Every block on the grid

Elevation

--shadow-xs Pressed, small marks
--shadow-sm Cards
--shadow Toasts, raised cards
--shadow-md Menus, popups
--shadow-lg Bars, side sheets
--shadow-xl Dialogs

Shape

--r-sm Checkboxes · 2
--r Buttons, fields · 4
--r-lg Toggles · 6
--r-xl Cards, dialogs · 8
--r-xxl Sheets · 12
--r-pill Badges · ∞

Icons

Fluent System Icons: regular for actions, filled for what is selected.

Buttons

One primary per layout, for the action that matters most. Outline beside it, transparent for the many small ones.

Hierarchy

Button

Status

Tints

Text only

Sizes

States

Link

Fields

A light outline on a stronger base line. The brand line grows along the base while the field has the focus.

Text

InputText · InputTextarea

Type something that is not an email and leave the field

https://

Number

InputNumber
$

Between 0 and 10

%
ft²

Phone, code and file

InputPhone · InputOTP · InputFile

Choices and dates

Combobox · DateRangePicker
+1

Selection

Native inputs underneath, so the keyboard and screen readers work as they always do.

Checkboxes

Checkbox

Radio buttons

Radio

Toggles

RadioToggle

Switches

Switch

Range

RangeSlider
Price range $250,000 – $700,000

Feedback

Color never says it alone: there is always an icon or a word with it.

Badges

Badge
Tint
Expired New Active Pending Sold Premium
Filled
Expired New Active Pending Sold Premium
Outline
Expired New Active Pending Sold Premium
Small
Expired New Active Pending Sold Premium Active

Banners

Banner

Toasts

utils/toasts.ts

Tooltips

Tooltip

Waiting

Spinner · Skeleton · ChartProgress · LoadingOverlay
Loading…
Importing rows 64%

Empty state

Empty

No saved searches yet

Save one and it shows up here with whatever is new in it.

Overlays

Dialogs hold the keyboard while they are open and hand it back when they close.

Modal

Modal

Drawer

Drawer

Popover

Popover

Thumbnail

Thumbnail

Cards and data

Cards raised off the page, figures, tables and the bar that filters them.

Filled

Updated today

Raised off the page by a soft shadow, with no border of its own.

Outline

New

Lies on the surface: for a card inside another one.

Compact

Less padding, for dense grids.

Plain

No ground at all: a section of the page.

Scorecards Scorecard · Scorecards

Median price The middle of every active listing's asking price
+2.4% vs last month
Listings
-18 vs last month
Gross yield
High
%

Where it sits against the rest of the state.

Days on market
+4 vs last month
Listings

Filters and table Filters · Table

Status
2217 Lakeshore Boulevard Active $934,0004.6%2
88 Harbor View Drive Pending $612,5005.8%21
9 Orchard Lane Sold $518,0006.4%63
1204 Maple Street Active $425,0007.2%4
310 W Cedar Avenue Active $289,9009.1%12

Charts

Drawn in real pixels. Point at them, or focus one and use the arrow keys.

Lines with a legend

ChartSeries

Line

ChartLine

Trend

ChartTrendArea
$441K

Grouped bars

ChartBar
For sale For rent
For saleFor rent
Q18264
Q29671
Q310477
Q49169

Stacked bars

ChartBar
Principal Interest Taxes
PrincipalInterestTaxes
2026$5.2K$14.8K$4.2K
2028$5.9K$14.1K$4.3K
2030$6.7K$13.3K$4.5K
2032$7.6K$12.4K$4.6K

Horizontal bars

ChartBar
New listings
Austin48
Phoenix41
Tampa33
Charlotte27
Boise19

Donut

ChartDonut
Monthly payment
  • Principal
  • Interest
  • Taxes
  • Insurance

Progress

ChartProgress
72% Occupancy
72% Target
Occupancy 72%
Target 48%

Forms

A whole form out of an API schema.

Form from a schema

AutoForm · Labels, checks and controls come from the schema.

Unsaved changes

UnsavedChangesGuard

Turn it on and switch the language: leaving asks first.

Brand

The wordmark and the X, in four color schemes.

dark
light
black
white

Animated number

AnimatedNumber

Without a look of their own

SeoHead, Turnstile, CookieBanner, InputWrap and UnsavedChangesGuard work behind the rest.