Glin UI

Foundations

Variants

Every surface speaks the same variant language. The design style picks the default (glinr, minimal or glass), and a tone axis carries meaning. Components adapt to the nearest theme scope automatically.

Vocabulary

Eight variants with the same meaning on every component. The ladder from flat to rich is plain, solid, glinr.
VariantLookUse for
glinrSignature lift. Concentric radii, gradient hairline ring, tonal shell, raised pill controls, inset wells. Default of the glinr style.Cards, panels, tabs, code, popovers, signature components
plainshadcn-compatible look. Flat fill, 1px border, small radius, shadow-sm at most. Default of the minimal style.Teams coming from shadcn, dense admin UI
solidNeutral black and white with tonal depth (ring, highlight, drops). Crisp opaque fill with a top highlight, hairline ring and layered drop shadow.Primary actions, badges, most surfaces
softTinted surface: surface-2 for neutral, 12 percent tone mix for other tones, tone text.Secondary actions, status, inline notices
outlineTransparent with a hairline ring and a hover wash.Tertiary actions, toolbars, forms
ghostTransparent, tint on hover only.Dense UI, icon buttons, menus
gradientAccent to brand gradient, white text.One hero call to action per view
glassOpt-in frosted surface with a readable opacity floor. Needs a backdrop.Overlays and floating panels over imagery

Design styles

One setting in GlinProvider (style) or data-glin-style on any element switches the default variant of every component that has no explicit variant prop.
StyleDefault variantNote
glinrglinrLibrary default, also without any provider.
minimalplainFlat shadcn-like. Keeps the neutral black and white palette.
glassglassOpt-in aesthetic. It needs a colorful backdrop to read, wrap it in a ThemeScope with luminance.

Variant by tone

The shared surface builders rendered across every variant and tone, in both theme scopes.

light scope

variantneutralaccentsuccesswarningdangerinfo
glinr
solid
plain
soft
outline
ghost
gradient
glass

dark scope

variantneutralaccentsuccesswarningdangerinfo
glinr
solid
plain
soft
outline
ghost
gradient
glass

Button

Existing Button variants shown under the standard names. Names marked extra stay as additional looks.

light scope

variantdefault
solid: default
solid: primary
soft: secondary
outline: outline
ghost: ghost
glass: glass
extra: liquid
extra: matte
extra: glow
extra: key
extra: key-white

dark scope

variantdefault
solid: default
solid: primary
soft: secondary
outline: outline
ghost: ghost
glass: glass
extra: liquid
extra: matte
extra: glow
extra: key
extra: key-white

Badge

light scope

variantdefault
defaultdefault
outlineoutline
ghostghost
glassglass
successsuccess
warningwarning
destructivedestructive
infoinfo

dark scope

variantdefault
defaultdefault
outlineoutline
ghostghost
glassglass
successsuccess
warningwarning
destructivedestructive
infoinfo

Card

light scope

variantdefault
default

default

Surface text

elevated

elevated

Surface text

interactive

interactive

Surface text

glass

glass

Surface text

dark scope

variantdefault
default

default

Surface text

elevated

elevated

Surface text

interactive

interactive

Surface text

glass

glass

Surface text

Alert

light scope

variantdefault
default
glass
matte

dark scope

variantdefault
default
glass
matte

Legacy aliases

Old names keep working and resolve to the vocabulary.
  • default resolves to solid, tone neutral
  • primary resolves to solid, tone accent
  • secondary resolves to soft, tone neutral
  • destructive resolves to solid, tone danger
  • success resolves to soft, tone success
  • frosted resolves to glass, tone neutral

ThemeScope

Force light or dark on a subtree. Tokens, glass opacity and dark: utilities all follow the scope.

This area follows the page theme.

A dark section inside the page.

Success

Pick a variant

WhenVariantNote
The main action on the screensolid or glinrtone accent for brand emphasis
A supporting action next to a solid onesoft or outlineoutline when the surface is busy
Status, validation, tagssofttone success, warning, danger, info
Toolbars, tables, dense listsghostkeeps rows quiet
A marketing herogradientlimit to one per view
Floating over a photo or gradientglasswrap in a dark ThemeScope when the image is dark