improves in light mode
This commit is contained in:
1 parent
dd6e7b7e7e
commit
1a5f16c4e3
12 files changed
+88
-17
No files matched your search
@@ -1,5 +1,6 @@
|
||||
import { typographyLevels } from "./constants";
|
||||
const fontFamilyPrimary = '"Inter" , sans-serif';
|
||||
import { darken } from "@mui/material/styles";
|
||||
// const fontFamilySecondary = '"Avenir", sans-serif';
|
||||
|
||||
/* TODO take the color out from here */
|
||||
@@ -55,6 +56,21 @@ const baseTheme = (palette) => ({
|
||||
styleOverrides: {
|
||||
root: ({ theme }) => ({
|
||||
variants: [
|
||||
{
|
||||
props: (props) => props.variant === "contained" && props.color === "accent",
|
||||
style: {
|
||||
backgroundColor: theme.palette.accent.main,
|
||||
color: theme.palette.primary.contrastTextSecondaryDarkBg,
|
||||
fontWeight: 700,
|
||||
letterSpacing: "0.5px",
|
||||
textShadow: "0 0 1px rgba(0, 0, 0, 0.15)",
|
||||
"&:hover": {
|
||||
backgroundColor: darken(theme.palette.accent.darker, 0.05),
|
||||
boxShadow: `0 2px 6px rgba(0, 0, 0, 0.1)`,
|
||||
transition: "all 0.2s ease-in-out",
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
props: (props) => props.color === "accent",
|
||||
style: {
|
||||
@@ -566,7 +582,7 @@ const baseTheme = (palette) => ({
|
||||
root: ({ theme }) => ({
|
||||
ml: "auto",
|
||||
"& .MuiButtonBase-root, & .MuiButtonBase-root:hover": {
|
||||
borderColor: theme.palette.primary.contrastBorder,
|
||||
borderColor: theme.palette.primary.lowContrast,
|
||||
width: "auto",
|
||||
whiteSpace: "nowrap",
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user