-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(defaulttheme): import all figma design tokens into defaultTheme
- Loading branch information
1 parent
00df2a2
commit 6c63b52
Showing
14 changed files
with
1,132 additions
and
743 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import { styled } from "@mui/material"; | ||
import { | ||
fontCodeXs, | ||
fontTabularXs, | ||
getCorners, | ||
getPalette, | ||
getSpaces, | ||
} from "../styles"; | ||
|
||
export const StyledDiv = styled("div")` | ||
${fontCodeXs}; | ||
${(props) => { | ||
const palette = getPalette(props); | ||
const spaces = getSpaces(props); | ||
const corners = getCorners(props); | ||
return ` | ||
display: flex; | ||
justify-content: space-between; | ||
background-color: ${palette?.component?.notice?.fill}; | ||
color: ${palette?.component?.notice?.fillOnFill}; | ||
padding: ${spaces?.s}px; | ||
border-radius: ${corners?.m}px; | ||
&:hover { | ||
background-color: ${palette?.component?.notice?.fillHover}; | ||
} | ||
&:active { | ||
background-color: ${palette?.component?.notice?.fillPressed}; | ||
} | ||
`; | ||
}}; | ||
`; | ||
|
||
export const StyledSpan = styled("span")` | ||
${fontTabularXs}; | ||
`; |
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.