LogicSRC standards surface

OpenIcon

An icon set as a folder, and the first one that knows what to draw in a terminal: SVG in a browser, a Nerd Font glyph in a patched terminal, a Unicode symbol in a plain one, ASCII over a serial line.

Every interface needs the same few hundred icons, and every set names them differently: Lucide's mail is Font Awesome's envelope is Material's email. Brand logos sit beside drawn icons as if a trademark were just another shape. And no set says what an icon should be when there are no pixels, so TUIs hard-code a Nerd Font codepoint and show a box everywhere else.

Status: 0.1. A sibling of OpenEmoji.

Three glyphs per icon

What a TUI draws, best first. Your browser probably has no Nerd Font, so that column shows the codepoint.

IconNerd FontUnicodeASCII
mailU+F01F0✉@
phoneU+F0DF0☎tel
linkU+F0339🔗~
settingsU+F0493⚙*
terminalU+F018D⌨>_
git-branchU+F418⎇Y
warningU+F002A⚠!
githubU+F02A4🐙gh

The shape

openicon.json, trimmed to a drawn icon and a brand logo.

{
  "openicon": "0.1",
  "name": "OpenIcon",
  "license": "MIT",
  "made_by": "ai",
  "grid": { "size": 24, "stroke": 2, "padding": 2 },
  "sizes": [16, 24, 32, 64, 128],
  "icons": [
    { "key": "mail", "category": "communication",
      "aliases": ["email", "envelope"], "keywords": ["message", "inbox"],
      "svg": "svg/mail.svg", "png": "png/{size}/mail.png",
      "tui": { "nerd": "\u{f01f0}", "nerd_code": "f01f0",
               "nerd_name": "md-email_outline", "unicode": "✉", "ascii": "@" } },
    { "key": "github", "category": "brand", "brand": true,
      "trademark": "GitHub and its logo are trademarks of their owner. …",
      "source": "simple-icons:github", "license": "CC0-1.0", "made_by": "human",
      "svg": "svg/github.svg",
      "tui": { "nerd_code": "f02a4", "unicode": "🐙", "ascii": "gh" } }
  ]
}

The eight rules

Every one of them degrades rather than fails.

RuleWhat it means
1. A set is a folderopenicon.json at the root, every path relative to it; unknown keys are kept.
2. The key is the nameKebab case: mail, git-pull-request. The key is the file name; a brand's key is its own name.
3. Aliases find one icon, keywords find manyemail is mail everywhere, so every key and alias is unique; keywords like money are shared search terms.
4. Files take the text colour24x24 view box, currentColor, and a grid block stating size, stroke and padding so sets can be matched.
5. Every icon has terminal glyphstui.nerd (with its codepoint and Nerd Fonts name), tui.unicode (one character), tui.ascii (1 to 4 printable characters).
6. A terminal picks the best it can drawNerd, then Unicode, then ASCII, from OPENICON_GLYPHS, NERD_FONT=1 or the locale. Pad to the cell width: an emoji can be two columns.
7. A brand says it is onebrand: true, a trademark note, its source and its own licence. Logos are taken from their owners or a set that publishes them, never redrawn.
8. The set says what made itmade_by and the W3C AI disclosure vocabulary, per set and per icon: the reference set's drawn icons are ai, its logos human.

What is deliberately absent

No colourIcons take the text colour. A brand's own colour is optional and ignorable.
No style variantsOutline and filled are two sets, or two keys. One key, one drawing.
No webfont formatA font is a build output a set may ship; SVG and the tui glyphs are the interchange.
No name registryKeys are the set's own; aliases are how it answers to another set's names.
No animationA spinner is a component, not an icon.

Use it

icon in profullstack/cli-tools builds the set; hqtui ships it as its default icon pack.

icon build --out ./openicon   # openicon.json, svg/, png/, sprite.svg
icon glyph mail               # the best glyph this terminal can draw

// hqtui
import { icon } from "@profullstack/hqtui";
icon("mail");                 // "\u{f01f0}", "✉" or "@"

Where everything lives