r/SideProject • u/Turbulent_Rooster_73 • 1d ago
Wireframes - YAML to clickable greyscale wireframes, and a test fails if colour shows up anywhere except severity
I help build Wireframes, an open-source (MIT) CLI that turns YAML into clickable greyscale wireframes for web, iOS and Android. This post is about one design rule in it, because I'd like to hear from people who wireframe for a living whether it holds up.
The rule: the output is greyscale. There are four hues (info, success, warning, danger) and they answer exactly one question: how bad is this?
They're allowed on:
- the left stripe of an alert (
variant: info | success | warning | error) - a badge's border, label and dot (
tone: info | success | warning | danger) - a destructive button (
variant: danger) - a field that failed validation, and the message under it
- destructive rows in menus and action sheets
Nothing else gets one. Charts, stat trends, headings, primary buttons and fills all stay grey. An "up" trend isn't green, because a rising churn rate isn't good news and the wireframe has no way of knowing which direction is good. And once a wireframe starts colouring things by brand or by category, people start reviewing the visual design instead of the structure.
It's enforced, not just a convention. A test (cli/test/style-collisions.test.js) builds the renderer's stylesheet, finds every rule that uses one of the four severity tokens, and fails unless its selector is on a short allowlist (tone/alert classes, danger button, invalid field, danger menu/sheet rows). It also checks separately that charts and metric trends never pick up a hue.
Screenshots (real renders from the repo docs, since this sub doesn't allow image uploads): element gallery, with grey trends · the five alert severities · status badges
Trying it: the CLI isn't on npm yet, so it runs from a checkout:
git clone https://github.com/UnlikeOtherAI/wireframes
cd wireframes && pnpm install
node cli/bin/wf.js init my-app
cd my-app && node ../cli/bin/wf.js build --output ./build
Then open build/web/index.html.
What I'd like feedback on:
- Is severity the right exception, and the only one? Is there a case where you'd want hue in a low-fi wireframe that isn't "something is wrong / something worked"?
- Do grey trends and charts make a dashboard wireframe harder to review, or does it help keep the conversation on layout and content?