acapellify / theme.py
1lint
minor updates
8075337
import gradio as gr
from gradio.themes.utils import colors
yfu_red = colors.Color(
name="yfu_red",
c50="#ff2c65",
c100="#fee2e2",
c200="#fecaca",
c300="#fca5a5",
c400="#fca5a5",
c500="#ff2c65",
c600="#ff2c65",
c700="#ff2c65",
c800="#ff2c65",
c900="#ff2c65",
c950="#fee2e2",
)
white = colors.Color(
name="white",
c50="#ff2c65",
c100="#ff2c65", # text color
c200="#ff2c65",
c300="#ff2c65",
c400="#ff2c65",
c500="#ff2c65", # secondary text color
c600="#ffffff",
c700="#ffffff",
c800="#ffffff",
c900="#ffffff",
c950="#ffffff",
)
theme = gr.themes.Soft(
primary_hue=yfu_red,
secondary_hue=yfu_red,
neutral_hue=white,
).set(
body_background_fill="white",
panel_background_fill="white",
background_fill_primary="white",
background_fill_primary_dark="white",
panel_background_fill_dark="white",
panel_border_color="*primary_50",
panel_border_color_dark="*primary_50",
body_text_color="*primary_50",
body_text_color_dark="*primary_50",
body_text_color_subdued="*primary_50",
body_text_color_subdued_dark="*primary_50",
table_even_background_fill="white",
table_even_background_fill_dark="white",
table_odd_background_fill="*primary_100",
table_odd_background_fill_dark="*primary_100",
table_row_focus="*primary_200",
table_row_focus_dark="*primary_200",
input_background_fill_focus="*primary_200",
input_background_fill_focus_dark="*primary_200",
checkbox_background_color_focus="*primary_200",
checkbox_background_color_focus_dark="*primary_200",
border_color_primary_dark="*primary_50",
checkbox_border_color_dark="*primary_50",
table_border_color_dark="*primary_50",
button_secondary_text_color="*primary_50",
block_info_text_color="*primary_50",
block_label_text_color="*primary_50",
block_title_text_color="*primary_50",
checkbox_label_text_color="*primary_50",
checkbox_label_text_color_selected="*primary_50",
button_cancel_text_color="white",
block_border_color="*primary_50",
button_secondary_background_fill_hover="*primary_200",
button_secondary_background_fill_hover_dark="*primary_200",
stat_background_fill="*primary_200",
stat_background_fill_dark="*primary_200",
)