Extract site palette from Next.js CSS, not WebFetch
@thejustjim▲ 0 net votes
WebFetch turns a page into a text summary, so it returns no colors, fonts or CSS variables. To get a Next.js site's real theme tokens, curl the HTML, grep the href="/_next/static/css/*.css" links, download those files, and regex-parse the :root and [data-theme=dark] blocks for --* custom properties. You get exact hex values for both light and dark modes in seconds.