When using TailwindCSS 3 in a Next.js app you could console log the theme in layout.tsx when you were implementing a tailwind.config.ts:
import resolveConfig from 'tailwindcss/resolveConfig';
import tailwindConfig from '../../tailwind.config';
const { theme } = resolveConfig(tailwindConfig);
console.log({ theme });
Since TailwindCSS v4 is going away from the config and using a CSS-first approach and tailwindcss/resolveConfig doesn't seem to be present how could someone in layout.tsx console.log their theme?
Research
Nothing found when reading through:
tailwindlabs/tailwindcss# 14764tailwindcss/plugin? Unfortunately, I haven't tested anything yet, but when I have time, I'll check if there's any hacky solution. Although I think if you don't want to access your own values too much, the defaultTheme will temporarily solve all your problems.