Giter VIP home page Giter VIP logo

Comments (6)

bradlc avatar bradlc commented on August 28, 2024 3

Ah I think I see the issue. You need to be using Tailwind CSS locally. Specifically, you need to have a config file (e.g. tailwind.js) and tailwindcss installed via npm/yarn (i.e. node_modules/tailwindcss)

I could probably make this clearer in the readme

from tailwindcss-intellisense.

bradlc avatar bradlc commented on August 28, 2024

Hey @Coupz, thanks for the suggestion, this has been added in 0.1.15 – it might take a short while for the update to show up

from tailwindcss-intellisense.

yasinkavakliat avatar yasinkavakliat commented on August 28, 2024

Thank you, but, well, doesn't seem to work as expected. I changed the filetype on the bottom right corner of VSCode to HTML and only getting already used classes.
If the filetype is on Leaf, I don't get any autocompletion suggestions from tailwind classes πŸ€”

from tailwindcss-intellisense.

bradlc avatar bradlc commented on August 28, 2024

Hmm, that’s strange. All good on my end. Is that the same project that was previously working for HTML files?

from tailwindcss-intellisense.

yasinkavakliat avatar yasinkavakliat commented on August 28, 2024

It's the same master.leaf file.

This is the file:
screenshot 2018-11-02 at 14 54 12
The autocomplete only shadows when doing CTRL + Space on macOS Mojave.

This is the same file, just renamed the extension to .html:
screenshot 2018-11-02 at 14 53 44
Showing only tailwind classes that have been used before.

Really strange πŸ€”

Edit: to give more context: this is a Vapor project and Tailwind is only included via CDN and not via the npm package. Maybe that's the point here?

from tailwindcss-intellisense.

yasinkavakliat avatar yasinkavakliat commented on August 28, 2024

Alright, I'll try that with the npm/yarn package. Thank you πŸ‘

from tailwindcss-intellisense.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.