You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/components/buttons.md
+37-7Lines changed: 37 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,6 @@ If you are using the `.btn` class on its own, remember to at least define some e
27
27
28
28
## Variants
29
29
30
-
31
30
CoreUI includes a bunch of predefined Bootstrap buttons, each serving its own semantic purpose. CoreUI also offers some unique buttons styles.
32
31
33
32
Buttons show what action will happen when the user clicks or touches it. Bootstrap buttons are used to initialize operations, both in the background or foreground of an experience.
@@ -80,6 +79,20 @@ If you're using `.btn` classes on `<a>` elements that are used to trigger functi
80
79
81
80
## Outline buttons
82
81
82
+
### Base outline style: `.btn-outline`
83
+
84
+
The `.btn-outline` class provides a neutral outline button style without any color modifiers. It’s useful as a foundation for minimal buttons without background color or strong visual emphasis.
These buttons use a transparent background, subtle border, and inherit text color from the parent context. They’re best suited for minimalist UI elements like modals, toolbars, or secondary actions.
93
+
94
+
### Themed outline variants: `.btn-outline-*`
95
+
83
96
If you need a button, but without the strong background colors. Replace the default modifier classes with the `.btn-outline-*` ones to remove all background colors on any element with `.btn` class.
84
97
85
98
{{< example >}}
@@ -90,20 +103,37 @@ If you need a button, but without the strong background colors. Replace the defa
90
103
{{< /buttons.inline >}}
91
104
{{< /example >}}
92
105
106
+
These outline variant buttons retain transparent backgrounds by default, but display a subtle background tint on hover or focus to indicate interactivity. They're ideal for secondary actions when you want to visually differentiate from solid `.btn-*` buttons.
107
+
93
108
{{< callout info >}}
94
109
Some of the button styles use a relatively light foreground color, and should only be used on a dark background in order to have sufficient contrast.
95
110
{{< /callout >}}
96
111
97
112
## Ghost buttons
98
113
99
-
Use `.btn-ghost-*` class for ghost buttons.
114
+
### Base ghost style: `.btn-ghost`
115
+
116
+
Use the `.btn-ghost` class to create ultra-minimalist buttons with no borders and a fully transparent background. These buttons rely solely on text color for visibility and apply a subtle background highlight on hover or active states.
117
+
118
+
They’re perfect for interfaces where you want buttons to be present but visually unobtrusive—such as action buttons in modals, cards, or toolbars.
100
119
101
120
{{< example >}}
102
-
{{< buttons.inline >}}
103
-
{{- range (index $.Site.Data "theme-colors") }}
104
-
<buttontype="button"class="btn btn-ghost-{{ .name }}">{{ .name | title }}</button>
To apply theme colors to ghost buttons, use `.btn-ghost-*` classes. These variants color only the text by default. On hover or focus, they add a faint background tint corresponding to the theme color.
0 commit comments