Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

fix(control-ui): r1-m5 use tokenized recipe font sizes

Josué1d2078045cb0
diff --git a/control-ui/app/globals.css b/control-ui/app/globals.css
index b84d0badd..40e24b6ca 100644
--- a/control-ui/app/globals.css
+++ b/control-ui/app/globals.css
@@ -9153,7 +9153,7 @@ td.cu-registry-description {
.cu-recipe-inline-error {
color: var(--cu-danger);
- font-size: 0.75rem;
+ font-size: var(--cu-font-size-xs);
}
.cu-recipe-manifest-editor {
@@ -9176,7 +9176,7 @@ td.cu-registry-description {
font-family:
ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New',
monospace;
- font-size: 0.85rem;
+ font-size: var(--cu-font-size-md);
resize: vertical;
}
diff --git a/control-ui/lib/__tests__/controlTypographyStyles.test.ts b/control-ui/lib/__tests__/controlTypographyStyles.test.ts
new file mode 100644
index 000000000..912aacbfb
--- /dev/null
+++ b/control-ui/lib/__tests__/controlTypographyStyles.test.ts
@@ -0,0 +1,21 @@
+import { describe, expect, it } from 'vitest'
+import { readFileSync } from 'node:fs'
+import { resolve } from 'node:path'
+
+const css = readFileSync(resolve(__dirname, '../../app/globals.css'), 'utf8')
+
+function cssRuleBody(selector: string) {
+ const escaped = selector.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')
+ const match = css.match(new RegExp(`(?:^|\\n)${escaped}\\s*\\{([^}]*)\\}`, 'm'))
+ if (!match) throw new Error(`Missing CSS rule for ${selector}`)
+ return match[1]
+}
+
+describe('Control UI typography stylesheet contract', () => {
+ it('keeps recipe diagnostics on the declared Control UI font-size scale', () => {
+ expect(cssRuleBody('.cu-recipe-inline-error')).toMatch(/font-size:\s*var\(--cu-font-size-xs\)/)
+ expect(cssRuleBody('.cu-recipe-manifest-editor__textarea')).toMatch(
+ /font-size:\s*var\(--cu-font-size-md\)/
+ )
+ })
+})