API 参考 · 官方预设
@oriatheme/presets
完整、已经校验的官方 ThemeDefinition 集合与最小分类目录。包与运行环境
静态 ThemeDefinition 数据;可在 SSR 和浏览器中使用。
pnpm add @oriatheme/presetsnpm install @oriatheme/presetsyarn add @oriatheme/presetsbun add @oriatheme/presets选择使用方项目已有的一种包管理器和 lockfile;示例只使用 package root export,不要从 src、dist 或 registry template 深层导入。
Exports
| Export | Signature | Description |
|---|---|---|
oriaPresetThemes | readonly ThemeDefinition[] | Complete collection for runtime presets. |
oriaPresetCatalog | readonly PresetCatalogEntry[] | Each entry has theme and a PresetCategory. |
oriaDefaultTheme | ThemeDefinition | Re-exported from @oriatheme/core. |
named theme exports | ThemeDefinition | oriaOceanTheme, oriaForestTheme, oriaAuroraTheme, and every other named official preset. |
import { oriaPresetThemes, oriaOceanTheme } from "@oriatheme/presets";
const presets = [...oriaPresetThemes];
console.log(oriaOceanTheme.id);全部 named exports:oriaOceanTheme、oriaForestTheme、oriaAuroraTheme、oriaWarmReadingTheme、oriaMonochromeDeployTheme、oriaPrecisionFlowTheme、oriaManuscriptTheme、oriaElevatedSurfaceTheme、oriaBentoUiTheme、oriaDashboardTheme、oriaEditorialTheme、oriaAiNativeTheme、oriaCommandCenterTheme、oriaSpatialUiTheme、oriaMonoTheme、oriaMinimalismTheme、oriaLineArtTheme、oriaGlassTheme、oriaNeoBrutalismTheme、oriaPunchcardTheme、oriaSketchbookTheme、oriaSoftClayTheme、oriaGoldenBazaarTheme、oriaTheoremTheme、oriaNeumorphismTheme、oriaMemphisTheme、oriaSoftUiTheme、oriaCyberpunkTheme、oriaY2kTheme、oriaRetroTerminalTheme、oriaPaperTheme、oriaCalmTheme、oriaPlayfulTheme、oriaPremiumTheme、oriaOrganicTheme、oriaCottagecoreTheme、oriaNatureTheme、oriaRetroTheme、oriaKawaiiTheme、oriaSunsetTheme。
重要类型与边界
PresetCategory 为 oria、brand-product、design-language、visual-style 或 mood-context。官方 catalog 只由 OriaTheme 发布流程维护;应用预设属于使用方配置,不能冒充或覆盖官方预设。