Giter VIP home page Giter VIP logo

Comments (9)

bradlc avatar bradlc commented on August 28, 2024

Hey Benoît, thanks for the feedback!

I’m not sure you can extend syntax definitions like that. I might be wrong though. I think you’d have to define a brand new "language," which I don’t really want to do.

I use this extension and then set VS Code to associate CSS files with PostCSS: "files.associations": { "*.css": "postcss" } If you do that it won’t complain about the syntax you mentioned.

Alternatively you can disable the built-in CSS validation: "css.validate": false

from tailwindcss-intellisense.

benface avatar benface commented on August 28, 2024

I use this extension and then set VS Code to associate CSS files with PostCSS: "files.associations": { "*.css": "postcss" } If you do that it won’t complain about the syntax you mentioned.

Hmm, I don't think that's gonna work for me, as I'm also using Sass (.scss files) with Tailwind.

No big deal. Thank you for your quick response :)

from tailwindcss-intellisense.

bradlc avatar bradlc commented on August 28, 2024

Okay so I misspoke earlier 😅 apologies!

You can actually do this.

Before:
image

After:
image

from tailwindcss-intellisense.

bradlc avatar bradlc commented on August 28, 2024

Although, after some digging I still can’t find a way around the validation issue.

If you require validation I would recommend disabling the built-in validation, and using stylelint instead, which allows defining custom at-rules.

In terms of syntax highlighting.. how do you imagine the class names after an @apply looking?

from tailwindcss-intellisense.

benface avatar benface commented on August 28, 2024

If you require validation I would recommend disabling the built-in validation, and using stylelint instead, which allows defining custom at-rules.

Nice, I will look at that, thanks!

In terms of syntax highlighting.. how do you imagine the class names after an @apply looking?

Maybe similar to how they appear in a selector?

from tailwindcss-intellisense.

bradlc avatar bradlc commented on August 28, 2024

Before:
image

After:
image

What do you think?

from tailwindcss-intellisense.

benface avatar benface commented on August 28, 2024

Looks perfect! :)

from tailwindcss-intellisense.

bradlc avatar bradlc commented on August 28, 2024

Sweet! This is released now so let me know if you run in to any issues :)

from tailwindcss-intellisense.

benface avatar benface commented on August 28, 2024

Re-closing this, everything seems to work well :) Thanks again

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.