Skip to content

ericwaetke/carbon-badge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Website Carbon Badge

Show how sustainable your website really is.

The “Carbon Badge” is a digital emblem that signifies a website’s CO₂ footprint, directly sourced from websitecarbon.com. This badge allows website owners to publicly display their site’s environmental performance, promoting transparency and awareness around the digital carbon emissions topic.

How to Use on your Site

It’s really easy to install it on your site, just add the following web component to your code wherever you’d like the badge to appear:

‹carbon-badge background="#000" foreground="#fff"></carbon-badge>
‹script src="carbon-badge.js"></script>

Customization

To make it look good on your site you can adjust fore- and background color.

Credits

“Carbon Badge” is created by Eric Wätke (@cire901@det.social) and Simon Lou (@simonlou@typo.social).

This project wouldn’t be possible without the Website Carbon Calculator which provides the CO₂ score and an API to use it in our badge.

License

Our “Website Carbon Badge” source code is released under the MIT License. Please view the LICENSE file for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published