Defines a Gradio UI theme with lime/cyan accents, large spacing, rounded corners, and Lexend/Space Mono fonts. Reuse to give apps a vibrant neon visual style.
# Source: https://github.com/gradio-app/gradio | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
# Provided via justclaw.it.com; keep this notice with the code.
from __future__ import annotations
from collections.abc import Iterable
from gradio.themes.base import Base
from gradio.themes.utils import colors, fonts, sizes
class Neon(Base):
def __init__(
self,
*,
primary_hue: colors.Color | str = colors.lime,
secondary_hue: colors.Color | str = colors.cyan,
neutral_hue: colors.Color | str = colors.neutral,
spacing_size: sizes.Size | str = sizes.spacing_lg,
radius_size: sizes.Size | str = sizes.radius_xxl,
text_size: sizes.Size | str = sizes.text_md,
font: fonts.Font | st
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key