Home

tailwind-ctp-intellisense @909d097c30a2729cff3ec74a89799113d9c3f570 - 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"
            }
          ]
        }
      }
    }
  ]
}