Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
trkaplan opened this issue Jan 16, 2021 · 0 comments

Comments

@trkaplan
Copy link

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",
  },
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant