from __future__ import annotations from typing import Iterable from gradio.themes.base import Base from gradio.themes.utils import colors, fonts, sizes class IndonesiaTheme(Base): def __init__( self, *, primary_hue: colors.Color | str = colors.red, secondary_hue: colors.Color | str = colors.gray, neutral_hue: colors.Color | str = colors.gray, spacing_size: sizes.Size | str = sizes.spacing_md, 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("Quicksand"), "ui-sans-serif", "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, ) # Override latar belakang utama body self.set( body_background_fill="linear-gradient(180deg, #111111 0%, #222222 100%)", body_text_color="#e0e0e0", block_background_fill="#2a2a2a", block_border_width="0px", block_shadow="none", button_primary_background_fill="#ff4b5c", button_primary_text_color="white", )