Home

tailwind-ctp-intellisense @master - refs - log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
tree log patch
add missing variants (#256)
Brad Cornes <bradlc41@gmail.com>
3 years ago
1 changed files, 4 additions(+), 0 deletions(-)
M packages/tailwindcss-intellisense/src/class-names/getVariants.js -> packages/tailwindcss-intellisense/src/class-names/getVariants.js
diff --git a/packages/tailwindcss-intellisense/src/class-names/getVariants.js b/packages/tailwindcss-intellisense/src/class-names/getVariants.js
index da2488e1c085fc9c6520004c49ce36559ee0febe..e7934fe6e70aa3e4513400fb3a542cd7d319db8d 100644
--- a/packages/tailwindcss-intellisense/src/class-names/getVariants.js
+++ b/packages/tailwindcss-intellisense/src/class-names/getVariants.js
@@ -16,6 +16,10 @@   semver.gte(version, '1.1.0') &&
     variants.push('first', 'last', 'odd', 'even', 'disabled', 'visited')
   semver.gte(version, '1.3.0') && variants.push('group-focus')
 
+import semver from 'semver'
+  semver.gte(version, '1.6.0') && variants.push('motion-safe', 'motion-reduce')
+  semver.gte(version, '2.0.0-alpha.1') && variants.push('dark')
+
   let plugins = Array.isArray(config.plugins) ? config.plugins : []
 
   plugins.forEach((plugin) => {