Status
Codebase Audit
Where the three Distyl repos stand against Cognition v1.2 today. Run as a three-subagent parallel sweep against the canonical token set and hard-rule checklist.
- Owner
- Tony Yates · User Experience and Product Design
- Scope
- fe-distillery, distillery, distillery-platform
- Method
- Parallel subagent audit against the canonical Cognition v1.2 token set and hard-rule checklist.
344
Hardcoded hex in fe-distillery
2,061
Raw Tailwind color utilities
0
Cognition tokens defined
26
Rogue dark: classes
BLUF: the codebase is not yet ready to receive Cognition v1.2 values. The brand purple #5D4EE7 is already present, so a clean rename plus a dark-mode reshape preserves brand exactly — but the rename is full-stack.
Detailed findings
9 sections · detailed findings
- Cognition v1.2 is not implemented.
fe-distillerydefines zero Cognition v1.2 tokens. No--color-background-*,--color-text-*,--color-border-*,--color-feedback-*, or--radius-{none,sm,md,lg,xl,full}exist anywhere. The repo is on the legacy shadcn NewYork HSL-triplet system:--primary,--background,--foreground,--secondary,--muted,--accent,--destructive,--border,--input,--radius,--success,--warning. - Dark mode is implemented incorrectly.
fe-distilleryuses Tailwind'sdarkMode: ['class']strategy with a.darkselector, not[data-theme="dark"]on<html>. On top of that, 26 rawdark:Tailwind classes are scattered across impl code, bypassing tokens entirely. This is a structural fix. - Color and utility drift is at scale.
fe-distilleryhas 344 hardcoded hex literals and 2,061 raw Tailwind palette utilities (bg-gray-*,text-red-*, etc.), including inside shadcn primitives:components/ui/badge.tsxbakes in 30+ raw palette variants andcomponents/ui/toast.tsxusestext-red-300/50. The system is not being bypassed only by callers; the primitives themselves bypass the token system. distilleryis out of scope. It is a Python backend monorepo. The only FE surfaces are a Chrome-extension demo and a Flask eval dashboard, both off-spec and isolated. The expected customer-facing React surface does not live in this repo. Verify where it lives before drawing customer-rollout conclusions.distillery-platformis not relevant. Pure Helm/IaC, no FE code, no token files.- The codebase is not ready to receive Cognition v1.2 token values. The brand purple
#5D4EE7is already present infe-distilleryas--primary(245.88 76.12% 60.59%), so a rename plus dark-mode reshape preserves brand exactly. But the rename is full-stack:tailwind.config.js, every file incomponents/ui/, two parallel token blocks, six parallel MUI theme files, and dozens of consumers.