Introducing a new way to review your PRs.

Read the announcement

glincker / thesvg

The open SVG brand library: 7,600+ brand logos and cloud icons (AWS, Azure, GCP) as official SVG. Search, copy, ship via npm, CDN, CLI, React, Vue, Svelte, Figma, VS Code, Raycast and MCP. Free, MIT, no gatekeeping.

View on GitHub

27 documents · Updated Nov 23, 2026

docs / ui-icons-and-design-system

UI icons and design system

The UI icon system provides a shared set of own-drawn interface glyphs for the website, tools, and user products. It keeps one 24 by 24 drawing aligned across seven visual looks, live style controls, web routes, CDN files, and typed packages for common UI frameworks.

Product scope

Interface glyphs

The UI icon catalog is for product interface symbols rather than brand logos. It covers common actions and states plus focused sets for space, agents, themes, charts, devices, and other product needs. Each glyph uses currentColor, so the same asset can follow the color of its surrounding text in light or dark themes. packages/…/README.md

The catalog gives users one source for browsing, testing, copying, downloading, and installing interface glyphs. Brand icons remain a separate product area with a separate data model and package family.

References: packages/…/README.md• L7-17 src/…/layout.tsx• L6-18

Visual looks

Every glyph has the same set of visual looks. A look changes the treatment of the drawing without changing its meaning or grid. The set includes outline, glass, duotone, offset, fill, glass outline, and depth. This lets a product use one catalog across normal controls, active states, layered surfaces, and hero areas. packages/…/README.md

The system also supports a shared style layer. Users can change weight, scale, corners, end cuts, shadow, and accent color in the web experience. Those choices affect the live preview and can be carried in a page link.

References: src/…/style.ts• L37-49 src/…/lab.tsx• L133-188 src/…/ui-state.tsx• L50-141

UI icon catalog

Glyph records

The catalog treats a glyph as a named drawing with tags, a category, a release set, and quality data. The web layer adds the set name and release state so it can group icons into releases and show new drops without changing the drawing itself. src/…/glyphs.ts

Categories come from stable name rules. Tags support search and help users find an icon when its exact slug is not known. Popular entries provide a useful first view, while filters narrow the same catalog by set, category, query, or favorite state.

References: src/…/glyphs.ts• L33-57 src/…/style.ts• L5-34 src/…/browse.tsx• L15-43

Release sets

Release sets give the catalog a product shape. They group glyphs by purpose and release date, expose counts in the navigation, and let the changelog describe what changed between drops. Generated set data is the bridge between the source drawings and the catalog used by the site. src/…/sets.generated.ts

The catalog marks the newest release as new. This keeps the label stable for the current data set and avoids making the browser and server use different dates.

References: src/…/sets.generated.ts• L8-16 src/…/glyphs.ts• L33-54 src/…/shell.tsx• L28-75

Generated data

Source and derived data

The source of truth is the set data under src/data/ui/sets. The UI data build reads those sets and produces the manifest, one JSON file for each look, and the generated set import list. It also checks slug shape, duplicate names, tag coverage, SVG output, and quality before it accepts the result. scripts/…/build-data.ts

The derived files serve different readers:

References: scripts/…/build-data.ts• L1-5 scripts/…/build-data.ts• L15-39 scripts/…/build-data.ts• L63-104

Public assets

The site and CDN-facing tools use per-icon SVG paths derived from the look files. The site build writes public/…/<look>.svg, and icons with a motion preset also receive an animated form. The generated files are delivery assets rather than a second source of truth. scripts/…/emit-svgs.mjs

This split lets a consumer choose a complete manifest, a whole look file, or one stable SVG URL. It also keeps package and web output tied to the same generated look data.

References: scripts/…/emit-svgs.mjs• L1-25 src/…/page.tsx• L93-127 packages/…/build.mjs• L9-26

Rendering and transformation engine

Shape model

The rendering engine turns source SVG nodes into a small shape model. Paths, lines, rectangles, circles, ellipses, and polygons become subpaths made of lines, curves, and arcs. This common form lets every look work from the same geometry instead of maintaining separate artwork for each style. src/…/types.ts

The engine can scale the drawing around the canvas center and can return both SVG output and geometry points. The latter supports the detail view's grid and anchor inspection without changing the catalog data.

References: src/…/types.ts• L1-27 src/…/parse.ts• L147-179 src/…/transform.ts• L1-12 src/…/serialize.ts• L20-39

Look generation

Rendering applies a house style for the selected look, then builds the final SVG from the shared shapes. Outline keeps the stroke form. Fill finds body and detail regions. Duotone and offset add a second tone or shifted layer. Glass uses pane and edge treatment. Depth adds an extruded layer. Line-only glyphs use a heavier outline when a filled body is not possible. src/…/render.ts

The result stays themeable through currentColor. Accent colors affect secondary layers, while the main ink follows the element's text color. Unique IDs keep masks, gradients, and filters isolated when several rendered copies share a page.

References: src/…/render.ts• L141-170 src/…/render.ts• L190-209 src/…/render.ts• L211-362 src/…/glyph.tsx• L8-25

Web rendering

The browse page renders a grid of glyphs and applies the selected look and style state to each card. A detail page adds a larger preview, look picker, style lab, code samples, downloads, optical sizes, and an in-context view. The same render engine drives both the preview and copied SVG, so the displayed result and the delivered result stay aligned. src/…/detail.tsx

The site also uses the UI catalog for its own chrome through UiGlyph. That keeps navigation and controls on the same visual system while allowing the site to choose a look based on size and context. src/…/ui-glyph.tsx

References: src/…/detail.tsx• L230-345 src/…/glyph.tsx• L8-25 src/…/ui-glyph.tsx• L8-33

Product routes

Catalog route

