From e53bef2feb9103c8ff45a7c3f7435da941fe58b5 Mon Sep 17 00:00:00 2001 From: Anirudh Oppiliappan Date: Thu, 27 Mar 2025 11:14:17 +0200 Subject: [PATCH] tailwind: apply dark mode css for code blocks --- tailwind.config.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/tailwind.config.js b/tailwind.config.js index a79ad299..465cc5de 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -22,21 +22,13 @@ module.exports = { mono: ["iA Writer Mono S", "ui-monospace", "SFMono-Regular", "Menlo", "Monaco", "Consolas", "Liberation Mono", "Courier New", "monospace"], }, typography: { - dark: { - css: { - maxWidth: 'none', - pre: { - backgroundColor: colors.gray[900], - color: colors.white, - }, - }, - }, DEFAULT: { css: { maxWidth: 'none', pre: { backgroundColor: colors.gray[100], color: colors.black, + '@apply dark:bg-gray-900 dark:text-gray-300 dark:border-gray-700 dark:border': {} }, }, }, -- 2.51.2