@linkdesk/contracts 0.1.51 → 0.1.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/linkdesk.d.ts +4 -0
- package/package.json +1 -1
package/linkdesk.d.ts
CHANGED
|
@@ -269,6 +269,8 @@ export interface ColorwayMeta {
|
|
|
269
269
|
accent: string;
|
|
270
270
|
bgWindow: string;
|
|
271
271
|
};
|
|
272
|
+
/** 派生极性(2026-11-24)——该配色生效 token 算出的 light/dark;跨明暗标签读它,不读配方声明 */
|
|
273
|
+
polarity: "light" | "dark";
|
|
272
274
|
}
|
|
273
275
|
/** recipe metadata — returned by theme.listRecipes() (all available recipes + colorways + preview colors, spec 06 §2).
|
|
274
276
|
* domains = which domains the recipe contributes (basis for mash-up source filtering, spec 10 §2); type = light/dark category. */
|
|
@@ -276,6 +278,8 @@ export interface RecipeMeta {
|
|
|
276
278
|
id: string;
|
|
277
279
|
name: string;
|
|
278
280
|
type: "light" | "dark";
|
|
281
|
+
/** 派生极性(首配色)——`type` 为作者 hint;UI 分组/标签一律读它 */
|
|
282
|
+
polarity: "light" | "dark";
|
|
279
283
|
colorways: ColorwayMeta[];
|
|
280
284
|
domains: ThemeDomain[];
|
|
281
285
|
}
|