@opencode/theme 2.2.0 → 2.2.2

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.
@@ -51,7 +51,12 @@ function resolveExpandedTheme(definition) {
51
51
  ...resolveView(tokens, hue, categorical, hueSteps),
52
52
  surface: (name) => views[name],
53
53
  });
54
- views.dialog = definition["@dialog"] ? view(contextualize(base, definition["@dialog"])) : view(base);
54
+ const dialog = definition["@dialog"];
55
+ const dialogTokens = dialog ? contextualize(base, tokens(dialog)) : base;
56
+ views.dialog = view(dialogTokens);
57
+ // The footer override layers on the dialog surface, so footers keep every dialog token they don't override.
58
+ const footer = dialog?.["@footer"];
59
+ views["dialog.footer"] = footer ? view(contextualize(dialogTokens, footer)) : views.dialog;
55
60
  return view(base);
56
61
  }
57
62
  function tokens(definition) {