Updating theme
Browse files- README.md +2 -3
- app.py +3 -6
- themes/theme_schema@0.0.1.json +1 -0
README.md
CHANGED
|
@@ -1,17 +1,16 @@
|
|
| 1 |
|
| 2 |
---
|
| 3 |
tags: [gradio-theme]
|
| 4 |
-
title:
|
| 5 |
colorFrom: red
|
| 6 |
colorTo: purple
|
| 7 |
sdk: gradio
|
| 8 |
sdk_version: 6.5.1
|
| 9 |
-
python_version: "3.12"
|
| 10 |
app_file: app.py
|
| 11 |
pinned: false
|
| 12 |
license: apache-2.0
|
| 13 |
---
|
| 14 |
-
#
|
| 15 |
## Description
|
| 16 |
A sleek dark dashboard theme with glassmorphic cards and neon lime accents. Inspired by modern 2026 fitness/productivity dashboard designs.
|
| 17 |
## Contributions
|
|
|
|
| 1 |
|
| 2 |
---
|
| 3 |
tags: [gradio-theme]
|
| 4 |
+
title: spark
|
| 5 |
colorFrom: red
|
| 6 |
colorTo: purple
|
| 7 |
sdk: gradio
|
| 8 |
sdk_version: 6.5.1
|
|
|
|
| 9 |
app_file: app.py
|
| 10 |
pinned: false
|
| 11 |
license: apache-2.0
|
| 12 |
---
|
| 13 |
+
# spark
|
| 14 |
## Description
|
| 15 |
A sleek dark dashboard theme with glassmorphic cards and neon lime accents. Inspired by modern 2026 fitness/productivity dashboard designs.
|
| 16 |
## Contributions
|
app.py
CHANGED
|
@@ -10,7 +10,7 @@ with gr.Blocks() as demo:
|
|
| 10 |
with gr.Column(scale=10):
|
| 11 |
gr.Markdown(
|
| 12 |
"""
|
| 13 |
-
# Theme preview: `
|
| 14 |
To use this theme, set `theme='hmb/spark'` in the `launch()` method of `gr.Blocks()` or `gr.Interface()`.
|
| 15 |
You can append an `@` and a semantic version expression, e.g. @>=1.0.0,<2.0.0 to pin to a given version
|
| 16 |
of this theme.
|
|
@@ -117,15 +117,12 @@ with gr.Blocks() as demo:
|
|
| 117 |
|
| 118 |
with gr.Row():
|
| 119 |
with gr.Column(scale=2):
|
| 120 |
-
chatbot = gr.Chatbot(
|
| 121 |
-
[{"role": "user", "content": "Hello"}, {"role": "assistant", "content": "Hi"}],
|
| 122 |
-
label="Chatbot"
|
| 123 |
-
)
|
| 124 |
chat_btn = gr.Button("Add messages")
|
| 125 |
|
| 126 |
chat_btn.click(
|
| 127 |
lambda history: history
|
| 128 |
-
+ [
|
| 129 |
+ (time.sleep(2) or []),
|
| 130 |
chatbot,
|
| 131 |
chatbot,
|
|
|
|
| 10 |
with gr.Column(scale=10):
|
| 11 |
gr.Markdown(
|
| 12 |
"""
|
| 13 |
+
# Theme preview: `spark`
|
| 14 |
To use this theme, set `theme='hmb/spark'` in the `launch()` method of `gr.Blocks()` or `gr.Interface()`.
|
| 15 |
You can append an `@` and a semantic version expression, e.g. @>=1.0.0,<2.0.0 to pin to a given version
|
| 16 |
of this theme.
|
|
|
|
| 117 |
|
| 118 |
with gr.Row():
|
| 119 |
with gr.Column(scale=2):
|
| 120 |
+
chatbot = gr.Chatbot([("Hello", "Hi")], label="Chatbot")
|
|
|
|
|
|
|
|
|
|
| 121 |
chat_btn = gr.Button("Add messages")
|
| 122 |
|
| 123 |
chat_btn.click(
|
| 124 |
lambda history: history
|
| 125 |
+
+ [["How are you?", "I am good."]]
|
| 126 |
+ (time.sleep(2) or []),
|
| 127 |
chatbot,
|
| 128 |
chatbot,
|
themes/theme_schema@0.0.1.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"schema_version": "1.0.0", "theme": {"_font": [{"__gradio_font__": true, "name": "DM Sans", "class": "google", "weights": [400, 600]}, "ui-sans-serif", "system-ui", "sans-serif"], "_font_css": [], "_font_mono": [{"__gradio_font__": true, "name": "JetBrains Mono", "class": "google", "weights": [400, 600]}, "ui-monospace", "Consolas", "monospace"], "_stylesheets": ["https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;600&display=swap", "https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600&display=swap"], "accordion_text_color": "#ffffff", "accordion_text_color_dark": "#ffffff", "background_fill_primary": "#0f0f14", "background_fill_primary_dark": "#0f0f14", "background_fill_secondary": "#1a1a24", "background_fill_secondary_dark": "#1a1a24", "block_background_fill": "rgba(30, 30, 40, 0.7)", "block_background_fill_dark": "rgba(30, 30, 40, 0.7)", "block_border_color": "rgba(255, 255, 255, 0.08)", "block_border_color_dark": "rgba(255, 255, 255, 0.08)", "block_border_width": "1px", "block_info_text_color": "*body_text_color_subdued", "block_info_text_color_dark": "*body_text_color_subdued", "block_info_text_size": "*text_sm", "block_info_text_weight": "400", "block_label_background_fill": "transparent", "block_label_background_fill_dark": "transparent", "block_label_border_color": "*border_color_primary", "block_label_border_color_dark": "*border_color_primary", "block_label_border_width": "0px", "block_label_margin": "0", "block_label_padding": "*spacing_sm *spacing_md", "block_label_radius": "calc(*radius_sm - 1px) 0 calc(*radius_sm - 1px) 0", "block_label_right_radius": "0 calc(*radius_sm - 1px) 0 calc(*radius_sm - 1px)", "block_label_shadow": "none", "block_label_text_color": "#9ca3af", "block_label_text_color_dark": "#9ca3af", "block_label_text_size": "*text_sm", "block_label_text_weight": "500", "block_padding": "*spacing_xl", "block_radius": "*radius_xl", "block_shadow": "0 4px 24px rgba(0, 0, 0, 0.3)", "block_shadow_dark": "0 4px 24px rgba(0, 0, 0, 0.3)", "block_title_background_fill": "transparent", "block_title_border_color": "none", "block_title_border_width": "0px", "block_title_padding": "*spacing_sm *spacing_md", "block_title_radius": "none", "block_title_text_color": "#ffffff", "block_title_text_color_dark": "#ffffff", "block_title_text_size": "*text_md", "block_title_text_weight": "600", "body_background_fill": "#0f0f14", "body_background_fill_dark": "#0f0f14", "body_text_color": "#ffffff", "body_text_color_dark": "#ffffff", "body_text_color_subdued": "#9ca3af", "body_text_color_subdued_dark": "#9ca3af", "body_text_size": "*text_md", "body_text_weight": "400", "border_color_accent": "#c8ff00", "border_color_accent_dark": "#c8ff00", "border_color_accent_subdued": "*border_color_accent", "border_color_accent_subdued_dark": "*border_color_accent", "border_color_primary": "rgba(255, 255, 255, 0.08)", "border_color_primary_dark": "rgba(255, 255, 255, 0.08)", "button_border_width": "0px", "button_cancel_background_fill": "rgba(239, 68, 68, 0.2)", "button_cancel_background_fill_dark": "rgba(239, 68, 68, 0.2)", "button_cancel_background_fill_hover": "rgba(239, 68, 68, 0.3)", "button_cancel_background_fill_hover_dark": "rgba(239, 68, 68, 0.3)", "button_cancel_border_color": "*button_secondary_border_color", "button_cancel_border_color_dark": "*button_secondary_border_color", "button_cancel_border_color_hover": "*button_secondary_border_color_hover", "button_cancel_border_color_hover_dark": "*button_secondary_border_color_hover", "button_cancel_shadow": "*button_secondary_shadow", "button_cancel_shadow_active": "*button_secondary_shadow_active", "button_cancel_shadow_active_dark": "*button_secondary_shadow_active", "button_cancel_shadow_dark": "*button_secondary_shadow", "button_cancel_shadow_hover": "*button_secondary_shadow_hover", "button_cancel_shadow_hover_dark": "*button_secondary_shadow_hover", "button_cancel_text_color": "#ef4444", "button_cancel_text_color_dark": "#ef4444", "button_cancel_text_color_hover": "*button_secondary_text_color_hover", "button_cancel_text_color_hover_dark": "white", "button_large_padding": "*spacing_lg calc(2 * *spacing_lg)", "button_large_radius": "*radius_xl", "button_large_text_size": "*text_lg", "button_large_text_weight": "600", "button_medium_padding": "*spacing_md calc(2 * *spacing_md)", "button_medium_radius": "*radius_md", "button_medium_text_size": "*text_md", "button_medium_text_weight": "600", "button_primary_background_fill": "#c8ff00", "button_primary_background_fill_dark": "#c8ff00", "button_primary_background_fill_hover": "#d4ff33", "button_primary_background_fill_hover_dark": "#d4ff33", "button_primary_border_color": "*primary_500", "button_primary_border_color_dark": "*primary_600", "button_primary_border_color_hover": "*primary_500", "button_primary_border_color_hover_dark": "*primary_500", "button_primary_shadow": "none", "button_primary_shadow_active": "*button_primary_shadow", "button_primary_shadow_active_dark": "*button_primary_shadow", "button_primary_shadow_hover": "0 0 20px rgba(200, 255, 0, 0.15)", "button_primary_shadow_hover_dark": "0 0 20px rgba(200, 255, 0, 0.15)", "button_primary_text_color": "#000000", "button_primary_text_color_dark": "#000000", "button_primary_text_color_hover": "*button_primary_text_color", "button_primary_text_color_hover_dark": "*button_primary_text_color", "button_secondary_background_fill": "rgba(255, 255, 255, 0.08)", "button_secondary_background_fill_dark": "rgba(255, 255, 255, 0.08)", "button_secondary_background_fill_hover": "rgba(255, 255, 255, 0.12)", "button_secondary_background_fill_hover_dark": "rgba(255, 255, 255, 0.12)", "button_secondary_border_color": "rgba(255, 255, 255, 0.08)", "button_secondary_border_color_dark": "rgba(255, 255, 255, 0.08)", "button_secondary_border_color_hover": "*neutral_200", "button_secondary_border_color_hover_dark": "*neutral_500", "button_secondary_shadow": "none", "button_secondary_shadow_active": "*button_secondary_shadow", "button_secondary_shadow_active_dark": "*button_secondary_shadow", "button_secondary_shadow_hover": "*button_secondary_shadow", "button_secondary_shadow_hover_dark": "*button_secondary_shadow", "button_secondary_text_color": "#ffffff", "button_secondary_text_color_dark": "#ffffff", "button_secondary_text_color_hover": "*button_secondary_text_color", "button_secondary_text_color_hover_dark": "*button_secondary_text_color", "button_small_padding": "*spacing_sm calc(1.5 * *spacing_sm)", "button_small_radius": "*radius_lg", "button_small_text_size": "*text_sm", "button_small_text_weight": "500", "button_transform_active": "none", "button_transform_hover": "none", "button_transition": "all 0.2s ease", "chatbot_text_size": "*text_lg", "checkbox_background_color": "rgba(255, 255, 255, 0.05)", "checkbox_background_color_dark": "rgba(255, 255, 255, 0.05)", "checkbox_background_color_focus": "*checkbox_background_color", "checkbox_background_color_focus_dark": "*checkbox_background_color", "checkbox_background_color_hover": "*checkbox_background_color", "checkbox_background_color_hover_dark": "*checkbox_background_color", "checkbox_background_color_selected": "#c8ff00", "checkbox_background_color_selected_dark": "#c8ff00", "checkbox_border_color": "rgba(255, 255, 255, 0.08)", "checkbox_border_color_dark": "rgba(255, 255, 255, 0.08)", "checkbox_border_color_focus": "*color_accent", "checkbox_border_color_focus_dark": "*color_accent", "checkbox_border_color_hover": "*neutral_300", "checkbox_border_color_hover_dark": "*neutral_600", "checkbox_border_color_selected": "#c8ff00", "checkbox_border_color_selected_dark": "#c8ff00", "checkbox_border_radius": "*radius_sm", "checkbox_border_width": "1px", "checkbox_border_width_dark": "*input_border_width", "checkbox_check": "url(\"data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e\")", "checkbox_label_background_fill": "rgba(255, 255, 255, 0.05)", "checkbox_label_background_fill_dark": "rgba(255, 255, 255, 0.05)", "checkbox_label_background_fill_hover": "rgba(255, 255, 255, 0.08)", "checkbox_label_background_fill_hover_dark": "rgba(255, 255, 255, 0.08)", "checkbox_label_background_fill_selected": "rgba(200, 255, 0, 0.15)", "checkbox_label_background_fill_selected_dark": "rgba(200, 255, 0, 0.15)", "checkbox_label_border_color": "rgba(255, 255, 255, 0.08)", "checkbox_label_border_color_dark": "rgba(255, 255, 255, 0.08)", "checkbox_label_border_color_hover": "*checkbox_label_border_color", "checkbox_label_border_color_hover_dark": "*checkbox_label_border_color", "checkbox_label_border_color_selected": "*checkbox_label_border_color", "checkbox_label_border_color_selected_dark": "*checkbox_label_border_color", "checkbox_label_border_width": "1px", "checkbox_label_border_width_dark": "*input_border_width", "checkbox_label_gap": "*spacing_lg", "checkbox_label_padding": "*spacing_md calc(2 * *spacing_md)", "checkbox_label_shadow": "none", "checkbox_label_text_color": "#ffffff", "checkbox_label_text_color_dark": "#ffffff", "checkbox_label_text_color_selected": "#c8ff00", "checkbox_label_text_color_selected_dark": "#c8ff00", "checkbox_label_text_size": "*text_md", "checkbox_label_text_weight": "400", "checkbox_shadow": "*input_shadow", "code_background_fill": "rgba(0, 0, 0, 0.3)", "code_background_fill_dark": "rgba(0, 0, 0, 0.3)", "color_accent": "#c8ff00", "color_accent_soft": "rgba(200, 255, 0, 0.15)", "color_accent_soft_dark": "rgba(200, 255, 0, 0.15)", "container_radius": "*radius_xl", "custom_css": "", "embed_radius": "*radius_sm", "error_background_fill": "rgba(239, 68, 68, 0.1)", "error_background_fill_dark": "rgba(239, 68, 68, 0.1)", "error_border_color": "#ef4444", "error_border_color_dark": "#ef4444", "error_border_width": "1px", "error_icon_color": "#b91c1c", "error_icon_color_dark": "#ef4444", "error_text_color": "#ef4444", "error_text_color_dark": "#f87171", "font": "'DM Sans', ui-sans-serif, system-ui, sans-serif", "font_mono": "'JetBrains Mono', ui-monospace, Consolas, monospace", "form_gap_width": "0px", "input_background_fill": "rgba(255, 255, 255, 0.05)", "input_background_fill_dark": "rgba(255, 255, 255, 0.05)", "input_background_fill_focus": "*input_background_fill", "input_background_fill_hover": "*input_background_fill", "input_background_fill_hover_dark": "*input_background_fill", "input_border_color": "rgba(255, 255, 255, 0.08)", "input_border_color_dark": "rgba(255, 255, 255, 0.08)", "input_border_color_focus": "#c8ff00", "input_border_color_focus_dark": "#c8ff00", "input_border_color_hover": "*input_border_color", "input_border_color_hover_dark": "*input_border_color", "input_border_width": "1px", "input_padding": "*spacing_lg", "input_placeholder_color": "#6b7280", "input_placeholder_color_dark": "#6b7280", "input_radius": "*radius_lg", "input_shadow": "none", "input_shadow_focus": "0 0 0 2px rgba(200, 255, 0, 0.15)", "input_shadow_focus_dark": "0 0 0 2px rgba(200, 255, 0, 0.15)", "input_text_size": "*text_md", "input_text_weight": "400", "layout_gap": "*spacing_xxl", "link_text_color": "#c8ff00", "link_text_color_active": "#c8ff00", "link_text_color_active_dark": "#c8ff00", "link_text_color_dark": "#c8ff00", "link_text_color_hover": "#d4ff33", "link_text_color_hover_dark": "#d4ff33", "link_text_color_visited": "#c8ff00", "link_text_color_visited_dark": "#c8ff00", "loader_color": "#c8ff00", "loader_color_dark": "#c8ff00", "name": "spark", "neutral_100": "#f4f4f5", "neutral_200": "#e4e4e7", "neutral_300": "#d4d4d8", "neutral_400": "#bbbbc2", "neutral_50": "#fafafa", "neutral_500": "#71717a", "neutral_600": "#52525b", "neutral_700": "#3f3f46", "neutral_800": "#27272a", "neutral_900": "#18181b", "neutral_950": "#0f0f11", "panel_background_fill": "rgba(30, 30, 40, 0.7)", "panel_background_fill_dark": "rgba(30, 30, 40, 0.7)", "panel_border_color": "rgba(255, 255, 255, 0.08)", "panel_border_color_dark": "rgba(255, 255, 255, 0.08)", "panel_border_width": "1px", "primary_100": "#ecfccb", "primary_200": "#d9f99d", "primary_300": "#bef264", "primary_400": "#a3e635", "primary_50": "#f7fee7", "primary_500": "#84cc16", "primary_600": "#65a30d", "primary_700": "#4d7c0f", "primary_800": "#3f6212", "primary_900": "#365314", "primary_950": "#2f4e14", "prose_header_text_weight": "600", "prose_text_size": "*text_md", "prose_text_weight": "400", "radio_circle": "url(\"data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e\")", "radius_lg": "12px", "radius_md": "8px", "radius_sm": "6px", "radius_xl": "16px", "radius_xs": "4px", "radius_xxl": "24px", "radius_xxs": "2px", "secondary_100": "#ede9fe", "secondary_200": "#ddd6fe", "secondary_300": "#c4b5fd", "secondary_400": "#a78bfa", "secondary_50": "#f5f3ff", "secondary_500": "#8b5cf6", "secondary_600": "#7c3aed", "secondary_700": "#6d28d9", "secondary_800": "#5b21b6", "secondary_900": "#4c1d95", "secondary_950": "#431d7f", "section_header_text_size": "*text_md", "section_header_text_weight": "400", "shadow_drop": "0 4px 12px rgba(0, 0, 0, 0.3)", "shadow_drop_lg": "0 8px 24px rgba(0, 0, 0, 0.4)", "shadow_inset": "inset 0 2px 4px rgba(0, 0, 0, 0.2)", "shadow_spread": "0px", "shadow_spread_dark": "1px", "slider_color": "#c8ff00", "slider_color_dark": "#c8ff00", "spacing_lg": "10px", "spacing_md": "8px", "spacing_sm": "6px", "spacing_xl": "14px", "spacing_xs": "4px", "spacing_xxl": "28px", "spacing_xxs": "2px", "stat_background_fill": "*primary_300", "stat_background_fill_dark": "*primary_500", "table_border_color": "rgba(255, 255, 255, 0.08)", "table_border_color_dark": "rgba(255, 255, 255, 0.08)", "table_even_background_fill": "rgba(255, 255, 255, 0.02)", "table_even_background_fill_dark": "rgba(255, 255, 255, 0.02)", "table_odd_background_fill": "transparent", "table_odd_background_fill_dark": "transparent", "table_radius": "*radius_lg", "table_row_focus": "rgba(200, 255, 0, 0.15)", "table_row_focus_dark": "rgba(200, 255, 0, 0.15)", "table_text_color": "*body_text_color", "table_text_color_dark": "*body_text_color", "text_lg": "16px", "text_md": "14px", "text_sm": "12px", "text_xl": "22px", "text_xs": "10px", "text_xxl": "26px", "text_xxs": "9px"}, "version": {"version": "0.0.1"}}
|