type
status
date
slug
summary
tags
category
icon
url
sync
Simple Icons CDN is a CDN service that provides SVG icons, allowing users to access various brand icons through URLs. It supports custom colors and dark mode colors, and offers a viewbox parameter to adjust the display scale of the icons. The project is licensed under MIT and provides detailed usage instructions and examples.
Detailed Introduction
- Project Overview: Simple Icons CDN is a public project maintained by LitoMore, offering a convenient interface to obtain brand SVG icons.
- Usage: Users can fetch icons through a specific URL format, including optional parameters such as the icon name (slug), color, and dark mode color.
- Parameter Description:
- icon_slug: A unique identifier for the icon, which can be obtained from simpleicons.org.
- color: An optional parameter to customize the icon color, supporting hexadecimal colors and CSS keywords.
- dark_mode_color: An optional color parameter for dark mode.
- viewbox: An optional parameter to adjust the display scale of the icon.
- Examples: The documentation provides multiple URL examples showing how to obtain icons in different colors and sizes.
- Adaptive Size: An example code is provided to demonstrate how to use the viewbox parameter to maintain consistent icon sizes across different scenarios.
- Other Uses: The use of Simple Icons CDN in applications such as Raycast and Notion is introduced.
- Domain Aliases: Two domain aliases are provided for easy access by users.
- 作者:notion2go
- 链接:https://notion2go.com/article/Simple-Icons-CDN
- 声明:本文采用 CC BY-NC-SA 4.0 许可协议,转载请注明出处。