@enjoys/context-engine 1.2.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/data/codeActions/css.json +111 -0
  2. package/data/codeActions/tailwindcss.json +76 -0
  3. package/data/codeLens/css.json +68 -0
  4. package/data/codeLens/tailwindcss.json +47 -0
  5. package/data/color/css.json +124 -0
  6. package/data/color/tailwindcss.json +53 -0
  7. package/data/commands/css.json +41 -0
  8. package/data/commands/manifest.json +729 -727
  9. package/data/commands/tailwindcss.json +53 -0
  10. package/data/completion/css.json +383 -0
  11. package/data/completion/javascript.json +27 -0
  12. package/data/completion/redis-cli.json +1 -1
  13. package/data/completion/tailwindcss.json +284 -0
  14. package/data/completion/typescript.json +27 -0
  15. package/data/declaration/css.json +59 -0
  16. package/data/declaration/tailwindcss.json +65 -0
  17. package/data/definition/css.json +115 -0
  18. package/data/definition/redis-cli.json +1 -1
  19. package/data/definition/tailwindcss.json +115 -0
  20. package/data/documentHighlight/css.json +50 -0
  21. package/data/documentHighlight/tailwindcss.json +65 -0
  22. package/data/documentRangeFormatting/css.json +101 -0
  23. package/data/documentRangeFormatting/tailwindcss.json +55 -0
  24. package/data/documentSymbol/css.json +96 -0
  25. package/data/documentSymbol/tailwindcss.json +61 -0
  26. package/data/foldingRange/css.json +66 -0
  27. package/data/foldingRange/tailwindcss.json +60 -0
  28. package/data/formatting/css.json +73 -0
  29. package/data/formatting/tailwindcss.json +48 -0
  30. package/data/hover/css.json +68 -0
  31. package/data/hover/redis-cli.json +1 -1
  32. package/data/hover/tailwindcss.json +968 -0
  33. package/data/implementation/css.json +65 -0
  34. package/data/implementation/tailwindcss.json +59 -0
  35. package/data/inlayHints/css.json +87 -0
  36. package/data/inlayHints/tailwindcss.json +111 -0
  37. package/data/inlineCompletions/css.json +125 -0
  38. package/data/inlineCompletions/javascript.json +12 -0
  39. package/data/inlineCompletions/tailwindcss.json +411 -0
  40. package/data/inlineCompletions/typescript.json +12 -0
  41. package/data/linkedEditingRange/css.json +40 -0
  42. package/data/linkedEditingRange/tailwindcss.json +30 -0
  43. package/data/links/css.json +55 -0
  44. package/data/links/tailwindcss.json +40 -0
  45. package/data/manifest.json +62 -0
  46. package/data/onTypeFormatting/css.json +82 -0
  47. package/data/onTypeFormatting/tailwindcss.json +63 -0
  48. package/data/rangeSemanticTokens/css.json +125 -0
  49. package/data/rangeSemanticTokens/tailwindcss.json +95 -0
  50. package/data/references/css.json +65 -0
  51. package/data/references/tailwindcss.json +59 -0
  52. package/data/rename/css.json +91 -0
  53. package/data/rename/tailwindcss.json +58 -0
  54. package/data/selectionRange/css.json +55 -0
  55. package/data/selectionRange/tailwindcss.json +35 -0
  56. package/data/semanticTokens/css.json +107 -0
  57. package/data/semanticTokens/tailwindcss.json +161 -0
  58. package/data/signatureHelp/css.json +137 -0
  59. package/data/signatureHelp/tailwindcss.json +64 -0
  60. package/data/typeDefinition/css.json +53 -0
  61. package/data/typeDefinition/tailwindcss.json +47 -0
  62. package/package.json +1 -1
