Design System

Preview of colors, typography, and components used in this project.

Color Palette

Semantic Colors

Background / Cream

Background / Cream

HSL: 40 33% 98%

Class: bg-background

Foreground / Charcoal

Foreground / Charcoal

HSL: 0 0% 17%

Class: bg-foreground

Primary / Sage

Primary / Sage

HSL: 82 18% 72%

Class: bg-primary

Secondary / Blush

Secondary / Blush

HSL: 30 26% 94%

Class: bg-secondary

Muted

Muted

HSL: 30 26% 94%

Class: bg-muted

Accent

Accent

HSL: 82 18% 65%

Class: bg-accent

Destructive

Destructive

HSL: 0 84% 60%

Class: bg-destructive

Border

Border

HSL: 30 20% 88%

Class: bg-border

Card

Card

HSL: 40 33% 98%

Class: bg-card

Custom Tokens

Cream

HSL: 40 33% 98%

Sage

HSL: 82 18% 65%

Sage Dark

HSL: 82 22% 42%

Charcoal

HSL: 0 0% 17%

Blush

HSL: 30 26% 94%

Typography

Font Families

font-serif (Playfair Display)

The quick brown fox jumps over the lazy dog

font-sans (Inter)

The quick brown fox jumps over the lazy dog

Heading Styles

.heading-display

Display Heading

.heading-section

Section Heading

.heading-card

Card Heading

Body Text

.text-body

This is regular body text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

.text-body-sm

This is smaller body text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Text Colors

text-foreground - Primary text color

text-muted-foreground - Secondary/muted text

text-primary - Primary accent color

text-destructive - Error/destructive text

Primary Color 使用說明

bg-primary vs text-primary

為了提高文字對比度,bg-primary 和 text-primary 使用不同深淺的顏色:

bg-primary (HSL 82 18% 72%)

淺色背景 + 深色文字

text-primary (HSL 82 22% 42%)

深色文字,對比度更好

Section Backgrounds

.section-cream

Default cream background section

.section-sage

Sage green background with dark text

.section-blush

Blush/beige background section

Common Patterns

Badge / Tag

bg-primary/10 + text-primary(自動使用深色)

Week 1Week 2Week 3

Icon Container

bg-primary/10 + text-primary icon

Primary Opacity Variants

bg-primary with different opacity levels

/5

/10

/20

/30

/50

100%

Border Radius

rounded-sm

rounded-md

rounded-lg

rounded-full

Animations

animate-fade-in

Fade in effect (0.6s)

animate-slide-up

Slide up with fade (0.6s)

animate-marquee

Infinite horizontal scroll (30s)

Container

Max Width: 1280px (2xl)

Padding: 1.5rem

Centered: Yes