Skip to content

Commit 1460a5e

Browse files
authored
Update README.md
1 parent 2eaeb26 commit 1460a5e

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

README.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
```html
2222
<div>
2323
<style>
24-
.me { background: red; } /*.this and .self also work! */
25-
.me button { background: blue; } /* style child elements inline! */
24+
me { background: red; } /* ✨ this & self also work! */
25+
me button { background: blue; } /* style child elements inline! */
2626
</style>
2727
<button>I'm blue</button>
2828
</div>
@@ -53,7 +53,7 @@ Use whatever you'd like, but there's a few advantages with this approach over Ta
5353
* No chance of [deprecations](https://windicss.org/posts/sunsetting.html). 18 lines is infinitely maintainable.
5454
* Get the ultra-fast "inspect, play with styles, paste" workflow back.
5555
* No suffering from FOUC (a flash of unstyled content).
56-
* Zero friction movement of styles between inline and `.css` files. Just replace `.me`
56+
* Zero friction movement of styles between inline and `.css` files. Just replace `me`
5757
* No special tooling or plugins to install. Universal vanilla CSS.
5858

5959
## ⚡ Workflow Tips
@@ -76,10 +76,10 @@ Tailwind verbosity goes up with more child elements.
7676
<!-- CSS Scope Inline -->
7777
<div>
7878
<style>
79-
.me { background: red; }
80-
.me div { background: green; }
81-
.me div[n1] { background: yellow; }
82-
.me div[n2] { background: blue; }
79+
me { background: red; }
80+
me div { background: green; }
81+
me div[n1] { background: yellow; }
82+
me div[n2] { background: blue; }
8383
</style>
8484
red
8585
<div>green</div>
@@ -120,9 +120,9 @@ Tailwind verbosity goes up with more child elements.
120120
<!-- CSS Scope Inline -->
121121
<div>
122122
<style>
123-
.me { margin:8px 6px; }
124-
.me div a { display:block; padding:8px 12px; margin:10px 0; background:var(--color-1); border-radius:10px; text-align:center; }
125-
.me div a:hover { background:var(--color-1-active); color:white; }
123+
me { margin:8px 6px; }
124+
me div a { display:block; padding:8px 12px; margin:10px 0; background:var(--color-1); border-radius:10px; text-align:center; }
125+
me div a:hover { background:var(--color-1-active); color:white; }
126126
</style>
127127
<div><a href="#">Home</a></div>
128128
<div><a href="#">Team</a></div>

0 commit comments

Comments
 (0)