Skip to content

Commit 13151e6

Browse files
committed
update docs
1 parent 66d1953 commit 13151e6

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,13 @@ This improves readability and follows the same pattern as regular CSS.
8585
When the plugin finds `'.module.css'` import in the file, it will transform
8686
**all** CSS classnames to use the imported CSS module. However, you may want
8787
to use regular CSS classnames and prevent transformations on them. This
88-
can be done by adding `:g` at the end of the classname:
88+
can be done by adding `g:` at the start of the classname:
8989

9090
```jsx
9191
import "./style.module.css"
9292

9393
function Component() {
94-
return <div className="card-layout:g card-rnd-1"></div>
94+
return <div className="g:card-layout card-rnd-1"></div>
9595
}
9696
```
9797

@@ -120,21 +120,21 @@ function Component() {
120120
You can use multiple CSS module within a file using Named modules.
121121

122122
To use Named CSS modules, you can add labels to each CSS module import
123-
in the file by adding `:<module-name>` at the end of the path:
123+
in the file by adding `<module-name>:` at the end of the path:
124124

125125
```jsx
126-
import "./layout.module.css:layout"
127-
import "./component.module.css:com"
126+
import "layout:./layout.module.css"
127+
import "com:./component.module.css"
128128
```
129129

130130
And use the same labels for writing your classnames:
131131

132132
```jsx
133133
function Component() {
134134
return (
135-
<ul className="food-items:layout">
136-
<li className="food-item:com"></li>
137-
<li className="food-item:com"></li>
135+
<ul className="layout:food-items">
136+
<li className="com:food-item"></li>
137+
<li className="com:food-item"></li>
138138
</ul>
139139
)
140140
}

0 commit comments

Comments
 (0)