安裝
- Node.js 20+
- Astro 7.0+
- pnpm(建議)或 npm / yarn
pnpm add @astromer/core @astromer/tokens astro@^7在版面或全域 CSS 中引入 token 與元件樣式:
@import "@astromer/tokens";@import "@astromer/core/styles";Celestial 是獨立、選用的視覺 Theme。只在要使用它的頁面加入 Theme CSS,並在該頁根元素設定 data-visual-theme="celestial";既有匯入不需要修改:
@import "@astromer/tokens/themes/celestial";參考 主題說明 與 Celestial 跨元件示範 查看三種外觀軸如何組合。
---import Button from '@astromer/core/components/Button.astro';---<Button variant="solid">按鈕</Button>