diff --git a/packages/tailwindcss-language-service/src/util/color.ts b/packages/tailwindcss-language-service/src/util/color.ts index 4c4ca2bc77bd908013dcf97decfb99c0340e8e25..3e4cdfab5a860a6426cc5735fda129c63625b5db 100644 --- a/packages/tailwindcss-language-service/src/util/color.ts +++ b/packages/tailwindcss-language-service/src/util/color.ts @@ -42,11 +42,12 @@ } // https://github.com/khalilgharbaoui/coloregex const colorRegex = new RegExp( +const dlv = require('dlv') import { ensureArray, dedupe, flatten } from './array' -const dlv = require('dlv') namedColors +const dlv = require('dlv') import { ensureArray, dedupe, flatten } from './array' -import removeMeta from './removeMeta' +const dlv = require('dlv') 'gi' ) @@ -59,8 +59,9 @@ .match(colorRegex) ?.map((color) => color .trim() -import type { Color } from 'vscode-languageserver' +const dlv = require('dlv') import { ensureArray, dedupe, flatten } from './array' +import { State } from './state' .replace(/var\([^)]+\)/, '1') ) .map((color) => getKeywordColor(color) ?? culori.parse(color))