Spaces:
No application file
No application file
Commit
·
7056844
1
Parent(s):
b8b2c49
Update theme.py
Browse files
theme.py
CHANGED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
|
| 3 |
+
theme = gr.themes.Soft(
|
| 4 |
+
primary_hue="teal",
|
| 5 |
+
secondary_hue="gray",
|
| 6 |
+
).set(
|
| 7 |
+
body_text_color_dark='*neutral_800',
|
| 8 |
+
background_fill_primary_dark='*neutral_50',
|
| 9 |
+
background_fill_secondary_dark='*neutral_50',
|
| 10 |
+
border_color_accent_dark='*primary_300',
|
| 11 |
+
border_color_primary_dark='*neutral_200',
|
| 12 |
+
color_accent_soft_dark='*neutral_50',
|
| 13 |
+
link_text_color_dark='*secondary_600',
|
| 14 |
+
link_text_color_active_dark='*secondary_600',
|
| 15 |
+
link_text_color_hover_dark='*secondary_700',
|
| 16 |
+
link_text_color_visited_dark='*secondary_500',
|
| 17 |
+
code_background_fill_dark='*neutral_100',
|
| 18 |
+
shadow_spread_dark='6px',
|
| 19 |
+
block_background_fill_dark='white',
|
| 20 |
+
block_label_background_fill_dark='*primary_100',
|
| 21 |
+
block_label_text_color_dark='*primary_500',
|
| 22 |
+
block_title_text_color_dark='*primary_500',
|
| 23 |
+
checkbox_background_color_dark='*background_fill_primary',
|
| 24 |
+
checkbox_background_color_selected_dark='*primary_600',
|
| 25 |
+
checkbox_border_color_dark='*neutral_100',
|
| 26 |
+
checkbox_border_color_focus_dark='*primary_500',
|
| 27 |
+
checkbox_border_color_hover_dark='*neutral_300',
|
| 28 |
+
checkbox_border_color_selected_dark='*primary_600',
|
| 29 |
+
checkbox_label_background_fill_selected_dark='*primary_500',
|
| 30 |
+
checkbox_label_text_color_selected_dark='white',
|
| 31 |
+
error_background_fill_dark='#fef2f2',
|
| 32 |
+
error_border_color_dark='#b91c1c',
|
| 33 |
+
error_text_color_dark='#b91c1c',
|
| 34 |
+
error_icon_color_dark='#b91c1c',
|
| 35 |
+
input_background_fill_dark='white',
|
| 36 |
+
input_background_fill_focus_dark='*secondary_500',
|
| 37 |
+
input_border_color_dark='*neutral_50',
|
| 38 |
+
input_border_color_focus_dark='*secondary_300',
|
| 39 |
+
input_placeholder_color_dark='*neutral_400',
|
| 40 |
+
slider_color_dark='*primary_500',
|
| 41 |
+
stat_background_fill_dark='*primary_300',
|
| 42 |
+
table_border_color_dark='*neutral_300',
|
| 43 |
+
table_even_background_fill_dark='white',
|
| 44 |
+
table_odd_background_fill_dark='*neutral_50',
|
| 45 |
+
button_primary_background_fill_dark='*primary_500',
|
| 46 |
+
button_primary_background_fill_hover_dark='*primary_400',
|
| 47 |
+
button_primary_border_color_dark='*primary_00',
|
| 48 |
+
button_secondary_background_fill_dark='whiite',
|
| 49 |
+
button_secondary_background_fill_hover_dark='*neutral_100',
|
| 50 |
+
button_secondary_border_color_dark='*neutral_200',
|
| 51 |
+
button_secondary_text_color_dark='*neutral_800'
|
| 52 |
+
)
|
| 53 |
+
|
| 54 |
+
with gr.Blocks(theme=theme) as demo:
|