Spaces:
Runtime error
Runtime error
Download liveplan_theme.py from jedidiahhurt/LivePlanAssistant: direct link, hf CLI and curl.
- Browser
- Download file 1.42 kB
-
https://huggingface.co/spaces/jedidiahhurt/LivePlanAssistant/resolve/main/liveplan_theme.py
- Command line
-
hf download hf://spaces/jedidiahhurt/LivePlanAssistant/liveplan_theme.py
-
curl -L -o liveplan_theme.py https://huggingface.co/spaces/jedidiahhurt/LivePlanAssistant/resolve/main/liveplan_theme.py
1.42 kB
| from gradio.themes.base import Base | |
| from gradio.themes.utils import colors, fonts, sizes | |
| from typing import Iterable | |
| class LivePlanTheme(Base): | |
| def __init__( | |
| self, | |
| *, | |
| primary_hue: colors.Color | str = "green", | |
| secondary_hue: colors.Color | str = "lime", | |
| neutral_hue: colors.Color | str = "slate", | |
| spacing_size: sizes.Size | str = sizes.Size( | |
| name="spacing_lp", | |
| xxs="1px", | |
| xs="1px", | |
| sm="1px", | |
| md="2px", | |
| lg="4px", | |
| xl="8px", | |
| xxl="16px", | |
| ), | |
| radius_size: sizes.Size | str = sizes.radius_md, | |
| text_size: sizes.Size | str = sizes.text_md, | |
| font: fonts.Font | |
| | str | |
| | Iterable[fonts.Font | str] = ( | |
| fonts.GoogleFont("Mulish"), | |
| fonts.GoogleFont("Open Sans"), | |
| "sans-serif", | |
| ), | |
| font_mono: fonts.Font | |
| | str | |
| | Iterable[fonts.Font | str] = ( | |
| fonts.GoogleFont("IBM Plex Mono"), | |
| "ui-monospace", | |
| "monospace", | |
| ), | |
| ): | |
| super().__init__( | |
| primary_hue=primary_hue, | |
| secondary_hue=secondary_hue, | |
| neutral_hue=neutral_hue, | |
| spacing_size=spacing_size, | |
| radius_size=radius_size, | |
| text_size=text_size, | |
| font=font, | |
| font_mono=font_mono, | |
| ) | |