diff --git a/nuxt/app.config.ts b/nuxt/app.config.ts index 57adfc77d7..448dbe3b20 100644 --- a/nuxt/app.config.ts +++ b/nuxt/app.config.ts @@ -15,5 +15,19 @@ export default defineAppConfig({ label: 'text-[color:var(--ui-primary)] pr-4 pt-4 pb-2', }, }, + prose: { + // .prose pins --tw-prose-bold to gray-500, and Tailwind Typography's + // strong rule reads that token, so bold text inside a callout came out + // grey while the callout's own body kept its colour: two colours in one + // sentence. Callout's theme already carries a [&_code]: rule for the same + // class of problem, so this extends it the same way rather than adding a + // stylesheet override. Applies to ::note, ::tip, ::warning and ::caution, + // and so to the handbook's callouts too, which had the same mismatch. + callout: { + slots: { + base: '[&_strong]:text-inherit', + }, + }, + }, }, }) diff --git a/nuxt/components/BlogPostCta.vue b/nuxt/components/BlogPostCta.vue index a8d5500557..f9a6198ebb 100644 --- a/nuxt/components/BlogPostCta.vue +++ b/nuxt/components/BlogPostCta.vue @@ -51,7 +51,10 @@ function onCtaClick (event: MouseEvent) {