Re:Htmx Tailwind Alternative: Inline Scoped CSS
by geenat on Friday September 08, 2023 @12:12PM
(#37435531)
A compromise for people who are intrigued by Tailwind's Locality of Behavior but don't want the insane bulk of the CDN or build step-- and want to still write pure vanilla CSS.
Write <style> inline and automatically have it scoped to that element. No more writing individual class/id's.
Been really wanting to transition back to plain CSS for everything moving forward. I miss the ultra-fast "inspect, play with styles, copy/paste into project" workflow that this re-enables.
BTW: Totally unheard of CSS feature you get for free: Scoped inline @keyframes for looped animations!
Write <style> inline and automatically have it scoped to that element. No more writing individual class/id's.
Been really wanting to transition back to plain CSS for everything moving forward. I miss the ultra-fast "inspect, play with styles, copy/paste into project" workflow that this re-enables.
BTW: Totally unheard of CSS feature you get for free: Scoped inline @keyframes for looped animations!