Portfolio-website / Blog Post

SVGs and links to socials

March 16, 2026

A progress update for the portfolio-website, looking at (and debugging) using SVG icons.

portfolio-websitewebdev

I've had trouble getting the SVGs working and so I asked AI for help, prompting for a report comparing several approaches on using SVGs with react and tailwind. It resulted in the following table, recommending the use of SVGR. The thing is, the last time I tried to set up SVGR with my project I ran into some trouble. Something about next.js no longer using webpack... I'll give it another go though because I understand that setting up tools and configuration is an important part of developing.

Method|Type Safety|Perf (JS Size)|Styling Depth|Learning Curve |---|---|---|---|---| Registry|High|Low|High|Easy SVGR|High|Medium|High|Medium Sprites|Low|High|Low|Medium Framer|High|Low|Highest|Hard

Update: Yea it doesn't work because my version of next Next.js version: 16.1.6 (Turbopack) uses turbopack (as shown) instead of webpack. When I prompted for fixes it suggested I:

And so I was looking at the documentation for setting up with npm i @svgr/core but I can't find anything of use for starting from scratch. What the literal helly. WHY AM I GETTING STUCK ON IMPORTING ICONS ARRGHH.