Skip to content

Commit 31da3e9

Browse files
committed
add input-output example to readme
1 parent 995fe12 commit 31da3e9

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

readme.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,51 @@ HTML template to SASS converter for TailwindCSS
1010
npm i @egoistdeveloper/twcss-to-sass
1111
```
1212

13+
## Input-Output
14+
15+
**Template Input**
16+
17+
```html
18+
<!-- Container Start -->
19+
<!-- Container Any -->
20+
<div class="bg-white">
21+
<!-- Some Div -->
22+
<div class="flex justify-center items-center min-h-screen min-w-full">
23+
<div class="flex relative">
24+
<!-- Inner Div -->
25+
<div class="w-72 h-40 bg-green-400 transform transition-all skew-x-12 -skew-y-12 absolute rounded-lg">
26+
My Text 1
27+
</div>
28+
</div>
29+
</div>
30+
</div>
31+
<!-- Container End-->
32+
```
33+
34+
**SASS Output**
35+
36+
```scss
37+
/* Container Start, Container Any -> 1 */
38+
.class-1-div {
39+
@apply bg-white;
40+
41+
/* Some Div -> 2 */
42+
.class-2-div {
43+
@apply flex justify-center items-center min-h-screen min-w-full;
44+
45+
/* div -> 3 */
46+
.class-3-div {
47+
@apply flex relative;
48+
49+
/* Inner Div -> 4 */
50+
.class-3-div {
51+
@apply w-72 h-40 bg-green-400 transform transition-all skew-x-12 -skew-y-12 absolute rounded-lg;
52+
}
53+
}
54+
}
55+
}
56+
```
57+
1358
## 🔰 Browser Example
1459

1560
```javascript

0 commit comments

Comments
 (0)