UNPKG

@platformbuilders/fluid-react

Version:
11 lines (10 loc) 393 B
import styled from 'styled-components'; import { getFontSize, getLineHeight, getTheme, } from '@platformbuilders/theme-toolkit'; export const Text = styled.p ` color: ${getTheme('text.main')}; font-size: ${(props) => getFontSize({ ...props, variant: props.$variant })}px; line-height: ${(props) => getLineHeight({ ...props, lineHeightVariant: props.$lineHeightVariant, })}px; `;