DrishtiSharma commited on
Commit
70b031d
·
verified ·
1 Parent(s): 1baf54d

Update theme3.py

Browse files
Files changed (1) hide show
  1. theme3.py +27 -28
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 FastRTCBoldRedTheme(Base):
6
  def __init__(
7
  self,
8
  *,
9
- primary_hue=colors.red,
10
- secondary_hue=colors.gray,
11
- neutral_hue=colors.zinc,
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="#FFFFFF",
32
- body_text_color="#111827",
33
-
34
- # Blocks / Panels
35
- block_background_fill="#FFFFFF",
36
- block_shadow="0 6px 20px rgba(0, 0, 0, 0.06)",
37
  block_border_width="1px",
38
  block_title_text_weight="700",
39
 
40
- # Primary Buttons
41
- button_primary_background_fill="linear-gradient(90deg, #DC2626, #F43F5E)",
42
  button_primary_background_fill_hover="linear-gradient(90deg, #B91C1C, #E11D48)",
43
- button_primary_text_color="#FFFFFF",
44
- button_primary_shadow="0 4px 8px rgba(220, 38, 38, 0.4)",
45
 
46
- # Secondary Buttons
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 / Inputs
52
- slider_color="#DC2626",
53
- input_border_color="#D1D5DB",
54
- input_border_color_focus="#DC2626",
55
- input_shadow="0 0 0 2px rgba(220, 38, 38, 0.2)",
56
 
57
- # Loader / Progress
58
- loader_color="#DC2626",
59
 
60
- # Links
61
- link_text_color="#DC2626",
62
- link_text_color_hover="#B91C1C",
63
  )
64
 
65
- fast_rtc_theme = FastRTCBoldRedTheme()
 
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()