Skip to content

Commit f422df6

Browse files
author
github-actions
committed
Merge remote-tracking branch 'upstream/main'
2 parents 312c44f + 42a2e2a commit f422df6

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ Use whatever you'd like, but there's a few advantages with this approach over Ta
5252
* No high risk of eventually requiring a build step.
5353
* No chance of [deprecations](https://windicss.org/posts/sunsetting.html). 16 lines is infinitely maintainable.
5454
* Get the ultra-fast "inspect, play with styles, paste" workflow back.
55+
* No suffering from missing syntax highlighting on properties and units.
5556
* No suffering from FOUC (a flash of unstyled content).
5657
* Zero friction movement of styles between inline and `.css` files. Just replace `me`
5758
* No special tooling or plugins to install. Universal vanilla CSS.
@@ -103,7 +104,14 @@ Tailwind verbosity goes up with more child elements.
103104
<div class="bg-[green]">green</div>
104105
</div>
105106
```
106-
### CSS variables and child styling
107+
108+
### CSS variables and child elements
109+
At first glance, **Tailwind Example 2** looks very promising! Exciting ...but:
110+
* 🔴 **Every child style requires an explicit selector.**
111+
* Tailwinds' shorthand advantages sadly disappear.
112+
* Any more child styles added in Tailwind will become longer than vanilla CSS.
113+
* This limited example is the best case scenario for Tailwind.
114+
* 🔴 Not visible on github: **no highlighting for properties and units** begins to be painful.
107115
```html
108116
<!doctype html>
109117
<html>

0 commit comments

Comments
 (0)