Spaces:
Running
on
Zero
Running
on
Zero
Update theme3.py
Browse files
theme3.py
CHANGED
@@ -2,13 +2,13 @@ import gradio as gr
|
|
2 |
from gradio.themes.base import Base
|
3 |
from gradio.themes.utils import colors, fonts, sizes
|
4 |
|
5 |
-
class
|
6 |
def __init__(
|
7 |
self,
|
8 |
*,
|
9 |
-
primary_hue=colors.
|
10 |
-
secondary_hue=colors.
|
11 |
-
neutral_hue=colors.
|
12 |
spacing_size=sizes.spacing_md,
|
13 |
radius_size=sizes.radius_lg,
|
14 |
text_size=sizes.text_md,
|
@@ -27,39 +27,38 @@ class FastRTCBoldRedTheme(Base):
|
|
27 |
)
|
28 |
|
29 |
super().set(
|
30 |
-
# Background
|
31 |
-
body_background_fill="#
|
32 |
-
body_text_color="#
|
33 |
-
|
34 |
-
#
|
35 |
-
block_background_fill="
|
36 |
-
block_shadow="0
|
37 |
block_border_width="1px",
|
38 |
block_title_text_weight="700",
|
39 |
|
40 |
-
#
|
41 |
-
button_primary_background_fill="linear-gradient(90deg, #DC2626, #
|
42 |
button_primary_background_fill_hover="linear-gradient(90deg, #B91C1C, #E11D48)",
|
43 |
-
button_primary_text_color="
|
44 |
-
button_primary_shadow="0
|
45 |
|
46 |
-
#
|
47 |
-
button_secondary_background_fill="#F3F4F6",
|
48 |
button_secondary_text_color="#1F2937",
|
49 |
button_secondary_shadow="0 1px 3px rgba(0, 0, 0, 0.1)",
|
50 |
|
51 |
-
# Sliders
|
52 |
-
slider_color="#
|
53 |
-
input_border_color="#
|
54 |
-
input_border_color_focus="#
|
55 |
-
input_shadow="0 0 0 2px rgba(
|
56 |
|
57 |
-
# Loader
|
58 |
-
loader_color="#
|
59 |
|
60 |
-
# Links
|
61 |
-
link_text_color="#
|
62 |
-
link_text_color_hover="#
|
63 |
)
|
64 |
|
65 |
-
fast_rtc_theme =
|
|
|
2 |
from gradio.themes.base import Base
|
3 |
from gradio.themes.utils import colors, fonts, sizes
|
4 |
|
5 |
+
class FastRTCRedPinkTheme(Base):
|
6 |
def __init__(
|
7 |
self,
|
8 |
*,
|
9 |
+
primary_hue=colors.rose,
|
10 |
+
secondary_hue=colors.red,
|
11 |
+
neutral_hue=colors.gray,
|
12 |
spacing_size=sizes.spacing_md,
|
13 |
radius_size=sizes.radius_lg,
|
14 |
text_size=sizes.text_md,
|
|
|
27 |
)
|
28 |
|
29 |
super().set(
|
30 |
+
# Background & Layout
|
31 |
+
body_background_fill="linear-gradient(135deg, #FFF1F2, #FFE4E6)",
|
32 |
+
body_text_color="#1F2937",
|
33 |
+
|
34 |
+
# Block / Panels
|
35 |
+
block_background_fill="white",
|
36 |
+
block_shadow="0 4px 12px rgba(0, 0, 0, 0.05)",
|
37 |
block_border_width="1px",
|
38 |
block_title_text_weight="700",
|
39 |
|
40 |
+
# Buttons
|
41 |
+
button_primary_background_fill="linear-gradient(90deg, #DC2626, #EF4444)",
|
42 |
button_primary_background_fill_hover="linear-gradient(90deg, #B91C1C, #E11D48)",
|
43 |
+
button_primary_text_color="white",
|
44 |
+
button_primary_shadow="0 2px 6px rgba(236, 72, 153, 0.4)",
|
45 |
|
46 |
+
button_secondary_background_fill="#F8FAFC",
|
|
|
47 |
button_secondary_text_color="#1F2937",
|
48 |
button_secondary_shadow="0 1px 3px rgba(0, 0, 0, 0.1)",
|
49 |
|
50 |
+
# Sliders, Inputs
|
51 |
+
slider_color="#F43F5E",
|
52 |
+
input_border_color="#E2E8F0",
|
53 |
+
input_border_color_focus="#F43F5E",
|
54 |
+
input_shadow="0 0 0 2px rgba(244, 63, 94, 0.2)",
|
55 |
|
56 |
+
# Loader & Progress
|
57 |
+
loader_color="#EC4899",
|
58 |
|
59 |
+
# Links & Highlights
|
60 |
+
link_text_color="#DB2777",
|
61 |
+
link_text_color_hover="#BE185D"
|
62 |
)
|
63 |
|
64 |
+
fast_rtc_theme = FastRTCRedPinkTheme()
|