Mod4Team7 / theme.py
cb-flick's picture
Create theme.py
e310269 verified
import gradio as gr
from gradio.themes.base import Base
class ADRTheme(Base):
def __init__(self):
super().__init__()
self.set(
# Global color styles
primary_hue="blue",
secondary_hue="red",
# Custom CSS overrides using your hex codes
button_primary_background="#246fb7",
button_primary_background_hover="#1e5a95",
button_primary_text_color="white",
button_secondary_background="#e84d38",
button_secondary_background_hover="#c03f2f",
button_secondary_text_color="white",
body_background_fill="#f9fafb", # Soft light gray
body_text_color="#111827", # Dark gray text for readability
input_background_fill="white",
input_border_color="#d1d5db",
block_background_fill="white",
block_shadow="0 4px 6px rgba(0, 0, 0, 0.1)",
radius_size="lg",
spacing_size="md",
font=["Inter", "sans-serif"]
)
adr_theme = ADRTheme()