Files
b2da8561b7 refactor(brand): marks come from @bitbaum/design-tokens/marks (#1584)
* refactor(brand): marks come from @bitbaum/design-tokens/marks

Every product's mark now lives in the design-tokens package (1.6.0), so
a logo is replaced once and OrangeCat, Solon and Loki follow. The local
copies (loki, orangecat, solon) and the source writer are gone;
src/config/marks, mark-svg and svg-to-mark re-export the package, so no
call site changed. The cat generator stays here and the brand test holds
the package's cat equal to it. `brand:import` now prints where to import
a mark instead of writing a copy that would drift.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmsX15QgjkDp9MQaQ92

* docs(brand): name the package's import script without claiming it here

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmsX15QgjkDp9MQaQ92

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Cato <cato@orangecat.ch>
2026-11-28 22:56:37 +01:00
..

OrangeCat Design System

Created: 2025-06-05
Last Modified: 2026-07-09
Last Modified Summary: Reconciled with semantic-tier migration — warm accent #ff5c00 for conversion CTAs, Bitcoin Orange #f7931a for Bitcoin-only UI, monochromatic surfaces elsewhere. Tiffany/orange chromatic palette is legacy/retired for new code.
Version: 2.0.0

Overview

This document describes OrangeCat brand and component guidelines. For implementation SSOT, prefer code over this file when they disagree:

Layer File
CSS variables & .oc-* classes src/app/globals.css
Tailwind theme tailwind.config.ts
Button/Input/Card class strings src/config/design-system.ts
Cat chat layout & copy src/config/layout-chrome.ts, src/config/cat-hub.ts
Architecture audit docs/architecture/CAT_AND_DESIGN_SSOT.md

Brand direction (2026)

  • Surfaces: achromatic semantic tier (bg-surface-*, text-fg-*, border-default)
  • Conversion accent: warm orange #ff5c00 — bg-accent-warm / variant="accent" on top-of-funnel CTAs only
  • Bitcoin UI only: #f7931a — bg-bitcoinOrange for balances, Lightning, Bitcoin icons
  • Status: status-positive/warning/negative — never decorative chroma
  • Legacy Tiffany/orange Tailwind scales: exist in globals.css for backward compat but must not appear in new components

Brand Colors (historical reference)

Note: The Tiffany palette below is retired for new UI. Kept for email/OG assets migration tracking only.

Primary Colors (legacy)

  • Tiffany Blue (#0ABAB5) — retired; do not use in new Tailwind classes
    • Primary brand color
    • Used for main CTAs, important elements, and brand identity
    • Light variant: #E6F7F7 (10% opacity)
    • Dark variant: #089B96 (for hover states)

Secondary Colors

  • Orange (#FF6B35)
    • Accent color for Bitcoin-related elements
    • Used sparingly for emphasis and Bitcoin-specific features
    • Light variant: #FFF0EB (10% opacity)
    • Dark variant: #E65A2F (for hover states)

Neutral Colors

  • Gray Scale
    • #1A1A1A (Text)
    • #4A4A4A (Secondary Text)
    • #8A8A8A (Tertiary Text)
    • #E5E5E5 (Borders)
    • #F5F5F5 (Background)
    • #FFFFFF (White)

Typography

Font Family

  • Primary: Inter
    • Clean, modern, and highly readable
    • Used for all body text and UI elements

Font Sizes

  • Headings

    • H1: 48px (3rem)
    • H2: 36px (2.25rem)
    • H3: 24px (1.5rem)
    • H4: 20px (1.25rem)
    • H5: 18px (1.125rem)
    • H6: 16px (1rem)
  • Body

    • Large: 18px (1.125rem)
    • Regular: 16px (1rem)
    • Small: 14px (0.875rem)
    • Extra Small: 12px (0.75rem)

Spacing

Base Unit

  • 4px (0.25rem)

Spacing Scale

  • 4px (0.25rem)
  • 8px (0.5rem)
  • 12px (0.75rem)
  • 16px (1rem)
  • 24px (1.5rem)
  • 32px (2rem)
  • 48px (3rem)
  • 64px (4rem)
  • 96px (6rem)

Components

Buttons

  • Primary Button

    • Background: Tiffany Blue
    • Text: White
    • Padding: 12px 24px
  • Border Radius: 8px

    • Hover: Dark Tiffany Blue
  • Secondary Button

    • Background: White
    • Text: Tiffany Blue
    • Border: 1px solid Tiffany Blue
  • Padding: 12px 24px

    • Border Radius: 8px
    • Hover: Light Tiffany Blue background

Cards

  • Background: White
  • Border Radius: 12px
  • Shadow: 0 4px 6px rgba(0, 0, 0, 0.05)
  • Padding: 24px
  • Border: 1px solid #E5E5E5

Inputs

  • Height: 40px
  • Border Radius: 8px
  • Border: 1px solid #E5E5E5
  • Focus: 2px solid Tiffany Blue
  • Padding: 0 12px

Layout

Grid System

  • 12-column grid
  • Max width: 1280px
  • Gutter width: 24px
  • Breakpoints:
    • Mobile: 0-640px
    • Tablet: 641-1024px
    • Desktop: 1025px+

Container

  • Max width: 1280px
  • Padding: 0 24px
  • Margin: 0 auto

Motion

Transitions

  • Default duration: 0.3s
  • Easing: cubic-bezier(0.4, 0, 0.2, 1)

Animations

  • Fade in: 0.3s
  • Slide in: 0.3s
  • Scale: 0.2s

Accessibility

Color Contrast

  • Text on background: Minimum 4.5:1
  • Large text: Minimum 3:1
  • Interactive elements: Minimum 3:1

Focus States

  • Visible outline: 2px solid Tiffany Blue
  • Offset: 2px from element

Content Guidelines

Voice and Tone

  • Professional yet approachable
  • Clear and concise
  • Focus on funding and transparency
  • Avoid donation terminology
  • Use simple, non-technical language

Terminology

  • Use "funding" instead of "donations"
  • Use "projects" instead of "creators"
  • Use "supporters" instead of "donors"
  • Use "transparency score" consistently
  • Use "Bitcoin funding" instead of "Bitcoin donations"

Best Practices

User Flow

  • Guide users gently through the experience
  • One primary CTA per section
  • Progressive disclosure of information
  • Clear hierarchy of actions

Visual Hierarchy

  • Use size, color, and spacing to establish importance
  • Maintain consistent spacing between sections
  • Use white space effectively
  • Limit use of accent colors

Responsive Design

  • Mobile-first approach
  • Fluid typography
  • Flexible layouts
  • Touch-friendly targets (minimum 44px)

Implementation

Tailwind Configuration

module.exports = {
  theme: {
    extend: {
      colors: {
        tiffany: {
          DEFAULT: '#0ABAB5',
          light: '#E6F7F7',
          dark: '#089B96',
        },
        orange: {
          DEFAULT: '#FF6B35',
          light: '#FFF0EB',
          dark: '#E65A2F',
        },
      },
      fontFamily: {
        sans: ['Inter', 'sans-serif'],
      },
    },
  },
};

Component Structure

  • Atomic design principles
  • Reusable components
  • Consistent naming conventions
  • TypeScript interfaces for props

Icons

  • Style: Rounded
  • Size: 24x24px (default)
  • Color: Matches text color
  • Stroke Width: 2px
  • Use Lucide icons consistently

Dark Mode Colors

  • Background: #1A1A1A
  • Text: #FFFFFF
  • Primary: #0ABAB5
  • Secondary: #FF6B35
  • Surface: #2D2D2D

Component States

Error States

  • Form Validation

    • Error text color: #DC2626
    • Error border color: #DC2626
    • Error icon: Alert circle
    • Error message position: Below input
    • Error message size: 14px
  • API Errors

    • Error banner background: #FEE2E2
    • Error banner border: #DC2626
    • Error banner text: #991B1B
    • Error banner icon: Alert triangle
    • Error banner padding: 16px

Loading States

  • Spinner

    • Color: Tiffany Blue
    • Size: 24px
    • Stroke width: 2px
    • Animation: 1s linear infinite
  • Skeleton Loading

    • Background: #E5E5E5
    • Animation: Pulse
    • Duration: 1.5s
    • Easing: ease-in-out

Empty States

  • Empty List

    • Icon: Inbox
    • Icon size: 48px
    • Icon color: #8A8A8A
    • Text color: #4A4A4A
    • Text size: 16px
    • CTA button: Primary
  • Empty Search

    • Icon: Search
    • Icon size: 48px
    • Icon color: #8A8A8A
    • Text color: #4A4A4A
    • Text size: 16px
    • Suggestion text: 14px

Success States

  • Success Message
    • Background: #ECFDF5
    • Border: #059669
    • Text: #065F46
    • Icon: Check circle
    • Duration: 3s
    • Animation: Fade out

Version Control

Version 1.0.0 (June 5, 2025)

  • Initial design system release
  • Core components and guidelines
  • Basic documentation structure

Breaking Changes

  • None (initial release)

Migration Guide

  • N/A (initial release)

Design Tokens

CSS Variables

:root {
  /* Colors */
  --color-tiffany: #0abab5;
  --color-tiffany-light: #e6f7f7;
  --color-tiffany-dark: #089b96;
  --color-orange: #ff6b35;
  --color-orange-light: #fff0eb;
  --color-orange-dark: #e65a2f;
  --color-bitcoin-orange: #f7931a;

  /* Typography */
  --font-family-sans: 'Inter', sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.5;

  /* Spacing */
  --spacing-unit: 4px;
  --spacing-xs: calc(var(--spacing-unit) * 1);
  --spacing-sm: calc(var(--spacing-unit) * 2);
  --spacing-md: calc(var(--spacing-unit) * 4);
  --spacing-lg: calc(var(--spacing-unit) * 6);
  --spacing-xl: calc(var(--spacing-unit) * 8);

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

Tailwind Configuration

module.exports = {
  theme: {
    extend: {
      colors: {
        tiffany: {
          DEFAULT: 'var(--color-tiffany)',
          light: 'var(--color-tiffany-light)',
          dark: 'var(--color-tiffany-dark)',
        },
        orange: {
          DEFAULT: 'var(--color-orange)',
          light: 'var(--color-orange-light)',
          dark: 'var(--color-orange-dark)',
        },
      },
      fontFamily: {
        sans: ['var(--font-family-sans)'],
      },
      spacing: {
        xs: 'var(--spacing-xs)',
        sm: 'var(--spacing-sm)',
        md: 'var(--spacing-md)',
        lg: 'var(--spacing-lg)',
        xl: 'var(--spacing-xl)',
      },
      borderRadius: {
        sm: 'var(--radius-sm)',
        md: 'var(--radius-md)',
        lg: 'var(--radius-lg)',
      },
      boxShadow: {
        sm: 'var(--shadow-sm)',
        md: 'var(--shadow-md)',
        lg: 'var(--shadow-lg)',
      },
    },
  },
};

Bitcoin Orange

  • Bitcoin Orange
    • HEX: #F7931A
    • RGB: 247, 147, 26
    • Usage: All Bitcoin-related UI elements (icons, highlights, buttons, etc.)
    • Design Token: --color-bitcoin-orange: #F7931A;

Usage Guidelines for Bitcoin Orange

  • Use exclusively for Bitcoin-related elements (logos, icons, highlights, CTAs)
  • Do not use for unrelated UI elements
  • Ensure sufficient contrast with backgrounds
  • Use HEX #F7931A for all digital assets
  • For print, use RGB (247, 147, 26)