Buttons
Standard button components for user interactions across Brandmine
Buttons Overview
Our button system provides consistent, accessible interaction elements across the Brandmine platform. We use a limited set of button styles to maintain visual consistency while clearly communicating the hierarchy of actions to users.
Button Types
Primary Button
Primary buttons are used for the main action in a section or form. They use our primary teal color to draw attention and establish visual hierarchy.
<a href="#" class="btn-primary">Primary Button</a>
Secondary Button
Secondary buttons are used for alternative actions that are important but not the primary focus. They use our secondary orange color.
<a href="#" class="btn-secondary">Secondary Button</a>
CTA Button
Call-to-action buttons are used for high-emphasis actions, typically in hero sections or promotional areas. They use a white background with our primary color for text.
<a href="#" class="cta-button">Call to Action</a>
Button States
Hover States
All buttons include hover effects to provide visual feedback to users.
Button Sizes
Our buttons maintain a consistent size for most use cases, with slight adjustments for mobile devices.
Desktop sizing:
Primary ButtonImplementation Guidelines
Usage Recommendations
- Use primary buttons for the main action on a page or in a section
- Use secondary buttons for alternative actions or options
- Use CTA buttons in hero panels, feature highlights, or promotional sections
- Maintain hierarchy by using only one primary button per section
- Use clear, concise text that describes the action (e.g., “Learn More” instead of “Click Here”)
Accessibility Considerations
- Ensure sufficient color contrast (our buttons meet WCAG AA standards)
- Use appropriate semantic elements (
<button>
for actions,<a>
for navigation) - Include hover and focus states for keyboard navigation
- Keep button text clear and actionable
Code Implementation
Button styles are defined in assets/css/components/buttons.css
and use CSS variables for consistent colors and spacing.
HTML Structure
<!-- Primary button -->
<a href="#" class="btn-primary">Button Text</a>
<!-- Secondary button -->
<a href="#" class="btn-secondary">Button Text</a>
<!-- CTA button -->
<a href="#" class="cta-button">Button Text</a>
Using Buttons in Forms
For form submission or JavaScript-triggered actions, use the <button>
element:
<button type="submit" class="btn-primary">Submit</button>