Skip to content

Commit a6cc10e

Browse files
committed
Use theme colors
1 parent e1a8997 commit a6cc10e

File tree

1 file changed

+6
-2
lines changed
  • site/src/components/DeploySettingsLayout

1 file changed

+6
-2
lines changed

site/src/components/DeploySettingsLayout/Option.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,17 @@ export const OptionConfig = ({
7171
fontFamily: MONOSPACE_FONT_FAMILY,
7272
fontWeight: 600,
7373
backgroundColor: (theme) =>
74-
source ? "green" : theme.palette.background.paperLight,
74+
source
75+
? theme.palette.success.dark
76+
: theme.palette.background.paperLight,
7577
display: "inline-flex",
7678
alignItems: "center",
7779
borderRadius: 0.25,
7880
padding: (theme) => theme.spacing(0, 1),
7981
border: (theme) =>
80-
`1px solid ${source ? "lightgreen" : theme.palette.divider}`,
82+
`1px solid ${
83+
source ? theme.palette.success.light : theme.palette.divider
84+
}`,
8185
...boxProps.sx,
8286
}}
8387
/>

0 commit comments

Comments
 (0)