styled-components#ThemeProps TypeScript Examples

The following examples show how to use styled-components#ThemeProps. 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: Step.progress.tsx    From design-system with Apache License 2.0 6 votes vote down vote up
pulse = ({ theme }: ThemeProps<any>) => keyframes`
	0% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 ${theme.colors?.activeColor[100]};
	}

	80% {
		transform: scale(1);
		box-shadow: 0 0 0 .5rem rgba(0, 0, 0, 0);
	}

	100% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
	}
`