Spaces:
Running
Running
from typing import Iterable | |
from gradio.themes.base import Base | |
from gradio.themes.utils import fonts, sizes | |
class CandidTheme(Base): | |
def __init__( | |
self, | |
*, | |
spacing_size: sizes.Size | str = sizes.spacing_md, | |
radius_size: sizes.Size | str = sizes.radius_lg, | |
text_size: sizes.Size | str = sizes.text_lg, | |
font: fonts.Font | str | Iterable[fonts.Font | str] = ( | |
fonts.GoogleFont("Quicksand"), | |
"geogria", | |
"ui-sans-serif", | |
"sans-serif", | |
), | |
font_mono: fonts.Font | str | Iterable[fonts.Font | str] = ( | |
fonts.GoogleFont("IBM Plex Mono"), | |
"ui-monospace", | |
"monospace", | |
), | |
): | |
super().__init__( | |
spacing_size=spacing_size, | |
radius_size=radius_size, | |
text_size=text_size, | |
font=font, | |
font_mono=font_mono, | |
) | |
super().set( | |
button_primary_background_fill="linear-gradient(90deg, #FFD700, #FF8C00)", | |
button_primary_background_fill_hover="linear-gradient(90deg, #E5AC00, #E67300)", | |
button_primary_text_color="white", | |
button_primary_background_fill_dark="linear-gradient(90deg, #B8860B, #8B4513)", | |
# button_primary_shadow="rgba(0, 0, 0, 0.25) 0px 8px 16px", | |
button_large_padding="32px", | |
slider_color="#FF8C00", | |
slider_color_dark="#B8860B", | |
block_title_text_weight="600", | |
block_border_width="3px", | |
block_shadow="rgba(0, 0, 0, 0.25) 0px 8px 16px", | |
) | |