@@ -0,0 +1,111 @@
1
+ {
2
+ "language": "css",
3
+ "codeActions": [
4
+ {
5
+ "title": "Sort properties alphabetically",
6
+ "kind": "source.sortProperties",
7
+ "description": "Reorders all CSS property declarations within a rule block in alphabetical order for consistency and readability.",
8
+ "pattern": "\\{[^}]*[a-z-]+\\s*:[^}]*\\}",
9
+ "isPreferred": false
10
+ },
11
+ {
12
+ "title": "Remove duplicate properties",
13
+ "kind": "quickfix",
14
+ "description": "Detects and removes duplicate CSS property declarations within the same rule block, keeping the last occurrence.",
15
+ "pattern": "([a-z-]+)\\s*:[^;]+;[\\s\\S]*\\1\\s*:",
16
+ "isPreferred": true
17
+ },
18
+ {
19
+ "title": "Convert px to rem",
20
+ "kind": "refactor.convert",
21
+ "description": "Converts pixel values to rem units using a base font size of 16px (e.g., 16px → 1rem, 24px → 1.5rem).",
22
+ "pattern": ":\\s*(-?\\d+(\\.\\d+)?)px",
23
+ "isPreferred": false
24
+ },
25
+ {
26
+ "title": "Convert rem to px",
27
+ "kind": "refactor.convert",
28
+ "description": "Converts rem values to pixel units using a base font size of 16px (e.g., 1rem → 16px, 0.75rem → 12px).",
29
+ "pattern": ":\\s*(-?\\d+(\\.\\d+)?)rem",
30
+ "isPreferred": false
31
+ },
32
+ {
33
+ "title": "Add vendor prefixes",
34
+ "kind": "source.addPrefixes",
35
+ "description": "Adds -webkit-, -moz-, -ms-, -o- prefixed versions for properties that require vendor prefixes for broader browser support (e.g., transform, appearance, backdrop-filter).",
36
+ "pattern": "(?:transform|appearance|backdrop-filter|user-select|text-size-adjust|hyphens|writing-mode)\\s*:",
37
+ "isPreferred": false
38
+ },
39
+ {
40
+ "title": "Convert hex to rgb()",
41
+ "kind": "refactor.convert",
42
+ "description": "Converts hexadecimal color values to rgb() functional notation (e.g., #ff0000 → rgb(255, 0, 0)).",
43
+ "pattern": "#([0-9a-fA-F]{3,8})\\b",
44
+ "isPreferred": false
45
+ },
46
+ {
47
+ "title": "Convert hex to hsl()",
48
+ "kind": "refactor.convert",
49
+ "description": "Converts hexadecimal color values to hsl() functional notation (e.g., #ff0000 → hsl(0, 100%, 50%)).",
50
+ "pattern": "#([0-9a-fA-F]{3,8})\\b",
51
+ "isPreferred": false
52
+ },
53
+ {
54
+ "title": "Convert rgb() to hex",
55
+ "kind": "refactor.convert",
56
+ "description": "Converts rgb() or rgba() functional notation to hexadecimal color values (e.g., rgb(255, 0, 0) → #ff0000).",
57
+ "pattern": "rgba?\\(\\s*\\d+",
58
+ "isPreferred": false
59
+ },
60
+ {
61
+ "title": "Extract CSS custom property",
62
+ "kind": "refactor.extract",
63
+ "description": "Extracts a repeated value into a CSS custom property (variable) defined on :root and replaces all occurrences with var(--name).",
64
+ "pattern": ":\\s*([^;]+);",
65
+ "isPreferred": false
66
+ },
67
+ {
68
+ "title": "Add missing semicolons",
69
+ "kind": "quickfix",
70
+ "description": "Inserts missing semicolons at the end of CSS property declarations within rule blocks.",
71
+ "pattern": "[a-z-]+\\s*:[^;{}]+(?=\\s*[}\\n])",
72
+ "isPreferred": true
73
+ },
74
+ {
75
+ "title": "Expand shorthand property",
76
+ "kind": "refactor.expand",
77
+ "description": "Expands a shorthand property (margin, padding, border, background, font, animation, transition) into its individual longhand properties.",
78
+ "pattern": "(?:margin|padding|border|background|font|animation|transition|flex|grid|overflow|border-radius)\\s*:",
79
+ "isPreferred": false
80
+ },
81
+ {
82
+ "title": "Collapse to shorthand property",
83
+ "kind": "refactor.collapse",
84
+ "description": "Combines individual longhand properties (e.g., margin-top, margin-right, margin-bottom, margin-left) into their shorthand equivalent.",
85
+ "pattern": "(margin|padding|border|overflow)-(top|right|bottom|left)\\s*:",
86
+ "isPreferred": false
87
+ },
88
+ {
89
+ "title": "Convert named color to hex",
90
+ "kind": "refactor.convert",
91
+ "description": "Converts a CSS named color (e.g., red, blue, rebeccapurple) to its hexadecimal equivalent.",
92
+ "pattern": ":\\s*(red|blue|green|white|black|gray|grey|orange|purple|yellow|pink|cyan|magenta|rebeccapurple|transparent|currentColor)\\b",
93
+ "isPreferred": false
94
+ },
95
+ {
96
+ "title": "Add fallback for CSS custom property",
97
+ "kind": "quickfix",
98
+ "description": "Adds a fallback value to var() expressions that are missing one: var(--name) → var(--name, fallback).",
99
+ "pattern": "var\\(--[a-zA-Z0-9-]+\\s*\\)",
100
+ "isPreferred": false
101
+ },
102
+ {
103
+ "title": "Convert to logical properties",
104
+ "kind": "refactor.convert",
105
+ "description": "Converts physical properties (margin-left, padding-right, border-top, width, height) to their logical property equivalents (margin-inline-start, padding-inline-end, border-block-start, inline-size, block-size) for better internationalization support.",
106
+ "pattern": "(?:margin|padding|border)-(top|right|bottom|left)\\s*:|\\b(width|height)\\s*:",
107
+ "isPreferred": false
108
+ }
109
+ ],
110
+ "providedCodeActionKinds": ["quickfix", "refactor", "refactor.convert", "refactor.extract", "refactor.expand", "refactor.collapse", "source", "source.sortProperties", "source.addPrefixes"]
111
+ }
@@ -0,0 +1,76 @@
1
+ {
2
+ "language": "tailwindcss",
3
+ "codeActions": [
4
+ {
5
+ "title": "Sort Tailwind CSS classes (Headwind order)",
6
+ "kind": "source.sortTailwindClasses",
7
+ "description": "Reorders Tailwind utility classes following the recommended Headwind/Prettier-plugin-tailwindcss sort order for consistency.",
8
+ "pattern": "class\\s*=\\s*[\"'][^\"']*[\"']",
9
+ "isPreferred": true
10
+ },
11
+ {
12
+ "title": "Extract classes to @apply component",
13
+ "kind": "refactor.extract.apply",
14
+ "description": "Extracts selected Tailwind utility classes into a reusable CSS component using @apply directive.",
15
+ "pattern": "class\\s*=\\s*[\"']([^\"']{20,})[\"']",
16
+ "isPreferred": false
17
+ },
18
+ {
19
+ "title": "Convert arbitrary value to theme config",
20
+ "kind": "refactor.rewrite",
21
+ "description": "Converts an arbitrary value like `bg-[#1da1f2]` or `w-[200px]` to a named theme value in tailwind.config.js.",
22
+ "pattern": "\\w+-\\[[^\\]]+\\]",
23
+ "isPreferred": false
24
+ },
25
+ {
26
+ "title": "Group responsive variants",
27
+ "kind": "refactor.organize",
28
+ "description": "Groups utility classes by responsive breakpoint prefix (sm:, md:, lg:, xl:, 2xl:) for better readability.",
29
+ "pattern": "(?:sm|md|lg|xl|2xl):[\\w-]+",
30
+ "isPreferred": false
31
+ },
32
+ {
33
+ "title": "Remove duplicate Tailwind classes",
34
+ "kind": "quickfix.removeDuplicates",
35
+ "description": "Detects and removes duplicate utility classes within a class attribute.",
36
+ "pattern": "class\\s*=\\s*[\"'][^\"']*[\"']",
37
+ "isPreferred": true
38
+ },
39
+ {
40
+ "title": "Convert @apply to inline utilities",
41
+ "kind": "refactor.inline",
42
+ "description": "Replaces an @apply rule with the individual utility classes inlined directly in the HTML class attribute.",
43
+ "pattern": "@apply\\s+[\\w\\s:-]+;",
44
+ "isPreferred": false
45
+ },
46
+ {
47
+ "title": "Convert inline utilities to @apply",
48
+ "kind": "refactor.extract.apply",
49
+ "description": "Extracts inline Tailwind utility classes from a class attribute into a new CSS rule using @apply.",
50
+ "pattern": "class\\s*=\\s*[\"']([^\"']{30,})[\"']",
51
+ "isPreferred": false
52
+ },
53
+ {
54
+ "title": "Wrap in responsive variant",
55
+ "kind": "refactor.wrap",
56
+ "description": "Wraps selected utility classes with a responsive breakpoint prefix (sm:, md:, lg:, xl:, 2xl:).",
57
+ "pattern": "[\\w-]+",
58
+ "isPreferred": false
59
+ },
60
+ {
61
+ "title": "Add dark mode variant",
62
+ "kind": "refactor.wrap",
63
+ "description": "Adds dark: prefix to selected utility classes for dark mode support.",
64
+ "pattern": "(?:bg|text|border|ring|shadow)-[\\w-]+",
65
+ "isPreferred": false
66
+ },
67
+ {
68
+ "title": "Convert to arbitrary value",
69
+ "kind": "refactor.rewrite",
70
+ "description": "Converts a standard utility value to an arbitrary value notation, e.g. `p-4` to `p-[1rem]`.",
71
+ "pattern": "\\w+-\\d+",
72
+ "isPreferred": false
73
+ }
74
+ ],
75
+ "providedCodeActionKinds": ["quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite", "source"]
76
+ }
@@ -0,0 +1,68 @@
1
+ {
2
+ "language": "css",
3
+ "codeLensPatterns": [
4
+ {
5
+ "pattern": "^([.#]?[a-zA-Z][a-zA-Z0-9_-]*(?:\\s*[>+~]\\s*[.#]?[a-zA-Z][a-zA-Z0-9_-]*)*(?:\\s*,\\s*[.#]?[a-zA-Z][a-zA-Z0-9_-]*)*)\\s*\\{",
6
+ "captureGroup": 1,
7
+ "commandId": "css.showSelectorInfo",
8
+ "title": "Selector: ${1} — Show specificity & matched elements",
9
+ "description": "Displays specificity calculation, inheritance chain, and approximate element match count for this CSS selector rule."
10
+ },
11
+ {
12
+ "pattern": "@media\\s+([^{]+)\\{",
13
+ "captureGroup": 1,
14
+ "commandId": "css.showMediaQueryInfo",
15
+ "title": "Media: ${1} — Show breakpoint details",
16
+ "description": "Shows the media query condition, applicable viewport ranges, and the number of rules contained within this @media block."
17
+ },
18
+ {
19
+ "pattern": "@keyframes\\s+([a-zA-Z][a-zA-Z0-9_-]*)\\s*\\{",
20
+ "captureGroup": 1,
21
+ "commandId": "css.showKeyframesUsage",
22
+ "title": "Animation: ${1} — Find usages",
23
+ "description": "Shows all elements referencing this @keyframes animation by animation-name property across the stylesheet."
24
+ },
25
+ {
26
+ "pattern": "--([a-zA-Z][a-zA-Z0-9_-]*)\\s*:",
27
+ "captureGroup": 1,
28
+ "commandId": "css.showCustomPropertyUsage",
29
+ "title": "Variable: --${1} — Find references",
30
+ "description": "Counts and lists all var(--${1}) references across stylesheets to show where this custom property is consumed."
31
+ },
32
+ {
33
+ "pattern": "@font-face\\s*\\{[^}]*font-family\\s*:\\s*['\"]?([^'\";}]+)",
34
+ "captureGroup": 1,
35
+ "commandId": "css.showFontFaceUsage",
36
+ "title": "Font: ${1} — Find usages",
37
+ "description": "Lists all elements using this @font-face defined font-family across stylesheets."
38
+ },
39
+ {
40
+ "pattern": "@layer\\s+([a-zA-Z][a-zA-Z0-9_-]*)\\s*[{;]",
41
+ "captureGroup": 1,
42
+ "commandId": "css.showLayerInfo",
43
+ "title": "Layer: ${1} — Show cascade order",
44
+ "description": "Displays cascade layer ordering and the number of rules assigned to this layer across all stylesheets."
45
+ },
46
+ {
47
+ "pattern": "@import\\s+(?:url\\()?['\"]?([^'\"\\)]+)",
48
+ "captureGroup": 1,
49
+ "commandId": "css.openImportedFile",
50
+ "title": "Import: ${1} — Open file",
51
+ "description": "Opens the imported CSS file for viewing or editing."
52
+ },
53
+ {
54
+ "pattern": "@supports\\s+([^{]+)\\{",
55
+ "captureGroup": 1,
56
+ "commandId": "css.showSupportsInfo",
57
+ "title": "Feature Query: ${1} — Show browser support",
58
+ "description": "Displays browser compatibility information for the queried CSS feature."
59
+ },
60
+ {
61
+ "pattern": "@container\\s+(?:([a-zA-Z][a-zA-Z0-9_-]*)\\s+)?\\(",
62
+ "captureGroup": 1,
63
+ "commandId": "css.showContainerInfo",
64
+ "title": "Container Query — Show container details",
65
+ "description": "Shows the container query condition and identifies the matching container element by name or proximity."
66
+ }
67
+ ]
68
+ }
@@ -0,0 +1,47 @@
1
+ {
2
+ "language": "tailwindcss",
3
+ "codeLensPatterns": [
4
+ {
5
+ "pattern": "@apply\\s+([\\w\\s:-]+);",
6
+ "captureGroup": 1,
7
+ "commandId": "tailwindcss.showApplyOutput",
8
+ "title": "Show generated CSS",
9
+ "description": "Displays the compiled CSS output for the @apply directive utilities."
10
+ },
11
+ {
12
+ "pattern": "@layer\\s+(base|components|utilities)\\s*\\{",
13
+ "captureGroup": 1,
14
+ "commandId": "tailwindcss.showLayerInfo",
15
+ "title": "Layer: ${1}",
16
+ "description": "Shows information about the Tailwind layer and its contents."
17
+ },
18
+ {
19
+ "pattern": "@tailwind\\s+(base|components|utilities|variants)\\s*;",
20
+ "captureGroup": 1,
21
+ "commandId": "tailwindcss.showDirectiveInfo",
22
+ "title": "@tailwind ${1}",
23
+ "description": "Shows the styles injected by the @tailwind directive."
24
+ },
25
+ {
26
+ "pattern": "theme\\(['\"]([^'\"]+)['\"]\\)",
27
+ "captureGroup": 1,
28
+ "commandId": "tailwindcss.resolveThemeValue",
29
+ "title": "Resolve theme value",
30
+ "description": "Resolves and displays the actual CSS value from the Tailwind theme configuration."
31
+ },
32
+ {
33
+ "pattern": "class\\s*=\\s*[\"']([^\"']+)[\"']",
34
+ "captureGroup": 1,
35
+ "commandId": "tailwindcss.showClassCount",
36
+ "title": "${count} classes",
37
+ "description": "Displays the count of Tailwind utility classes applied to this element."
38
+ },
39
+ {
40
+ "pattern": "@config\\s+['\"]([^'\"]+)['\"]\\s*;",
41
+ "captureGroup": 1,
42
+ "commandId": "tailwindcss.openConfig",
43
+ "title": "Open config: ${1}",
44
+ "description": "Opens the referenced Tailwind configuration file."
45
+ }
46
+ ]
47
+ }
@@ -0,0 +1,124 @@
1
+ {
2
+ "language": "css",
3
+ "colorPatterns": [
4
+ {
5
+ "pattern": "#([0-9a-fA-F]{3})\\b",
6
+ "format": "hex3",
7
+ "description": "Short hex color (#rgb). Expands to #rrggbb — each digit is doubled (e.g., #f0a → #ff00aa)."
8
+ },
9
+ {
10
+ "pattern": "#([0-9a-fA-F]{4})\\b",
11
+ "format": "hex4",
12
+ "description": "Short hex color with alpha (#rgba). Each digit is doubled (e.g., #f0a8 → #ff00aa88)."
13
+ },
14
+ {
15
+ "pattern": "#([0-9a-fA-F]{6})\\b",
16
+ "format": "hex6",
17
+ "description": "Standard 6-digit hex color (#rrggbb). Each pair represents red, green, blue as 0–255."
18
+ },
19
+ {
20
+ "pattern": "#([0-9a-fA-F]{8})\\b",
21
+ "format": "hex8",
22
+ "description": "8-digit hex color with alpha (#rrggbbaa). Last two digits represent alpha transparency (00=transparent, ff=opaque)."
23
+ },
24
+ {
25
+ "pattern": "rgb\\(\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*\\)",
26
+ "format": "rgb",
27
+ "description": "RGB functional notation with comma-separated integer values (0–255) for red, green, blue channels."
28
+ },
29
+ {
30
+ "pattern": "rgb\\(\\s*(\\d{1,3})\\s+(\\d{1,3})\\s+(\\d{1,3})\\s*\\)",
31
+ "format": "rgb-modern",
32
+ "description": "Modern RGB syntax with space-separated values (CSS Color Level 4). No commas needed."
33
+ },
34
+ {
35
+ "pattern": "rgba\\(\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*,\\s*([0-9.]+)\\s*\\)",
36
+ "format": "rgba",
37
+ "description": "RGBA functional notation. Same as rgb() with an alpha channel (0 = transparent, 1 = opaque)."
38
+ },
39
+ {
40
+ "pattern": "rgb\\(\\s*(\\d{1,3})\\s+(\\d{1,3})\\s+(\\d{1,3})\\s*/\\s*([0-9.]+%?)\\s*\\)",
41
+ "format": "rgb-alpha-modern",
42
+ "description": "Modern RGB with alpha using slash syntax: rgb(R G B / alpha). CSS Color Level 4 syntax."
43
+ },
44
+ {
45
+ "pattern": "hsl\\(\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})%\\s*,\\s*(\\d{1,3})%\\s*\\)",
46
+ "format": "hsl",
47
+ "description": "HSL functional notation. Hue (0–360°), saturation (0–100%), lightness (0–100%). More intuitive than RGB for color manipulation."
48
+ },
49
+ {
50
+ "pattern": "hsl\\(\\s*(\\d{1,3})\\s+(\\d{1,3})%\\s+(\\d{1,3})%\\s*\\)",
51
+ "format": "hsl-modern",
52
+ "description": "Modern HSL syntax with space-separated values (CSS Color Level 4)."
53
+ },
54
+ {
55
+ "pattern": "hsla\\(\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})%\\s*,\\s*(\\d{1,3})%\\s*,\\s*([0-9.]+)\\s*\\)",
56
+ "format": "hsla",
57
+ "description": "HSLA functional notation. HSL with alpha channel for transparency."
58
+ },
59
+ {
60
+ "pattern": "hsl\\(\\s*(\\d{1,3})\\s+(\\d{1,3})%\\s+(\\d{1,3})%\\s*/\\s*([0-9.]+%?)\\s*\\)",
61
+ "format": "hsl-alpha-modern",
62
+ "description": "Modern HSL with alpha using slash syntax: hsl(H S% L% / alpha). CSS Color Level 4 syntax."
63
+ },
64
+ {
65
+ "pattern": "oklch\\(\\s*([0-9.]+%?)\\s+([0-9.]+)\\s+([0-9.]+)\\s*(?:/\\s*([0-9.]+%?))?\\s*\\)",
66
+ "format": "oklch",
67
+ "description": "OKLCH color function (CSS Color Level 4). Perceptually uniform: lightness (0–1 or 0%–100%), chroma (0–0.4+), hue (0–360). Better for palette generation."
68
+ },
69
+ {
70
+ "pattern": "lab\\(\\s*([0-9.]+%?)\\s+(-?[0-9.]+)\\s+(-?[0-9.]+)\\s*(?:/\\s*([0-9.]+%?))?\\s*\\)",
71
+ "format": "lab",
72
+ "description": "CIE Lab color function. Lightness (0–100), a-axis (green–red), b-axis (blue–yellow). Device-independent color space."
73
+ },
74
+ {
75
+ "pattern": "lch\\(\\s*([0-9.]+%?)\\s+([0-9.]+)\\s+([0-9.]+)\\s*(?:/\\s*([0-9.]+%?))?\\s*\\)",
76
+ "format": "lch",
77
+ "description": "CIE LCH color function. Lightness (0–100), chroma (0–230+), hue (0–360). Cylindrical representation of Lab."
78
+ },
79
+ {
80
+ "pattern": "color\\(\\s*(srgb|display-p3|a98-rgb|prophoto-rgb|rec2020)\\s+([0-9.]+)\\s+([0-9.]+)\\s+([0-9.]+)\\s*(?:/\\s*([0-9.]+%?))?\\s*\\)",
81
+ "format": "color-function",
82
+ "description": "CSS color() function for wide-gamut color spaces: srgb, display-p3, a98-rgb, prophoto-rgb, rec2020."
83
+ },
84
+ {
85
+ "pattern": "\\b(aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen)\\b",
86
+ "format": "named",
87
+ "description": "CSS named color keyword. One of 148 predefined color names from the CSS Color Module specification."
88
+ }
89
+ ],
90
+ "colorPresentations": [
91
+ {
92
+ "label": "Hex",
93
+ "format": "hex6"
94
+ },
95
+ {
96
+ "label": "Hex with Alpha",
97
+ "format": "hex8"
98
+ },
99
+ {
100
+ "label": "RGB",
101
+ "format": "rgb"
102
+ },
103
+ {
104
+ "label": "RGB (modern)",
105
+ "format": "rgb-modern"
106
+ },
107
+ {
108
+ "label": "HSL",
109
+ "format": "hsl"
110
+ },
111
+ {
112
+ "label": "HSL (modern)",
113
+ "format": "hsl-modern"
114
+ },
115
+ {
116
+ "label": "OKLCH",
117
+ "format": "oklch"
118
+ },
119
+ {
120
+ "label": "Named Color",
121
+ "format": "named"
122
+ }
123
+ ]
124
+ }
@@ -0,0 +1,53 @@
1
+ {
2
+ "language": "tailwindcss",
3
+ "colorPatterns": [
4
+ {
5
+ "pattern": "(?:bg|text|border|ring|shadow|outline|accent|caret|fill|stroke|from|via|to|divide|placeholder)-(?:slate|gray|zinc|neutral|stone|red|orange|amber|yellow|lime|green|emerald|teal|cyan|sky|blue|indigo|violet|purple|fuchsia|pink|rose)-(?:50|100|200|300|400|500|600|700|800|900|950)",
6
+ "format": "tailwind-palette",
7
+ "description": "Tailwind CSS named color utilities from the default color palette."
8
+ },
9
+ {
10
+ "pattern": "(?:bg|text|border|ring|shadow|outline|fill|stroke)-\\[#([0-9a-fA-F]{3,8})\\]",
11
+ "format": "hex",
12
+ "description": "Arbitrary hex color values in Tailwind utility classes."
13
+ },
14
+ {
15
+ "pattern": "(?:bg|text|border|ring|fill|stroke)-\\[rgb\\(([^)]+)\\)\\]",
16
+ "format": "rgb",
17
+ "description": "Arbitrary RGB color values in Tailwind utility classes."
18
+ },
19
+ {
20
+ "pattern": "(?:bg|text|border|ring|fill|stroke)-\\[rgba\\(([^)]+)\\)\\]",
21
+ "format": "rgba",
22
+ "description": "Arbitrary RGBA color values with alpha in Tailwind utility classes."
23
+ },
24
+ {
25
+ "pattern": "(?:bg|text|border|ring|fill|stroke)-\\[hsl\\(([^)]+)\\)\\]",
26
+ "format": "hsl",
27
+ "description": "Arbitrary HSL color values in Tailwind utility classes."
28
+ },
29
+ {
30
+ "pattern": "(?:bg|text|border|ring)-(?:white|black|transparent|current|inherit)",
31
+ "format": "named",
32
+ "description": "Tailwind CSS special named color utilities."
33
+ },
34
+ {
35
+ "pattern": "theme\\(['\"]colors\\.([^'\"]+)['\"]\\)",
36
+ "format": "theme-reference",
37
+ "description": "Color references via theme() function resolving to the Tailwind config palette."
38
+ },
39
+ {
40
+ "pattern": "(?:bg|text|border|ring)-(?:slate|gray|zinc|neutral|stone|red|orange|amber|yellow|lime|green|emerald|teal|cyan|sky|blue|indigo|violet|purple|fuchsia|pink|rose)-(?:50|100|200|300|400|500|600|700|800|900|950)\\/(?:\\d{1,3})",
41
+ "format": "tailwind-palette-opacity",
42
+ "description": "Tailwind color utilities with opacity modifier (e.g. bg-blue-500/50)."
43
+ }
44
+ ],
45
+ "colorPresentations": [
46
+ { "label": "Tailwind Palette", "format": "tailwind-palette" },
47
+ { "label": "Hex", "format": "hex" },
48
+ { "label": "RGB", "format": "rgb" },
49
+ { "label": "RGBA", "format": "rgba" },
50
+ { "label": "HSL", "format": "hsl" },
51
+ { "label": "Opacity Modifier", "format": "tailwind-palette-opacity" }
52
+ ]
53
+ }
@@ -0,0 +1,41 @@
1
+ {
2
+ "name": "stylelint",
3
+ "description": "CSS linter and formatter",
4
+ "category": "development",
5
+ "platforms": [
6
+ "linux",
7
+ "macos",
8
+ "windows"
9
+ ],
10
+ "shells": [
11
+ "bash",
12
+ "zsh",
13
+ "powershell"
14
+ ],
15
+ "subcommands": [
16
+ {
17
+ "name": "\"**/*.css\"",
18
+ "description": "Lint CSS files using glob",
19
+ "args": [],
20
+ "options": []
21
+ },
22
+ {
23
+ "name": "--fix \"**/*.css\"",
24
+ "description": "Auto-fix CSS lint issues",
25
+ "args": [],
26
+ "options": []
27
+ },
28
+ {
29
+ "name": "--config path/to/.stylelintrc",
30
+ "description": "Use a custom Stylelint config",
31
+ "args": [],
32
+ "options": []
33
+ },
34
+ {
35
+ "name": "--syntax css",
36
+ "description": "Force CSS syntax",
37
+ "args": [],
38
+ "options": []
39
+ }
40
+ ]
41
+ }