Spaces:
Sleeping
Sleeping
Download src/aiku_theme.py from aiku-tech/use-case-structure: direct link, hf CLI and curl.
- Browser
- Download file 1.44 kB
-
https://huggingface.co/spaces/aiku-tech/use-case-structure/resolve/main/src/aiku_theme.py
- Command line
-
hf download hf://spaces/aiku-tech/use-case-structure/src/aiku_theme.py
-
curl -L -o aiku_theme.py https://huggingface.co/spaces/aiku-tech/use-case-structure/resolve/main/src/aiku_theme.py
1.44 kB
| from __future__ import annotations | |
| from typing import Iterable | |
| import gradio as gr | |
| from gradio.themes.base import Base | |
| from gradio.themes.utils import colors, fonts, sizes | |
| class AikuTheme(Base): | |
| def __init__( | |
| self, | |
| *, | |
| primary_hue: colors.Color | str = colors.stone, | |
| secondary_hue: colors.Color | str = colors.blue, | |
| neutral_hue: colors.Color | str = colors.slate, | |
| spacing_size: sizes.Size | str = sizes.spacing_md, | |
| radius_size: sizes.Size | str = sizes.radius_md, | |
| text_size: sizes.Size | str = sizes.text_md, | |
| ): | |
| 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, | |
| ) | |
| super().set( | |
| button_primary_background_fill="#36629e", | |
| button_primary_background_fill_hover="#0d376a", | |
| button_primary_text_color="white", | |
| button_primary_background_fill_dark="white", | |
| slider_color="*secondary_300", | |
| slider_color_dark="*secondary_600", | |
| block_title_text_weight="600", | |
| block_border_width="3px", | |
| block_shadow="*shadow_drop_lg", | |
| button_primary_shadow="*shadow_drop_lg", | |
| button_large_padding="32px", | |
| ) |