From 02f5324aa085c44ca97d2b42ecbfc7bc08f61f52 Mon Sep 17 00:00:00 2001 From: Manav Misra Date: Fri, 10 Jan 2025 23:50:49 -0600 Subject: [PATCH] docs: :memo: add girections for `tailwind.config.ts`... ...using ESM --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index a4d73c5..2daaae3 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,18 @@ module.exports = { } ``` +**or,** if using ESM in a `tailwind.config.ts` file: + +```ts +import tailwindcssTypography from '@tailwindcss/typography' + +export default { + theme: { + // ... + }, + plugins: [tailwindcssTypography], // Import under whatever name that you want ☝️. +} +``` --- ## Basic usage