|
import gradio as gr |
|
from gradio.themes.base import Base |
|
|
|
class ADRTheme(Base): |
|
def __init__(self): |
|
super().__init__() |
|
|
|
self.set( |
|
|
|
primary_hue="blue", |
|
secondary_hue="red", |
|
|
|
|
|
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", |
|
body_text_color="#111827", |
|
|
|
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() |
|
|