@2ndbrain/ui

Design system

Tokens, atoms, molecules, organisms and templates, each shown in Day, Mars and Dark. Showing the Human mind; pick another speed of thought in the header and every panel follows. The page itself is in Day.

Tokens

OKLCH, solved for WCAG contrast in both sRGB and Display-P3, generated by packages/ui/scripts/palette.mjs. Use the Tailwind names (bg-card, text-muted, border-line) or the CSS variables.

Accent by speed of thought

token

The nine minds, sRGB fallback values.

Day

Mars

Dark

Atoms

The smallest pieces. Radix primitives where behavior matters (Avatar, Switch, Tooltip), Heroicons for every icon.

Logo and wordmark

atom

Day

2ndBrain2ndBrain

Mars

2ndBrain2ndBrain

Dark

2ndBrain2ndBrain

Button and ButtonLink

atom

Day

Link

Mars

Link

Dark

Link

IconButton and Icon

atom

Day

Mars

Dark

Badge and Chip

atom

Day

NeutralProVerifiedSavedFailedActiveReading list

Mars

NeutralProVerifiedSavedFailedActiveReading list

Dark

NeutralProVerifiedSavedFailedActiveReading list

Input, TextLink, Switch

atom

Avatar and Swatch

atom

Day

Mars

Dark

Card

atom

Day

A surface on --card with a hairline.

Mars

A surface on --card with a hairline.

Dark

A surface on --card with a hairline.

Molecules

Atoms working together. Menus are Radix DropdownMenu: menu button, menuitemradio rows, arrow keys, typeahead and Escape.

SpeedModeMenu and DaypartMenu

molecule

Menus open in the page's own light.

Day

Mars

Dark

DaypartToggle

molecule

Day

Mars

Dark

SpeedModePicker

molecule

Day

Mars

Dark

NavLink and NavGroup

molecule

EmailCapture

molecule

Day

Hint text under the field.

Mars

Hint text under the field.

Dark

Hint text under the field.

FeaturePill and SocialLinks

molecule

Day

1-click save from any page

Mars

1-click save from any page

Dark

1-click save from any page

IntegrationTile

molecule

UserMenu

molecule

Avatar trigger, account, app links, appearance submenus, sign out.

Day

Mars

Dark

Organisms

Page-sized parts. The live header and footer of this page are the same organisms.

SiteHeader (app variant, signed in)

organism

Hero over CognitiveMeshBackground

organism

The Human pattern; reduced motion shows a still frame.

Day

Never lose a
brilliant thought

A sample hero, scaled to fit.

Mars

Never lose a
brilliant thought

A sample hero, scaled to fit.

Dark

Never lose a
brilliant thought

A sample hero, scaled to fit.

SettingsSection and SettingsRow

organism

Day

Sample section

A titled card with rows.

A setting

What it does, in one line.

Mars

Sample section

A titled card with rows.

A setting

What it does, in one line.

Dark

Sample section

A titled card with rows.

A setting

What it does, in one line.

FatFooter

organism

Day

Mars

Dark

PerformanceOverlay

organism

Templates: MarketingPage (the home page), AppPage (signed-in screens), LegalPage (terms) and SettingsPage (settings).