11import * as React from 'react' ;
2- import Grid from '@mui/material/Grid ' ;
2+ import Grid from '@mui/material/Grid2 ' ;
33import Section from 'docs/src/layouts/Section' ;
44import { InfoCard } from '@mui/docs/InfoCard' ;
5+ import { Theme } from '@mui/material/styles' ;
6+ import SvgMuiLogomark from 'docs/src/icons/SvgMuiLogomark' ;
7+ import SvgBaseUiLogo from 'docs/src/icons/SvgBaseUiLogo' ;
8+ import StyleRoundedIcon from '@mui/icons-material/StyleRounded' ;
9+ import WebRoundedIcon from '@mui/icons-material/WebRounded' ;
510
6- // Note: All of the commented code will be put back in once logos for each Core product are done.
11+ const iconStyles = ( theme : Theme ) => ( {
12+ fontSize : '.875rem' ,
13+ color : ( theme . vars || theme ) . palette . primary . main ,
14+ } ) ;
15+
16+ const logoColor = ( theme : Theme ) => ( {
17+ '& path' : {
18+ ...theme . applyDarkStyles ( {
19+ fill : ( theme . vars || theme ) . palette . primary [ 400 ] ,
20+ } ) ,
21+ } ,
22+ } ) ;
723
824const content = [
925 {
10- // icon:
26+ icon : < SvgMuiLogomark width = { 14 } height = { 14 } sx = { logoColor } /> ,
1127 title : 'Material UI' ,
1228 description : "An open-source React component library that implements Google's Material Design." ,
1329 link : '/material-ui/' ,
1430 } ,
1531 {
16- // icon:
32+ icon : < WebRoundedIcon sx = { iconStyles } /> ,
1733 title : 'Joy UI' ,
1834 description :
1935 "An open-source React component library that implements MUI's own in-house design principles." ,
2036 link : '/joy-ui/getting-started/' ,
2137 } ,
2238 {
23- // icon:
39+ icon : < SvgBaseUiLogo width = { 14 } height = { 14 } sx = { logoColor } /> ,
2440 title : 'Base UI' ,
2541 description :
2642 "A library of unstyled React components and low-level hooks. With Base UI, you gain complete control over your app's CSS and accessibility features." ,
2743 link : '/base-ui/' ,
2844 } ,
2945 {
30- // icon:
46+ icon : < StyleRoundedIcon sx = { iconStyles } /> ,
3147 title : 'MUI System' ,
3248 description :
3349 'A set of CSS utilities to help you build custom designs more efficiently. It makes it possible to rapidly lay out custom designs.' ,
@@ -39,9 +55,10 @@ export default function CoreProducts() {
3955 return (
4056 < Section cozy >
4157 < Grid container spacing = { 2 } >
42- { content . map ( ( { title, description, link } ) => (
43- < Grid key = { title } item xs = { 12 } md = { 6 } >
58+ { content . map ( ( { icon , title, description, link } ) => (
59+ < Grid key = { title } size = { { xs : 12 , md : 6 } } >
4460 < InfoCard
61+ icon = { icon }
4562 link = { link }
4663 title = { title }
4764 description = { description }
0 commit comments