API參考·官方預設
@oriatheme/presets
完整、經過驗證的官方 ThemeDefinition 集合及其最小類別目錄。包裝及環境
靜態主題定義資料;可在 SSR 和瀏覽器中使用。
pnpm add @oriatheme/presetsnpm install @oriatheme/presetsyarn add @oriatheme/presetsbun add @oriatheme/presets使用消費者專案已經選擇的套件管理器和鎖定檔案。範例僅使用包根匯出;不要從 src、dist 或註冊表範本深度匯入。
Exports
| 出口 | 簽名 | 描述 |
|---|---|---|
oriaPresetThemes | readonly ThemeDefinition[] | 運行時預設的完整集合。 |
oriaPresetCatalog | readonly PresetCatalogEntry[] | 每個條目都有主題和預設類別。 |
oriaDefaultTheme | ThemeDefinition | 從 @oriatheme/core 重新匯出。 |
named theme exports | ThemeDefinition | oriaOceanTheme、oriaForestTheme、oriaAuroraTheme 以及所有其他指定的官方預設。 |
import { oriaPresetThemes, oriaOceanTheme } from "@oriatheme/presets";
const presets = [...oriaPresetThemes];
console.log(oriaOceanTheme.id);命名導出包括oriaOceanTheme、oriaForestTheme、oriaAuroraTheme、oriaWarmReadingTheme、oriaMonochromeDeployTheme、oriaPrecisionFlowTheme、oriaManuscriptTheme、oriaElevatedSurfaceTheme、oriaBentoUiThemeialoria oriaSpatialUiTheme, oriaMonoTheme, oriaMinimalismTheme, oriaLineArtTheme, oriaGlassTheme, oriaNeoBrutalismTheme, oriaPunchcardTheme, oriaSketchbookTheme, oriaSoftClayTheme, oria像是Themeormeoriiiiiii 號oriaMemphisTheme, oriaSoftUi主題、oriaCyberpunk主題、oriaY2k主題、oriaRetroTerminal主題、oriaPaper主題、oriaCalm主題、oriaPlayful主題、oriaPremium主題、oriaOrganic主題、oriaCottageawaoriaReiaNature)主題、oriaReature.
重要類型和邊界
PresetCategory 是 oria、品牌產品、設計語言、視覺風格或情緒背景。官方目錄僅由OriaTheme版本維護;應用程式預設屬於消費者配置,不能模仿或覆蓋官方預設。