Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
tailwindcss-debug-screens
Advanced tools
A Tailwind CSS component that shows the currently active screen (responsive breakpoint).
A Tailwind CSS component that shows the currently active screen (responsive breakpoint).
Requires Tailwind v1.0 or higher.
npm install tailwindcss-debug-screens --save-dev
tailwind.config.js
file:// tailwind.config.js
module.exports = {
//...
plugins: [
require('tailwindcss-debug-screens'),
]
}
Add the class debug-screens
to your <body>
tag.
<body class="debug-screens">
Make sure the class is only present during development. Here's an example of how you could do that in Craft CMS:
<body class="{{ devMode ? 'debug-screens' : '' }}">
You can customize this plugin in the theme.debugScreens
section of your tailwind.config.js
file.
To ignore a specific screen (for instance dark mode), add the screen name to the ignore
configuration array. dark
is ignored by default.
// tailwind.config.js
module.exports = {
theme: {
debugScreens: {
ignore: ['dark'],
},
},
plugins: [
require('tailwindcss-debug-screens'),
],
}
The first item of the position configuration array can be top
or bottom
, the second item can be left
or right
.
// tailwind.config.js
module.exports = {
theme: {
debugScreens: {
position: ['bottom', 'left'],
},
},
plugins: [
require('tailwindcss-debug-screens'),
],
}
Take a look at the index.js file to see all the default styles.
// tailwind.config.js
module.exports = {
theme: {
debugScreens: {
style: {
backgroundColor: '#C0FFEE',
color: 'black',
// ...
},
},
},
plugins: [
require('tailwindcss-debug-screens'),
],
}
Modify the debug label prefix with the prefix
configuration option.
// tailwind.config.js
module.exports = {
theme: {
debugScreens: {
prefix: 'screen: ',
},
},
plugins: [
require('tailwindcss-debug-screens'),
],
}
Modify the debug element selector with the selector
configuration option.
// tailwind.config.js
module.exports = {
theme: {
debugScreens: {
selector: '.debug-screens',
},
},
plugins: [
require('tailwindcss-debug-screens'),
],
}
FAQs
A Tailwind CSS component that shows the currently active screen (responsive breakpoint).
The npm package tailwindcss-debug-screens receives a total of 12,528 weekly downloads. As such, tailwindcss-debug-screens popularity was classified as popular.
We found that tailwindcss-debug-screens demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.