Skip to content

Commit

Permalink
Add darker/lighter neutral00 color for input backgrounds
Browse files Browse the repository at this point in the history
  • Loading branch information
owi92 committed Sep 20, 2023
1 parent 3065c57 commit 1610e4c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions backend/src/config/color.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ impl ColorConfig {

// Neutral colors (05 = background, 90 = foreground)
let base_grey = Lch::from_color(self.grey50.0.into_format::<f32>());
add(&mut light, "neutral00", Lch { l: 100.0, ..base_grey });
add(&mut light, "neutral05", Lch { l: 99.7, ..base_grey });
add(&mut light, "neutral10", Lch { l: 95.9, ..base_grey });
add(&mut light, "neutral15", Lch { l: 92.0, ..base_grey });
Expand All @@ -273,6 +274,7 @@ impl ColorConfig {
add(&mut light, "neutral80", Lch { l: 17.0, ..base_grey });
add(&mut light, "neutral90", Lch { l: 8.0, ..base_grey });

add(&mut dark, "neutral00", Lch { l: 5.0, ..base_grey });
add(&mut dark, "neutral05", Lch { l: 7.7, ..base_grey });
add(&mut dark, "neutral10", Lch { l: 11.5, ..base_grey });
add(&mut dark, "neutral15", Lch { l: 15.3, ..base_grey });
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/GlobalStyle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ const GLOBAL_STYLE = css({
},
"p, label": { color: COLORS.neutral80 },
"input, textarea": {
backgroundColor: COLORS.neutral05,
backgroundColor: COLORS.neutral00,
color: COLORS.neutral90,
":disabled": {
backgroundColor: COLORS.neutral10,
Expand Down
1 change: 1 addition & 0 deletions frontend/src/color.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export const COLORS = {
happy2: "var(--color-happy2)",
happy2BwInverted: "var(--color-happy2-bw-inverted)",

neutral00: "var(--color-neutral00)",
neutral05: "var(--color-neutral05)",
neutral10: "var(--color-neutral10)",
neutral15: "var(--color-neutral15)",
Expand Down

0 comments on commit 1610e4c

Please sign in to comment.