styled-components.js 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. const ListItem = styled.li``;
  2. const ListItem = styled.li` `;
  3. const Dropdown = styled.div`position: relative;`
  4. const Button = styled.button`
  5. color: palevioletred ;
  6. font-size : 1em ;
  7. `;
  8. const TomatoButton = Button.extend`
  9. color : tomato ;
  10. border-color : tomato
  11. ;
  12. `;
  13. Button.extend.attr({})`
  14. border-color : black;
  15. `
  16. styled(ExistingComponent)`
  17. color : papayawhip ; background-color: firebrick`;
  18. styled.button.attr({})`
  19. border : rebeccapurple`;
  20. styled(ExistingComponent).attr({})`
  21. border : rebeccapurple`;
  22. styled.div`
  23. color: ${props => props.theme.colors.paragraph};
  24. /* prettier-ignore */
  25. ${props => props.small ? 'font-size: 0.8em;' : ''};
  26. `
  27. styled.div`
  28. color: ${props => props.theme.colors.paragraph};
  29. /* prettier-ignore */
  30. ${props => props.small ? 'font-size: 0.8em;' : ''}
  31. `
  32. styled.div`
  33. /* prettier-ignore */
  34. color: ${props => props.theme.colors.paragraph};
  35. ${props => props.small ? 'font-size: 0.8em;' : ''};
  36. `
  37. styled.div`
  38. color: ${props => props.theme.colors.paragraph};
  39. /* prettier-ignore */
  40. ${props => props.small ? 'font-size: 0.8em;' : ''};
  41. /* prettier-ignore */
  42. ${props => props.red ? 'color: red;' : ''};
  43. `
  44. styled.div`
  45. /* prettier-ignore */
  46. color: ${props => props.theme.colors.paragraph};
  47. /* prettier-ignore */
  48. ${props => props.small ? 'font-size: 0.8em;' : ''};
  49. /* prettier-ignore */
  50. ${props => props.red ? 'color: red;' : ''};
  51. /* prettier-ignore */
  52. `
  53. styled.div`
  54. ${sanitize} ${fonts}
  55. html {
  56. margin: 0;
  57. }
  58. `