tailwind-ctp-intellisense @master -
refs -
log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
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(