Skip to content

Commit 0e3b3d0

Browse files
committed
chore: update readme
1 parent 9b92011 commit 0e3b3d0

File tree

4 files changed

+47
-0
lines changed

4 files changed

+47
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,20 @@ module.exports = {
4141
}
4242
```
4343

44+
## Tips
45+
46+
1. Use `-dv-` instead of `/` to generate percentage
47+
2. Use `-` instead of `.`
48+
49+
For example:
50+
``` html
51+
<!-- w-1/2 = w-1-dv-2 -->
52+
<div class="w-1/2 w-1-dv-2">hello, world.</div>
53+
54+
<!-- w-1.5 = w-1-5 -->
55+
<div class="w-1.5 w-1-5">hello, world.</div>
56+
```
57+
4458
## License
4559

4660
[MIT](https://github.com/leedomjs/tailwindcss-preset/blob/main/LICENSE) License © 2024-present [Leedom](https://github.com/leedom92)

fixtures/styles/output.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,10 @@
138138
width: 8rpx
139139
}
140140

141+
.w-3-5 {
142+
width: 28rpx
143+
}
144+
141145
.max-w-20 {
142146
max-width: 160rpx
143147
}

packages/tailwindcss-miniprogram-preset/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
[![npm](https://img.shields.io/npm/v/@leedomjs/tailwindcss-miniprogram-preset?color=333&label=)](https://www.npmjs.com/package/@leedomjs/tailwindcss-miniprogram-preset)
44

55
This package is designed for miniprogram, and transforms `px` to `rpx`.
6+
`0.25rem` = `4px` = `8rpx`
67

78
## Usage
89

@@ -40,6 +41,20 @@ module.exports = {
4041
}
4142
```
4243

44+
## Tips
45+
46+
1. Use `-dv-` instead of `/` to generate percentage
47+
2. Use `-` instead of `.`
48+
49+
For example:
50+
``` html
51+
<!-- w-1/2 = w-1-dv-2 -->
52+
<div class="w-1/2 w-1-dv-2">hello, world.</div>
53+
54+
<!-- w-1.5 = w-1-5 -->
55+
<div class="w-1.5 w-1-5">hello, world.</div>
56+
```
57+
4358
## License
4459

4560
[MIT](https://github.com/leedomjs/tailwindcss-preset/blob/main/LICENSE) License © 2024-present [Leedom](https://github.com/leedom92)

packages/tailwindcss-preset/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,20 @@ module.exports = {
4141
}
4242
```
4343

44+
## Tips
45+
46+
1. Use `-dv-` instead of `/` to generate percentage
47+
2. Use `-` instead of `.`
48+
49+
For example:
50+
``` html
51+
<!-- w-1/2 = w-1-dv-2 -->
52+
<div class="w-1/2 w-1-dv-2">hello, world.</div>
53+
54+
<!-- w-1.5 = w-1-5 -->
55+
<div class="w-1.5 w-1-5">hello, world.</div>
56+
```
57+
4458
## License
4559

4660
[MIT](https://github.com/leedomjs/tailwindcss-preset/blob/main/LICENSE) License © 2024-present [Leedom](https://github.com/leedom92)

0 commit comments

Comments
 (0)