-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[theme] Add base color palette type to components (#26697)
- Loading branch information
1 parent
40d704d
commit 225c87b
Showing
79 changed files
with
435 additions
and
242 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import * as React from 'react'; | ||
import Badge from '@material-ui/core/Badge'; | ||
import Stack from '@material-ui/core/Stack'; | ||
import MailIcon from '@material-ui/icons/Mail'; | ||
|
||
export default function ColorBadge() { | ||
return ( | ||
<Stack spacing={2} direction="row"> | ||
<Badge badgeContent={4} color="secondary"> | ||
<MailIcon color="action" /> | ||
</Badge> | ||
<Badge badgeContent={4} color="success"> | ||
<MailIcon color="action" /> | ||
</Badge> | ||
</Stack> | ||
); | ||
} |
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,17 @@ | ||
import * as React from 'react'; | ||
import Badge from '@material-ui/core/Badge'; | ||
import Stack from '@material-ui/core/Stack'; | ||
import MailIcon from '@material-ui/icons/Mail'; | ||
|
||
export default function ColorBadge() { | ||
return ( | ||
<Stack spacing={2} direction="row"> | ||
<Badge badgeContent={4} color="secondary"> | ||
<MailIcon color="action" /> | ||
</Badge> | ||
<Badge badgeContent={4} color="success"> | ||
<MailIcon color="action" /> | ||
</Badge> | ||
</Stack> | ||
); | ||
} |
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,17 +1,11 @@ | ||
import * as React from 'react'; | ||
import Stack from '@material-ui/core/Stack'; | ||
import Badge from '@material-ui/core/Badge'; | ||
import MailIcon from '@material-ui/icons/Mail'; | ||
|
||
export default function SimpleBadge() { | ||
return ( | ||
<Stack spacing={4} direction="row" sx={{ color: 'action.active' }}> | ||
<Badge badgeContent={4} color="secondary"> | ||
<MailIcon /> | ||
</Badge> | ||
<Badge badgeContent={4} color="error"> | ||
<MailIcon /> | ||
</Badge> | ||
</Stack> | ||
<Badge badgeContent={4} color="primary"> | ||
<MailIcon color="action" /> | ||
</Badge> | ||
); | ||
} |
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,17 +1,11 @@ | ||
import * as React from 'react'; | ||
import Stack from '@material-ui/core/Stack'; | ||
import Badge from '@material-ui/core/Badge'; | ||
import MailIcon from '@material-ui/icons/Mail'; | ||
|
||
export default function SimpleBadge() { | ||
return ( | ||
<Stack spacing={4} direction="row" sx={{ color: 'action.active' }}> | ||
<Badge badgeContent={4} color="secondary"> | ||
<MailIcon /> | ||
</Badge> | ||
<Badge badgeContent={4} color="error"> | ||
<MailIcon /> | ||
</Badge> | ||
</Stack> | ||
<Badge badgeContent={4} color="primary"> | ||
<MailIcon color="action" /> | ||
</Badge> | ||
); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import React from 'react'; | ||
import Box from '@material-ui/core/Box'; | ||
import IconButton from '@material-ui/core/IconButton'; | ||
import Fingerprint from '@material-ui/icons/Fingerprint'; | ||
|
||
export default function IconButtonColors() { | ||
return ( | ||
<Box sx={{ '& button': { m: 1 } }}> | ||
<IconButton aria-label="fingerprint" color="secondary"> | ||
<Fingerprint /> | ||
</IconButton> | ||
<IconButton aria-label="fingerprint" color="success"> | ||
<Fingerprint /> | ||
</IconButton> | ||
</Box> | ||
); | ||
} |
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,17 @@ | ||
import React from 'react'; | ||
import Box from '@material-ui/core/Box'; | ||
import IconButton from '@material-ui/core/IconButton'; | ||
import Fingerprint from '@material-ui/icons/Fingerprint'; | ||
|
||
export default function IconButtonColors() { | ||
return ( | ||
<Box sx={{ '& button': { m: 1 } }}> | ||
<IconButton aria-label="fingerprint" color="secondary"> | ||
<Fingerprint /> | ||
</IconButton> | ||
<IconButton aria-label="fingerprint" color="success"> | ||
<Fingerprint /> | ||
</IconButton> | ||
</Box> | ||
); | ||
} |
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
Oops, something went wrong.