Gathering detailed insights and metrics for tailwindcss-pixel-dimensions
Gathering detailed insights and metrics for tailwindcss-pixel-dimensions
Gathering detailed insights and metrics for tailwindcss-pixel-dimensions
Gathering detailed insights and metrics for tailwindcss-pixel-dimensions
This basically goes against any sort of best practice responsive design techniques, but for tricky pixel-perfect comps, it's useful.
npm install tailwindcss-pixel-dimensions
Typescript
Module System
Node Version
NPM Version
70.1
Supply Chain
99.3
Quality
74.8
Maintenance
100
Vulnerability
99.6
License
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
ISC License
11 Stars
4 Commits
2 Forks
2 Watchers
19 Branches
1 Contributors
Updated on Jul 16, 2023
Latest Version
1.0.2
Package Id
tailwindcss-pixel-dimensions@1.0.2
Unpacked Size
11.15 kB
Size
4.48 kB
File Count
12
NPM Version
6.14.4
Node Version
14.3.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
2
This plugin allows you to quickly generate widths and heights in pixels.
This plugin requires Tailwind CSS 1.2 or later.
1yarn add tailwindcss-pixel-dimensions
The following plugin options are available. See below how these are passed (via an object) to the plugin in your tailwind.config.js
.
Pass along a number value to generate that many font sizes.
1// tailwind.config.js 2module.exports = { 3 plugins: [ 4 // Generates 10 widths and heights in pxs 5 require('tailwindcss-pixel-dimensions')({ 6 width: { 7 total: 10, // 900 is the default 8 // startingSize: 0, // default 9 }, 10 height: { 11 total: 10, // 900 is the default 12 // startingSize: 0, // default 13 }, 14 }), 15 ], 16};
The above configuration would generate the following CSS:
1.w-0px { 2 width: 0; 3} 4 5.w-1px { 6 width: 1px; 7} 8 9.w-2px { 10 width: 2px; 11} 12 13.w-3px { 14 width: 3px; 15} 16 17.w-4px { 18 width: 4px; 19} 20 21.w-5px { 22 width: 5px; 23} 24 25.w-6px { 26 width: 6px; 27} 28 29.w-7px { 30 width: 7px; 31} 32 33.w-8px { 34 width: 8px; 35} 36 37.w-9px { 38 width: 9px; 39} 40 41.w-10px { 42 width: 10px; 43} 44 45.h-0px { 46 height: 0; 47} 48 49.h-1px { 50 height: 1px; 51} 52 53.h-2px { 54 height: 2px; 55} 56 57.h-3px { 58 height: 3px; 59} 60 61.h-4px { 62 height: 4px; 63} 64 65.h-5px { 66 height: 5px; 67} 68 69.h-6px { 70 height: 6px; 71} 72 73.h-7px { 74 height: 7px; 75} 76 77.h-8px { 78 height: 8px; 79} 80 81.h-9px { 82 height: 9px; 83} 84 85.h-10px { 86 height: 10px; 87} 88/* etc. */
Which you can then use in your HTML like this:
1<div class="h-10px"> 2 I'm a div with a height of 10 pixels or pickles depending on how you pronounce it. 3</div>
The above depends on the order of the generated CSS.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
no SAST tool detected
Details
Reason
Found 0/4 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
54 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More