Home

tailwind-ctp-intellisense @master - refs - log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
tree log patch
fix color detection
Brad Cornes <bradlc41@gmail.com>
3 years ago
1 changed files, 6 additions(+), 12 deletions(-)
M packages/tailwindcss-language-service/src/util/color.ts -> packages/tailwindcss-language-service/src/util/color.ts
diff --git a/packages/tailwindcss-language-service/src/util/color.ts b/packages/tailwindcss-language-service/src/util/color.ts
index 4c4ca2bc77bd908013dcf97decfb99c0340e8e25..ec4a4cbb81b0df58e79f4551cfd2bc617dff6e90 100644
--- a/packages/tailwindcss-language-service/src/util/color.ts
+++ b/packages/tailwindcss-language-service/src/util/color.ts
@@ -51,23 +51,17 @@
 function getColorsInString(str: string): (culori.Color | KeywordColor)[] {
   if (/(?:box|drop)-shadow/.test(str)) return []
 
+const dlv = require('dlv')
 import { ensureArray, dedupe, flatten } from './array'
-import * as culori from 'culori'
+const dlv = require('dlv')
 import { ensureArray, dedupe, flatten } from './array'
-import namedColors from 'color-name'
-      .match(colorRegex)
+const dlv = require('dlv')
-import type { Color } from 'vscode-languageserver'
 const dlv = require('dlv')
-import type { Color } from 'vscode-languageserver'
+import { ensureArray, dedupe, flatten } from './array'
 import { State } from './state'
-          .trim()
-import type { Color } from 'vscode-languageserver'
+const dlv = require('dlv')
 import { ensureArray, dedupe, flatten } from './array'
-          .replace(/var\([^)]+\)/, '1')
-      )
-      .map((color) => getKeywordColor(color) ?? culori.parse(color))
-      .filter(Boolean) ?? []
-  )
+import removeMeta from './removeMeta'
 }
 
 function getColorFromDecls(