Home

tailwind-ctp-intellisense @a13708b995c798d3d3d7b4a3f3d30032b6b12851 - refs - log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
tailwind-ctp-intellisense / packages / tailwindcss-language-server / tests / code-actions / invalid-theme.json
- raw
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
  "code": ".test { color: theme(colors.red.901) }",
  "language": "css",
  "expected": [
    {
      "title": "Replace with 'colors.red.900'",
      "kind": "quickfix",
      "diagnostics": [
        {
          "code": "invalidConfigPath",
          "range": {
            "start": { "line": 0, "character": 21 },
            "end": { "line": 0, "character": 35 }
          },
          "severity": 1,
          "message": "'colors.red.901' does not exist in your theme config. Did you mean 'colors.red.900'?",
          "suggestions": ["colors.red.900"]
        }
      ],
      "edit": {
        "changes": {
          "{{URI}}": [
            {
              "range": {
                "start": { "line": 0, "character": 21 },
                "end": { "line": 0, "character": 35 }
              },
              "newText": "colors.red.900"
            }
          ]
        }
      }
    }
  ]
}