Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

ClickHouse 12 min read Case study mediumAdept

How we Rebuilt the Cloud Console (While Running It)

ClickHouse rebuilt its Cloud Console by merging a legacy Angular control plane and a React SQL console (from the Arctype acquisition) into a single React app, backed by a token-driven design pipeline. Design tokens are managed in Figma via Tokens Studio, exported as JSON, and compiled per theme into CSS variables by Amazon Style Dictionary for use with styled-components in Click UI, an open-source component library built on headless Radix-UI with Storybook visual testing and Vercel PR previews. To balance flexibility against consistency, flexible internal components are composed into stricter external ones. The migration ran in two phases, with some critical features built twice and regressions hitting the legacy console, before the unified console was rolled out gradually behind a feature flag.

Related posts

  • DRUIDS, the design system that powers Datadog

    Datadog Engineering easyNovice

    DRUIDS (Datadog Reusable User Interface Design System) was started in 2018 to keep UX patterns consistent as Datadog grew into dozens of products, and its docs site is now public. Adoption across hundreds of designers and front-end developers depends on making the system easy to understand, implement and contribute to. Supporting tooling includes Cmd+K search, an in-app "Loupe" that highlights components with links to GitHub, Figma and VS Code, editable playgrounds and a sandbox treating React/TypeScript/CSS code as the source of truth, API tables auto-generated from component source, contribution guidelines, and a CLI that scaffolds new components.

  • Why We Ripped Twin out of 400+ Components

    Railway mediumAdept

    Railway replaced twin.macro with vanilla Tailwind across 400+ React components, which removed the last dependency on Babel and let the monorepo move fully to SWC. Dev cold starts dropped from ~35s to ~1.5s, a full build from 220s to 42s, and CI from 4-6 to 2-4 minutes. The migration took ~30 PRs with a codemod and custom helpers. Nested selectors moved to Tailwind-processed CSS files, theme() calls became CSS variables, and Twin's inline-style precedence and automatic merging were handled by migrating pages first and core components last, using `!` overrides and tailwind-merge.

  • How Thumbtack structures their design system

    Figma mediumAdept

    Thumbtack's Thumbprint design system is organized in three layers: design tokens shared by web and native, an atomic CSS library built on the tokens, and accessible React components on top. Higher layers trade flexibility for productivity, accessibility and consistency. When a component doesn't fit, developers drop to a lower layer, such as the unstyled ModalCurtain under the styled Modal. That lets teams adopt the system incrementally and gives maintainers a way to spot popular workarounds without making one-off API changes. Publishing and documentation overhead is handled with a monorepo (Yarn Workspaces, Lerna), a GraphQL API over the tokens, and docs that make the happy path prominent and the escape hatches subtle.

  • Improving site performance by shipping more CSS

    GitHub Engineering mediumAdept

    GitHub migrated its Primer Design System and the github.com codebase from styled-components CSS-in-JS to CSS Modules, removing runtime styling costs on client and server. Primer components moved first, each behind a feature flag and checked against visual regression snapshots, which cut server-side render time by 55% and component initialization by 25%. A wrapper package, @primer/styled-react, kept the legacy `sx` prop working during the transition. About 7,760 `sx` props were then migrated with a VS Code plugin, codemods and later Copilot coding agents, followed by decoupling theming, and dotcom reached 100% CSS Modules in June 2026 without breakage.

  • Design Systems @ Replit: Better Tokens

    Replit mediumAdept

    Replit rebuilt the token layer of its RUI design system, the base of a hierarchy running tokens → utilities → components → patterns → design guidance. Numbered and vague names like `foreground-3` or `font-size-medium` were replaced: colors are named by intended use on a theme-independent "dimmest → strongest" contrast scale, backgrounds by elevation (root → highest), and pixel-based tokens by their measure (`font-size-14`). The set shrank from 83 to 72 tokens even after adding line-height and border-width categories. Raw CSS variables, which let 30–50 typos slip through, were swapped for a typed Emotion `vars` object that gives autocomplete and errors on misspelled tokens.

The quest for software engineering knowledge.

Look:
Layout: