New:Socket for Asana Is Now Available.Learn more
Get Started

@opencode-ai/theme

Package Overview
Dependencies
Maintainers
2
Versions
761
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opencode-ai/theme - npm Package Compare versions

Comparing version
0.0.0-dev-18348
to
0.0.0-dev-18349
+12
-0
dist/tui/defaults.d.ts

@@ -123,2 +123,8 @@ export declare const DEFAULT_CATEGORICAL: readonly ["blue", "purple", "green", "orange", "red", "cyan"];

};
status: {
running: string;
question: string;
permission: string;
unread: string;
};
feedback: {

@@ -405,2 +411,8 @@ error: {

};
status: {
running: string;
question: string;
permission: string;
unread: string;
};
feedback: {

@@ -407,0 +419,0 @@ error: {

@@ -121,2 +121,8 @@ export const DEFAULT_CATEGORICAL = [

},
status: {
running: "$hue.interactive.800",
question: "$text.feedback.info.default",
permission: "$text.feedback.warning.default",
unread: "$hue.accent.800",
},
feedback: {

@@ -337,2 +343,8 @@ error: { default: "$hue.red.700", subdued: "$hue.red.600" },

},
status: {
running: "$hue.interactive.200",
question: "$text.feedback.info.default",
permission: "$text.feedback.warning.default",
unread: "$hue.accent.200",
},
feedback: {

@@ -339,0 +351,0 @@ error: { default: "$hue.red.300", subdued: "$hue.red.400" },

+2
-2

@@ -1,2 +0,2 @@

import type { ThemeTokensDefinition } from "./index.js";
export declare function fallback(): ThemeTokensDefinition;
import type { Mode, ThemeTokensDefinition } from "./index.js";
export declare function fallback(mode: Mode): ThemeTokensDefinition;

@@ -0,3 +1,4 @@

import { DEFAULT_THEME } from "./defaults.js";
import { ActionVariant, FeedbackKind } from "./schema.js";
export function fallback() {
export function fallback(mode) {
const red = "#ff0000";

@@ -9,2 +10,3 @@ return {

formfield: { default: red },
status: DEFAULT_THEME[mode].text.status,
feedback: Object.fromEntries(FeedbackKind.literals.map((kind) => [kind, { default: red }])),

@@ -11,0 +13,0 @@ },

@@ -26,3 +26,3 @@ import { RGBA } from "@opentui/core";

const defaults = expandTheme(selectTheme(DEFAULT_THEME, selected.mode));
const core = expandTokens(fallback());
const core = expandTokens(fallback(selected.mode));
const merged = document.standalone ? mergeTheme(core, definition) : mergeTheme(core, defaults, definition);

@@ -29,0 +29,0 @@ if (!merged["hue"])

@@ -73,2 +73,8 @@ import { Schema } from "effect";

formfield: Schema.optional(StatefulColorDefinition),
status: Schema.optional(Schema.Struct({
running: Schema.optional(ColorValue),
question: Schema.optional(ColorValue),
permission: Schema.optional(ColorValue),
unread: Schema.optional(ColorValue),
})),
feedback: Schema.optional(Schema.Struct({

@@ -75,0 +81,0 @@ error: Schema.optional(TextFeedbackDefinition),

@@ -25,2 +25,8 @@ import type { RGBA } from "@opentui/core";

readonly formfield: FormfieldColor;
readonly status: {
readonly running: RGBA;
readonly question: RGBA;
readonly permission: RGBA;
readonly unread: RGBA;
};
readonly feedback: Readonly<Record<FeedbackKind, {

@@ -27,0 +33,0 @@ readonly default: RGBA;

{
"$schema": "https://json.schemastore.org/package.json",
"name": "@opencode-ai/theme",
"version": "0.0.0-dev-18348",
"version": "0.0.0-dev-18349",
"type": "module",

@@ -30,2 +30,3 @@ "license": "MIT",

"build": "bun run script/build.ts",
"test": "bun test --timeout 30000",
"typecheck": "tsgo --noEmit"

@@ -32,0 +33,0 @@ },

Sorry, the diff of this file is too big to display