Skip to content

Design Principles

The philosophy behind every color, component, and interaction in the Cookest design system. These principles guide us in creating interfaces that feel as delightful as the meals our users create.

Foundation

Core Principles

Six guiding ideas that shape every decision we make — from choosing a border-radius to building an entire page layout.

🍳

Flavor First

Every component should feel warm, inviting, and appetizing. We use earthy greens, warm ambers, and creamy whites to evoke the joy of cooking.

📐

Consistent Proportions

Like a well-balanced recipe, every component follows an 8px spacing grid and consistent border-radius scale.

🪶

Lightweight by Default

Components ship minimal CSS. No heavy dependencies. Tree-shakeable. Under 15KB gzipped.

Inclusive Design

WCAG 2.1 AA compliant. Every component is keyboard navigable, screen reader compatible, and supports reduced motion.

📱

Cross-Platform Parity

React and Flutter components share identical design tokens, ensuring visual consistency across web and mobile.

🧩

Composable Architecture

Small, focused components that compose naturally. Build complex UIs from simple building blocks.

Color

Color Philosophy

Our palette is drawn from the kitchen — fresh herbs, warm wood, and sun-ripened produce. Every hue is chosen for meaning, not decoration.

Primary Green#7A9A65

Inspired by fresh herbs and garden greens

Background#F5F5F0

Warm cream — like parchment or flour-dusted counters

Heading#1C3A2A

Deep forest ink for clear, grounded headlines

Text#3D5040

Soft, readable body text with natural warmth

Success#4CAF50

Intuitive green for positive feedback

Warning#FF9800

Amber caution — like a timer about to ring

Error#F44336

Clear red for errors and destructive actions

Spacing

Spacing System

A base-8 spacing scale keeps layouts rhythmic and predictable. Multiples of 8px create natural vertical and horizontal harmony, with a 4px half-step for tighter contexts.

0.5
4px
1
8px
1.5
12px
2
16px
3
24px
4
32px
6
48px
8
64px
12
96px
Typography

Typography Scale

Three typeface families — each chosen for a specific role. Playfair Display brings editorial warmth, Inter ensures effortless readability, and JetBrains Mono keeps code crisp.

Playfair DisplaySerifDisplay & Headlines
5xl · 48pxThe quick brown fox
4xl · 36pxThe quick brown fox
3xl · 30pxThe quick brown fox
InterSans-serifBody & UI
lg · 18pxThe quick brown fox
base · 16pxThe quick brown fox
sm · 14pxThe quick brown fox
JetBrains MonoMonospaceCode & Technical
base · 16pxThe quick brown fox
sm · 14pxThe quick brown fox
xs · 12pxThe quick brown fox

Do’s & Don’ts

Quick guidelines to keep your Cookest interfaces consistent and accessible.

Do
  • Use consistent spacing from the 8px grid
  • Follow the color system — use tokens, not hex codes
  • Compose small components into complex layouts
  • Test with keyboard and screen readers
  • Respect reduced-motion preferences
Don’t
  • Override design tokens with arbitrary values
  • Nest cards more than two levels deep
  • Mix serif and sans-serif fonts in body text
  • Use color alone to convey meaning
  • Skip focus indicators for interactive elements