diff options
| author | Yash <[email protected]> | 2024-04-02 01:49:16 +0000 |
|---|---|---|
| committer | Yash <[email protected]> | 2024-04-02 01:49:16 +0000 |
| commit | 33990b469ff447456a43172d14c8476a2a57eda5 (patch) | |
| tree | 670b5536484f092270cfbecc135ca04c578338d8 | |
| parent | sidebar update (diff) | |
| download | archived-supermemory-33990b469ff447456a43172d14c8476a2a57eda5.tar.xz archived-supermemory-33990b469ff447456a43172d14c8476a2a57eda5.zip | |
new modifier
| -rw-r--r-- | apps/web/tailwind.config.ts | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/web/tailwind.config.ts b/apps/web/tailwind.config.ts index 19cb25be..dfa4414b 100644 --- a/apps/web/tailwind.config.ts +++ b/apps/web/tailwind.config.ts @@ -1,4 +1,5 @@ import type { Config } from "tailwindcss"; +import plugin from "tailwindcss/plugin"; const config: Config = { content: [ @@ -58,6 +59,11 @@ const config: Config = { }, }, darkMode: "class", - plugins: [require("tailwindcss-animate")], + plugins: [ + require("tailwindcss-animate"), + plugin(function ({ addVariant }) { + addVariant("on", "&[data-state-on='true']"); + }), + ], }; export default config; |