# ScanWave Styling Guide This document outlines the design system and styling conventions used in the ScanWave application. Use this as a reference when creating new applications with similar visual design. ## Table of Contents - [Color Palette](#color-palette) - [Typography](#typography) - [Layout Patterns](#layout-patterns) - [Component Patterns](#component-patterns) - [Form Elements](#form-elements) - [Buttons](#buttons) - [Cards and Containers](#cards-and-containers) - [Navigation](#navigation) - [Tables](#tables) - [Loading States](#loading-states) - [Toast Notifications](#toast-notifications) - [Responsive Design](#responsive-design) ## Color Palette ### Primary Colors - **Blue**: Primary action color - `bg-blue-600` / `text-blue-600` - Primary buttons, links - `bg-blue-700` / `text-blue-700` - Hover states - `bg-blue-50` / `text-blue-800` - Info notifications - `border-blue-600` / `focus:ring-blue-600` - Focus states ### Gray Scale - **Text Colors**: - `text-gray-900` - Primary text (headings, important content) - `text-gray-700` - Secondary text (labels, descriptions) - `text-gray-500` - Tertiary text (metadata, placeholders) - **Background Colors**: - `bg-white` - Main content backgrounds - `bg-gray-50` - Page backgrounds, subtle sections - `bg-gray-100` - Disabled form fields - `bg-gray-200` - Loading placeholders - **Border Colors**: - `border-gray-300` - Standard borders (cards, inputs) - `border-gray-200` - Subtle borders (table rows) ### Status Colors - **Success**: `bg-green-50 text-green-800 border-green-300` - **Warning**: `bg-yellow-50 text-yellow-800 border-yellow-300` - **Error**: `bg-red-50 text-red-800 border-red-300` - **Info**: `bg-blue-50 text-blue-800 border-blue-300` ### Accent Colors - **Red**: `text-red-600` / `hover:text-red-700` - Danger actions (sign out) - **Green**: `text-green-600` - Success indicators ## Typography ### Headings ```html
Important content
Regular content
Longer content blocks
Label Form LabelHelper text
``` ### Text Utilities - **Font Weight**: `font-bold`, `font-semibold`, `font-medium` - **Text Alignment**: `text-center`, `text-left` - **Line Height**: `leading-relaxed` for longer text blocks ## Layout Patterns ### Container Pattern ```html| Header |
|---|
| Data |
{message}