smcllns/css-social-buttons
smcllns/css-social-buttons has 1,670 GitHub stars and 281 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-07 03:23 UTC. Last push 2022-11-08.
Zocial: CSS login and social buttons
Measured star growth
- in 24h
- 0
- in 7 days
- Update delayed
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalZocial CSS Social Buttons
The idea is to create beautiful social buttons using only CSS, rendering popular social icons as a font, and requiring minimal extra markup.
Benefits
- Buttons always look sharp at any size and screen resolution.
- Easily customize the size and call to action of the buttons.
- Easily localize button text to other languages.
Usage
- Can be any element e.g.
a,div,buttonetc. - Add class of
.zocialand add class for name of service e.g..dropbox,.twitter,.github - Optional: Add a class of icon to display as icon instead of button
- Optional: Change font size of the element to resize button
There's also a LESS version from @gustavohenke here
Examples:
<button class="zocial facebook">Sign in with Facebook</button>
or
<a class="zocial twitter">Follow Me</a>
Demo
https://smcllns.github.io/css-social-buttons/
Browser Support
- custom font file for all social icons works well in any browser supporting @font-face
- icon font use private unicode spaces for accessibility
- CSS3 degrades gracefully in IE8 and below
CDN
This project is available on CDNJS: https://cdnjs.com/libraries/css-social-buttons
How to contribute
- Install Font Custom (*)
- Add or update the icon .svg in the
src/folder. - Set the button and font color in
templates/zocial.cssfile. - Run
fontcustom compile - Update the demo page (
index.html) with both the button and icon. - Test rendering. If broken go to step 2.
- Send pull-request !
(*) if you are having difficulting installing Font Custom, you can use a docker container. Instead of running #4, run docker run -v ${PWD}:/project drichner/fontcustom compile from the root of this directory.
License
Under MIT License
The GitLab logo is derived from this which is released under CC BY-NC-SA 4.0.
Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
560,784 starspublic-apis/public-apis
A collective list of free APIs
497,003 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
440,833 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,143 stars