You can use the included Button module for most of your page buttons. Still, in those particular cases where you may need to add a button in a Rich Text field or if you want to apply theme styles to HubSpot CTA (legacy) buttons, there are classes and code snippets listed here and also these quick guides on how to use them:
The code snippets you can use for this are listed in the second code box next to each button. Please watch the video below for a quick guide:
The classes are listed in the first code box next to each button. Please watch the video below for a quick guide:
Takes the Accent color/gradient from your theme settings.
Button sample with the default theme settings | CSS classes & code snippets |
---|---|
|
|
|
|
|
|
|
|
|
|
|
Takes the Accent color/gradient from your theme settings.
All your buttons take a pill shape if you select a large button radius in your theme settings. Otherwise, you can still make pill buttons with the btn--pill
extra class.
Button sample with the default theme settings | CSS classes & code snippets |
---|---|
|
|
|
|
|
|
|
|
|
|
|
Takes the Dark gray color from your theme settings.
Button sample with the default theme settings | CSS classes & code snippets |
---|---|
|
|
|
|
|
|
|
|
|
|
|
Takes the Dark gray color from your theme settings.
All your buttons take a pill shape if you select a large button radius in your theme settings. Otherwise, you can still make pill buttons with the btn--pill
extra class.
Button sample with the default theme settings | CSS classes & code snippets |
---|---|
|
|
|
|
|
|
|
|
|
|
|
Takes the Light gray color from your theme settings.
Button sample with the default theme settings | CSS classes & code snippets |
---|---|
|
|
|
|
|
|
|
|
|
|
|
Takes the Light gray color from your theme settings.
All your buttons take a pill shape if you select a large button radius in your theme settings. Otherwise, you can still make pill buttons with the btn--pill
extra class.
Button sample with the default theme settings | CSS classes & code snippets |
---|---|
|
|
|
|
|
|
|
|
|
|
|
Takes the Borders color from your theme settings.
Button sample with the default theme settings | CSS classes & code snippets |
---|---|
|
|
|
|
|
|
|
|
|
|
|
Takes the Borders color from your theme settings.
All your buttons take a pill shape if you select a large button radius in your theme settings. Otherwise, you can still make pill buttons with the btn--pill
extra class.
Button sample with the default theme settings | CSS classes & code snippets |
---|---|
|
|
|
|
|
|
|
|
|
|
|
White buttons that look great on dark backgrounds.
Button sample with the default theme settings | CSS classes & code snippets |
---|---|
|
|
|
|
|
|
|
|
|
|
|
White buttons that look great on dark backgrounds.
All your buttons take a pill shape if you select a large button radius in your theme settings. Otherwise, you can still make pill buttons with the btn--pill
extra class.
Button sample with the default theme settings | CSS classes & code snippets |
---|---|
|
|
|
|
|
|
|
|
|
|
|
White buttons with the Accent color (or fallback color if you are using a gradient) from your theme settings.
Button sample with the default theme settings | CSS classes & code snippets |
---|---|
|
|
|
|
|
|
|
|
|
|
|
White buttons with the Accent color (or fallback color if you are using a gradient) from your theme settings.
All your buttons take a pill shape if you select a large button radius in your theme settings. Otherwise, you can still make pill buttons with the btn--pill
extra class.
Button sample with the default theme settings | CSS classes & code snippets |
---|---|
|
|
|
|
|
|
|
|
|
|
|
White buttons with the hover Accent color (or fallback color if you are using a gradient) from your theme settings.
Button sample with the default theme settings | CSS classes & code snippets |
---|---|
|
|
|
|
|
|
|
|
|
|
|
White buttons with the Accent color (or fallback color if you are using a gradient) from your theme settings.
All your buttons take a pill shape if you select a large button radius in your theme settings. Otherwise, you can still make pill buttons with the btn--pill
extra class.
Button sample with the default theme settings | CSS classes & code snippets |
---|---|
|
|
|
|
|
|
|
|
|
|
|
Transparent white buttons that look great on dark backgrounds.
Button sample with the default theme settings | CSS classes & code snippets |
---|---|
|
|
|
|
|
|
|
|
|
|
|
Transparent white buttons that look great on dark backgrounds.
All your buttons take a pill shape if you select a large button radius in your theme settings. Otherwise, you can still make pill buttons with the btn--pill
extra class.
Button sample with the default theme settings | CSS classes & code snippets |
---|---|
|
|
|
|
|
|
|
|
|
|
|