diff --git a/docs/data/joy/main-features/color-inversion/ColorInversionAnyParent.js b/docs/data/joy/main-features/color-inversion/ColorInversionAnyParent.js
index 360d2c8d2c581a..468eed3736a28b 100644
--- a/docs/data/joy/main-features/color-inversion/ColorInversionAnyParent.js
+++ b/docs/data/joy/main-features/color-inversion/ColorInversionAnyParent.js
@@ -26,16 +26,6 @@ function Stat({ description, value, sx, ...props }) {
Stat.propTypes = {
description: PropTypes.node,
- /**
- * The system prop that allows defining system overrides as well as additional CSS styles.
- */
- sx: PropTypes.oneOfType([
- PropTypes.arrayOf(
- PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool]),
- ),
- PropTypes.func,
- PropTypes.object,
- ]),
value: PropTypes.node,
};
@@ -49,7 +39,7 @@ export default function ColorInversionAnyParent() {
alignItems: 'center',
rowGap: 2,
columnGap: 8,
- p: 2,
+ p: 4,
background: (theme) =>
`linear-gradient(45deg, ${theme.vars.palette.neutral[800]}, ${theme.vars.palette.neutral[600]})`,
borderRadius: 'sm',
@@ -58,15 +48,11 @@ export default function ColorInversionAnyParent() {
]}
>
-
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
- tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim
- veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
- commodo consequat.
+ tempor incididunt ut labore et dolore magna aliqua.
-
- Learn more
-
+ Learn more
+
{value}
@@ -41,24 +33,20 @@ export default function ColorInversionAnyParent() {
alignItems: 'center',
rowGap: 2,
columnGap: 8,
- p: 2,
+ p: 4,
+ borderRadius: 'sm',
background: (theme) =>
`linear-gradient(45deg, ${theme.vars.palette.neutral[800]}, ${theme.vars.palette.neutral[600]})`,
- borderRadius: 'sm',
},
applySolidInversion('neutral'),
]}
>
-
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
- tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim
- veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
- commodo consequat.
+ tempor incididunt ut labore et dolore magna aliqua.
-
- Learn more
-
+ Learn more
-
-
+
+
diff --git a/docs/data/joy/main-features/color-inversion/ColorInversionAnyParentStyled.js b/docs/data/joy/main-features/color-inversion/ColorInversionAnyParentStyled.js
new file mode 100644
index 00000000000000..87786bf8590e21
--- /dev/null
+++ b/docs/data/joy/main-features/color-inversion/ColorInversionAnyParentStyled.js
@@ -0,0 +1,68 @@
+import * as React from 'react';
+import PropTypes from 'prop-types';
+import { styled } from '@mui/joy/styles';
+import { applySolidInversion } from '@mui/joy/colorInversion';
+import Box from '@mui/joy/Box';
+import Button from '@mui/joy/Button';
+import Typography from '@mui/joy/Typography';
+
+const StyledBox = styled(Box)(
+ ({ theme }) => ({
+ padding: 32,
+ display: 'grid',
+ gridTemplateColumns: '1fr 1fr',
+ alignItems: 'center',
+ rowGap: 2,
+ columnGap: 8,
+ borderRadius: 8,
+ background: `linear-gradient(45deg, ${theme.vars.palette.neutral[800]}, ${theme.vars.palette.neutral[600]})`,
+ }),
+ applySolidInversion('neutral'),
+);
+
+function Stat({ description, value }) {
+ return (
+
+
+ {value}
+
+
+ {description}
+
+
+ );
+}
+
+Stat.propTypes = {
+ description: PropTypes.node,
+ value: PropTypes.node,
+};
+
+export default function ColorInversionAnyParentStyled() {
+ return (
+
+
+
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
+ tempor incididunt ut labore et dolore magna aliqua.
+
+ Learn more
+
+
+
+
+
+
+
+
+ );
+}
diff --git a/docs/data/joy/main-features/color-inversion/ColorInversionAnyParentStyled.tsx b/docs/data/joy/main-features/color-inversion/ColorInversionAnyParentStyled.tsx
new file mode 100644
index 00000000000000..2386ec65eb59b1
--- /dev/null
+++ b/docs/data/joy/main-features/color-inversion/ColorInversionAnyParentStyled.tsx
@@ -0,0 +1,68 @@
+import * as React from 'react';
+import { styled } from '@mui/joy/styles';
+import { applySolidInversion } from '@mui/joy/colorInversion';
+import Box from '@mui/joy/Box';
+import Button from '@mui/joy/Button';
+import Typography from '@mui/joy/Typography';
+
+const StyledBox = styled(Box)(
+ ({ theme }) => ({
+ padding: 32,
+ display: 'grid',
+ gridTemplateColumns: '1fr 1fr',
+ alignItems: 'center',
+ rowGap: 2,
+ columnGap: 8,
+ borderRadius: 8,
+ background: `linear-gradient(45deg, ${theme.vars.palette.neutral[800]}, ${theme.vars.palette.neutral[600]})`,
+ }),
+ applySolidInversion('neutral'),
+);
+
+function Stat({
+ description,
+ value,
+}: {
+ description: React.ReactNode;
+ value: React.ReactNode;
+}) {
+ return (
+
+
+ {value}
+
+
+ {description}
+
+
+ );
+}
+
+export default function ColorInversionAnyParentStyled() {
+ return (
+
+
+
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
+ tempor incididunt ut labore et dolore magna aliqua.
+
+ Learn more
+
+
+
+
+
+
+
+
+ );
+}
diff --git a/docs/data/joy/main-features/color-inversion/ColorInversionFooter.js b/docs/data/joy/main-features/color-inversion/ColorInversionFooter.js
index 4e90dfe910092e..5b8c690c6be8b0 100644
--- a/docs/data/joy/main-features/color-inversion/ColorInversionFooter.js
+++ b/docs/data/joy/main-features/color-inversion/ColorInversionFooter.js
@@ -98,9 +98,7 @@ export default function ColorInversionFooter() {
Intro to the MUI ecosystem
-
- MUI blog
-
+ Blog post
- Sitemap
+ Sitemap
Services
@@ -124,7 +122,7 @@ export default function ColorInversionFooter() {
- Product
+ Products
@@ -163,36 +161,17 @@ export default function ColorInversionFooter() {
- BETA
+ Beta
-
-
-
-
-
- Design kits
-
-
-
-
-
-
-
- Templates
-
-
diff --git a/docs/data/joy/main-features/color-inversion/ColorInversionFooter.tsx b/docs/data/joy/main-features/color-inversion/ColorInversionFooter.tsx
index 27c04e0be7739c..511a483426f791 100644
--- a/docs/data/joy/main-features/color-inversion/ColorInversionFooter.tsx
+++ b/docs/data/joy/main-features/color-inversion/ColorInversionFooter.tsx
@@ -103,9 +103,7 @@ export default function ColorInversionFooter() {
Intro to the MUI ecosystem
-
- MUI blog
-
+ Blog post
- Sitemap
+ Sitemap
Services
@@ -129,7 +127,7 @@ export default function ColorInversionFooter() {
- Product
+ Products
@@ -168,36 +166,17 @@ export default function ColorInversionFooter() {
- BETA
+ Beta
-
-
-
-
-
- Design kits
-
-
-
-
-
-
-
- Templates
-
-
diff --git a/docs/data/joy/main-features/color-inversion/color-inversion.md b/docs/data/joy/main-features/color-inversion/color-inversion.md
index 11b9f2f225d2e8..b2ac541d72bd65 100644
--- a/docs/data/joy/main-features/color-inversion/color-inversion.md
+++ b/docs/data/joy/main-features/color-inversion/color-inversion.md
@@ -77,19 +77,7 @@ The examples below show how to use it with either the `sx` prop or the `styled`
#### With the styled API
-```js
-import { styled } from '@mui/joy/styles';
-import { applySoftInversion } from '@mui/joy/colorInversion';
-
-const StyledBox = styled(Box)(
- ({ theme }) => ({
- display: 'flex',
- alignItems: 'center',
- ...theme.variants.soft.primary,
- }),
- applySoftInversion('primary'),
-);
-```
+{{"demo": "ColorInversionAnyParentStyled.js"}}
## How it works