Documentation
¶
Overview ¶
Package octicons provides helpers for working with GitHub Octicon icons. See https://primer.style/foundations/icons for available icons.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DataURI ¶
DataURI returns a data URI for the embedded Octicon PNG. The theme parameter specifies which variant to use: - ThemeLight: dark icons for light backgrounds - ThemeDark: light icons for dark backgrounds If the icon is not found in the embedded filesystem, it returns an empty string.
func Icons ¶
Icons returns MCP Icon objects for the given octicon name in light and dark themes. Icons are embedded as 24x24 PNG data URIs for offline use and faster loading. The name should be the base octicon name without size suffix (e.g., "repo" not "repo-16"). See https://primer.style/foundations/icons for available icons.
func RequiredIcons ¶
func RequiredIcons() []string
RequiredIcons returns the list of icon names from required_icons.txt. This is the single source of truth for which icons should be embedded.