apply colors to theme
This commit is contained in:
1 parent
002e9ce18a
commit
d82b0ad674
1 file changed
+16
-6
@@ -1,5 +1,4 @@
|
|||||||
import { typographyLevels } from "./constants";
|
import { typographyLevels } from "./constants";
|
||||||
|
|
||||||
const fontFamilyPrimary = '"Inter" , sans-serif';
|
const fontFamilyPrimary = '"Inter" , sans-serif';
|
||||||
// const fontFamilySecondary = '"Avenir", sans-serif';
|
// const fontFamilySecondary = '"Avenir", sans-serif';
|
||||||
|
|
||||||
@@ -300,13 +299,15 @@ const baseTheme = (palette) => ({
|
|||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
MuiTextField: {
|
MuiTextField: {
|
||||||
styleOverrides: {
|
styleOverrides: {
|
||||||
root: ({ theme }) => ({
|
root: ({ theme }) => ({
|
||||||
"& fieldset": {
|
"& fieldset": {
|
||||||
borderColor: theme.palette.primary.lowContrast,
|
borderColor: theme.palette.primary.contrastBorder,
|
||||||
borderRadius: theme.shape.borderRadius,
|
borderRadius: theme.shape.borderRadius,
|
||||||
},
|
},
|
||||||
|
|
||||||
"& .MuiInputBase-input": {
|
"& .MuiInputBase-input": {
|
||||||
padding: ".75em",
|
padding: ".75em",
|
||||||
minHeight: "var(--env-var-height-2)",
|
minHeight: "var(--env-var-height-2)",
|
||||||
@@ -356,10 +357,19 @@ const baseTheme = (palette) => ({
|
|||||||
MuiOutlinedInput: {
|
MuiOutlinedInput: {
|
||||||
styleOverrides: {
|
styleOverrides: {
|
||||||
root: {
|
root: {
|
||||||
color: palette.primary.contrastTextTertiary,
|
"&.Mui-disabled .MuiOutlinedInput-notchedOutline": {
|
||||||
"&.Mui-focused .MuiOutlinedInput-notchedOutline": {
|
borderColor: palette.primary.contrastBorderDisabled,
|
||||||
borderColor: palette.primary.contrastTextTertiary,
|
|
||||||
},
|
},
|
||||||
|
"&.Mui-disabled:hover .MuiOutlinedInput-notchedOutline": {
|
||||||
|
borderColor: palette.primary.contrastBorderDisabled,
|
||||||
|
},
|
||||||
|
"&:hover .MuiOutlinedInput-notchedOutline": {
|
||||||
|
borderColor: palette.primary.contrastText, // Adjust hover border color
|
||||||
|
},
|
||||||
|
"&.Mui-focused .MuiOutlinedInput-notchedOutline": {
|
||||||
|
borderColor: palette.accent.main, // Adjust focus border color
|
||||||
|
},
|
||||||
|
color: palette.primary.contrastTextTertiary,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -486,7 +496,7 @@ const baseTheme = (palette) => ({
|
|||||||
root: ({ theme }) => ({
|
root: ({ theme }) => ({
|
||||||
ml: "auto",
|
ml: "auto",
|
||||||
"& .MuiButtonBase-root, & .MuiButtonBase-root:hover": {
|
"& .MuiButtonBase-root, & .MuiButtonBase-root:hover": {
|
||||||
borderColor: theme.palette.primary.lowContrast,
|
borderColor: theme.palette.primary.contrastBorder,
|
||||||
width: "auto",
|
width: "auto",
|
||||||
whiteSpace: "nowrap",
|
whiteSpace: "nowrap",
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user