simple-icons-cdn
Disclaimer
We ask that all users read the legal disclaimer before using icons from Simple Icons.
Usage
GET https://cdn.simpleicons.org/:icon_slug/:color?/:dark_mode_color?
Parameters
icon_slug
You can simply click the icon title on simpleicons.org to copy the slug.
All icon slugs can be found at slugs.md.
color
Optional. Default to the color of icon from simpleicons.org. It supports hex colors and CSS keywords. Passing in an invalid value will use the default color as a fallback.
dark_mode_color
Optional. It's used for dark mode and has the same function as color
. The CSS prefers-color-scheme will be used when a value is specified.
Example
- https://cdn.simpleicons.org/simpleicons
- https://cdn.simpleicons.org/simpleicons/blue
- https://cdn.simpleicons.org/simpleicons/hotpink
- https://cdn.simpleicons.org/simpleicons/0cf
- https://cdn.simpleicons.org/simpleicons/0cf9
- https://cdn.simpleicons.org/simpleicons/00ccff
- https://cdn.simpleicons.org/simpleicons/00ccff99
- https://cdn.simpleicons.org/simpleicons/orange/pink
- https://cdn.simpleicons.org/simpleicons/_/eee
Domain aliases
- cdn.simpleicons.org
- icons.ly (using Cloudflare DNS)
License
MIT