What problem does it solve?
Building a visually distinctive Gradio app requires overriding hundreds of CSS variables correctly across light and dark modes, and mistakes in contrast, font weights, or shadow DOM scoping produce unreadable or generic-looking interfaces.
Core Features & Use Cases
- Theme Class Construction: Build themes inheriting from gradio.themes.Base with constructor parameters for hues, sizes, and fonts, overriding variables via super().set().
- Dark Mode & Contrast Guidance: Independently design _dark variables and audit every text/background pair for readability before shipping.
- Custom CSS & Publishing: Bundle custom_css for effects variables cannot express, then publish themes to the Hugging Face Hub with push_to_hub.
- Use Case: A developer wants a warm editorial theme for a data dashboard app; use this Skill to define the palette, typography, button variants, and dark mode, then publish it as a reusable Hub theme.
Quick Start
Create a Gradio theme class with a warm amber accent, serif headings, and a fully designed dark mode, then show me how to preview it with gr.themes.builder().