itsMapleLeaf / vscode-twind

VSCode extension for twind
MIT License
11 stars 0 forks source link

Twind Intellisense

Provides intellisense for twind, tweaked from vscode-tailwindcss-twin

VS Code Settings

Recommended

{
    "editor.quickSuggestions": { strings: true },
    "editor.autoClosingQuotes": "always",
}

Default

{
    "tailwindcss.colorDecorators": null, // inherit from "editor.colorDecorators"
    "tailwindcss.links": null, // inherit from "editor.links"
    "tailwindcss.validate": true,
    "tailwindcss.diagnostics.emptyClass": true,
    "tailwindcss.diagnostics.emptyGroup": true,
    "tailwindcss.diagnostics.conflict": "strict",
    "tailwindcss.preferVariantWithParentheses": false,
    "tailwindcss.fallbackDefaultConfig": true,
}

Semantic Highlight (Experimental)

{
    "editor.semanticTokenColorCustomizations": {
        enabled: true,
    },
}

Custom Theme

{
    "workbench.colorCustomizations": {
        "[Atom One Dark]": {
            "editorHoverWidget.background": "#17202ee5",
            "editorHoverWidget.border": "#6a7473",
            "editorSuggestWidget.background": "#17202ee5",
            "editorSuggestWidget.border": "#6a7473",
            "editorSuggestWidget.selectedBackground": "#009c70d0",
            "editor.wordHighlightBackground": "#0000",
        },
    },
}

Packaging

  1. Clone the repo
  2. Run yarn
  3. Run yarn package
  4. Right-click on the generated *.vsix file in the vscode explorer, then "Install Extension VSIX". Alternatively, drag it into the vscode window