Aller au contenu principal

Rules: design-style

The project's design direction is defined in CLAUDE.md:

Affected files

These rules apply to files matching the following patterns:

  • **/*.tsx
  • **/*.jsx
  • **/components/**
  • **/pages/**
  • **/app/**

Detailed rules

Design Style Rules

Art Direction

The project's design direction is defined in CLAUDE.md:

## Design Direction
Style: <direction>

If no direction is specified, apply modern (equivalent of the former glass).

Available directions

terminal — The interface that codes

AspectDirection
PaletteBlack/very dark background, single neon accent (green, cyan, or amber), light high-readability text
TypographyMonospace (JetBrains Mono, Fira Code, IBM Plex Mono), hierarchy by weight and size
RadiusSharp: 0-4px, crisp edges
SpacingCompact, dense, tight padding (8-12px), aligned grids
AnimationsScan lines, glow pulse, caret blink, fast fade-in (100-150ms). No bounce or spring
ComponentsBordered cards (1px solid), prompt-style inputs, outlined buttons, monochrome badges
Anti-patternsRounded corners > 8px, colored gradients, cartoon illustrations, diffuse shadows, pastels

cockpit — The pilot's dashboard

AspectDirection
PaletteDark-first, functional colors (red alert, green OK, amber warning, blue info), layered dark background
TypographyCondensed sans-serif (Inter, DM Sans), monospace for numerical data, hierarchy by density
RadiusLow: 4-6px, functional
SpacingDense, multi-column grids, little whitespace, juxtaposed panels
AnimationsFast transitions (100-200ms), pulse on real-time indicators, fade for data updates
ComponentsModular widgets, inline mini-charts, status badges, KPI cards, dense tables, sparklines
Anti-patternsLarge illustrations, excessive whitespace, very rounded corners, slow animations, single-column layouts

vitality — Positive energy

AspectDirection
PaletteVivid and harmonious, 3-4 well-distinct category colors, light or cream background, energetic accents
TypographyRounded and friendly sans-serif (Nunito, Plus Jakarta Sans, DM Sans), bold and engaging headings
RadiusGenerous: 12-16px, soft shapes
SpacingAiry, comfortable padding (16-24px), breathing space between sections
AnimationsProgression micro-animations (bars, counters), subtle spring/bounce (200-300ms), celebratory feedback
ComponentsColored cards with icons, progress bars, streaks, reward badges, full and rounded buttons
Anti-patternsDefault dark mode, monospace, technical/austere aesthetic, lack of color, dense layouts

editorial — The digital magazine

AspectDirection
PaletteNeutral and sober, dominant black/white, 1 editorial accent color, white or paper-cream background
TypographySerif for headings (Playfair Display, Lora, Merriweather), sans-serif for body, very pronounced hierarchy
RadiusMinimal: 0-4px, straight lines
SpacingVery airy, large whitespace, generous margins, max-width 65-75ch for text
AnimationsSubtle, fade-in on scroll (200-400ms), soft page transitions. No decorative animation
ComponentsFull-format image cards, stylized quotes, thin separators, discreet navigation, clean lists
Anti-patternsVisual overload, multiple bright colors, emojis, gamified badges, complex grids, pronounced shadows

glass — Modern transparency

AspectDirection
PaletteBackground with depth (subtle gradient or image), semi-transparent surfaces, single luminous accent
TypographyGeometric sans-serif (Geist, Inter, SF Pro), light to medium weights, hierarchy by opacity
RadiusMedium-generous: 12-16px, fluid shapes
SpacingBalanced, medium padding (16-20px), layering with spacing between surfaces
AnimationsBlur transitions, fade with depth (200-300ms), hover with elevation, subtle parallax
ComponentsGlassmorphism cards (backdrop-blur + bg opacity), overlays, floating panels, translucent buttons
Anti-patternsHard edges, flat opaque backgrounds, hard shadows, raw high contrast, technical/terminal aesthetic

signal — Raw efficiency

AspectDirection
PaletteNeutral (gray/white), colors limited to strict signal (action, error, success), no decoration
TypographySans-serif system-ui or geometric (Inter, system-ui), tight sizes, no frills
RadiusLow: 4-6px, utilitarian
SpacingTight but readable, minimal padding (8-12px), maximum density without sacrificing readability
AnimationsNear-absent, instant transitions (50-100ms), immediate feedback, no decorative animation
ComponentsInline inputs, contextual actions, command palette, keyboard shortcuts, compact tables, flat menus
Anti-patternsIllustrations, gradients, decorative shadows, long animations, large margins, visual frills

Applying directions

IMPORTANT: The direction applies to ALL of the project's themes. A theme (light, dark, sepia) only changes the color palette, not the visual personality.

IMPORTANT: Do not mix directions. If the project is terminal, a light theme stays monospace, compact, with crisp edges.

YOU MUST read the Style: directive in CLAUDE.md before generating UI code.

YOU MUST adapt components, spacing, animations, and typography to the chosen direction.

NEVER generate generic/default UI code when a direction is specified.

NEVER change direction mid-project without explicit instruction.

Automatic application

These rules are automatically applied by Claude during:

  • Reading the matching files
  • Modifying code
  • Suggestions and fixes

See also