Documentation Index
Fetch the complete documentation index at: https://mintlify.com/ImLukzy/ChefDash/llms.txt
Use this file to discover all available pages before exploring further.
GameColors is a SwiftUI Color extension that formalises ChefDash’s “Culinary Pop” visual identity into seven named static constants. Rather than scattering raw Color(red:green:blue:) literals throughout the view layer, these constants give every designer-specified hue a stable, self-documenting name. The palette covers every surface role in the game: backgrounds, cards, action buttons, coin accents, typography, and ingredient button fills.
Extension Source
Color Palette Reference
| Property | Approx Hex | Usage |
|---|---|---|
gameBackground | #FAF7F2 | Cream white page and screen background; also used in VictoryView as the full-screen backdrop |
gameOrange | #F55E0D | Primary action buttons and active indicators — the “burnt orange” brand accent |
gameYellow | #F0B021 | Coin displays, star highlights, and mustard-yellow neon grid accents on the Home screen |
gameCardBackground | #FFFFFF | Pure white card surfaces — recipe cards, shop item cards |
gameTextDark | #381F0D | Primary body and heading text; an organic dark brown that reads as near-black at small sizes |
gameDarkBrown | #61331C | Background fill for price tag labels (e.g. the “500 F” coin badge in ShopView) |
gameLightGray | #F2F0EB | Fill for tappable ingredient buttons in RecipesView |
The hex approximations above are computed from the source RGB triplets (each component × 255, rounded). SwiftUI’s
Color(red:green:blue:) initialiser takes linear sRGB values in the range 0–1, so the displayed colour may vary slightly depending on the device’s display colour profile.Relationship to Inline Color Literals in Views
TheGameColors extension provides named constants that mirror the palette defined in the Figma source designs. However, some views in ChefDash also use direct Color(red:green:blue:) literals rather than the named constants. Where the two diverge, the view-level literal takes precedence at render time — GameColors is a convenience layer, not enforced across the entire codebase.
Color.gameOrange (red: 0.96, green: 0.37, blue: 0.05) is the precise burnt orange from the design spec. Some views use a slightly lighter orangeAccent variant — Color(red: 0.96, green: 0.44, blue: 0.13) — which raises the green channel by 0.07, producing a warmer, less saturated shade. If you are adding new views and want exact brand consistency, prefer Color.gameOrange from the extension.