css-badge

1.0.0 • Public • Published

JaneOri

css-badge

css-only badge component

Install: $ npm install css-badge

Then include the `/node_modules/css-badge/css-badge.css file in your project.

Links

Documentation
GitHub
NPM
Jane Ori

How?

This is using a new CSS trick I came up with that enables an api like --badge-size: lg; in vanilla CSS. No JS, no container queries, no build step. Just CSS. And only one single class name!

Browser Support

Chromium Only, for now

The limiting factor for browser support is the ability to use specific syntaxes for CSS's @property's syntax's syntax, including:

The current global user support is 72.77% according to caniuse.

Readme

Keywords

Package Sidebar

Install

npm i css-badge

Weekly Downloads

1

Version

1.0.0

License

BSD-2-Clause

Unpacked Size

32.1 kB

Total Files

5

Last publish

Collaborators

  • janeori