Download react-spring/docs/app/components/Callout.css.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 1.12 kB
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-spring/docs/app/components/Callout.css.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-spring/docs/app/components/Callout.css.ts
-
curl -L -o Callout.css.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-spring/docs/app/components/Callout.css.ts
1.12 kB
| import { globalStyle } from '@vanilla-extract/css' | |
| import { vars } from '../styles/theme-contract.css' | |
| import { recipe } from '@vanilla-extract/recipes' | |
| export const calloutWrapper = recipe({ | |
| base: { | |
| borderRadius: vars.radii.r8, | |
| padding: vars.space['30'], | |
| margin: `${vars.space['20']} 0`, | |
| }, | |
| variants: { | |
| type: { | |
| warning: { | |
| backgroundColor: '#FF701933', | |
| }, | |
| danger: { | |
| backgroundColor: 'red', | |
| }, | |
| success: { | |
| backgroundColor: 'green', | |
| }, | |
| note: { | |
| background: '#569AFF33', | |
| }, | |
| }, | |
| }, | |
| }) | |
| globalStyle(`${calloutWrapper} + pre`, { | |
| marginTop: vars.space['40'], | |
| }) | |
| export const label = recipe({ | |
| base: { | |
| fontWeight: vars.fontWeights.semiblack, | |
| marginBottom: vars.space['15'], | |
| display: 'flex', | |
| gap: vars.space['5'], | |
| alignItems: 'center', | |
| }, | |
| variants: { | |
| type: { | |
| warning: { | |
| color: '#FF7019CC', | |
| }, | |
| danger: { | |
| color: '#FF7019CC', | |
| }, | |
| success: { | |
| color: '#FF7019CC', | |
| }, | |
| note: { | |
| color: '#569AFF', | |
| }, | |
| }, | |
| }, | |
| }) | |