Spaces:
Sleeping
Sleeping
Download frontend/node_modules/@mui/system/esm/palette.js from sepidnes/pythonic-rag-FastAPIReact: direct link, hf CLI and curl.
- Browser
- Download file 637 Bytes
-
https://huggingface.co/spaces/sepidnes/pythonic-rag-FastAPIReact/resolve/c9f908872ebbec3c4fa1392419c0f6cd3750ddb3/frontend/node_modules/%40mui/system/esm/palette.js
- Command line
-
hf download hf://spaces/sepidnes/pythonic-rag-FastAPIReact@c9f908872ebbec3c4fa1392419c0f6cd3750ddb3/frontend/node_modules/@mui/system/esm/palette.js
-
curl -L -o palette.js https://huggingface.co/spaces/sepidnes/pythonic-rag-FastAPIReact/resolve/c9f908872ebbec3c4fa1392419c0f6cd3750ddb3/frontend/node_modules/%40mui/system/esm/palette.js
637 Bytes
| import style from './style'; | |
| import compose from './compose'; | |
| export function paletteTransform(value, userValue) { | |
| if (userValue === 'grey') { | |
| return userValue; | |
| } | |
| return value; | |
| } | |
| export const color = style({ | |
| prop: 'color', | |
| themeKey: 'palette', | |
| transform: paletteTransform | |
| }); | |
| export const bgcolor = style({ | |
| prop: 'bgcolor', | |
| cssProperty: 'backgroundColor', | |
| themeKey: 'palette', | |
| transform: paletteTransform | |
| }); | |
| export const backgroundColor = style({ | |
| prop: 'backgroundColor', | |
| themeKey: 'palette', | |
| transform: paletteTransform | |
| }); | |
| const palette = compose(color, bgcolor, backgroundColor); | |
| export default palette; |