Class | Result |
---|---|
.btn | the base button class to setup structure |
.btn-primary | background-color: #0d6efd; |
.btn-secondary | background-color: #6c757d; |
.btn-success | background-color: #198754; |
.btn-info | background-color: #0dcaf0; |
.btn-warning | background-color: #ffc107; |
.btn-danger | background-color: #dc3545; |
.btn-light | background-color: #f8f9fa; |
.btn-dark | background-color: #212529; |
.btn-black | background-color: #000000; |
.btn-white | background-color: #ffffff; |
.btn-gray-100 | background-color: #f8f9fa; |
.btn-gray-200 | background-color: #e9ecef; |
.btn-gray-300 | background-color: #dee2e6; |
.btn-gray-400 | background-color: #ced4da; |
.btn-gray-500 | background-color: #adb5bd; |
.btn-gray-600 | background-color: #6c757d; |
.btn-gray-700 | background-color: #495057; |
.btn-gray-800 | background-color: #343a40; |
.btn-gray-900 | background-color: #212529; |
.btn-blue-100 | background-color: #cfe2ff; |
.btn-blue-200 | background-color: #9ec5fe; |
.btn-blue-300 | background-color: #6ea8fe; |
.btn-blue-400 | background-color: #3d8bfd; |
.btn-blue-500 | background-color: #0d6efd; |
.btn-blue-600 | background-color: #0a58ca; |
.btn-blue-700 | background-color: #084298; |
.btn-blue-800 | background-color: #052c65; |
.btn-blue-900 | background-color: #031633; |
.btn-indigo-100 | background-color: #e0cffc; |
.btn-indigo-200 | background-color: #c29ffa; |
.btn-indigo-300 | background-color: #a370f7; |
.btn-indigo-400 | background-color: #8540f5; |
.btn-indigo-500 | background-color: #6610f2; |
.btn-indigo-600 | background-color: #520dc2; |
.btn-indigo-700 | background-color: #3d0a91; |
.btn-indigo-800 | background-color: #290661; |
.btn-indigo-900 | background-color: #140330; |
.btn-purple-100 | background-color: #e2d9f3; |
.btn-purple-200 | background-color: #c5b3e6; |
.btn-purple-300 | background-color: #a98eda; |
.btn-purple-400 | background-color: #8c68cd; |
.btn-purple-500 | background-color: #6f42c1; |
.btn-purple-600 | background-color: #59359a; |
.btn-purple-700 | background-color: #432874; |
.btn-purple-800 | background-color: #2c1a4d; |
.btn-purple-900 | background-color: #160d27; |
.btn-pink-100 | background-color: #f7d6e6; |
.btn-pink-200 | background-color: #efadce; |
.btn-pink-300 | background-color: #e685b5; |
.btn-pink-400 | background-color: #de5c9d; |
.btn-pink-500 | background-color: #d63384; |
.btn-pink-600 | background-color: #ab296a; |
.btn-pink-700 | background-color: #801f4f; |
.btn-pink-800 | background-color: #561435; |
.btn-pink-900 | background-color: #2b0a1a; |
.btn-red-100 | background-color: #f8d7da; |
.btn-red-200 | background-color: #f1aeb5; |
.btn-red-300 | background-color: #ea868f; |
.btn-red-400 | background-color: #e35d6a; |
.btn-red-500 | background-color: #dc3545; |
.btn-red-600 | background-color: #b02a37; |
.btn-red-700 | background-color: #842029; |
.btn-red-800 | background-color: #58151c; |
.btn-red-900 | background-color: #2c0b0e; |
.btn-orange-100 | background-color: #ffe5d0; |
.btn-orange-200 | background-color: #fecba1; |
.btn-orange-300 | background-color: #feb272; |
.btn-orange-400 | background-color: #fd9843; |
.btn-orange-500 | background-color: #fd7e14; |
.btn-orange-600 | background-color: #ca6510; |
.btn-orange-700 | background-color: #984c0c; |
.btn-orange-800 | background-color: #653208; |
.btn-orange-900 | background-color: #331904; |
.btn-yellow-100 | background-color: #fff3cd; |
.btn-yellow-200 | background-color: #ffe69c; |
.btn-yellow-300 | background-color: #ffda6a; |
.btn-yellow-400 | background-color: #ffcd39; |
.btn-yellow-500 | background-color: #ffc107; |
.btn-yellow-600 | background-color: #cc9a06; |
.btn-yellow-700 | background-color: #997404; |
.btn-yellow-800 | background-color: #664d03; |
.btn-yellow-900 | background-color: #332701; |
.btn-green-100 | background-color: #d1e7dd; |
.btn-green-200 | background-color: #a3cfbb; |
.btn-green-300 | background-color: #75b798; |
.btn-green-400 | background-color: #479f76; |
.btn-green-500 | background-color: #198754; |
.btn-green-600 | background-color: #146c43; |
.btn-green-700 | background-color: #0f5132; |
.btn-green-800 | background-color: #0a3622; |
.btn-green-900 | background-color: #051b11; |
.btn-teal-100 | background-color: #d2f4ea; |
.btn-teal-200 | background-color: #a6e9d5; |
.btn-teal-300 | background-color: #79dfc1; |
.btn-teal-400 | background-color: #4dd4ac; |
.btn-teal-500 | background-color: #20c997; |
.btn-teal-600 | background-color: #1aa179; |
.btn-teal-700 | background-color: #13795b; |
.btn-teal-800 | background-color: #0d503c; |
.btn-teal-900 | background-color: #06281e; |
.btn-cyan-100 | background-color: #cff4fc; |
.btn-cyan-200 | background-color: #9eeaf9; |
.btn-cyan-300 | background-color: #6edff6; |
.btn-cyan-400 | background-color: #3dd5f3; |
.btn-cyan-500 | background-color: #0dcaf0; |
.btn-cyan-600 | background-color: #0aa2c0; |
.btn-cyan-700 | background-color: #087990; |
.btn-cyan-800 | background-color: #055160; |
.btn-cyan-900 | background-color: #032830; |
.btn-outline-primary | border-color: #0d6efd; text-color: #0d6efd; background-color: transparent; |
.btn-outline-secondary | border-color: #6c757d; text-color: #6c757d; background-color: transparent; |
.btn-outline-success | border-color: #198754; text-color: #198754; background-color: transparent; |
.btn-outline-info | border-color: #0dcaf0; text-color: #0dcaf0; background-color: transparent; |
.btn-outline-warning | border-color: #ffc107; text-color: #ffc107; background-color: transparent; |
.btn-outline-danger | border-color: #dc3545; text-color: #dc3545; background-color: transparent; |
.btn-outline-light | border-color: #f8f9fa; text-color: #f8f9fa; background-color: transparent; |
.btn-outline-dark | border-color: #212529; text-color: #212529; background-color: transparent; |
.btn-outline-black | border-color: #000000; text-color: #000000; background-color: transparent; |
.btn-outline-white | border-color: #ffffff; text-color: #ffffff; background-color: transparent; |
.btn-outline-gray-100 | border-color: #f8f9fa; text-color: #f8f9fa; background-color: transparent; |
.btn-outline-gray-200 | border-color: #e9ecef; text-color: #e9ecef; background-color: transparent; |
.btn-outline-gray-300 | border-color: #dee2e6; text-color: #dee2e6; background-color: transparent; |
.btn-outline-gray-400 | border-color: #ced4da; text-color: #ced4da; background-color: transparent; |
.btn-outline-gray-500 | border-color: #adb5bd; text-color: #adb5bd; background-color: transparent; |
.btn-outline-gray-600 | border-color: #6c757d; text-color: #6c757d; background-color: transparent; |
.btn-outline-gray-700 | border-color: #495057; text-color: #495057; background-color: transparent; |
.btn-outline-gray-800 | border-color: #343a40; text-color: #343a40; background-color: transparent; |
.btn-outline-gray-900 | border-color: #212529; text-color: #212529; background-color: transparent; |
.btn-outline-blue-100 | border-color: #cfe2ff; text-color: #cfe2ff; background-color: transparent; |
.btn-outline-blue-200 | border-color: #9ec5fe; text-color: #9ec5fe; background-color: transparent; |
.btn-outline-blue-300 | border-color: #6ea8fe; text-color: #6ea8fe; background-color: transparent; |
.btn-outline-blue-400 | border-color: #3d8bfd; text-color: #3d8bfd; background-color: transparent; |
.btn-outline-blue-500 | border-color: #0d6efd; text-color: #0d6efd; background-color: transparent; |
.btn-outline-blue-600 | border-color: #0a58ca; text-color: #0a58ca; background-color: transparent; |
.btn-outline-blue-700 | border-color: #084298; text-color: #084298; background-color: transparent; |
.btn-outline-blue-800 | border-color: #052c65; text-color: #052c65; background-color: transparent; |
.btn-outline-blue-900 | border-color: #031633; text-color: #031633; background-color: transparent; |
.btn-outline-indigo-100 | border-color: #e0cffc; text-color: #e0cffc; background-color: transparent; |
.btn-outline-indigo-200 | border-color: #c29ffa; text-color: #c29ffa; background-color: transparent; |
.btn-outline-indigo-300 | border-color: #a370f7; text-color: #a370f7; background-color: transparent; |
.btn-outline-indigo-400 | border-color: #8540f5; text-color: #8540f5; background-color: transparent; |
.btn-outline-indigo-500 | border-color: #6610f2; text-color: #6610f2; background-color: transparent; |
.btn-outline-indigo-600 | border-color: #520dc2; text-color: #520dc2; background-color: transparent; |
.btn-outline-indigo-700 | border-color: #3d0a91; text-color: #3d0a91; background-color: transparent; |
.btn-outline-indigo-800 | border-color: #290661; text-color: #290661; background-color: transparent; |
.btn-outline-indigo-900 | border-color: #140330; text-color: #140330; background-color: transparent; |
.btn-outline-purple-100 | border-color: #e2d9f3; text-color: #e2d9f3; background-color: transparent; |
.btn-outline-purple-200 | border-color: #c5b3e6; text-color: #c5b3e6; background-color: transparent; |
.btn-outline-purple-300 | border-color: #a98eda; text-color: #a98eda; background-color: transparent; |
.btn-outline-purple-400 | border-color: #8c68cd; text-color: #8c68cd; background-color: transparent; |
.btn-outline-purple-500 | border-color: #6f42c1; text-color: #6f42c1; background-color: transparent; |
.btn-outline-purple-600 | border-color: #59359a; text-color: #59359a; background-color: transparent; |
.btn-outline-purple-700 | border-color: #432874; text-color: #432874; background-color: transparent; |
.btn-outline-purple-800 | border-color: #2c1a4d; text-color: #2c1a4d; background-color: transparent; |
.btn-outline-purple-900 | border-color: #160d27; text-color: #160d27; background-color: transparent; |
.btn-outline-pink-100 | border-color: #f7d6e6; text-color: #f7d6e6; background-color: transparent; |
.btn-outline-pink-200 | border-color: #efadce; text-color: #efadce; background-color: transparent; |
.btn-outline-pink-300 | border-color: #e685b5; text-color: #e685b5; background-color: transparent; |
.btn-outline-pink-400 | border-color: #de5c9d; text-color: #de5c9d; background-color: transparent; |
.btn-outline-pink-500 | border-color: #d63384; text-color: #d63384; background-color: transparent; |
.btn-outline-pink-600 | border-color: #ab296a; text-color: #ab296a; background-color: transparent; |
.btn-outline-pink-700 | border-color: #801f4f; text-color: #801f4f; background-color: transparent; |
.btn-outline-pink-800 | border-color: #561435; text-color: #561435; background-color: transparent; |
.btn-outline-pink-900 | border-color: #2b0a1a; text-color: #2b0a1a; background-color: transparent; |
.btn-outline-red-100 | border-color: #f8d7da; text-color: #f8d7da; background-color: transparent; |
.btn-outline-red-200 | border-color: #f1aeb5; text-color: #f1aeb5; background-color: transparent; |
.btn-outline-red-300 | border-color: #ea868f; text-color: #ea868f; background-color: transparent; |
.btn-outline-red-400 | border-color: #e35d6a; text-color: #e35d6a; background-color: transparent; |
.btn-outline-red-500 | border-color: #dc3545; text-color: #dc3545; background-color: transparent; |
.btn-outline-red-600 | border-color: #b02a37; text-color: #b02a37; background-color: transparent; |
.btn-outline-red-700 | border-color: #842029; text-color: #842029; background-color: transparent; |
.btn-outline-red-800 | border-color: #58151c; text-color: #58151c; background-color: transparent; |
.btn-outline-red-900 | border-color: #2c0b0e; text-color: #2c0b0e; background-color: transparent; |
.btn-outline-orange-100 | border-color: #ffe5d0; text-color: #ffe5d0; background-color: transparent; |
.btn-outline-orange-200 | border-color: #fecba1; text-color: #fecba1; background-color: transparent; |
.btn-outline-orange-300 | border-color: #feb272; text-color: #feb272; background-color: transparent; |
.btn-outline-orange-400 | border-color: #fd9843; text-color: #fd9843; background-color: transparent; |
.btn-outline-orange-500 | border-color: #fd7e14; text-color: #fd7e14; background-color: transparent; |
.btn-outline-orange-600 | border-color: #ca6510; text-color: #ca6510; background-color: transparent; |
.btn-outline-orange-700 | border-color: #984c0c; text-color: #984c0c; background-color: transparent; |
.btn-outline-orange-800 | border-color: #653208; text-color: #653208; background-color: transparent; |
.btn-outline-orange-900 | border-color: #331904; text-color: #331904; background-color: transparent; |
.btn-outline-yellow-100 | border-color: #fff3cd; text-color: #fff3cd; background-color: transparent; |
.btn-outline-yellow-200 | border-color: #ffe69c; text-color: #ffe69c; background-color: transparent; |
.btn-outline-yellow-300 | border-color: #ffda6a; text-color: #ffda6a; background-color: transparent; |
.btn-outline-yellow-400 | border-color: #ffcd39; text-color: #ffcd39; background-color: transparent; |
.btn-outline-yellow-500 | border-color: #ffc107; text-color: #ffc107; background-color: transparent; |
.btn-outline-yellow-600 | border-color: #cc9a06; text-color: #cc9a06; background-color: transparent; |
.btn-outline-yellow-700 | border-color: #997404; text-color: #997404; background-color: transparent; |
.btn-outline-yellow-800 | border-color: #664d03; text-color: #664d03; background-color: transparent; |
.btn-outline-yellow-900 | border-color: #332701; text-color: #332701; background-color: transparent; |
.btn-outline-green-100 | border-color: #d1e7dd; text-color: #d1e7dd; background-color: transparent; |
.btn-outline-green-200 | border-color: #a3cfbb; text-color: #a3cfbb; background-color: transparent; |
.btn-outline-green-300 | border-color: #75b798; text-color: #75b798; background-color: transparent; |
.btn-outline-green-400 | border-color: #479f76; text-color: #479f76; background-color: transparent; |
.btn-outline-green-500 | border-color: #198754; text-color: #198754; background-color: transparent; |
.btn-outline-green-600 | border-color: #146c43; text-color: #146c43; background-color: transparent; |
.btn-outline-green-700 | border-color: #0f5132; text-color: #0f5132; background-color: transparent; |
.btn-outline-green-800 | border-color: #0a3622; text-color: #0a3622; background-color: transparent; |
.btn-outline-green-900 | border-color: #051b11; text-color: #051b11; background-color: transparent; |
.btn-outline-teal-100 | border-color: #d2f4ea; text-color: #d2f4ea; background-color: transparent; |
.btn-outline-teal-200 | border-color: #a6e9d5; text-color: #a6e9d5; background-color: transparent; |
.btn-outline-teal-300 | border-color: #79dfc1; text-color: #79dfc1; background-color: transparent; |
.btn-outline-teal-400 | border-color: #4dd4ac; text-color: #4dd4ac; background-color: transparent; |
.btn-outline-teal-500 | border-color: #20c997; text-color: #20c997; background-color: transparent; |
.btn-outline-teal-600 | border-color: #1aa179; text-color: #1aa179; background-color: transparent; |
.btn-outline-teal-700 | border-color: #13795b; text-color: #13795b; background-color: transparent; |
.btn-outline-teal-800 | border-color: #0d503c; text-color: #0d503c; background-color: transparent; |
.btn-outline-teal-900 | border-color: #06281e; text-color: #06281e; background-color: transparent; |
.btn-outline-cyan-100 | border-color: #cff4fc; text-color: #cff4fc; background-color: transparent; |
.btn-outline-cyan-200 | border-color: #9eeaf9; text-color: #9eeaf9; background-color: transparent; |
.btn-outline-cyan-300 | border-color: #6edff6; text-color: #6edff6; background-color: transparent; |
.btn-outline-cyan-400 | border-color: #3dd5f3; text-color: #3dd5f3; background-color: transparent; |
.btn-outline-cyan-500 | border-color: #0dcaf0; text-color: #0dcaf0; background-color: transparent; |
.btn-outline-cyan-600 | border-color: #0aa2c0; text-color: #0aa2c0; background-color: transparent; |
.btn-outline-cyan-700 | border-color: #087990; text-color: #087990; background-color: transparent; |
.btn-outline-cyan-800 | border-color: #055160; text-color: #055160; background-color: transparent; |
.btn-outline-cyan-900 | border-color: #032830; text-color: #032830; background-color: transparent; |
Buttons are ONLY to be used with an anchor <a>
tag. The there are classes for all the theme and palette colors, so you can use btn-primary
as well as btn-blue-300
.
<a class="btn btn-primary" href="https://bootstrapemail.com">Primary</a>
<a class="btn btn-secondary" href="https://bootstrapemail.com">Secondary</a>
<a class="btn btn-success" href="https://bootstrapemail.com">Success</a>
<a class="btn btn-danger" href="https://bootstrapemail.com">Danger</a>
<a class="btn btn-warning" href="https://bootstrapemail.com">Warning</a>
<a class="btn btn-info" href="https://bootstrapemail.com">Info</a>
<a class="btn btn-light" href="https://bootstrapemail.com">Light</a>
<a class="btn btn-dark" href="https://bootstrapemail.com">Dark</a>
Primary Secondary Success Danger Warning Info Light Dark
You can use outlined versions of every button by simply adding the outline
keyword to the class like btn-outline-primary
or btn-outline-green-500
.
<a class="btn btn-outline-primary" href="https://bootstrapemail.com">Primary</a>
<a class="btn btn-outline-green-500" href="https://bootstrapemail.com">Green</a>
You can use btn-sm
or btn-lg
for smaller or larger buttons and text respectively. If you want to just adjust the padding size of a button you can use the Padding utility classes.
<a class="btn btn-primary btn-sm" href="https://bootstrapemail.com">Large button</a>
<a class="btn btn-primary btn-lg" href="https://bootstrapemail.com">Large button</a>
Input
<a class="btn btn-primary" href="https://example.com">Click Me</a>
Output
<table class="btn btn-primary" role="presentation" border="0" cellpadding="0" cellspacing="0" style="border-radius: 6px; border-collapse: separate !important;">
<tbody>
<tr>
<td style="line-height: 24px; font-size: 16px; border-radius: 6px; margin: 0;" align="center" bgcolor="#0d6efd">
<a href="https://example.com" style="color: #ffffff; font-size: 16px; font-family: Helvetica, Arial, sans-serif; text-decoration: none; border-radius: 6px; line-height: 20px; display: inline-block; font-weight: normal; white-space: nowrap; background-color: #0d6efd; padding: 8px 12px; border: 1px solid #0d6efd;">Click Me</a>
</td>
</tr>
</tbody>
</table>