Skip to content

Commit 69cc208

Browse files
danilo-lealmnajdova
authored andcommitted
[website] Add stray design adjustments throughout the site (#41547)
1 parent bd8ced4 commit 69cc208

16 files changed

+55
-66
lines changed

docs/src/components/about/Team.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ function Person(props: Profile & { sx?: PaperProps['sx'] }) {
123123
borderRadius: 40,
124124
border: '2px solid',
125125
borderColor: 'primary.50',
126-
boxShadow: '0px 2px 8px rgba(0, 0, 0, 0.15)',
126+
boxShadow: '0px 2px 6px rgba(0, 0, 0, 0.1)',
127127
transform: 'translateX(50%)',
128128
overflow: 'hidden',
129129
...theme.applyDarkStyles({
@@ -185,7 +185,7 @@ function Person(props: Profile & { sx?: PaperProps['sx'] }) {
185185
</Typography>
186186
{props.about && <Divider sx={{ my: 1.5 }} />}
187187
{props.about && (
188-
<Typography variant="body2" color="grey.600">
188+
<Typography variant="body2" color="text.tertiary">
189189
{props.about}
190190
</Typography>
191191
)}

docs/src/components/pricing/LicensingModelSwitch.tsx

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ const StyledTabs = styled(Tabs)(({ theme }) => ({
1717
borderColor: (theme.vars || theme).palette.grey[100],
1818
backgroundColor: (theme.vars || theme).palette.grey[50],
1919
'&:has(.Mui-focusVisible)': {
20-
outline: `2px solid ${(theme.vars || theme).palette.primary.main}`,
20+
outline: `3px solid ${alpha(theme.palette.primary[500], 0.5)}`,
21+
outlineOffset: '2px',
2122
},
2223
'& .MuiTabs-scroller, & .MuiTab-root': {
2324
// Override inline-style to see the box-shadow
@@ -32,14 +33,14 @@ const StyledTabs = styled(Tabs)(({ theme }) => ({
3233
fontWeight: theme.typography.fontWeightSemiBold,
3334
minWidth: 0,
3435
minHeight: 0,
35-
color: (theme.vars || theme).palette.grey[600],
36+
color: (theme.vars || theme).palette.text.tertiary,
3637
borderRadius: 20,
3738
zIndex: 2,
3839
'&:hover': {
39-
color: (theme.vars || theme).palette.grey[800],
40+
color: (theme.vars || theme).palette.text.primary,
4041
},
4142
'&.Mui-selected': {
42-
color: (theme.vars || theme).palette.primary[500],
43+
color: (theme.vars || theme).palette.primary[600],
4344
fontWeight: theme.typography.fontWeightSemiBold,
4445
},
4546
'&.Mui-focusVisible': {
@@ -58,19 +59,14 @@ const StyledTabs = styled(Tabs)(({ theme }) => ({
5859
...theme.applyDarkStyles({
5960
borderColor: (theme.vars || theme).palette.primaryDark[700],
6061
backgroundColor: (theme.vars || theme).palette.primaryDark[900],
61-
color: (theme.vars || theme).palette.grey[400],
6262
'& .MuiTabs-indicator': {
6363
height: '100%',
6464
borderRadius: 20,
6565
backgroundColor: alpha(theme.palette.primaryDark[600], 0.5),
66-
borderColor: (theme.vars || theme).palette.primaryDark[500],
66+
borderColor: (theme.vars || theme).palette.primaryDark[600],
6767
boxShadow: `0px 1px 4px ${(theme.vars || theme).palette.common.black}`,
6868
},
6969
'& .MuiTab-root': {
70-
color: (theme.vars || theme).palette.grey[400],
71-
'&:hover': {
72-
color: (theme.vars || theme).palette.grey[300],
73-
},
7470
'&.Mui-selected': {
7571
color: (theme.vars || theme).palette.primary[200],
7672
},

docs/src/components/pricing/PricingTable.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1361,8 +1361,8 @@ export default function PricingTable({
13611361
sx={[
13621362
(theme) => ({
13631363
px: 1,
1364-
py: 1.5,
13651364
justifyContent: 'flex-start',
1365+
fontSize: '0.875rem',
13661366
fontWeight: 'medium',
13671367
borderRadius: '0px',
13681368
position: 'absolute',
@@ -1512,8 +1512,8 @@ export default function PricingTable({
15121512
sx={[
15131513
(theme) => ({
15141514
px: 1,
1515-
py: 1.5,
15161515
justifyContent: 'flex-start',
1516+
fontSize: '0.875rem',
15171517
fontWeight: 'medium',
15181518
borderRadius: '0px',
15191519
position: 'absolute',

docs/src/components/productX/XHero.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ export default function XHero() {
141141
...theme.applyDarkStyles({
142142
borderColor: 'primaryDark.700',
143143
backgroundColor: 'primaryDark.900',
144-
boxShadow: '0px 4px 8px rgba(0, 0, 0, 0.4)',
144+
boxShadow: '0px 4px 6px rgba(0, 0, 0, 0.2)',
145145
}),
146146
})}
147147
>
@@ -281,7 +281,7 @@ export default function XHero() {
281281
...theme.applyDarkStyles({
282282
borderColor: 'primaryDark.700',
283283
backgroundColor: 'primaryDark.900',
284-
boxShadow: '0px 4px 8px rgba(0, 0, 0, 0.4)',
284+
boxShadow: '0px 4px 6px rgba(0, 0, 0, 0.2)',
285285
}),
286286
})}
287287
>
@@ -338,7 +338,7 @@ export default function XHero() {
338338
(theme) =>
339339
theme.applyDarkStyles({
340340
borderColor: 'primaryDark.700',
341-
boxShadow: '0px 4px 8px rgba(0, 0, 0, 0.4)',
341+
boxShadow: '0px 4px 6px rgba(0, 0, 0, 0.2)',
342342
backgroundColor: 'primaryDark.900',
343343
'& .MuiDateRangePickerDay-day.Mui-selected': {
344344
color: '#FFF',

docs/src/components/showcase/FolderTable.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ export default function BasicTable() {
9191
sx={[
9292
{
9393
maxWidth: 260,
94+
borderColor: 'grey.200',
9495
boxShadow: (theme) => `0px 4px 8px ${alpha(theme.palette.grey[200], 0.6)}`,
9596
[`& .${tableCellClasses.root}`]: {
9697
borderColor: 'grey.200',
@@ -103,7 +104,7 @@ export default function BasicTable() {
103104
theme.applyDarkStyles({
104105
bgcolor: 'primaryDark.900',
105106
borderColor: 'primaryDark.700',
106-
boxShadow: '0px 4px 8px rgba(0, 0, 0, 0.4)',
107+
boxShadow: '0px 4px 6px rgba(0, 0, 0, 0.2)',
107108
[`& .${tableCellClasses.root}`]: {
108109
borderColor: 'primaryDark.700',
109110
},

docs/src/components/showcase/NotificationCard.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,12 @@ export default function NotificationCard() {
1717
p: 2,
1818
gap: 2,
1919
maxWidth: 283,
20+
borderColor: 'grey.200',
2021
boxShadow: `0px 4px 8px ${alpha(theme.palette.grey[200], 0.6)}`,
2122
...theme.applyDarkStyles({
2223
bgcolor: 'primaryDark.900',
2324
borderColor: 'primaryDark.700',
24-
boxShadow: '0px 4px 8px rgba(0, 0, 0, 0.4)',
25+
boxShadow: '0px 4px 6px rgba(0, 0, 0, 0.2)',
2526
}),
2627
})}
2728
>

docs/src/components/showcase/PlayerCard.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default function PlayerCard({ disableTheming }: { disableTheming?: boolea
2828
alignItems: 'center',
2929
gap: 2,
3030
...(!disableTheming && {
31-
borderColor: 'divider',
31+
borderColor: 'grey.200',
3232
boxShadow: (theme) => `0px 4px 8px ${alpha(theme.palette.grey[200], 0.6)}`,
3333
[`& .${iconButtonClasses.root}`]: {
3434
border: '1px solid',
@@ -52,7 +52,7 @@ export default function PlayerCard({ disableTheming }: { disableTheming?: boolea
5252
((theme) =>
5353
theme.applyDarkStyles({
5454
bgcolor: 'primaryDark.900',
55-
boxShadow: '0px 4px 8px rgba(0, 0, 0, 0.4)',
55+
boxShadow: '0px 4px 6px rgba(0, 0, 0, 0.2)',
5656
[`& .${iconButtonClasses.root}`]: {
5757
bgcolor: 'primary.900',
5858
color: 'primary.200',

docs/src/components/showcase/RealEstateCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default function RealEstateCard({ sx, ...props }: CardProps) {
2121
boxShadow: `0px 4px 8px ${alpha(theme.palette.grey[200], 0.6)}`,
2222
...theme.applyDarkStyles({
2323
bgcolor: 'primaryDark.900',
24-
boxShadow: '0px 4px 8px rgba(0, 0, 0, 0.4)',
24+
boxShadow: '0px 4px 6px rgba(0, 0, 0, 0.2)',
2525
}),
2626
}),
2727
...(Array.isArray(sx) ? sx : [sx]),

docs/src/components/showcase/TaskCard.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,17 @@ export default function TaskCard() {
1313
<Fade in timeout={700}>
1414
<Card
1515
data-mui-color-scheme="dark"
16-
sx={(theme) => ({
16+
sx={{
1717
minWidth: 280,
1818
maxWidth: 360,
1919
minHeight: 280,
2020
display: 'flex',
2121
flexDirection: 'column',
2222
p: 3,
23-
background: `linear-gradient(to right bottom, ${
24-
(theme.vars || theme).palette.primary[500]
25-
}, ${(theme.vars || theme).palette.primary[600]} 120%)`,
26-
boxShadow: '0px 20px 25px rgba(0, 0, 0, 0.1), 0px 10px 10px rgba(0, 0, 0, 0.04)',
27-
})}
23+
background:
24+
'linear-gradient(180deg, var(--muidocs-palette-primary-600) 0%, var(--muidocs-palette-primary-700) 100%)',
25+
boxShadow: '0px 4px 8px rgba(0, 0, 0, 0.1), 0px 2px 4px rgba(0, 0, 0, 0.04)',
26+
}}
2827
>
2928
<Box sx={{ display: 'flex', alignItems: 'center', gap: 0.8 }}>
3029
<ScheduleRounded fontSize="inherit" />

docs/src/components/showcase/ThemeAccordion.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export default function ThemeAccordion() {
2424
{
2525
[`& .${accordionClasses.root}`]: {
2626
bgcolor: '#fff',
27+
borderColor: 'grey.200',
2728
boxShadow: (theme) => `0px 4px 8px ${alpha(theme.palette.grey[200], 0.6)}`,
2829

2930
[`&.${accordionClasses.expanded}`]: {
@@ -59,7 +60,7 @@ export default function ThemeAccordion() {
5960
[`& .${accordionClasses.root}`]: {
6061
bgcolor: 'primaryDark.900',
6162
borderColor: 'primaryDark.700',
62-
boxShadow: '0px 4px 8px rgba(0, 0, 0, 0.4)',
63+
boxShadow: '0px 4px 6px rgba(0, 0, 0, 0.2)',
6364
},
6465
[`& .${accordionSummaryClasses.root}`]: {
6566
[`& .${accordionSummaryClasses.content}`]: {

0 commit comments

Comments
 (0)