improves in light mode

This commit is contained in:
karenvicent committed 2025-07-28 16:28:44 -04:00
1 parent dd6e7b7e7e
commit 1a5f16c4e3
12 files changed
+88 -17

No files matched your search

+13 -1
View File
@@ -87,8 +87,10 @@ const newColors = {
offBlack: "#131315",
gray0: "#FDFDFD",
gray10: "#F4F4FF",
gray50: "#F9F9F9",
gray100: "#F3F3F3",
gray200: "#EFEFEF",
gray250: "#DADADA",
gray500: "#A2A3A3",
gray900: "#1c1c1c",
blueGray50: "#E8F0FE",
@@ -173,7 +175,7 @@ const newSemanticColors = {
dark: newColors.blueGray800,
},
lowContrast: {
light: newColors.gray200,
light: newColors.gray250,
dark: newColors.blueGray600,
},
},
@@ -337,6 +339,16 @@ const newSemanticColors = {
dark: newColors.blueGray900,
},
},
container: {
background: {
light: newColors.gray50,
dark: newColors.offBlack,
},
border: {
light: newColors.gray500,
dark: newColors.blueGray600,
},
},
};
export { typographyLevels, semanticColors as colors, newSemanticColors };
+17 -1
View File
@@ -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",
},