Design System & Style Guide
A comprehensive reference for building consistent, accessible, and scalable interfaces across all Dictionary products. This document defines our visual language, component patterns, and development standards.
Brand Overview
Dictionary is a modern language tool built for clarity, precision, and discovery. Our design system reflects these values: clean typography, deliberate whitespace, and a color palette that balances academic trust with contemporary digital warmth.
Color Palette
Our color system is built on a 50-step functional scale. Use primary colors for interactive elements and brand recognition, neutrals for structure and text, and semantic colors for status communication.
Brand & Primary
Functional & Semantic
Typography
We use a dual-font system: Playfair Display for headings (conveying authority and elegance) and Inter for body/UI text (optimized for screen readability). Code and technical data use JetBrains Mono.
Spacing & Layout
We follow a 4px baseline grid. All padding, margins, and gaps are multiples of 4 (0.25rem, 0.5rem, 0.75rem, etc.). Consistent spacing creates visual rhythm and reduces cognitive load.
Layout Grid: Desktop uses a 12-column grid with 24px gutters. Mobile collapses to a single column with 16px side padding. Content max-width is capped at 1280px for readability.
UI Components
Standardized building blocks for consistent interaction patterns. Always use semantic HTML and maintain keyboard accessibility.
Buttons
Badges & Tags
Cards
Effervescent
Vivacious and enthusiastic; marked by high spirits and buoyancy. Often used to describe personality or atmosphere.
Alerts & Notifications
Forms & Inputs
Forms should be progressive, clearly labeled, and provide immediate feedback. Use inline validation where possible.
Supports natural language queries and wildcard searches.
Icons & Imagery
Icons should be line-based, geometric, and consistent at 24px size. Use Lucide or Heroicons for the core set. Never use icons without accompanying text for primary actions.
Imagery Guidelines: Use abstract linguistic concepts, typography-focused photography, or clean vector illustrations. Avoid stock photos of people reading books. Maintain a 2:1 or 16:9 aspect ratio for hero/media elements.
Accessibility Standards
Dictionary meets WCAG 2.1 AA standards across all touchpoints. Key requirements:
- Contrast: All text meets 4.5:1 ratio against backgrounds. Interactive elements meet 3:1.
- Focus States: Visible outline using
--color-brand-100ring on:focus-visible. Never remove focus outlines without replacement. - Keyboard Navigation: Full functionality accessible via Tab, Shift+Tab, Enter, Space, and Escape.
- Reduced Motion: Respect
prefers-reduced-motion: reduceby disabling non-essential animations and parallax. - Semantic HTML: Use proper landmarks, ARIA labels where necessary, and skip-to-content links.
Developer Reference
Copy these custom properties directly into your project's root stylesheet to inherit the full design system.
@tokens/studio or style-dictionary to sync across CSS, Swift, and Kotlin.