安裝
- 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";整站視覺 Theme 與頁面版型由獨立的 Astrolith 專案提供;Astromer 安裝只包含元件、基礎 token 和語義色盤。
---import Button from '@astromer/core/components/Button.astro';---<Button variant="solid">按鈕</Button>