Social Icons
ModernDuang ships with 11 built-in social media icons, each rendered as a clean inline SVG. You can use these icons in the profile card, the footer, and other configurable areas — or supply your own custom SVG for any platform not in the built-in set.
Where Social Icons Appear
Social icons are used in two main locations:
Additionally, the icon property on navigation menu items accepts SVG strings (not built-in social icon names — see Navigation & Menus).
Built-in Icon Reference
The following 11 icon names are recognized. Use them as the icon value in profile.social entries or in footer.social.custom entries:
Hover Colors
Each built-in icon has a preset hover background color that matches the platform's brand:
When a visitor hovers over a social icon, the icon inverts its color scheme and the background fills with the brand color, creating a satisfying interactive effect.
Using Social Icons in the Profile Card
Add social links to your homepage profile card:
See the Profile Card guide for complete details on profile configuration.
Using Social Icons in the Footer
There are two ways to add social icons to the footer:
Toggle Built-in Icons
Enable the GitHub and Email toggles (which pull URLs from your profile.social):
Add Custom Footer Icons
Add any social icons (built-in or custom SVG) independent of the profile config:
See the Footer & ICP Beian guide for complete footer configuration.
Using Custom SVG Icons
If the platform you need is not in the built-in list, you can supply an inline SVG string as the icon value. The SVG must follow these conventions for consistent appearance with the built-in icons:
- Use
viewBox="0 0 24 24"— All built-in icons use a 24x24 grid, so your custom SVG should match for consistent sizing - Use
fill="currentColor"— This allows the icon color to adapt to the current text color and invert properly on hover - Keep it simple — Stick to a single
<path>or a few simple shapes for clean rendering at small sizes
Example: Adding a Discord Icon
Tip: You can find ready-made 24x24 SVG icons on sites like Simple Icons, Feather Icons, or Remix Icon. Copy the SVG markup and adjust the
viewBoxandfillattributes as needed.
Icon Display Behavior
- Profile card icons: Displayed in a horizontal row. Each icon is a 36x36 pixel circle with the SVG centered inside. On hover, the circle fills with the brand color and the icon turns white.
- Footer custom icons: Same visual treatment as profile icons, displayed in the footer bar.
- Footer toggle icons (
github,email,travelling): Displayed with a slightly different layout alongside the copyright line.
All icons include aria-label attributes for accessibility, using the name property you provide.
Complete Example
Here is a comprehensive social icon setup across both profile and footer:
Related Pages
- Profile Card — Profile card configuration with social links
- Footer & ICP Beian — Footer social icons and custom links
- Navigation & Menus — Custom SVG icons for menu items
