feat(text): size and colour support
This commit is contained in:
@@ -8,11 +8,8 @@ const StyledText = styled.p`
|
|||||||
css`
|
css`
|
||||||
font-style: ${props.textStyle};
|
font-style: ${props.textStyle};
|
||||||
`}
|
`}
|
||||||
${props =>
|
font-size: ${props => `var(--font-size-${props.size})`};
|
||||||
props.size === "sm" &&
|
color: ${props => `var(--theme-color-${props.color})`};
|
||||||
css`
|
|
||||||
font-size: var(--font-size-sm);
|
|
||||||
`}
|
|
||||||
`;
|
`;
|
||||||
|
|
||||||
export default function Text({ children, ...props }) {
|
export default function Text({ children, ...props }) {
|
||||||
|
|||||||
Reference in New Issue
Block a user