Files
orangecat/docs/development/LOGO_REFACTOR.md
T
Your Name 1b2a2371e9 refactor: Complete codebase improvements per engineering principles
- Fix currency defaults (SATS → CHF) across forms, configs, and API routes
- Remove @ts-nocheck from socialService.ts and improve type safety
- Replace console.log statements with proper logger utility in production code
- Additional type safety improvements and code quality enhancements
- Documentation updates for improved maintainability

All changes follow DRY, SSOT, and separation of concerns principles.
2026-01-04 12:25:26 +01:00

2.0 KiB

created_date, last_modified_date, last_modified_summary
created_date last_modified_date last_modified_summary
2025-12-27 2025-12-27 Documentation for modular logo refactor

OrangeCat Logo Refactor

Overview

Refactored the OrangeCat logo to be modular, DRY, and feature a cute minimalist cat in a pirate hat.

Design

The new logo features:

  • Cute cat face with friendly eyes and smile
  • Pirate hat with skull decoration (minimalist)
  • Bitcoin orange (#FF6B00) as primary color
  • Minimalist design - clean lines, simple shapes
  • Responsive sizing - works at all sizes

Architecture

Modular Components

  1. CatIcon.tsx - Standalone icon component

    • Reusable SVG icon
    • Configurable size and colors
    • Can be used independently
  2. Logo.tsx - Logo component with text

    • Uses CatIcon internally
    • Includes "OrangeCat" text and tagline
    • Single source of truth for logo display
  3. orange-cat-logo.svg - Static SVG file

    • Used for favicons and metadata
    • Matches the CatIcon design

DRY Principles

  • Single source - CatIcon is the only place the icon SVG is defined
  • Reusable - CatIcon can be used anywhere (not just in Logo)
  • Consistent - All logo instances use the same component

Usage

Basic Logo (with text)

import Logo from '@/components/layout/Logo';

<Logo />

Logo without text

<Logo showText={false} />

Custom size

<Logo size="lg" />

Standalone Icon

import { CatIcon } from '@/components/layout/CatIcon';

<CatIcon size="md" />

Custom colors

<CatIcon 
  size="lg" 
  catColor="#FF6B00" 
  hatColor="#1A1A1A" 
/>

Files

  • src/components/layout/CatIcon.tsx - Icon component
  • src/components/layout/Logo.tsx - Logo component
  • public/images/orange-cat-logo.svg - Static SVG file

Benefits

✅ Modular - Icon can be used independently
✅ DRY - Single source of truth
✅ Maintainable - Change once, updates everywhere
✅ Flexible - Customizable size and colors
✅ Cute - Minimalist cat in pirate hat design