From 3470dc38e96886cc4bcf4cb6debe52ed093c5e9f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 1 May 2026 03:04:12 +0000 Subject: [PATCH] Revert "Undo VE sketchy theme, it was completely broken" This reverts commit 8e874a02797193146ea1f0db8db5f4cf6ea33805. Co-authored-by: rhengles <8967+rhengles@users.noreply.github.com> --- ve-project/src/themes/runtime/registry.ts | 8 ++++++++ ve-project/src/themes/sketchy/global/runtime.ts | 11 +++++++++++ ve-project/src/themes/sketchy/ui/buttons/runtime.ts | 5 +++++ 3 files changed, 24 insertions(+) create mode 100644 ve-project/src/themes/sketchy/global/runtime.ts create mode 100644 ve-project/src/themes/sketchy/ui/buttons/runtime.ts diff --git a/ve-project/src/themes/runtime/registry.ts b/ve-project/src/themes/runtime/registry.ts index 8cc75427..71ba5d6b 100644 --- a/ve-project/src/themes/runtime/registry.ts +++ b/ve-project/src/themes/runtime/registry.ts @@ -23,6 +23,8 @@ import { bootstrapScrollspyRuntimeClasses } from '../bootstrap/ui/scrollspy/runt import { bootstrapSpinnerRuntimeClasses } from '../bootstrap/ui/spinners/runtime' import { bootstrapToastRuntimeClasses } from '../bootstrap/ui/toasts/runtime' import { bootstrapTooltipRuntimeClasses } from '../bootstrap/ui/tooltips/runtime' +import { sketchyButtonRuntimeClasses } from '../sketchy/ui/buttons/runtime' +import { sketchyGlobalRuntimeClasses } from '../sketchy/global/runtime' import type { VeThemeDefinition, VeThemeFamily } from './contracts' import { VE_DEFAULT_THEME_SLUG, isKnownThemeSlug, parseKnownThemeSlug } from './theme-slugs' @@ -67,8 +69,14 @@ const bootstrapThemeDefinition = buildThemeDefinition('bootstrap', { listGroup: bootstrapListGroupRuntimeClasses, }, ['ui']) +const sketchyThemeDefinition = buildThemeDefinition('sketchy', { + global: sketchyGlobalRuntimeClasses, + buttons: sketchyButtonRuntimeClasses, +}) + const implementedThemeRegistry: Record = { bootstrap: bootstrapThemeDefinition, + sketchy: sketchyThemeDefinition, } export type VeThemeResolutionReason = 'unknown-theme' | 'missing-family-contract' diff --git a/ve-project/src/themes/sketchy/global/runtime.ts b/ve-project/src/themes/sketchy/global/runtime.ts new file mode 100644 index 00000000..147f0877 --- /dev/null +++ b/ve-project/src/themes/sketchy/global/runtime.ts @@ -0,0 +1,11 @@ +import { bsTheme } from '../../bootstrap/_vars.css' +import { body } from '../../bootstrap/body.css' +import { containerFluid } from '../../bootstrap/container.css' + +// Temporary adapter: reuse Bootstrap global classes while Sketchy-specific +// global styling tokens are implemented family-by-family. +export const sketchyGlobalRuntimeClasses = { + bsTheme, + body, + containerFluid, +} as const diff --git a/ve-project/src/themes/sketchy/ui/buttons/runtime.ts b/ve-project/src/themes/sketchy/ui/buttons/runtime.ts new file mode 100644 index 00000000..c6e62f87 --- /dev/null +++ b/ve-project/src/themes/sketchy/ui/buttons/runtime.ts @@ -0,0 +1,5 @@ +import { bootstrapButtonRuntimeClasses } from '../../../bootstrap/ui/buttons/runtime' + +// Temporary adapter: reuse migrated VE button classes while Sketchy-specific +// button styling tokens are implemented family-by-family. +export const sketchyButtonRuntimeClasses = bootstrapButtonRuntimeClasses