Skip to content

Template Assets

Ivor Zhou edited this page Aug 7, 2026 · 2 revisions

Template Assets

Prefer reusing existing media from apps/docsite/public/template-assets/.

This folder contains reusable demo content for templates and blocks. apps/docsite/public/images/ is for imagery owned by the Astryx docsite, such as branding, landing-page visuals, and theme UI.

Choosing an asset

Category Common naming Intended use
Photos colorful-*, light-*, moody-* Heroes, cards, and galleries
Illustrations illustrative-* Drawn or editorial visuals
Textures texture-* Backgrounds and surfaces
People DATA-* Avatars and fictional demo identities
Theme assets Theme-specific names Theme showcases and related demos

These are naming guidelines, not a complete inventory. Browse the folder to see what is currently available.

Using an asset

Reference assets with a root-relative path:

const COVER_IMAGE = '/template-assets/light-working-vertical-2.png';

These assets appear in Astryx previews. When a template is scaffolded, the CLI replaces them with a placeholder rather than copying the files into the user’s project.

Adding an asset

Add a new asset only when the existing collection does not meet the template’s needs. Place it in apps/docsite/public/template-assets/ and ensure Astryx has the rights to use and redistribute it in this public repository.

Clone this wiki locally