/ui is the main UI icon workspace. It combines search, popular icons, set and category filters, favorites, infinite list loading, look selection, and the style lab. The URL stores the main choices so a design can be shared and reopened with the same look. src/…/page.tsx

The route is wrapped by one UI state provider and one shell. This gives the list, sidebar, detail pages, and mobile controls one shared view of the active look, filters, favorites, accent, and style changes.

References: src/…/layout.tsx• L11-19 src/…/browse.tsx• L15-108 src/…/ui-state.tsx• L50-176

Detail route

/ui/<slug> is the focused glyph page. It explains the glyph's category and grid, previews all looks, exposes style controls, and produces SVG or framework code for the chosen state. Related glyphs lead back to the catalog through the same category context. src/…/page.tsx

The route rejects unknown slugs and creates static paths from the generated catalog. A detail link therefore names one catalog record and cannot silently render a different glyph.

References: src/…/page.tsx• L6-28 src/…/detail.tsx• L230-345

Extension and release routes

/ui/extensions is the adoption page for packages, editors, design tools, the CLI, and the MCP server. /ui/changelog is the release view for new sets. Together they connect the web catalog to the tools that consume its manifest and SVG delivery paths. src/…/page.tsx

These routes are product entry points rather than separate icon sources. They describe how the same generated data can move from browsing into a design tool, editor, command line, agent, or package.

References: src/…/page.tsx• L23-69 src/…/page.tsx• L1-8 src/…/shell.tsx• L59-75

Distributable packages

Raw SVG package

@thesvg/ui distributes the manifest, one JSON file per look, and one SVG file per icon and look. It is the lowest-level package for build systems, design tools, icon fonts, custom renderers, and consumers that do not need a framework component. packages/…/package.json

The package also exposes animated SVG files for icons with motion presets. The files keep currentColor for inline use, while an image or native surface can choose its own color through its host system.

References: packages/…/README.md• L7-17 packages/…/README.md• L53-68 packages/…/build.mjs• L11-26

Framework packages

The typed packages expose one component per glyph and look. They share the same generated markup but adapt the outer component to React, Vue, Svelte, or React Native. Per-icon files and per-look exports support small imports and keep unused looks out of a consumer bundle. scripts/…/package-builder.mjs

The browser packages use currentColor and accept size, shadow, and motion props. React Native has no currentColor, so @thesvg/ui-react-native uses an explicit color prop and react-native-svg. packages/…/build.mjs

PackageMain use
@thesvg/ui-reactTyped React components
@thesvg/ui-vueTyped Vue 3 components
@thesvg/ui-svelteTyped Svelte components
@thesvg/ui-react-nativeReact Native components with explicit color

References: scripts/…/package-builder.mjs• L8-10 scripts/…/package-builder.mjs• L66-119 packages/…/package.json• L15-40 packages/…/package.json• L25-61 packages/…/package.json• L25-61 packages/…/package.json• L25-63

Tool consumers

The CLI and MCP server consume the public manifest and look files rather than importing the website's in-memory catalog. The CLI accepts the ui: prefix, validates a look, fetches the matching SVG, and writes it as SVG, JSX, or Vue output. MCP exposes search, get, URL, look, and category actions for agents. packages/…/ui.ts

This boundary keeps UI icon failures separate from brand icon calls. It also gives tools a stable network contract that works without bundling the website.

References: packages/…/ui.ts• L59-179 packages/…/add.ts• L78-100 packages/…/ui-tools.ts• L37-137

The UI icon web experience explains the browse, detail, search, style, and route behavior in more depth. The UI icon package builds explains the shared build path and package outputs.

Change checklist

When these files or sections are changed, remember to consider these:

  • When a source set or look changes, rebuild the manifest, look files, generated set list, public SVGs, and all UI packages together.
  • When a look name changes, update the engine variant list, manifest consumers, route labels, package export names, CLI validation, MCP validation, and CDN paths.
  • When SVG IDs or mask behavior changes, check web copies and framework component copies on the same page for ID isolation.
  • When catalog fields change, keep the website glyph shape, generated manifest shape, CLI index validation, MCP index validation, and package metadata aligned.
  • When currentColor behavior changes, review inline web rendering, raw SVG use, image and CDN use, and the explicit color path for React Native.

Important failure modes

TriggerConsequenceGuard
Source set data changes without the UI data buildThe website and packages use stale names, sets, or SVG looksRun the UI data build and its check mode before packaging
A look is missing from generated look dataDetail pages, package builds, CLI fetches, or MCP requests fail for that lookGenerate every declared look and validate package output
A rendered copy reuses mask or gradient IDsOne icon can take the color or effect of another icon on the same pageScope IDs per rendered instance
A line-only glyph is treated as a fill bodyFill-like looks lose the icon or render as an empty shapeUse the engine fallback and surface the coverage state
A currentColor SVG is used through an image surfaceThe icon does not inherit the surrounding text colorInline the SVG or use a package path with an explicit color prop
A UI slug is sent through the brand CLI pathA valid UI icon is reported as missing or can collide with a brand fileUse the ui: prefix and write the ui- output name

Key files

FileWhy to read it
src/…/*.jsonSource drawings, tags, and release groups
scripts/…/build-data.tsContract between source sets and generated catalog data
src/…/glyphs.tsWebsite catalog view and lookup model
src/…/style.tsCategories, look names, and house style defaults
src/…/render.tsShared transformation and SVG rendering behavior
src/…/browse.tsxMain catalog browsing flow
src/…/detail.tsxDetail, preview, copy, and download experience
src/…/page.tsxUI glyph route and static page contract
scripts/…/package-builder.mjsShared framework package generation model
packages/…/build.mjsRaw SVG package output
packages/…/ui.tsNetwork contract used by CLI consumers