kwakseongjae/oh-my-design / skills/omd-brand-look
omd-brand-look
VerifiedRepaint one screen with the measured tokens of verified real-company references (verified_v2 only), render it at 1440·1024·768·390 in a real browser, and report rule-by-rule PASS/FAIL with the cause of each FAIL. Output: per-brand themed copies, a same-screen × N-brands grid, 4:5 Threads cards and report.md. It never invents a value: every slot is a declared frontmatter value, an unfillable slot is omitted (the user's own variable stays), and fonts carry the G3 labels (brand face / substitute — not the brand face / safe default (not the brand face)). It does not edit the user's source, render logos, or bootstrap DESIGN.md (that is omd-init). MVP: the shipped sample screen only. 트리거: "/omd-brand-look", "브랜드 룩으로 칠해 봐", "토스·당근·Linear 룩으로 비교", "같은 화면 다섯 브랜드", "repaint this screen in Toss / Linear / Apple look", "brand look grid".
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 6.8 KB |
| examples/sample.html | other | 13.8 KB |
| scripts/browser.mjs | script | 1.6 KB |
| scripts/check.mjs | script | 23.7 KB |
| scripts/look.mjs | script | 12.8 KB |
| scripts/target.mjs | script | 1.9 KB |
| scripts/tokens.mjs | script | 29.1 KB |
scripts/target.mjs
View on GitHub// What omd-brand-look reads from the screen it repaints (MVP: examples/sample.html).
import { readFileSync } from 'node:fs';
import path from 'node:path';
import { fileURLToPath } from 'node:url';
import { SLOT_NAMES } from './tokens.mjs';
export const SAMPLE = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', 'examples', 'sample.html');
export const readTarget = (file = SAMPLE) => readFileSync(file, 'utf8');
// The screen's own values for the shadcn slots (its first :root block). An omitted slot keeps this value.
export function keptValues(html) {
const block = /^\s*:root\s*\{([\s\S]*?)\}/m.exec(html)?.[1] ?? ''; // a rule at line start, not a mention in a comment
const out = {};
for (const m of block.matchAll(/--([a-z-]+):\s*(#[0-9a-f]{6})\s*;/gi)) if (SLOT_NAMES.includes(m[1])) out[m[1]] = m[2].toLowerCase();
return out;
}
// The slot pairs the screen paints text with: the first class of each text element is t-<text slot>__<background slot>.
export function textPairs(html) {
const seen = new Map();
for (const m of html.matchAll(/class="t-([a-z-]+?)__([a-z-]+)[\s"]/g)) seen.set(`${m[1]}|${m[2]}`, [m[1], m[2]]);
return [...seen.values()];
}
// The pair an element label from text-contrast / break.mjs ("button.t-primary-foreground__primary") paints.
export const pairOfLabel = (label) => {
const m = /\.t-([a-z-]+?)__([a-z-]+)$/.exec(label ?? '');
return m ? [m[1], m[2]] : null;
};
// The repainted copy: one <style data-omd-brand-look> block, last in <head>. When the brand sets --font-sans the screen's
// default font link goes, so the face that paints is the one the label names (G3).
export function themedCopy(html, css, { dropDefaultFont }) {
let out = dropDefaultFont ? html.replace(/[ \t]*<link[^>]*data-omd-default-font[^>]*>\n?/g, '') : html;
return out.replace('</head>', `<style data-omd-brand-look>\n${css}\n</style>\n</head>`);
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |