BlogFlow Design System

A comprehensive guide to the colors, typography, spacing, and components that make up our design language.

Color Palette

Our color system uses OKLCH format for consistent and accessible colors across light and dark themes.

Semantic Colors

Background

Main background color

--background

Foreground

Main text color

--foreground

Primary

Primary brand color

--primary

Primary Foreground

Text on primary

--primary-foreground

Secondary

Secondary background

--secondary

Secondary Foreground

Text on secondary

--secondary-foreground

Accent

Accent background

--accent

Accent Foreground

Text on accent

--accent-foreground

Muted

Muted background

--muted

Muted Foreground

Muted text

--muted-foreground

Destructive

Error/danger color

--destructive

UI Colors

Card

Card background

--card

Card Foreground

Card text

--card-foreground

Popover

Popover background

--popover

Popover Foreground

Popover text

--popover-foreground

Border

Border color

--border

Input

Input border

--input

Ring

Focus ring color

--ring

Chart Colors

Chart 1

Chart color 1

--chart-1

Chart 2

Chart color 2

--chart-2

Chart 3

Chart color 3

--chart-3

Chart 4

Chart color 4

--chart-4

Chart 5

Chart color 5

--chart-5

Typography

Our typography system uses Inter for body text and Geist Mono for code, with a modular scale for consistent sizing.

Font Families

Inter
Primary font for headings and body text

The quick brown fox jumps over the lazy dog.

font-family: var(--font-inter)
Geist Mono
Monospace font for code and technical content

const hello = "world";

font-family: var(--font-geist-mono)

Font Sizes

text-xs12px
The quick brown fox
text-sm14px
The quick brown fox
text-base16px
The quick brown fox
text-lg18px
The quick brown fox
text-xl20px
The quick brown fox
text-2xl24px
The quick brown fox
text-3xl30px
The quick brown fox
text-4xl36px
The quick brown fox
text-5xl48px
The quick brown fox

Font Weights

font-thin100
The quick brown fox
font-light300
The quick brown fox
font-normal400
The quick brown fox
font-medium500
The quick brown fox
font-semibold600
The quick brown fox
font-bold700
The quick brown fox

Spacing Scale

Consistent spacing using a modular scale based on multiples of 4px.

xs4px
sm8px
md12px
lg16px
xl24px
2xl32px
3xl40px
4xl48px

Border Radius

Border radius scale based on the --radius custom property (10px base).

sm

calc(var(--radius) - 4px)

md

calc(var(--radius) - 2px)

lg

var(--radius)

xl

calc(var(--radius) + 4px)

Components

Live examples of our UI components in action.

Buttons

Variants

Sizes

Form Elements

Cards

Basic Card
This is a simple card component with header and content.

Cards are flexible containers for grouping related content and actions.

Feature Card
Another variation of the card component.
Active feature
Beta feature
Coming soon

Usage Guidelines

Design Principles
Key principles that guide our design system decisions.

Consistency

Use design tokens consistently across all components and pages.

Accessibility

All colors meet WCAG contrast requirements, and components support keyboard navigation.

Scalability

The system is built to scale with your application as it grows.

Flexibility

Components can be composed and customized while maintaining consistency.