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

shearling-boots

v0.5.1

Published

Warm and fluffy boots for Bootstrap 4

Readme

Shearling Boots

Warm and fluffy boots for Bootstrap 4

This project aims to enhance the usage of Bootstrap 4.

Usage

Include the files as follows:

@import 'node_modules/shearling-boots/src/scss/before-bootstrap';

// Include Bootstrap 4
@import 'node_modules/bootstrap/scss/bootstrap';

@import 'node_modules/shearling-boots/src/scss/after-bootstrap';

// ...the rest of your scss

Functions without prefix

The functions in this package have a deliberate prefix, to prevent conflicts. If for some reason you prefer font-size() over sb-font-size() for instance, you can include the no-prefix file.

To make sure the functions are not being replaced, include this after all vendor includes.

@import '~shearling-boots/src/scss/functions-no-prefix';

Please note that the internal function sb-map-get() and mixin sb-generator() are left untouched.

If you would like to use some, but not all functions without a prefix, you can always do this manually, this is how functions-no-prefix does it:

@function something($param1, $param2) {
  @return sb-something($param1, $param2);
}

What it does

Generating CSS classes

Bootstrap 4 creates classes like 'mb-lg-5' for margin and 'font-italic' for fonts. This package adds additional CSS classes, here is the list:

  • .color-{name}
    • Also .color-{name}--{variant} for sub-maps
  • .bg-color-{name}
    • Also .bg-color-{name}--{variant} for sub-maps
  • .font-family-{name}
  • .font-size-{size}
  • .font-weight-{weight}
  • .line-height-{height}
  • .bw-{width}, .bwt-{width}, .bwb-{width}, .bwl-{width}, .bwr-{width}: this is like Bootstrap's .m-2 and .ml-2, but for border-widths.
  • .z-index-{index}
  • .nm-2, .nm-md-5 and so on: negative margin, just like the usual margin and padding classes.
  • .t-2, .r-md-5 and so on: for positioning (top, right, bottom, left), just like the usual margin and padding classes.

About the color variant classes: if you have a color that is a map, like the blue color here:

$__colors: (
    'red' => #F00,
    'blue': (
        'base'  => #00C,
        'light' => #00F,
        'dark'  => #005,
    ),
)

It will generate the below CSS. Note that base is used as the default, non-variant.

.color-red         { color: #F00; }
.color-blue        { color: #00C; }
.color-blue--light { color: #00F; }
.color-blue--dark  { color: #005; }

The values in _settings.scss decide if an !important rule is added, so the above would look like this

.color-blue--light { color: #00F !important; }

Making variable access easier

Instead of having 10 color variables, they are now placed in a map, and accessible with color('name'), with the same value as in the generated CSS class. So define it once, use it consistently in different places. Here is the list of functions:

  • sb-setting($category, $setting)
  • sb-breakpoint($breakpoint)
  • sb-container-width($breakpoint)
  • sb-font-family($name)
  • sb-font-size($size)
  • sb-font-weight($weight)
  • sb-line-height($height)
  • sb-border-radius($size)
  • sb-border-width($width)
  • sb-color($name, $variant: 'base')

Of course, if you have included _functions-no-prefix.scss, the same functions, but without the 'sb-' prefix are also added.

Adding some generally useful CSS

Currently only a small accessibility stylesheet is added, but my intention is to expand this.

License

This project is released under the The Unlicense, which means it's placed in the public domain.

If you fork or distribute this project, or do anything else where giving credit seems appropriate, I would appreciate it if you'd credit me, but it's not required.