Spaces:
Sleeping
Sleeping
File size: 1,196 Bytes
0dfac78 82c9f6d 0dfac78 82c9f6d 0dfac78 82c9f6d 0dfac78 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
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
)
|