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 / categories-collections-and-campaigns

Categories, collections, and campaigns

Categories, collections, and campaign pages give users guided ways to move from the full icon catalog to a useful set of icons. Categories describe shared topics, collections group icons by source or purpose, and campaign pages give an important set its own story and focused discovery flow. This page is a child of Content collections and discovery pages; see Web icon discovery for the wider catalog flow and Blog and feed publishing for editorial content.

Category metadata

Category names and counts

Category metadata comes from each icon's category labels. The catalog turns those labels into a sorted list with counts, while the default view keeps cloud architecture taxonomy out of the main brand-focused list. When a user opens one collection, the category list becomes specific to that collection so the labels describe the icons on screen.

The category surface supports two related goals:

  • /categories gives an overview of the available brand and AWS architecture categories. Each card shows a count and a small sample of icons.
  • A category page gives one label a stable landing URL and presents the matching icons in the normal discovery view.

References: src/…/icons.ts• L3-17 src/…/icons.ts• L66-98 src/…/page.tsx• L75-113

Category URLs

Category links use a shared URL rule. Most categories remain filter views on the home route with a category query value. A category with a dedicated landing page uses /category/<slug> instead, which keeps navigation and search metadata on one canonical page.

The slug is a lower-case form of the category name with non-alphanumeric runs replaced by hyphens. The current dedicated category is Google 2026. The same URL rule is used by the category index, sidebar, and icon detail links, so a category link keeps the same meaning across the site.

References: src/…/categories.ts• L6-36 src/…/sidebar-shell.tsx• L23-30 src/…/page.tsx• L128-163

Category filters

Catalog filtering

The main discovery view combines collection, category, favorite, text, sort, and view choices. Collection filtering runs first. Category and favorite filters then narrow that collection, and text search works on the remaining icons. The active choices stay in the URL, so a filtered view can be shared and can be restored by navigation.

When a collection is active, its category counts are recalculated from that collection. This prevents a category count from suggesting results that belong to another icon set. A category selection on a dedicated category page keeps the user on that page while other filters change.

References: src/…/home-content.tsx• L44-66 src/…/home-content.tsx• L93-129 src/…/home-content.tsx• L171-210

Filter navigation

The sidebar is the main cross-page filter surface. It exposes all icons, categories, favorites, and collections, and it also provides the featured Google 2026 campaign. On smaller screens the same choices move into a navigation sheet. Category selection closes the navigation and routes to the selected category rather than creating a second, separate filtering model.

The site also shows active filter chips above a filtered grid. These chips let users remove one constraint or clear the full filter state without losing the current page context.

References: src/…/sidebar.tsx• L95-125 src/…/sidebar.tsx• L201-321 src/…/home-content.tsx• L274-309 src/…/home-content.tsx• L400-454

Collection routes

Collection groups

A collection is a named icon set with a shared source or use case. The catalog currently presents brand, AWS, Azure, Google Cloud, and Kubernetes groups as browseable collections. Counts come from the icons assigned to each group, so collection navigation gives users a clear boundary around the set they are exploring.

Collection pages use /collection/<name> and accept only the supported collection names. Each route has its own title, description, search terms, canonical URL, and collection item count. The page then opens the shared discovery view with that collection selected, which preserves the same search, sort, category, favorites, and icon-grid behavior as the main catalog.

CollectionUser-facing purpose
Brand IconsLogos and brand marks
AWS ArchitectureAWS service and resource icons
Azure ServicesMicrosoft Azure service icons
Google CloudGoogle Cloud Platform icons
KubernetesOfficial Kubernetes architecture icons

References: src/…/icons.ts• L3-17 src/…/icons.ts• L127-135 src/…/sidebar.tsx• L39-45 src/…/page.tsx• L15-107

Collection discovery pages

The home experience uses the active collection to shape its curated content. It selects popular icons, recent additions, and the most common categories from that collection, then shows the full set below those entry points. A collection route supplies the starting collection, while the collection tabs on the home experience let users change the visible set without leaving the guided page.

This structure supports both quick selection and broad browsing. A user can start with a popular service, move to a category, or continue to the complete collection without switching to a different data model.

References: src/…/home-hero.tsx• L288-415 src/…/home-hero.tsx• L653-764 src/…/page.tsx• L148-193

Google 2026 campaign

Campaign landing page

Google 2026 is a dedicated campaign page for a Google brand refresh set. It has a canonical /category/google-2026 URL instead of using only the generic category grid. The page presents the Workspace mark as the lead icon, names the set as a brand kit, and connects the campaign to individual icon detail pages.

The campaign is treated as a special category landing in shared navigation. A link that still uses the older home-route category query is redirected to the campaign URL, and links from the Google category page point users to the same experience.

