Dark theme is slate matcha, a cool slate background with a yellow-green button, instead of green-tinted sage
Browse files at this commitd2d2dd330815a4e53a13d06443ac39d8a19c5a5eParent: c2d290a- style
- dark theme is slate matcha, a cool slate background with a yellow-green button, instead of green-tinted sage
2 changed files +27 -24
crates/forge-web/src/accent.rsmodified+1 -1
| @@ -383,7 +383,7 @@ mod tests { | ||
| 383 | 383 | #[test] |
| 384 | 384 | fn swatches_show_the_accent_and_the_base_for_presets_and_hues() { |
| 385 | 385 | assert_eq!(swatch("sage", false), "#5E7D63"); |
| 386 | - assert_eq!(swatch("sage", true), "#9DBEA2"); | |
| 386 | + assert_eq!(swatch("sage", true), "#93A663"); | |
| 387 | 387 | assert_eq!( |
| 388 | 388 | swatch("hue-215", false), |
| 389 | 389 | accent_tokens(215, 50, false).accent |
crates/forge-web/src/accent_palette.rsmodified+26 -23
| @@ -98,17 +98,19 @@ pub const PALETTES: &[Palette] = &[ | ||
| 98 | 98 | hunk_bg: "#EDF1EB", |
| 99 | 99 | hunk_text: "#3F5F46", |
| 100 | 100 | }, |
| 101 | + // Dark is matcha: a yellow-green fill with dark text, which reads cleaner on slate than | |
| 102 | + // the grey-green sage did. | |
| 101 | 103 | dark: Tokens { |
| 102 | - accent: "#9DBEA2", | |
| 103 | - accent_ink: "#B5D2B9", | |
| 104 | - accent_soft: "#233026", | |
| 105 | - accent_text: "#0F1510", | |
| 106 | - focus: "#9DBEA2", | |
| 107 | - public_bg: "#233026", | |
| 108 | - public_text: "#B5D2B9", | |
| 109 | - note: "#B5D2B9", | |
| 110 | - hunk_bg: "#1E2620", | |
| 111 | - hunk_text: "#9DBEA2", | |
| 104 | + accent: "#93A663", | |
| 105 | + accent_ink: "#BCCB8F", | |
| 106 | + accent_soft: "#283020", | |
| 107 | + accent_text: "#151A0B", | |
| 108 | + focus: "#BCCB8F", | |
| 109 | + public_bg: "#283020", | |
| 110 | + public_text: "#D3DDB4", | |
| 111 | + note: "#BCCB8F", | |
| 112 | + hunk_bg: "#1D2219", | |
| 113 | + hunk_text: "#B3C385", | |
| 112 | 114 | }, |
| 113 | 115 | }, |
| 114 | 116 | // Flare orange: a bright, clean orange on plain neutral greys. |
| @@ -343,7 +345,7 @@ pub const BASE_TOKEN_VARS: &[BaseTokenVar] = &[ | ||
| 343 | 345 | /// Every base on offer, in the order the picker lists them. `fern` is the original forge |
| 344 | 346 | /// neutral set. |
| 345 | 347 | pub const BASES: &[Base] = &[ |
| 346 | - // Fern: the original forge neutrals, green-tinted. | |
| 348 | + // Fern: the original forge neutrals, green-tinted in light and slate in dark. | |
| 347 | 349 | Base { |
| 348 | 350 | id: "fern", |
| 349 | 351 | light: BaseTokens { |
| @@ -360,19 +362,20 @@ pub const BASES: &[Base] = &[ | ||
| 360 | 362 | private_text: "#3A433D", |
| 361 | 363 | ln_text: "#646D65", |
| 362 | 364 | }, |
| 365 | + // Dark is cool slate: a green-tinted near-black looked swampy. | |
| 363 | 366 | dark: BaseTokens { |
| 364 | - bg: "#121613", | |
| 365 | - surface: "#191E1A", | |
| 366 | - surface_2: "#1F261F", | |
| 367 | - text: "#E3E8E2", | |
| 368 | - text_2: "#C4CCC3", | |
| 369 | - muted: "#97A198", | |
| 370 | - border: "#2A322C", | |
| 371 | - border_strong: "#3A443C", | |
| 372 | - code_bg: "#1F261F", | |
| 373 | - private_bg: "#1F261F", | |
| 374 | - private_text: "#C4CCC3", | |
| 375 | - ln_text: "#97A198", | |
| 367 | + bg: "#131618", | |
| 368 | + surface: "#191D20", | |
| 369 | + surface_2: "#20252A", | |
| 370 | + text: "#E3E8EA", | |
| 371 | + text_2: "#C3CACD", | |
| 372 | + muted: "#96A0A5", | |
| 373 | + border: "#283035", | |
| 374 | + border_strong: "#384146", | |
| 375 | + code_bg: "#1C2125", | |
| 376 | + private_bg: "#20252A", | |
| 377 | + private_text: "#C3CACD", | |
| 378 | + ln_text: "#8A959A", | |
| 376 | 379 | }, |
| 377 | 380 | }, |
| 378 | 381 | // Spark: plain neutral greys, barely warm. |