cb-flick commited on
Commit
e310269
·
verified ·
1 Parent(s): 918fe4d

Create theme.py

Browse files
Files changed (1) hide show
  1. theme.py +35 -0
theme.py ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from gradio.themes.base import Base
3
+
4
+ class ADRTheme(Base):
5
+ def __init__(self):
6
+ super().__init__()
7
+
8
+ self.set(
9
+ # Global color styles
10
+ primary_hue="blue",
11
+ secondary_hue="red",
12
+
13
+ # Custom CSS overrides using your hex codes
14
+ button_primary_background="#246fb7",
15
+ button_primary_background_hover="#1e5a95",
16
+ button_primary_text_color="white",
17
+
18
+ button_secondary_background="#e84d38",
19
+ button_secondary_background_hover="#c03f2f",
20
+ button_secondary_text_color="white",
21
+
22
+ body_background_fill="#f9fafb", # Soft light gray
23
+ body_text_color="#111827", # Dark gray text for readability
24
+
25
+ input_background_fill="white",
26
+ input_border_color="#d1d5db",
27
+ block_background_fill="white",
28
+ block_shadow="0 4px 6px rgba(0, 0, 0, 0.1)",
29
+
30
+ radius_size="lg",
31
+ spacing_size="md",
32
+ font=["Inter", "sans-serif"]
33
+ )
34
+
35
+ adr_theme = ADRTheme()