Tailwind properly applies styles to all of the components in my Astro application, except the content inside content collections, loaded and rendered by rendering the <Content /> component on content collections loaded from .md files.
Do I need to come up with a way to load the content file explicitly using a Vite import() call, or is there a way to make this work? I'm using code copied from the Astroship template, but with updated versions of all packages:
- Astro 2.7.2
- <@&1055234544183287879>/tailwind 4.0.0
- Tailwindcss 3.3.2
Tailwind.config.cjs
/** @type {import('tailwindcss').Config} */
const defaultTheme = require("tailwindcss/defaultTheme");
module.exports = {
content: ["./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}"],
theme: {
extend: {
fontFamily: {
sans: ["InterVariable", "Inter", ...defaultTheme.fontFamily.sans],
},
},
},
plugins: [require("@tailwindcss/typography")],
};