styled-components#withTheme TypeScript Examples

The following examples show how to use styled-components#withTheme. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: HorizontalGraphSliderThumb.tsx    From anchor-web-app with Apache License 2.0 6 votes vote down vote up
SvgThumb = withTheme(({ theme }: { theme: NeumorphismTheme }) => (
  <svg
    width={22}
    height={22}
    style={{
      borderRadius: '50%',
      backgroundColor: theme.slider.thumb.thumbColor,
      boxShadow: '0px 0px 6px 2px rgba(0, 0, 0, 0.18)',
    }}
  >
    <circle cx={11} cy={11} r={2} fill="darkgray" />
  </svg>
))
Example #2
Source File: modalWrapper.component.tsx    From filecoin-CID-checker with Apache License 2.0 5 votes vote down vote up
ModalWrapper = withTheme(ModalContainer)