Social Media Links
Social media links on your webpages enable our audiences to quickly engage with our brand on our social media channels. Applying a consistent visual language for how social media icons display removes the guesswork — and keeps our audiences focused on our content.
Social media links are included within the site footer, but may also be used in other contexts.
Examples
Social links come in three themes. Set the theme with the theme property in Twig, or add a
modifier class to the base <ul> element. All three themes adapt to dark mode automatically.
Default
Icons on buttons that match the page background.
Gray
Icons on gray buttons. Add bux-social-links--gray, or set theme: 'gray'.
<ul class="bux-social-links bux-social-links--gray"></ul>
Scarlet
Scarlet icons on buttons that match the page background. Add bux-social-links--scarlet, or set
theme: 'scarlet'.
<ul class="bux-social-links bux-social-links--scarlet"></ul>
Social icon classes
Icon images are SVGs added via an <span> element as shown in the above example.
Each icon class array must include the icon class as well as the class
pertaining to the specific icon.
The table below lists built-in icons with their corresponding class names.
| Icon Name | Icon Class |
|---|---|
icon-facebook | |
| Flickr | icon-flickr |
icon-instagram | |
icon-linkedin | |
icon-reddit | |
| RSS | icon-rss |
| Snapchat | icon-snapchat |
| TikTok | icon-tiktok |
| X | icon-x |
| Vimeo | icon-vimeo |
| YouTube | icon-youtube |
Usage
Dos
- Use official social media icons from our Icon Library
Don’ts
- Don't alter color of the icons
- Don't alter the background of the icons
Accessibility
Because the links are not text based it is necessary to provide context about the link for screen reader users. We are doing this via a visually-hidden span that explains what the link is for and that it is an external link.
<span class="visually-hidden">Facebook profile — external</span>