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
+14-15Lines changed: 14 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,18 +44,18 @@ Make sure the class is only present during development. Here's an example of how
44
44
45
45
### Customization
46
46
47
-
You can customize the position and styles in the `theme.debugScreens` section of your `tailwind.config.js` file.
47
+
You can customize this plugin in the `theme.debugScreens` section of your `tailwind.config.js` file.
48
48
49
-
#### Position
49
+
#### Ignore screens
50
50
51
-
The first item of the position configuration array can be `top` or `bottom`, the second item can be `left` or `right`.
51
+
To ignore a specific screen (for instance if you use [dark mode](https://tailwindcss.com/docs/breakpoints/#dark-mode)), add the screen name to the `ignore` configuration array.
52
52
53
53
```js
54
54
// tailwind.config.js
55
55
module.exports= {
56
56
theme: {
57
57
debugScreens: {
58
-
position: ['bottom', 'left'],
58
+
ignore: ['dark'],
59
59
},
60
60
},
61
61
plugins: [
@@ -64,20 +64,16 @@ module.exports = {
64
64
}
65
65
```
66
66
67
-
#### Styles
67
+
#### Position
68
68
69
-
Take a look at the [index.js](index.js) file to see all the default styles.
69
+
The first item of the position configuration array can be `top` or `bottom`, the second item can be `left` or `right`.
70
70
71
71
```js
72
72
// tailwind.config.js
73
73
module.exports= {
74
74
theme: {
75
75
debugScreens: {
76
-
style: {
77
-
backgroundColor:'#C0FFEE',
78
-
color:'black',
79
-
// ...
80
-
},
76
+
position: ['bottom', 'left'],
81
77
},
82
78
},
83
79
plugins: [
@@ -86,17 +82,20 @@ module.exports = {
86
82
}
87
83
```
88
84
89
-
#### Ignoring Screens
85
+
#### Styles
90
86
91
-
In some cases, like a custom screen media query, it can be helpful to ignore a specific screen. In that case
92
-
add the screen name to the `ignore` configuration array.
87
+
Take a look at the [index.js](index.js) file to see all the default styles.
0 commit comments