ohlunlacassi commited on
Commit
1474163
·
verified ·
1 Parent(s): d89eb32

Create theme.py

Browse files
Files changed (1) hide show
  1. theme.py +16 -0
theme.py ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from gradio.themes.base import Base
2
+
3
+
4
+ class CustomTheme(Base):
5
+ def __init__(self):
6
+ super().__init__()
7
+
8
+ # Customize the theme properties
9
+ super().set(
10
+ # Light mode
11
+ body_background_fill="linear-gradient(to top, #8e9eab, #eef2f3)",
12
+ # Dark mode
13
+ body_background_fill_dark="linear-gradient(to top, #434343, #000000)",
14
+ input_background_fill="#e8e9ea", # Input background for light mode
15
+ input_background_fill_dark="#2C2C2C" # Input background for dark mode
16
+ )