@opencode-ai/theme 0.0.0-dev-17667 → 0.0.0-dev-17670

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 BaseHue = Schema.Literals(["gray", "red", "orange", "yellow", "green", "cyan", "blue", "purple"]);
4
4
  export const HueAlias = Schema.Literals(["accent", "interactive", "neutral"]);
5
- export const ActionVariant = Schema.Literals(["primary", "destructive"]);
5
+ export const ActionVariant = Schema.Literals(["primary", "secondary", "destructive"]);
6
6
  export const ActionState = Schema.Literals(["disabled", "pressed", "focused", "selected", "hovered"]);
7
7
  export const FormfieldState = ActionState;
8
8
  export const FeedbackKind = Schema.Literals(["error", "warning", "success", "info"]);
@@ -55,6 +55,7 @@ const StatefulColorDefinition = Schema.Struct({
55
55
  });
56
56
  const ActionColorDefinition = Schema.Struct({
57
57
  primary: Schema.optional(StatefulColorDefinition),
58
+ secondary: Schema.optional(StatefulColorDefinition),
58
59
  destructive: Schema.optional(StatefulColorDefinition),
59
60
  });
60
61
  const TextFeedbackDefinition = Schema.Struct({
@@ -69,6 +69,7 @@ function migrateMode(theme, mode) {
69
69
  $focused: selected,
70
70
  $selected: primary,
71
71
  },
72
+ secondary: { default: "$text.subdued", $hovered: "$text.default" },
72
73
  destructive: { default: destructive, $disabled: textMuted },
73
74
  },
74
75
  formfield: {
@@ -94,6 +95,7 @@ function migrateMode(theme, mode) {
94
95
  },
95
96
  action: {
96
97
  primary: { default: "transparent", $hovered: backgroundPanel, $focused: primary, $selected: "transparent" },
98
+ secondary: { default: "transparent" },
97
99
  destructive: { default: color("error") },
98
100
  },
99
101
  formfield: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode-ai/theme",
4
- "version": "0.0.0-dev-17667",
4
+ "version": "0.0.0-dev-17670",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {