Download spectrum/src/components/badges/style.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 1.18 kB
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/src/components/badges/style.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/spectrum/src/components/badges/style.js
-
curl -L -o style.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/src/components/badges/style.js
1.18 kB
| // @flow | |
| import theme from 'shared/theme'; | |
| import styled from 'styled-components'; | |
| import { Gradient } from 'src/components/globals'; | |
| export const Span = styled.span` | |
| display: inline-block; | |
| color: ${theme.text.reverse}; | |
| background-color: ${theme.text.alt}; | |
| text-transform: uppercase; | |
| padding: 3px 4px; | |
| margin-right: 4px; | |
| font-size: 9px; | |
| font-weight: 800; | |
| border-radius: 4px; | |
| letter-spacing: 0.6px; | |
| line-height: 1; | |
| text-shadow: 0 1px 1px rgba(0, 0, 0, 0.16); | |
| align-items: center; | |
| align-self: center; | |
| `; | |
| export const ProBadge = styled(Span)` | |
| background-color: ${theme.special.default}; | |
| background-image: ${Gradient(theme.special.alt, theme.special.default)}; | |
| `; | |
| export const TeamBadge = styled(Span)` | |
| background-color: ${theme.success.default}; | |
| background-image: ${Gradient(theme.success.alt, theme.success.default)}; | |
| `; | |
| export const BlockedBadge = styled(Span)` | |
| background-color: ${theme.warn.alt}; | |
| background-image: ${Gradient(theme.warn.alt, theme.warn.default)}; | |
| `; | |
| export const PendingBadge = styled(Span)` | |
| background-color: ${theme.special.alt}; | |
| background-image: ${Gradient(theme.special.alt, theme.special.default)}; | |
| `; | |