Skip to content

Commit

Permalink
feat: add background highlight theme color
Browse files Browse the repository at this point in the history
  • Loading branch information
filiptammergard committed May 30, 2023
1 parent d6989c8 commit 1d13661
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/honest-cheetahs-sit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@einride/ui": minor
---

Add background highligh theme color.
1 change: 1 addition & 0 deletions packages/einride-ui/src/lib/theme/dark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export const dark: ColorTheme = {
accent1: color.blue[40],
accent2: color.violet[40],
accent3: color.yellow[40],
highlight: color.green[20],
focus: `${color.black}B8`, // B8 is HEX for ~72% opacity
},
content: {
Expand Down
1 change: 1 addition & 0 deletions packages/einride-ui/src/lib/theme/light.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export const light: ColorTheme = {
accent1: color.blue[60],
accent2: color.violet[60],
accent3: color.yellow[60],
highlight: color.green[20],
focus: `${color.black}66`, // 66 is HEX for ~40% opacity
},
content: {
Expand Down
1 change: 1 addition & 0 deletions packages/einride-ui/src/lib/theme/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const backgroundColors = [
"accent1",
"accent2",
"accent3",
"highlight",
"focus",
] as const
export type BackgroundColor = (typeof backgroundColors)[number]
Expand Down

0 comments on commit 1d13661

Please sign in to comment.