@bilkobibitkov/host-kit
v0.7.2
Published
Shared React component kit for bilko.run sibling apps — ToolHero, ScoreCard, GameShell, typed bus, game tokens, manifest CLI.
Maintainers
Readme
@bilkobibitkov/host-kit
Shared React component kit used by bilko.run sibling apps.
Install
pnpm add @bilkobibitkov/host-kit
# peer deps:
pnpm add react @clerk/clerk-reactComponents
ToolHero— dark gradient hero sectionScoreCard— score + grade + verdictSectionBreakdown— per-pillar score barsCompareLayout— A/B side-by-side with winner bannerRewrites— AI rewrite suggestions with copy buttonsCrossPromo— sibling-app cross-promo linkstrack()— analytics event helper (POSTs to bilko.run/api/analytics/event)
Each themable component accepts a theme prop:
interface Theme {
heroGradient: string; // tailwind classes, e.g. "from-[#1a1530] via-[#0f0d1a] to-[#1a1530]"
glowColor: string; // CSS color, e.g. "rgba(99,102,241,0.14)"
accentText: string; // tailwind class for dark-on-light, e.g. "text-indigo-700"
accentTextLight: string; // tailwind class for light-on-dark, e.g. "text-indigo-400"
}Pass your tool's theme; the kit assumes no defaults.
