File size: 1,079 Bytes
e310269
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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()