| from __future__ import annotations |
| from typing import Iterable |
| from gradio.themes.base import Base |
| from gradio.themes.utils import colors, fonts, sizes |
|
|
| class IndonesiaTheme_2(Base): |
| def __init__( |
| self, |
| *, |
| primary_hue: colors.Color | str = colors.teal, |
| secondary_hue: colors.Color | str = colors.amber, |
| neutral_hue: colors.Color | str = colors.gray, |
| spacing_size: sizes.Size | str = sizes.spacing_md, |
| radius_size: sizes.Size | str = sizes.radius_lg, |
| text_size: sizes.Size | str = sizes.text_md, |
| font: fonts.Font |
| | str |
| | Iterable[fonts.Font | str] = ( |
| fonts.GoogleFont("Nunito"), |
| "ui-sans-serif", |
| "sans-serif", |
| ), |
| font_mono: fonts.Font |
| | str |
| | Iterable[fonts.Font | str] = ( |
| fonts.GoogleFont("Fira Code"), |
| "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, |
| ) |
| |
| super().set( |
| body_background_fill="linear-gradient(135deg, #D7E8F7, #F6F1ED)", |
| body_background_fill_dark="linear-gradient(135deg, #4A4A4A, #2A2A2A)", |
| button_primary_background_fill="linear-gradient(90deg, #00796B, #004D40)", |
| button_primary_background_fill_hover="linear-gradient(90deg, #009688, #00695C)", |
| button_primary_text_color="white", |
| button_primary_background_fill_dark="linear-gradient(90deg, #004D40, #00251A)", |
| slider_color="*secondary_300", |
| slider_color_dark="*secondary_600", |
| block_title_text_weight="600", |
| block_border_width="2px", |
| block_shadow="*shadow_drop_md", |
| button_shadow="*shadow_drop_md", |
| button_large_padding="20px", |
| ) |
|
|