styled.ts 853 B

1234567891011121314151617181920212223242526
  1. import styled from 'styled-components';
  2. import { color } from '../../constants/style';
  3. export const Title = styled('p')<{ light?: boolean; align?: string }>`
  4. font-size: 16px;
  5. color: ${props => (props.light ? color.black38 : '#000000')};
  6. margin: 5px;
  7. white-space: nowrap;
  8. text-align: ${props => (props.align ? props.align : 'center')};
  9. `;
  10. export const Subtitle = styled('p')<{ light?: boolean; align?: string }>`
  11. font-size: 14px;
  12. color: ${props => (props.light ? color.black38 : '#000000')};
  13. margin: 5px;
  14. white-space: nowrap;
  15. text-align: ${props => (props.align ? props.align : 'center')};
  16. `;
  17. export const Body = styled('p')<{ light?: boolean; align?: string }>`
  18. font-size: 14px;
  19. color: ${props => (props.light ? color.black38 : '#000000')};
  20. margin: 5px;
  21. text-align: ${props => (props.align ? props.align : 'center')};
  22. `;