@opencode/theme 2.2.1 → 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.
@@ -2,7 +2,7 @@ import { Schema } from "effect";
2
2
  export const HueStep = Schema.Literals([100, 200, 300, 400, 500, 600, 700, 800, 900]);
3
3
  export const ActionVariant = Schema.Literals(["primary", "secondary", "destructive"]);
4
4
  export const ActionState = Schema.Literals(["disabled", "pressed", "focused", "selected", "hovered"]);
5
- export const SurfaceName = Schema.Literal("dialog");
5
+ export const SurfaceName = Schema.Literals(["dialog", "dialog.footer"]);
6
6
  export const FormfieldState = ActionState;
7
7
  export const FeedbackKind = Schema.Literals(["error", "warning", "success", "info"]);
8
8
  const Mode = Schema.Literals(["light", "dark"]);
@@ -133,6 +133,10 @@ const ThemeTokensDefinition = Schema.Struct({
133
133
  syntax: Schema.optional(SyntaxDefinition),
134
134
  markdown: Schema.optional(MarkdownDefinition),
135
135
  });
136
+ const DialogTokensDefinition = Schema.Struct({
137
+ ...ThemeTokensDefinition.fields,
138
+ "@footer": Schema.optional(ThemeTokensDefinition),
139
+ });
136
140
  const CompleteStatefulColorDefinition = Schema.Struct({
137
141
  base: ColorValue,
138
142
  $hovered: Schema.optional(ColorValue),
@@ -192,19 +196,19 @@ const ThemeDefinitionFields = Schema.Struct({
192
196
  hue: HueDefinition,
193
197
  categorical: CategoricalDefinition,
194
198
  ...CompleteThemeTokensDefinition.fields,
195
- "@dialog": Schema.optional(ThemeTokensDefinition),
199
+ "@dialog": Schema.optional(DialogTokensDefinition),
196
200
  });
197
201
  export const ThemeDefinition = ThemeDefinitionFields;
198
202
  export const BaseThemeDefinition = Schema.Struct({
199
203
  categorical: CategoricalDefinition,
200
204
  ...CompleteThemeTokensDefinition.fields,
201
- "@dialog": Schema.optional(ThemeTokensDefinition),
205
+ "@dialog": Schema.optional(DialogTokensDefinition),
202
206
  });
203
207
  export const ModeDefinition = Schema.Struct({
204
208
  hue: HueDefinition,
205
209
  categorical: Schema.optional(CategoricalDefinition),
206
210
  ...ThemeTokensDefinition.fields,
207
- "@dialog": Schema.optional(ThemeTokensDefinition),
211
+ "@dialog": Schema.optional(DialogTokensDefinition),
208
212
  });
209
213
  const FileMetadata = {
210
214
  $schema: Schema.optional(Schema.String),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode/theme",
4
- "version": "2.2.1",
4
+ "version": "2.2.2",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -34,7 +34,7 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@opentui/core": "0.7.0",
37
- "effect": "4.0.1"
37
+ "effect": "4.0.6"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@tsconfig/bun": "1.0.9",