--- title: "Astro Sphere: Social media links" summary: "A quick tutorial on how to change, add or remove social media links" date: "Mar 11 2024" draft: false tags: - Tutorial - Astro - Astro Sphere --- Astro Sphere comes preconfigured with social media links for Email, Github, Linked In and Twitter (X), but it's very easy to add more. ### Edit `consts.ts` ```js // consts.ts export const SOCIALS: Socials = [ { NAME: "Github", ICON: "github", TEXT: "markhorn-dev", HREF: "https://github.com/markhorn-dev/astro-sphere" }, ] ``` | Field | Type | Required | Description | | :---- | :--- | :------- | :---------- | | NAME | string | yes | Accessible name | | ICON | string | yes | Refers to the symbol id in `public/social.svg` | | TEXT | string | yes | Shorthand profile name | | HREF | string | yes | The link to the social media profile | ### Edit /public/social.svg Simply add your own symbols to the svg sprite. It is recommended that all styles be removed from new symbols added, or they may not show up correctly or conflict with Tailwind's classes. The id should match the icon field as specified in your `consts.ts` file. ```html ```