npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@dead404code/tailwind-remove-base-border-box

v1.0.0-Patch

Published

A Tailwind CSS plugin to remove initial box-sizing and border styles.

Downloads

341

Readme

Tailwind "Fuck Off, Border Box!" Plugin ××

Version 1.0.0

Why does this exist?

The date was January 23rd 2025, around 8:30PM CET.

I (the author of this plugin, @RichardKanshen on GitHub, haiii :3) was working with @Hoshty on a redesign and rewrite of our website from plain HTML and CSS to React and Tailwind.

We started off with a header. Plain, and simple. Here is the rough design.

Header Design

Yes, there are three About Us links, the design was rushed just to put something on the Figma design, don't judge me.

We have decided on padding of 16px on both the right and left side of the header. Nothing special.

"So, you're gonna want to add 16px of padding, that is px-4, because you divide by 4." - R

Great, and padding there was. And then came the width.

I, as someone who used to work with plain CSS for way longer than Tailwind, was used to using calc() for widths and heights, because you have to account for padding... Right?

"And for the width, you're gonna want to use w-[calc(100%-32px)], because 16 pixels on both sides, that is 32 pixels. Subtract that from the 100% width of the app container." - R

"Yep, got it" - H

So, Hošty added the class, and saved the file, before switching to Zen. And, that's when we saw...

HeaderButUhOhTailwind

You see it, right?

HeaderButUhOhTailwindButZoomies

I was slightly confused by this. 16px of padding on both the right and the left is 32px altogether, which means we need 100% - 32px of width. So, I made a mock in a new about:blank tab, with the same width setting. And, as expected...

about:blankMockup

So, I tried something else.

about:blankMockupButWrong

Alright, we are too short.

And something else...

about:blankMockupButWrongButDifferentlyWrong

As expected, we have overflow.

At this point, I had no idea why his version was apparently doing maths wrong. So... I went to bed.

I did not have the mental energy to deal with this.

"I'll take a look at it tomorrow at school, this got me fucked up." - R

"Alright" - H

And so, 13 hours later, Hoshty took out his laptop before maths class, and spun up the local dev server. We tinkered around in the inspector for a bit, before I noticed this.

Inspector

I had no idea why that was there, but I decided to try it. And so I disabled the box-sizing: border-box rule.

InspectorButDisabledBoxSizing

It took me 13 hours to figure out that this one simple line broke my workflow with CSS size maths.

Conclusion

Richard is a dumbass. Do not trust him with CSS maths in Tailwind unless you are using @dead404code/tailwind-fuck-off-border-box or setting box-sizing to content-box manually.

Table of Contents

Installation

To install the package, you can use npm:

npm install --save-dev @dead404code/tailwind-remove-base-border-box
#
npm install --save-dev git+https://github.com/DeadCodeGames/tailwind-FuckOffBorderBox.git

Usage

To use the utilities provided by this package, you need to include it in your Tailwind CSS configuration. Here’s how you can do it:

  1. Open your tailwind.config.js file.
  2. Add the plugin to your configuration:
const tailwindFuckOffBorderBox = require('@dead404code/tailwind-remove-base-border-box');

module.exports = {
  // other configurations...
  plugins: [
    tailwindFuckOffBorderBox,
    // other plugins...
  ],
};
  1. box-sizing will now be set to content-box, the default browser behaviour, on all elements (unless you override that behaviour)

Contributing and Issues

Contributions are welcome! If you have suggestions for improvements or new utilities, feel free to open an issue or submit a pull request.

If you encounter any bugs or have feature requests, please report them in the issues section.

License

This project is licensed under the WTFPL (Do What The Fuck You Want To Public License). You are free to copy, modify, and distribute this package as you wish.