Spaces:
Sleeping
Sleeping
Update theme.py
Browse files
theme.py
CHANGED
|
@@ -1,11 +1,5 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
-
#----------Start of theme----------
|
| 4 |
-
theme = gr.themes.Ocean(
|
| 5 |
-
primary_hue="zinc",
|
| 6 |
-
secondary_hue="slate",
|
| 7 |
-
neutral_hue="neutral",import gradio as gr
|
| 8 |
-
|
| 9 |
#----------Start of theme----------
|
| 10 |
theme = gr.themes.Ocean(
|
| 11 |
primary_hue="zinc",
|
|
@@ -66,57 +60,4 @@ theme = gr.themes.Ocean(
|
|
| 66 |
loader_color="#800000",
|
| 67 |
slider_color="#708090"
|
| 68 |
)
|
| 69 |
-
#----------End of theme----------
|
| 70 |
-
font=[gr.themes.GoogleFont('Kavivanar'), gr.themes.GoogleFont('Kavivanar'), 'system-ui', 'sans-serif'],
|
| 71 |
-
font_mono=[gr.themes.GoogleFont('Source Code Pro'), gr.themes.GoogleFont('Inconsolata'), gr.themes.GoogleFont('Inconsolata'), 'monospace'],
|
| 72 |
-
).set(
|
| 73 |
-
#Body Settings
|
| 74 |
-
body_background_fill='linear-gradient(10deg, *primary_200, *secondary_50)',
|
| 75 |
-
body_text_color='secondary_600',
|
| 76 |
-
body_text_color_subdued='*primary_500',
|
| 77 |
-
body_text_weight='500',
|
| 78 |
-
|
| 79 |
-
#Background Settings
|
| 80 |
-
background_fill_primary='*primary_100',
|
| 81 |
-
background_fill_secondary='*secondary_200',
|
| 82 |
-
|
| 83 |
-
color_accent='*primary_300',
|
| 84 |
-
|
| 85 |
-
#Border Settings
|
| 86 |
-
border_color_accent_subdued='*primary_400',
|
| 87 |
-
border_color_primary='*primary_400',
|
| 88 |
-
|
| 89 |
-
#Block Settings
|
| 90 |
-
block_radius='*radius_md',
|
| 91 |
-
block_background_fill='*primary_200',
|
| 92 |
-
block_border_color='*primary_500',
|
| 93 |
-
block_border_width='*panel_border_width',
|
| 94 |
-
block_info_text_color='*primary_700',
|
| 95 |
-
block_info_text_size='*text_md',
|
| 96 |
-
|
| 97 |
-
container_radius='*radius_xl',
|
| 98 |
-
panel_background_fill='*primary_200',
|
| 99 |
-
accordion_text_color='*primary_600',
|
| 100 |
-
checkbox_border_radius='*radius_xl',
|
| 101 |
-
slider_color='*primary_500',
|
| 102 |
-
table_text_color='*primary_600',
|
| 103 |
-
input_background_fill='*primary_50',
|
| 104 |
-
input_background_fill_focus='*primary_100',
|
| 105 |
-
|
| 106 |
-
#Button Settings
|
| 107 |
-
button_border_width='1px',
|
| 108 |
-
button_transform_hover='scale(1.01)',
|
| 109 |
-
button_transition='all 0.1s ease-in-out',
|
| 110 |
-
button_transform_active='Scale(0.9)',
|
| 111 |
-
button_large_radius='*radius_xl',
|
| 112 |
-
button_small_radius='*radius_xl',
|
| 113 |
-
button_primary_border_color='*primary_500',
|
| 114 |
-
button_secondary_border_color='*primary_400',
|
| 115 |
-
button_primary_background_fill_hover='linear-gradient(90deg, *primary_400, *secondary_200, *primary_400)',
|
| 116 |
-
button_primary_background_fill='linear-gradient(90deg,*secondary_300 , *primary_500, *secondary_300)',
|
| 117 |
-
button_primary_text_color='*primary_100',
|
| 118 |
-
button_primary_text_color_hover='*primary_700',
|
| 119 |
-
button_cancel_background_fill='*primary_500',
|
| 120 |
-
button_cancel_background_fill_hover='*primary_400'
|
| 121 |
-
)
|
| 122 |
#----------End of theme----------
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
#----------Start of theme----------
|
| 4 |
theme = gr.themes.Ocean(
|
| 5 |
primary_hue="zinc",
|
|
|
|
| 60 |
loader_color="#800000",
|
| 61 |
slider_color="#708090"
|
| 62 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 63 |
#----------End of theme----------
|