References: src/…/page.tsx• L8-24 src/…/page.tsx• L59-61 src/…/google-2026-landing.tsx• L20-30 src/…/home-content.tsx• L48-58

Campaign filters and actions

The campaign page narrows its own icon set without changing the global catalog filter state. Text search checks the icon title, slug, aliases, and category labels. Color chips group the set into broad color families such as red, blue, purple, and neutral. The page disables color choices that have no matching icons and offers one clear action for all active filters.

Each tile remains a path to the icon detail page. It also gives quick access to SVG copy, SVG download, and the icon's main color value. This lets the campaign serve both as a visual guide to the set and as a direct starting point for reuse.

References: src/…/google-2026-landing.tsx• L32-91 src/…/google-2026-landing.tsx• L193-320 src/…/google-2026-tile.tsx• L19-105

Campaign discovery signals

The landing page also describes the set for search engines as a collection page and an unordered list of image assets. Each listed icon points to its detail page and its SVG asset. The category page and its links therefore serve two audiences at once: people who want a clear curated set and systems that need stable relationships between the set, its icons, and the site.

References: src/…/page.tsx• L63-113

Curated page composition

Category index composition

The category index is an orientation page rather than a full icon grid. It groups category cards into brand and AWS architecture sections, gives each card a count, and uses a few sample icons to make the category concrete before the user opens it. This makes the page useful for choosing a path into the catalog without duplicating the full result set.

References: src/…/page.tsx• L34-71 src/…/page.tsx• L101-165

Collection landing composition

The main collection landing guides users from context to action. It starts with a collection-specific hero, then places returning-user context when available, collection tabs, popular icons, recent additions, top categories, and the complete collection in that order. Each layer offers a different level of commitment: a quick known choice, a recent path, a thematic entry, or unrestricted browsing.

The home page and collection routes share this composition. The route changes the starting collection and metadata, while the page still uses the same curated sections and the same downstream icon grid.

References: src/…/home-hero.tsx• L443-571 src/…/home-hero.tsx• L574-651 src/…/home-hero.tsx• L653-764 src/…/page.tsx• L52-68

Cross-page composition

Dedicated category and collection pages are framed by the shared sidebar shell. That shell keeps category and collection navigation available on desktop and in a mobile sheet, while the page content remains responsible for its own landing or filtered view. The result is a common route frame with specialized content in the main area.

References: src/…/sidebar-shell.tsx• L17-79 src/…/page.tsx• L83-127 src/…/page.tsx• L115-123

Change checklist

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

  • When a category gets or loses a dedicated landing page, update the shared category URL rule, redirect behavior, category index links, sidebar links, and any campaign callout that points to it.
  • When collection names or assignments change, keep the supported route set, collection metadata, sidebar labels, counts, and curated home sections aligned.
  • When category labels change in the catalog, check both the default category list and the collection-scoped category counts so architecture labels do not leak into the default brand view.
  • When the Google 2026 set changes, keep the campaign filter source, color groups, lead icon, detail links, and collection-page structured data in step.
  • When query-based filter behavior changes, preserve the route context for category and collection pages so search, category, sort, and view changes do not send users back to the home route.

Important failure modes

TriggerConsequenceGuard
A dedicated category is linked with only /?category=...Users see a generic filtered view or a redirect instead of the intended campaign landingKeep categoryUrl and the home-view redirect in agreement with the dedicated landing set
A collection is added to catalog data but not to the supported route setSidebar counts can show a collection that has no valid collection pageUpdate collection route validation and its page metadata when adding a collection
Architecture categories are counted in the default sourceBrand category navigation becomes crowded with cloud taxonomyKeep architecture collections excluded from the default category count and include them when a collection is active
A collection or category page updates filters from the wrong base pathA user loses the curated page context while searching or sortingBuild filter URLs from the active category slug or collection route
A campaign icon is absent from the set used by its landing pageThe lead mark, tile count, or structured item list becomes incompleteTreat the campaign category assignment and landing-page icon set as one contract

Key files

FileWhy to read it
src/…/icons.tsDefines the catalog concepts that drive category counts, collection counts, and collection membership.
src/…/categories.tsDefines the shared category slug and canonical URL rules.
src/…/page.tsxShows how the category index turns metadata into entry points.
src/…/page.tsxShows the generic category landing and its handoff to the shared discovery view.
src/…/page.tsxShows the supported collection routes and their page-level metadata.
src/…/home-content.tsxShows how route state becomes collection, category, and other catalog filters.
src/…/home-hero.tsxShows the curated order of collection landing content.
src/…/page.tsxDefines the Google 2026 campaign route and its collection-page description.
src/…/google-2026-landing.tsxShows the campaign story, search, color filtering, and icon-set presentation.
src/…/google-2026-tile.tsxShows the campaign tile as both a detail link and a quick reuse surface.