Files
github-actions[bot] 70d35bab31
Merge-upstream / merge (push) Canceled after 0s
🗽 Sync 2026-09-13 02:49:28
2026-09-13 02:49:28 +08:00

14 lines
552 B
JavaScript

/**
* Copyright (C) 2025 eamonxg <eamonxiong@gmail.com>
* Licensed under the Apache License, Version 2.0.
*/
// shadcn's spec bound to the shared resolver. The operators and resolution
// mechanism live in @eamonxg/luci-theme-tokens; only the spec is ours.
import { createResolver } from "@eamonxg/luci-theme-tokens/engine";
import { DERIVATIONS } from "./spec.js";
import { DEFAULTS } from "./defaults.js";
export const resolveTokens = createResolver(DERIVATIONS);
export const resolveMode = (mode) => resolveTokens(mode, { ...DEFAULTS[mode] });