Cosmic Design System

Style.Guide.

100% custom code. Zero templates. Every pixel pushed.

Color System

Semantic color tokens that adapt between light and dark modes.

Backgrounds

Background--color-bg
Surface--color-surface
Elevated--color-surface-elevated

Text

Primary--color-text
Muted--color-text-muted
Dim--color-text-dim

Accents

Primary--color-primary
Gradientblue → purple
Border--color-border

Two fonts. Infinite expression.

Fira Code for headings and code. Inter for body text.

MONOSPACE

Fira Code Ag

var(--font-mono)
SANS-SERIF

Inter Ag

var(--font-sans)
12px — Extra Small
14px — Small
16px — Base
18px — Large

Rhythm in whitespace.

An 8-pixel base grid creates consistent spatial relationships.

Spacing Scale

4px--space-1
8px--space-2
16px--space-3
24px--space-4
32px--space-5
64px--space-6

Component Anatomy

24px24px24px24px
8px

8px Grid

Soft corners.

Border radius tokens for consistent rounding across components.

0px--radius-none
4px--radius-sm
8px--radius-md
16px--radius-lg

Scale with purpose.

Six heading levels create clear visual hierarchy.

H1Heading2rem / 700
H2Heading1.5rem / 600
H3Heading1.25rem / 600
H4Heading1.125rem / 600

Building blocks.

Buttons, cards, forms, and more. All styled for dark mode first.

Buttons

Form Elements

Checkbox

Card

Card Title

Surface background with subtle border and hover states.

Learn more →

Every element. Styled.

From blockquotes to tables, every HTML element receives thoughtful styling.

blockquote

"The best way to predict the future is to invent it."

— Alan Kay
code
function hello() {
  return "world";
}
kbd

Press Ctrl + K to search

Structured data.

Clean table styling with subtle borders and clear hierarchy.

PropertyValueDescription
--color-primary#22d3eeMain accent color
--color-bg#0a0a0fPage background
--radius-md8pxMedium border radius
--font-monoFira CodeMonospace font family

Interactive states.

Consistent hover feedback across cards, links, tags, and buttons.

Card Hover

Post TitleJan 2, 2026

Border turns primary, lifts up 2px

Link Hover

Text changes to primary color

Tag Hover

reacttypescriptcss

Border and text turn primary

Button Hover

Primary brightens, secondary elevates

Gradient progress.

Reading progress bars use a smooth gradient from primary to purple.

Reading Progress65%
Upload Progress100%
Loading30%

Status signals.

Pulse dots and badges communicate live status at a glance.

Pulse Indicators

Live
Pending
Offline

Status Badges

OnlineAwayOfflineNew

Visitor Badges

US/blogUK/projectsDE/about

Neon glows.

Arcade games and interactive elements use glowing neon borders.

Cyanbox-shadow: 0 0 20px rgba(34, 211, 238, 0.3)
Purplebox-shadow: 0 0 20px rgba(168, 85, 247, 0.3)
Greenbox-shadow: 0 0 20px rgba(34, 197, 94, 0.3)

Blog post banners.

Interactive gradient hero with floating elements and subtle animations.

+
+
+

HERO TITLE

HERO SUBTITLE

Gradientlinear-gradient(135deg, #a855f7 → #3b82f6)
Orbsradial-gradient with blur(60px)
Animationfloat 6s ease-in-out infinite

Start exploring.

Every component. Every color. Every detail.

Back to Blog

Designed with obsessive attention to detail.