@opencode-ai/theme
Advanced tools
@@ -107,2 +107,6 @@ export declare const DEFAULT_CATEGORICAL: readonly ["blue", "purple", "green", "orange", "red", "cyan"]; | ||
| }; | ||
| secondary: { | ||
| default: string; | ||
| $hovered: string; | ||
| }; | ||
| destructive: { | ||
@@ -154,2 +158,5 @@ default: string; | ||
| }; | ||
| secondary: { | ||
| default: string; | ||
| }; | ||
| destructive: { | ||
@@ -383,2 +390,6 @@ default: string; | ||
| }; | ||
| secondary: { | ||
| default: string; | ||
| $hovered: string; | ||
| }; | ||
| destructive: { | ||
@@ -430,2 +441,5 @@ default: string; | ||
| }; | ||
| secondary: { | ||
| default: string; | ||
| }; | ||
| destructive: { | ||
@@ -432,0 +446,0 @@ default: string; |
@@ -111,2 +111,3 @@ export const DEFAULT_CATEGORICAL = [ | ||
| primary: { default: "$hue.neutral.200", $disabled: "$hue.neutral.500" }, | ||
| secondary: { default: "$text.subdued", $hovered: "$text.default" }, | ||
| destructive: { default: "$hue.red.200", $disabled: "$hue.neutral.500" }, | ||
@@ -143,2 +144,3 @@ }, | ||
| }, | ||
| secondary: { default: "transparent" }, | ||
| destructive: { | ||
@@ -326,2 +328,3 @@ default: "$hue.red.600", | ||
| primary: { default: "$hue.neutral.200", $disabled: "$hue.neutral.500" }, | ||
| secondary: { default: "$text.subdued", $hovered: "$text.default" }, | ||
| destructive: { default: "$hue.red.200", $disabled: "$hue.neutral.500" }, | ||
@@ -358,2 +361,3 @@ }, | ||
| }, | ||
| secondary: { default: "transparent" }, | ||
| destructive: { | ||
@@ -360,0 +364,0 @@ default: "$hue.red.600", |
@@ -5,3 +5,3 @@ import { Schema } from "effect"; | ||
| export const HueAlias = Schema.Literals(["accent", "interactive", "neutral"]); | ||
| export const ActionVariant = Schema.Literals(["primary", "destructive"]); | ||
| export const ActionVariant = Schema.Literals(["primary", "secondary", "destructive"]); | ||
| export const ActionState = Schema.Literals(["disabled", "pressed", "focused", "selected", "hovered"]); | ||
@@ -59,2 +59,3 @@ export const FormfieldState = ActionState; | ||
| primary: Schema.optional(StatefulColorDefinition), | ||
| secondary: Schema.optional(StatefulColorDefinition), | ||
| destructive: Schema.optional(StatefulColorDefinition), | ||
@@ -61,0 +62,0 @@ }); |
@@ -72,2 +72,3 @@ import { RGBA } from "@opentui/core"; | ||
| }, | ||
| secondary: { default: "$text.subdued", $hovered: "$text.default" }, | ||
| destructive: { default: destructive, $disabled: textMuted }, | ||
@@ -98,2 +99,3 @@ }, | ||
| primary: { default: "transparent", $hovered: backgroundPanel, $focused: primary, $selected: "transparent" }, | ||
| secondary: { default: "transparent" }, | ||
| destructive: { default: color("error") }, | ||
@@ -100,0 +102,0 @@ }, |
+1
-1
| { | ||
| "$schema": "https://json.schemastore.org/package.json", | ||
| "name": "@opencode-ai/theme", | ||
| "version": "0.0.0-dev-17667", | ||
| "version": "0.0.0-dev-17669", | ||
| "type": "module", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
Sorry, the diff of this file is too big to display
934239
12.29%8864
8.27%