<kern-icon>
One of Kern's glyphs (Lucide style), a brand icon (brand-github, brand-home-assistant …, from Simple Icons) or a country flag (flag-ch, flag-gb …, from flag-icons). Sized by font-size (1em high) and coloured by currentColor, so it fits text and buttons; brand-color shows a brand icon in its official colour, flags are always in colour and 4:3. Decorative without label; with label it is announced as an image.
Examples
Glyphs
name picks one of Kern's glyphs (the full list is exported as ICON_NAMES). Icons are sized by font-size and coloured with currentColor, so they follow the surrounding text. Without label an icon is decorative and hidden from screen readers.
Meaningful icons
When an icon carries information on its own, give it a label; it is then announced as an image. In buttons the icon stays decorative and the button gets the name instead.
Bad Lüftung
Brand icons
Names starting with brand- show a logo from Simple Icons (CC0; four from other free sets, see Fundamentals → Icons), filled in currentColor; brand-color uses the official colour. The logos are trademarks of their owners: use them to refer to the product, and give them a label when they carry meaning on their own.
Flags
Names starting with flag- and an ISO 3166 country code show a flag from flag-icons (MIT), 4:3 and in colour. Each flag loads on its own the first time it is shown. A flag names a country, not a language; next to a language name it helps recognition.
Properties
brandColorboolean
Brand icons in their official colour instead of currentColor (check the contrast: some are near-black or white).
labelstring | undefined
Accessible name; without it the icon is decorative.
name"brand-alexa" | "brand-android" | "brand-apple" | "brand-arduino" | "brand-bluetooth" | "brand-cloudflare" | "brand-debian" | "brand-docker" | "brand-esphome" | "brand-espressif" | "brand-github" | "brand-gitlab" | "brand-google" | "brand-google-home" | "brand-grafana" | "brand-home-assistant" | "brand-homebridge" | "brand-ikea" | "brand-influxdb" | "brand-linux" | "brand-matter" | "brand-microsoft" | "brand-mqtt" | "brand-nextcloud" | "brand-node-red" | "brand-openwrt" | "brand-philips-hue" | "brand-pi-hole" | "brand-plex" | "brand-proxmox" | "brand-raspberry-pi" | "brand-shelly" | "brand-signal" | "brand-synology" | "brand-tailscale" | "brand-tasmota" | "brand-telegram" | "brand-ubiquiti" | "brand-ubuntu" | "brand-whatsapp" | "brand-wireguard" | "brand-z-wave" | "brand-zigbee" | "bulb" | "calendar" | "check" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "clock" | "close" | "copy" | "download" | "edit" | "external" | "eye" | "eye-off" | "filter" | "flag-at" | "flag-be" | "flag-bg" | "flag-br" | "flag-ch" | "flag-cn" | "flag-cz" | "flag-de" | "flag-dk" | "flag-es" | "flag-fi" | "flag-fr" | "flag-gb" | "flag-gr" | "flag-hr" | "flag-hu" | "flag-ie" | "flag-is" | "flag-it" | "flag-jp" | "flag-kr" | "flag-li" | "flag-lu" | "flag-nl" | "flag-no" | "flag-pl" | "flag-pt" | "flag-ro" | "flag-se" | "flag-si" | "flag-sk" | "flag-tr" | "flag-ua" | "flag-us" | "home" | "inbox" | "info" | "link" | "lock" | "menu" | "minus" | "moon" | "more" | "plus" | "power" | "refresh" | "search" | "settings" | "star" | "sun" | "thermometer" | "trash" | "upload" | "warn" | "wifi"
Glyph name, e.g. wifi, power, refresh, a brand icon, e.g. brand-github, or a flag, e.g. flag-ch.