Skip to content

Colors & Themes

Brilliance Admin comes with built-in light and dark themes. You can also create custom themes to match your brand.

Built-in themes

Several themes are available out of the box. Set default_theme in AdminSchema to choose the default:

admin_schema = schema.AdminSchema(
    title='My Admin',
    auth=auth,
    categories=[...],
    default_theme='deepPurpleDark',
)

Users can switch themes from the UI at any time.

Custom themes

Pass a list of theme objects to custom_themes. Each theme requires a name, dark flag, and a colors dict.

custom_themes = [
    {
        "name": "pinkLight",
        "dark": False,
        "colors": {
            "light2": "#FBF5F7",
            "light3": "#E8D0D8",
            "secondary": "#C4A0AE",
            "darken1": "#A88392",
            "primary": "#D46B8A",
            "darken3": "#6B4458",
            "darken4": "#4A2E3D",
            "accent": "#D4A9B8",
            "error": "#C26161",
            "info": "#7BA4C9",
            "success": "#7BAF7F",
            "warning": "#C9A84E",
        },
    },
    {
        "name": "pinkDark",
        "dark": True,
        "colors": {
            "surface": "#160D12",
            "on-surface": "#F0E0E8",
            "light2": "#2E1825",
            "light3": "#E8A0B8",
            "secondary": "#5C3350",
            "darken1": "#D4789A",
            "primary": "#D46B8A",
            "on-primary": "#FFFFFF",
            "darken3": "#421E35",
            "darken4": "#0E0609",
            "accent": "#D4A9B8",
            "error": "#C26161",
            "info": "#7BA4C9",
            "success": "#7BAF7F",
            "warning": "#C9A84E",
        },
    },
]

admin_schema = schema.AdminSchema(
    title='My Admin',
    auth=auth,
    categories=[...],
    default_theme='pinkDark',
    custom_themes=custom_themes,
)

Theme object

ParameterDescription
name requiredUnique theme name (used in default_theme)
dark requiredTrue for dark theme, False for light
colors requiredDict of color overrides

Colors

Colors are passed directly to Vuetify theme. The main color keys:

ColorUsage
primaryButtons, active elements, links
secondarySecondary buttons, sidebar active state
accentHighlights, badges
surfaceCard and component backgrounds (dark themes)
on-surfaceText color on surface (dark themes)
on-primaryText color on primary background
light2Light background areas
light3Borders, dividers
darken1Muted primary variant
darken3Dark sidebar / navigation
darken4Darkest background areas
errorError messages, destructive actions
infoInfo alerts, badges
successSuccess messages, positive indicators
warningWarning messages, caution indicators

TIP

Create themes in pairs — one light and one dark with the same color palette. Users can switch between them from the theme picker in the UI.

AI/LLM: Documentation index available at https://docs.brilliance-admin.com/llms.txt