Usage
import { agent, goal } from '@mnmx/engine';
import {
mnmxVisualLanguage,
visualLanguageGoal,
} from '@mnmx/engine/stdlib';
const owned = goal.with({
owner: 'team:checkout',
nextReview: { on: 'change' },
});
const reviewer = agent({
id: 'checkout-reviewer',
model: 'project-review-model',
prompt: './reviewer.md',
});
export default owned(visualLanguageGoal(mnmxVisualLanguage, reviewer));
Import the preset as a VisualLanguage. Use visualLanguageGoal to review an interface against it or defineVisualLanguage to derive a project-specific style.
Design tokens
- paper
#f6f0e7- ink
#30221d- muted
#69564b- line
#d8cabd- accent
#934b32- highlight
#ebcba8- focus
#b56743- heading-font
'Manrope', sans-serif- body-font
'DM Sans', sans-serif- control-radius
5px- panel-radius
10px
Design rules
- palette
- Use paper for the canvas, ink for primary text, muted for supporting text, and line for separators. Reserve accent for the main action. On an inverse ink surface, use paper text and highlight for emphasis.
- type
- Use the heading face at medium weight with tight tracking for the main title. Use the body face for reading and compact control labels. Use local sans-serif fallbacks when the fonts are unavailable.
- layout
- Align headings and controls to shared edges. Give the main content generous outer space. Group related rows with thin rules and tighter internal spacing. Let controls wrap or stack on small screens.
- surfaces
- Use flat surfaces and modest radii. Where a working group needs emphasis, an inverse panel can frame a group of paper-colored elements. Choose its role according to the content.
- interaction
- Distinguish the main action with a filled accent control. Keep secondary actions quiet and readable. Show keyboard focus with a visible offset ring. Distinguish selection, completion and disabled states by more than hue.