Spaces:
Running
Running
Download src/styles/theme.py from launch/MLRC_Bench: direct link, hf CLI and curl.
- Browser
- Download file 802 Bytes
-
https://huggingface.co/spaces/launch/MLRC_Bench/resolve/main/src/styles/theme.py
- Command line
-
hf download hf://spaces/launch/MLRC_Bench/src/styles/theme.py
-
curl -L -o theme.py https://huggingface.co/spaces/launch/MLRC_Bench/resolve/main/src/styles/theme.py
802 Bytes
| """ | |
| Theme definitions and color scheme for the leaderboard application. | |
| """ | |
| from src.utils.config import dark_theme | |
| def get_theme_css(): | |
| """ | |
| Get the base theme CSS for the application | |
| Returns: | |
| str: CSS string for the theme | |
| """ | |
| return f""" | |
| @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap'); | |
| html, body, [class*="css"] {{ | |
| font-family: 'Inter', sans-serif; | |
| background-color: {dark_theme['bg_color']}; | |
| color: {dark_theme['text_color']}; | |
| }} | |
| h1, h2, h3, h4, h5, h6 {{ | |
| font-family: 'Inter', sans-serif; | |
| font-weight: 600; | |
| color: {dark_theme['heading_color']}; | |
| }} | |
| .main {{ | |
| background-color: {dark_theme['bg_color']}; | |
| }} | |
| """ |