mirror of
https://github.com/primer/css.git
synced 2024-12-25 07:03:35 +03:00
6b6e89a8bf
* use standard lifecyle milestones for statuses * Create neat-laws-matter.md
47 lines
2.2 KiB
Markdown
47 lines
2.2 KiB
Markdown
---
|
|
title: Marketing buttons
|
|
path: components/marketing-buttons
|
|
status: Beta
|
|
source: 'https://github.com/primer/css/tree/main/src/marketing/buttons'
|
|
bundle: marketing-buttons
|
|
---
|
|
|
|
Marketing buttons come in different colors and sizes, and are also available in a blue outlined version.
|
|
|
|
## Colors, outlined and transparent
|
|
|
|
Marketing buttons can be solid blue, outlined blue, solid green, or transparent.
|
|
|
|
The solid blue and solid green buttons have more visual emphasis than the blue outlined button, therefore they should be used sparingly and only for call to actions that need emphasis.
|
|
|
|
```html live
|
|
<button class="btn-mktg mr-3" type="button">Learn more</button>
|
|
<button class="btn-mktg btn-primary-mktg mr-3" type="button">Sign up</button>
|
|
<button class="btn-mktg btn-enterprise-mktg mr-3" type="button">Contact sales</button>
|
|
<button class="btn-mktg btn-outline-mktg mr-3" type="button">Learn more</button>
|
|
<div class="mt-3 p-3" style="background-color: var(--color-scale-gray-9);">
|
|
<button class="btn-mktg btn-transparent" type="button">Learn more</button>
|
|
</div>
|
|
```
|
|
|
|
## Sizes
|
|
|
|
Available in three sizes, marketing buttons have a default size and a large size.
|
|
|
|
```html live
|
|
<button class="btn-mktg btn-sm-mktg mr-2" type="button">Learn more</button>
|
|
<button class="btn-mktg btn-primary-mktg btn-sm-mktg mr-2" type="button">Sign up</button>
|
|
<button class="btn-mktg btn-enterprise-mktg btn-sm-mktg mr-3" type="button">Contact sales</button>
|
|
<button class="btn-mktg btn-outline-mktg btn-sm-mktg mr-2" type="button">Learn more</button>
|
|
<hr>
|
|
<button class="btn-mktg mr-2" type="button">Learn more</button>
|
|
<button class="btn-mktg btn-primary-mktg mr-2" type="button">Sign up</button>
|
|
<button class="btn-mktg btn-enterprise-mktg mr-3" type="button">Contact sales</button>
|
|
<button class="btn-mktg btn-outline-mktg mr-2" type="button">Learn more</button>
|
|
<hr>
|
|
<button class="btn-mktg btn-lg-mktg mr-2" type="button">Learn more</button>
|
|
<button class="btn-mktg btn-primary-mktg btn-lg-mktg mr-2" type="button">Sign up</button>
|
|
<button class="btn-mktg btn-enterprise-mktg btn-lg-mktg mr-3" type="button">Contact sales</button>
|
|
<button class="btn-mktg btn-outline-mktg btn-lg-mktg mr-2" type="button">Learn more</button>
|
|
```
|