styled.ts 896 B

123456789101112131415161718192021222324252627
  1. import styled from 'styled-components';
  2. export const Title = styled('p')<{ light?: boolean; align?: string }>`
  3. font-size: 1.35rem;
  4. color: ${(props) =>
  5. props.light ? ({ theme }) => theme.colors.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: 1.2rem;
  12. color: ${(props) =>
  13. props.light ? ({ theme }) => theme.colors.black38 : '#000000'};
  14. margin: 5px;
  15. white-space: nowrap;
  16. text-align: ${(props) => (props.align ? props.align : 'center')};
  17. `;
  18. export const Body = styled('p')<{ light?: boolean; align?: string }>`
  19. font-size: 1.2rem;
  20. color: ${(props) =>
  21. props.light ? ({ theme }) => theme.colors.black38 : '#000000'};
  22. margin: 5px;
  23. text-align: ${(props) => (props.align ? props.align : 'center')};
  24. `;