Spaces:
Sleeping
Sleeping
import gradio as gr | |
# Create custom theme with purple and yellow color scheme for visual appeal and accessibility | |
custom_theme = gr.themes.Default( | |
# Set main color scheme | |
primary_hue="purple", # Primary brand color | |
secondary_hue="yellow", # Accent color for contrast | |
neutral_hue="gray", # Neutral colors for text and backgrounds | |
).set( | |
# Customize specific UI elements | |
body_background_fill='*primary_100', # Light purple background for visual comfort | |
body_text_color='*neutral_900', # Dark text for readability | |
button_primary_background_fill='*primary_500', # Distinctive purple buttons | |
button_primary_text_color='white', # High contrast button text | |
button_primary_background_fill_hover='*primary_600', # Darker purple for hover state | |
slider_color='*primary_500', # Consistent purple for interactive elements | |
checkbox_background_color='*primary_500', # Match checkbox style with theme | |
input_background_fill='*neutral_100', # Light background for input areas | |
input_border_color='*primary_500', # Purple borders for visual hierarchy | |
) | |