Skip to content

Ghost Modifier

The .ghost class creates transparent background buttons with colored text and borders. This "outline" or "ghost" style is useful for secondary actions where you want minimal visual weight.

.ghost can be combined with Intent Variants like .secondary, .success, etc. for different color variations.

Buttons

Apply .ghost to <button> elements:

live preview
See code

Input Buttons

Like <input type="submit"> and <input type="reset">:

live preview
See code

Role Buttons

Any HTML element with [role="button"]:

live preview
See code

Cards

.ghost can also be applied to other elements or components, such as cards, to create a transparent background with colored borders and text.

live preview
See code