From fce08398bfde64c8a64ce46429adaf5224c3d717 Mon Sep 17 00:00:00 2001 From: Ky Lee <132851666+kyhyco@users.noreply.github.com> Date: Fri, 9 Aug 2024 14:34:26 -0700 Subject: [PATCH] fix: landing page text color (#1024) --- site/docs/pages/guides/tailwind.mdx | 1 + site/tailwind.config.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/site/docs/pages/guides/tailwind.mdx b/site/docs/pages/guides/tailwind.mdx index fab8efd76b..80ee08e2f8 100644 --- a/site/docs/pages/guides/tailwind.mdx +++ b/site/docs/pages/guides/tailwind.mdx @@ -26,6 +26,7 @@ Depending on your dark mode setup, you may have to add `safelist: ['dark']` to y /** @type {import('tailwindcss').Config} */ export default { content: ['./src/**/*.{ts,tsx}'], + darkMode: ['class'], // [!code focus] safelist: ['dark'], // [!code focus] theme: { fontFamily: { diff --git a/site/tailwind.config.js b/site/tailwind.config.js index 96bc7b1863..1e74264f4f 100644 --- a/site/tailwind.config.js +++ b/site/tailwind.config.js @@ -2,6 +2,8 @@ export default { content: ['./docs/**/*.{js,ts,jsx,tsx,md,mdx}'], important: true, + darkMode: ['class'], + safelist: ['dark'], theme: { fontFamily: { sans: ['Inter', 'sans-serif'],