Skip to content

Commit

Permalink
fine-tuning the grey palette for higher contrast
Browse files Browse the repository at this point in the history
  • Loading branch information
danilo-leal committed Mar 6, 2024
1 parent f027eeb commit b7cb20b
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 28 deletions.
12 changes: 6 additions & 6 deletions docs/src/components/pricing/PricingTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1008,16 +1008,16 @@ function RowCategory(props: BoxProps) {
pl: 1.5,
display: 'block',
textTransform: 'uppercase',
letterSpacing: '.08rem',
letterSpacing: '.1rem',
fontWeight: theme.typography.fontWeightBold,
fontSize: theme.typography.pxToRem(11),
color: 'text.secondary',
color: (theme.vars || theme).palette.text.tertiary,
borderBottom: '1px solid',
bgcolor: 'grey.50',
borderColor: 'grey.200',
bgcolor: (theme.vars || theme).palette.grey[50],
borderColor: (theme.vars || theme).palette.grey[200],
...theme.applyDarkStyles({
bgcolor: 'primaryDark.900',
borderColor: 'primaryDark.600',
bgcolor: (theme.vars || theme).palette.primaryDark[900],
borderColor: (theme.vars || theme).palette.primaryDark[600],
}),
}),
...(Array.isArray(props.sx) ? props.sx : [props.sx]),
Expand Down
18 changes: 9 additions & 9 deletions docs/src/modules/brandingTheme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,11 @@ export const grey = {
50: '#F3F6F9',
100: '#E5EAF2',
200: '#DAE2ED',
300: '#C7D0DD', // vs blueDark 900: WCAG 11.6 AAA, APCA 78 Best for text
400: '#B0B8C4', // vs blueDark 900: WCAG 9 AAA, APCA 63.3 Ok for text
500: '#9DA8B7', // vs blueDark 900: WCAG 7.5 AAA, APCA 54.3 Only for large text
600: '#6B7A90', // vs white bg: WCAG 4.1 AA, APCA 68.7 Ok for text
700: '#434D5B', // vs white bg: WCAG 8.3 AAA, APCA 88.7 Best for text
300: '#C5D0E0', // vs blueDark 900: WCAG 11.6 AAA, APCA 78 Best for text
400: '#AEBACB', // vs blueDark 900: WCAG 9 AAA, APCA 63.3 Ok for text
500: '#99A7BB', // vs blueDark 900: WCAG 7.5 AAA, APCA 54.3 Only for large text
600: '#6F7F95', // vs white bg: WCAG 4.1 AA, APCA 68.7 Ok for text
700: '#576375', // vs white bg: WCAG 8.3 AAA, APCA 88.7 Best for text
800: '#303740', // vs white bg: WCAG 11.9 AAA, APCA 97.3 Best for text
900: '#1C2025',
};
Expand Down Expand Up @@ -208,13 +208,13 @@ export const getDesignTokens = (mode: 'light' | 'dark') =>
text: {
...(mode === 'light' && {
primary: grey[900],
secondary: grey[700],
tertiary: grey[600],
secondary: grey[800],
tertiary: grey[700],
}),
...(mode === 'dark' && {
primary: '#fff',
secondary: grey[400],
tertiary: grey[400],
tertiary: grey[500],
}),
},
grey: {
Expand Down Expand Up @@ -839,9 +839,9 @@ export function getThemedComponents(): ThemeOptions {
},
styleOverrides: {
root: ({ theme }) => ({
fontWeight: theme.typography.fontWeightSemiBold,
display: 'inline-flex',
alignItems: 'center',
fontWeight: theme.typography.fontWeightSemiBold,
'&.MuiTypography-body1 > svg': {
marginTop: 2,
},
Expand Down
6 changes: 3 additions & 3 deletions docs/src/modules/components/AppNavDrawer.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,11 @@ function ProductIdentifier(props) {
<Typography
sx={(theme) => ({
ml: 1,
color: (theme.vars || theme).palette.grey[600],
fontSize: theme.typography.pxToRem(11),
fontWeight: 700,
fontWeight: theme.typography.fontWeightBold,
textTransform: 'uppercase',
letterSpacing: '.08rem',
letterSpacing: '.1rem',
color: (theme.vars || theme).palette.text.tertiary,
})}
>
{metadata}
Expand Down
2 changes: 1 addition & 1 deletion docs/src/modules/components/AppNavDrawerItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const Item = styled(
color: (theme.vars || theme).palette.text.primary,
}),
...(subheader && {
color: (theme.vars || theme).palette.grey[600],
color: (theme.vars || theme).palette.text.tertiary,
}),
};

Expand Down
8 changes: 4 additions & 4 deletions docs/src/modules/components/AppSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -546,8 +546,8 @@ export default function AppSearch(props) {
fontSize: theme.typography.pxToRem(11),
fontWeight: theme.typography.fontWeightBold,
textTransform: 'uppercase',
letterSpacing: '.08rem',
color: theme.palette.grey[600],
letterSpacing: '.1rem',
color: (theme.vars || theme).palette.text.tertiary,
},
'& .DocSearch-NewStartScreenTitleIcon': {
fontSize: theme.typography.pxToRem(18),
Expand Down Expand Up @@ -666,8 +666,8 @@ export default function AppSearch(props) {
fontWeight: theme.typography.fontWeightBold,
textTransform: 'uppercase',
lineHeight: 1,
letterSpacing: '.08rem',
color: theme.palette.grey[600],
letterSpacing: '.1rem',
color: (theme.vars || theme).palette.text.tertiary,
},
'& .DocSearch-Hit': {
paddingBottom: 8,
Expand Down
6 changes: 3 additions & 3 deletions docs/src/modules/components/AppSettingsDrawer.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ import { useTranslate } from '@mui/docs/i18n';

const Heading = styled(Typography)(({ theme }) => ({
margin: '20px 0 10px',
color: theme.palette.grey[600],
fontWeight: 700,
fontWeight: theme.typography.fontWeightBold,
fontSize: theme.typography.pxToRem(11),
textTransform: 'uppercase',
letterSpacing: '.08rem',
letterSpacing: '.1rem',
color: (theme.vars || theme).palette.text.tertiary,
}));

const IconToggleButton = styled(ToggleButton)({
Expand Down
4 changes: 2 additions & 2 deletions docs/src/modules/components/AppTableOfContents.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ const NavLabel = styled(Typography)(({ theme }) => ({
fontSize: theme.typography.pxToRem(11),
fontWeight: theme.typography.fontWeightBold,
textTransform: 'uppercase',
letterSpacing: '.08rem',
color: theme.palette.grey[600],
letterSpacing: '.1rem',
color: (theme.vars || theme).palette.text.tertiary,
}));

const NavList = styled(Typography)({
Expand Down

0 comments on commit b7cb20b

Please sign in to comment.