Spaces:
Runtime error
Runtime error
Download theme.py from ohlunlacassi/StyleMate: direct link, hf CLI and curl.
- Browser
- Download file 560 Bytes
-
https://huggingface.co/spaces/ohlunlacassi/StyleMate/resolve/main/theme.py
- Command line
-
hf download hf://spaces/ohlunlacassi/StyleMate/theme.py
-
curl -L -o theme.py https://huggingface.co/spaces/ohlunlacassi/StyleMate/resolve/main/theme.py
560 Bytes
| from gradio.themes.base import Base | |
| class CustomTheme(Base): | |
| def __init__(self): | |
| super().__init__() | |
| # Customize the theme properties | |
| super().set( | |
| # Light mode | |
| body_background_fill="linear-gradient(to top, #8e9eab, #eef2f3)", | |
| # Dark mode | |
| body_background_fill_dark="linear-gradient(to top, #434343, #000000)", | |
| input_background_fill="#e8e9ea", # Input background for light mode | |
| input_background_fill_dark="#2C2C2C" # Input background for dark mode | |
| ) | |