Skip to content

Commit

Permalink
feat: add textTransform prop (typography)
Browse files Browse the repository at this point in the history
  • Loading branch information
mleralec committed Nov 22, 2022
1 parent a170596 commit 46273cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -286,6 +286,7 @@ return <Box $color={{ _: 'primary', hover: 'secondary' }}>Hello World!</Box>
| $textAlign | text-align | |
| $fontStyle | font-style | |
| $textDecoration | text-decoration | |
| $textTransform | text-transform | |

### Other

Expand Down
2 changes: 2 additions & 0 deletions src/config/typography.ts
Expand Up @@ -12,6 +12,7 @@ export type TypographyProps = Props<{
$textAlign: ObjectProps<CSS.Property.TextAlign>
$fontStyle: ObjectProps<CSS.Property.FontStyle>
$textDecoration: ObjectProps<CSS.Property.TextDecoration>
$textTransform: ObjectProps<CSS.Property.TextTransform>
}>

export const typographyConfig: Config[] = [
Expand All @@ -23,6 +24,7 @@ export const typographyConfig: Config[] = [
{ jsxProperty: '$textAlign' },
{ jsxProperty: '$fontStyle' },
{ jsxProperty: '$textDecoration' },
{ jsxProperty: '$textTransform' },
]

export const typography = compose(typographyConfig)

0 comments on commit 46273cd

Please sign in to comment.