News for hackers. Stuff that matters.

rpeshkov

Re:Show HN: Tailwind Nested VSCode Extension on Tuesday April 23, 2024 @05:22PM (#40137446)
Well, that's completely different beast...
Re:Show HN: Tailwind Nested VSCode Extension on Monday April 22, 2024 @03:23PM (#40117800)
Wow, this is huge! :)

I tried it to see what's going on. There are 2 issues that I need to fix:

- Variables. It splits incorrectly

  [--variations-gap:
    theme(spacing[2])]
- Arbitrary variants are split incorrectly as well

  [&>h2:
    first-child]:
Re:Show HN: Tailwind Nested VSCode Extension on Sunday April 21, 2024 @02:44PM (#40108126)
Thank you for this idea! VSCode API definitely allows to do this, however here I will need more sophisticated algorithm to understand where to show it and where not. Current implementation can expand/collapse literally any string, so kind of implicitly it supports even the cases when you use classnames or similar libraries.

Show HN: Tailwind Nested VSCode Extension

https://marketplace.visualstudio.com/items?itemName=RomanPeshkov.tailwind-nested

After playing around with Tailwind CSS - I can definitely say that the idea behind is really cool. However, I was really annoyed by editing big amount of hover:, focus: and other styles because of the duplication. Due to this, I decided to build an extension for VSCode that allows editing classes like there's a nesting applied.Pretty much it works in way that you can expand classes into...

( Read More... | 7 comments | 2 points | on HN )