forked from mui/material-ui
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bca4565
commit 784ed2b
Showing
27 changed files
with
208 additions
and
174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 0 additions & 13 deletions
13
docs/data/material/customization/palette/AddingColorTokens.tsx.preview
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
docs/data/material/customization/palette/ContrastThreshold.tsx.preview
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<ThemeProvider theme={defaultContrastThresholdTheme}> | ||
<ContrastShowcase title="Default contrast threshold" /> | ||
</ThemeProvider> | ||
<ThemeProvider theme={highContrastThresholdTheme}> | ||
<ContrastShowcase title="Higher contrast threshold" /> | ||
</ThemeProvider> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 0 additions & 12 deletions
12
docs/data/material/customization/palette/ManuallyProvideCustomColor.tsx.preview
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 6 additions & 18 deletions
24
docs/data/material/customization/palette/ManuallyProvidePaletteColor.tsx.preview
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,6 @@ | ||
import { createTheme } from '@mui/material/styles'; | ||
|
||
const theme = createTheme({ | ||
palette: { | ||
primary: { | ||
main: '#FF5733', | ||
// light: will be calculated from palette.primary.main, | ||
// dark: will be calculated from palette.primary.main, | ||
// contrastText: will be calculated to contrast with palette.primary.main | ||
}, | ||
secondary: { | ||
main: '#E0C2FF', | ||
light: '#F5EBFF', | ||
// dark: will be calculated from palette.secondary.main, | ||
contrastText: '#47008F', | ||
}, | ||
}, | ||
}); | ||
<ThemeProvider theme={theme}> | ||
<Stack direction="row" gap={8}> | ||
<ColorShowcase color="primary" /> | ||
<ColorShowcase color="secondary" /> | ||
</Stack> | ||
</ThemeProvider> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
docs/data/material/customization/palette/TonalOffset.tsx.preview
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<ThemeProvider theme={defaultTonalOffsetTheme}> | ||
<ColorShowcase title="Default tonal offset" color="primary" /> | ||
</ThemeProvider> | ||
<ThemeProvider theme={higherTonalOffsetTheme}> | ||
<ColorShowcase title="Higher tonal offset" color="primary" /> | ||
</ThemeProvider> | ||
<ThemeProvider theme={asymmetricTonalOffsetTheme}> | ||
<ColorShowcase title="Asymmetric tonal offset" color="primary" /> | ||
</ThemeProvider> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.