Files
hyperframes/packages/studio/tsup.config.ts
Miguel Ángel e666a8a2a3 feat(studio): the code editor follows studio's light and dark theme (#4862)
* feat(studio): the code editor follows studio's light and dark theme

Replaces One Dark with a Studio editor theme whose colours are theme.css variables: eight syntax role tokens (One Light and One Dark hues held at 4.5:1), editor surfaces from Studio's roles, all measured by the contrast ratchet.

* test(studio): the code editor theme takes every colour from a theme.css token

* fix(studio): code stays at 4.5:1 when a selection or search match sits on the active line

Syntax tokens are tuned for the selection over the active line, which the ratchet now measures; matches are outlined rather than stacking another wash; the search panel's pressed button and special characters follow the theme; unused tooltip rules go.

* fix(studio): code matches carry no background, and types read apart from constants

Search and selection matches are outlined only, so CodeMirror's lime match wash and stacked washes are gone; type and constant tokens split by hue in both themes.

* fix(studio): the current search match reads apart by width, not colour alone

A 2px accent outline on the current match and a muted 1px outline on other copies of the selected word.
2026-10-01 10:13:48 -07:00

40 lines
897 B
TypeScript

import { defineConfig } from "tsup";
export default defineConfig({
tsconfig: "tsconfig.lib.json",
entry: {
index: "src/index.ts",
ui: "src/ui.ts",
player: "src/playerEntry.ts",
"styles/tailwind-preset": "src/styles/tailwind-preset.ts",
},
format: ["esm"],
dts: true,
sourcemap: true,
clean: false,
splitting: true,
external: [
"@codemirror/autocomplete",
"@codemirror/commands",
"@codemirror/lang-css",
"@codemirror/lang-html",
"@codemirror/lang-javascript",
"@codemirror/lang-markdown",
"@codemirror/language",
"@codemirror/search",
"@codemirror/state",
"@codemirror/view",
"@hyperframes/core",
"@hyperframes/player",
"@hyperframes/sdk",
"@lezer/highlight",
"@phosphor-icons/react",
"bpm-detective",
"mediabunny",
"react",
"react-dom",
"react/jsx-runtime",
"zustand",
],
});