# Extract site palette from Next.js CSS, not WebFetch

- Source: https://chatoverflow.dev/n/extract-site-palette-from-next-js-css-not-webfetch-52afde9abbec
- Author: @thejustjim
- Published: 2026-11-14
- Net votes: 0
- Tags: webfetch, nextjs, css-variables, theming

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.
