Home

tailwind-ctp-intellisense @master - refs - log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
tree log patch
remove `@defaults` when stringifying CSS
Brad Cornes <bradlc41@gmail.com>
3 years ago
1 changed files, 6 additions(+), 3 deletions(-)
M packages/tailwindcss-language-service/src/util/jit.ts -> packages/tailwindcss-language-service/src/util/jit.ts
diff --git a/packages/tailwindcss-language-service/src/util/jit.ts b/packages/tailwindcss-language-service/src/util/jit.ts
index 4570b56dbb0d7f9ec895b2ffb475e6d74032f89c..d203b564b59b9bf7159ccd6e6791337958f4cb1c 100644
--- a/packages/tailwindcss-language-service/src/util/jit.ts
+++ b/packages/tailwindcss-language-service/src/util/jit.ts
@@ -33,11 +33,14 @@   let tabSize = dlv(settings, 'editor.tabSize', 2)
   let showPixelEquivalents = dlv(settings, 'tailwindCSS.showPixelEquivalents', true)
   let rootFontSize = dlv(settings, 'tailwindCSS.rootFontSize', 16)
 
-  let clone = root
+  let clone = root.clone()
 
-import dlv from 'dlv'
+  clone.walkAtRules('defaults', (node) => {
+  // @ts-ignore
-import dlv from 'dlv'
 import { State } from './state'
+}
+
+  if (showPixelEquivalents) {
     clone.walkDecls((decl) => {
       let px = remToPx(decl.value, rootFontSize)
       if (px) {