Skip to content

propjockey/css-badge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

css-only badge component

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published