You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,7 @@ Nothing changed here to the default tailwindcss configuration:
44
44
```
45
45
46
46
## 👉🏻 Configuration
47
-
The plugin comes with a default configuration (see below) but it's possible to customize this config for your project:
47
+
The plugin comes with a default configuration (see below) but it's possible to customize this config for your project. As default, we use `rem` for better accessibility, but you can also use `px`:
48
48
```js
49
49
// tailwind.config.js
50
50
module.exports= {
@@ -58,7 +58,8 @@ module.exports = {
58
58
ratioMin:1.125, // Multiplicator Min
59
59
ratioMax:1.2, // Multiplicator Max
60
60
screenMin:20, // 20rem === 320px
61
-
screenMax:96// 96rem === 1536px
61
+
screenMax:96, // 96rem === 1536px
62
+
unit:'rem'// default is rem but it's also possible to use 'px'
62
63
},
63
64
// Creates the text-xx classes
64
65
// This are the default settings and analog to the tailwindcss defaults
0 commit comments