Skip to content

Commit 4adc546

Browse files
AbhineetJainkylecarbs
authored andcommitted
feat: Use consistent colors for links and highlighting (#1989)
* feat: consistent highlight colors * update user dropdown menu border * update borderedmenurow active color
1 parent 3061105 commit 4adc546

File tree

7 files changed

+9
-8
lines changed

7 files changed

+9
-8
lines changed

site/src/components/BorderedMenu/BorderedMenu.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ const useStyles = makeStyles((theme) => ({
3131
},
3232
paperRoot: {
3333
width: "292px",
34-
border: `2px solid ${theme.palette.primary.main}`,
34+
border: `2px solid ${theme.palette.secondary.dark}`,
3535
borderRadius: 7,
36-
boxShadow: `4px 4px 0px ${fade(theme.palette.primary.main, 0.2)}`,
36+
boxShadow: `4px 4px 0px ${fade(theme.palette.secondary.dark, 0.2)}`,
3737
},
3838
}))

site/src/components/BorderedMenuRow/BorderedMenuRow.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,12 @@ const useStyles = makeStyles((theme) => ({
7878
},
7979

8080
"&[data-status='active']": {
81-
color: theme.palette.primary.main,
81+
color: theme.palette.secondary.dark,
8282
"& .BorderedMenuRow-description": {
8383
color: theme.palette.text.primary,
8484
},
8585
"& .BorderedMenuRow-icon": {
86-
color: theme.palette.primary.main,
86+
color: theme.palette.secondary.dark,
8787
},
8888
},
8989
},

site/src/components/BuildsTable/BuildsTable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ const useStyles = makeStyles((theme) => ({
106106
},
107107

108108
"&:focus": {
109-
outline: `1px solid ${theme.palette.primary.dark}`,
109+
outline: `1px solid ${theme.palette.secondary.dark}`,
110110
},
111111
},
112112
}))

site/src/components/NavbarView/NavbarView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ const useStyles = makeStyles((theme) => ({
116116
content: `" "`,
117117
bottom: 0,
118118
left: theme.spacing(3),
119-
background: "#C16800",
119+
background: theme.palette.secondary.dark,
120120
right: theme.spacing(3),
121121
height: 2,
122122
position: "absolute",

site/src/components/TabSidebar/TabSidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ const useStyles = makeStyles((theme) => ({
6868
color: theme.palette.text.primary,
6969
},
7070
"&.active": {
71-
color: theme.palette.primary.dark,
71+
color: theme.palette.secondary.dark,
7272
},
7373

7474
"&.active, &:hover": {

site/src/components/UserDropdownContent/UserDropdownContent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ const useStyles = makeStyles((theme) => ({
127127
margin: theme.spacing(0.5),
128128
},
129129
chipRoot: {
130-
backgroundColor: "#7057FF",
130+
backgroundColor: theme.palette.secondary.dark,
131131
},
132132
link: {
133133
textDecoration: "none",

site/src/theme/palettes.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export const darkPalette: PaletteOptions = {
1111
secondary: {
1212
main: "#008510",
1313
contrastText: "#f8f8f8",
14+
dark: "#7057FF",
1415
},
1516
background: {
1617
default: "#1F1F1F",

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy