Arthie/xwind

vscode-xwind: Autocomplete does not work for custom added tailwind classes

trkaplan opened this issue · 0 comments

xwind-customized-tw-class-vscode-extension

Custom margin added to tailwind.config.js is not shown in vscode xwind plugins autocomplete list.
Custom class works in browser, I can see added class value but not in autocomplete list.

Thinks I tried:

  • Restarting the dev server.
  • Re-running the tw build script: tailwindcss build ./styles/tailwind.base.css -o ./styles/base.css
  • Restarting VS Code.

tailwind.config.js configuration:

module.exports = {
  purge: [],
  darkMode: false, // or 'media' or 'class'
  theme: {
    extend: {
      margin: {
        75: "18.75rem",
      },
    },
  },
  variants: {
    extend: {},
  },
  plugins: [require("xwind/plugins/base")],
  xwind: {
    mode: "objectstyles",
  },
};