You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: BrewUI design system — use Theme tokens in app SwiftUI code.
globs: Brew/**/*.swift
alwaysApply: false
---
# Brew design system (app UI)
- **Colours / styles:** Use `Color.brew…` and `ShapeStyle` helpers from `Brew/Theme/BrewColors.swift` with asset catalog sets — do not use raw hex, `Color(red:…)`, or ad-hoc `Color("…")` in views. If a semantic colour is missing, add a named token in `BrewColors.swift` and a matching colourset.
- **Layout:** Use `BrewLayout`, `BrewSpacing`, and `BrewRadius` from `Brew/Theme/BrewSpacing.swift` instead of magic numbers.
- **Typography:** Use `Font.brew…` from `Brew/Theme/BrewFonts.swift` and semantic text colours from `BrewColors`.
- **Shadows:** Prefer `brewShadowSmall` / `brewShadowMedium` / `brewShadowLarge` when elevation is needed.
- **新建 patterns:** Extend `Brew/Theme/` rather than scattering one-off values in feature views.