Theming #

A theme sets the color, type, radius, shadow, and motion the components use. Structural styles stay in @astryx-vue/core.

TypeScript
import '@astryx-vue/themes/neutral.css'

Put data-astryx-theme="neutral" on the element that should take the theme. On html, that is the whole app. On a smaller element, only that subtree. Neutral also writes the same variables on :root, so importing neutral.css is enough for a single-theme app. The other themes do not touch :root.

Figtree and JetBrains Mono load with every theme. Butter, Chocolate, Gothic, Matcha, Stone, and Y2K also load their own text faces.

The theme gallery shows every theme on the same storefront page.

Neutral, Butter, Chocolate, Gothic, Matcha, Stone, and Y2K each have an import snippet. Token names are shared; see CSS variables. How design tokens map onto those variables, and the color, typography, and motion pages, sit next to that. To change one value, read Extending a theme. To apply a theme object to one subtree, use the Theme, Media Theme, and Syntax Theme components.