RadRuss commited on
Commit
b7c93f0
·
verified ·
1 Parent(s): 09ee3a9

Upload app.py

Browse files

changes to theme

Files changed (1) hide show
  1. app.py +29 -5
app.py CHANGED
@@ -466,11 +466,35 @@ def chatbot_interface(user_query: str, history: list[dict]) -> tuple[list[dict],
466
 
467
  # Create the Gradio interface with history components
468
  my_theme = gr.themes.Soft(
469
- primary_hue="yellow", # accent colour (your brand yellow)
470
- secondary_hue="zinc", # neutral accent
471
- neutral_hue="slate", # background / text neutral
472
- spacing_size="md", # moderate spacing for clean layout
473
- radius_size="sm" # subtle rounding on elements
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
474
  )
475
 
476
 
 
466
 
467
  # Create the Gradio interface with history components
468
  my_theme = gr.themes.Soft(
469
+ primary_hue="yellow", # bpExperts accent color
470
+ secondary_hue="zinc", # neutral greys for subtle elements
471
+ neutral_hue="gray", # light grays so white background feels clean
472
+ spacing_size="md",
473
+ radius_size="sm"
474
+ ).set(
475
+ # Backgrounds
476
+ body_background_fill="#FFFFFF",
477
+ block_background_fill="#FFFFFF",
478
+ block_border_color="#DDDDDD",
479
+
480
+ # Text
481
+ text_color_primary="#111111", # dark black-grey
482
+ text_color_secondary="#333333",
483
+
484
+ # Buttons
485
+ button_primary_background="#F2C200", # warm yellow accent
486
+ button_primary_text_color="#000000",
487
+
488
+ button_secondary_background="#FFFFFF",
489
+ button_secondary_text_color="#111111",
490
+
491
+ # Inputs / Chatbot bubbles
492
+ input_background_fill="#FAFAFA",
493
+ input_border_color="#E5E5E5",
494
+ input_text_color="#111111",
495
+
496
+ # Chatbot messages
497
+ block_title_text_color="#111111",
498
  )
499
 
500