Skip to content

Redesign the docs with Tailwind CSS, removing Bootstrap#75

Open
scsmith wants to merge 3 commits into
mainfrom
tailwind-redesign
Open

Redesign the docs with Tailwind CSS, removing Bootstrap#75
scsmith wants to merge 3 commits into
mainfrom
tailwind-redesign

Conversation

@scsmith

@scsmith scsmith commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

Replaces Bootstrap 3 entirely with a Tailwind v4 build and redesigns the docs to match the refreshed brand. The layout moves to the established docs pattern: nav rail docked left (white panel, hairline border, wider on large screens), article centered in the remaining width. Sidebar sections collapse with native <details> — the current section opens by default, the home page opens everything, and an Expand/Collapse all toggle covers the rest; the rail pins beside the article when collapsed and flows with the page when expanded. Code fences get a connected language tab bar on a dark background with Rouge class-based highlighting, and the type scale now matches the dashboard's (.tw-application).

Markdown-generated tags carry no classes, so content styling lives as semantic CSS in tailwind/input.css alongside the brand tokens; layout chrome uses utilities. The generated stylesheet is built by npm/@tailwindcss/cli in dev (compose watcher) and in CI.

scsmith added 3 commits July 12, 2026 18:51
Replaces Bootstrap 3 with a Tailwind v4 build (npm @tailwindcss/cli,
brand tokens in tailwind/input.css) and redesigns the docs to match the
refreshed main-site brand: docked left nav rail with the article
centered in the remaining width, collapsible sidebar sections (native
details/summary, current section open, expand/collapse all, everything
open on the home page), redesigned code fences with a connected
language tab bar, Rouge class-based highlighting, and typography aligned
with the dashboard's type scale. Markdown content is styled through
semantic classes in the same Tailwind entry file since generated tags
carry no classes.
The redesign loaded the entire Font Awesome library (render-blocking
CDN CSS plus a webfont) for four glyphs: sidebar chevrons, the nav
external-link arrow and the mobile drawer icons. Inline SVGs via an
icon helper drop the external request; 1em sizing and currentColor
keep the existing CSS working unchanged.
The docs layouts now use named classes (docs-topbar, sidebar-items,
docs-footer-grid, ...) styled in tailwind/input.css instead of utility
strings in the HAML — this site is mostly markdown content styled
through element selectors already, so the templates read better as
semantic markup. Tailwind still provides the build, Preflight, theme
tokens and palette variables the semantic rules draw on. Rendered
output is unchanged (verified against computed-style baselines).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant