Skip to content

Design system 1/4: Add the Tailwind toolchain and tokens (not yet loaded) - #5765

Draft
awwaiid wants to merge 1 commit into
mainfrom
design-system/01-tailwind-foundation
Draft

awwaiid wants to merge 1 commit into
mainfrom
design-system/01-tailwind-foundation

Conversation

@awwaiid

@awwaiid awwaiid commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

Part of #5764. Stacked draft PR 1 of 4. Plan for the whole design-branch breakup: docs/design-system-slicing-plan.md on the design branch

Stack (review and merge in order; each PR shows only its own diff):

  1. Design system 1/4: Add the Tailwind toolchain and tokens (not yet loaded) #5765 Toolchain and tokens (no visible change) 👈 this PR
  2. Design system 2/4: Load the design system stylesheet alongside Bootstrap #5766 Load alongside Bootstrap (no visible change)
  3. Design system 3/4: Paint the existing UI with the design system's colour tokens #5767 Colour tokens on the existing UI
  4. Design system 4/4: Switch the typeface to Figtree #5768 Figtree typeface + date-picker spec fix

Description

Plumbing only. Nothing links the new stylesheet yet, so no page changes.

  • tailwindcss-rails ships the standalone Tailwind v4 CLI. No Node or package.json is needed to build or deploy, and it hooks assets:precompile.
  • app/assets/tailwind/application.css holds the design tokens (Figtree, indigo brand, slate neutrals), taken unchanged from the design branch.
  • Unlike the design branch, it loads only Tailwind's theme and utilities layers. Preflight (Tailwind's reset) is left out and class scanning is off. That is what lets PR 2 load it next to Bootstrap on the existing layouts, instead of moving pages to a new layout one area at a time.
  • Figtree is self-hosted under public/vendor/figtree, with its OFL licence.
  • Procfile.dev gains a css watcher. The rspec workflow builds the CSS; rspec-system already precompiles.
  • spec/assets/design_system_build_spec.rb pins two things. application.css must still resolve to the Bootstrap manifest, because the Tailwind source has the same logical name. The build must not include Preflight.

Dependencies: tailwindcss-rails 4.7.0, which pulls in tailwindcss-ruby 4.3.4. The lockfile diff is +8 lines.

Type of change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

  • bundle exec rspec spec/assets/design_system_build_spec.rb
  • I checked that the Preflight assertion fails when Preflight is put back.

🤖 Generated with Claude Code

https://claude.ai/code/session_01UCzWYw6Gq5YdmU4MaiGnQa

First slice of bringing the Ruby for Good design system over from the
`design` branch (#5764), concept by concept rather than page by page.

This is plumbing only. Nothing links the new stylesheet, so no page changes.

- tailwindcss-rails, which ships the standalone Tailwind v4 CLI: no Node
  and no package.json in the build or deploy path. It hooks
  assets:precompile, so deploys build it with no config change.
- app/assets/tailwind/application.css holds the design tokens (Figtree,
  indigo brand, slate neutrals), taken unchanged from the design branch.
- Unlike the design branch, it imports only Tailwind's theme and utilities
  layers, not Preflight, and turns class scanning off. That is what lets a
  later slice load it next to Bootstrap on the existing layouts, instead
  of moving pages to a new layout one area at a time.
- Figtree is self-hosted under public/vendor with its OFL licence.
- Procfile.dev gains a `css` watcher; the rspec workflow builds the CSS
  (rspec-system already precompiles).
- spec/assets/design_system_build_spec.rb pins that "application.css"
  still resolves to the Bootstrap manifest (the Tailwind source shares
  the name), and that the build has no Preflight in it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UCzWYw6Gq5YdmU4MaiGnQa
awwaiid added a commit that referenced this pull request Nov 19, 2026
docs/design-system-slicing-plan.md maps how to bring this branch to main
in small pieces: one design-system concept at a time across the whole
app (tokens, icons, buttons, tables, forms...), with Bootstrap and the
design system on the same page in the meantime, so navigation and button
placement don't change until a PR is explicitly about them.

The first four slices are open as stacked draft PRs (#5765-#5768). The
plan also lists fixes main needs regardless, product/IA decisions that
need their own sign-off, features riding along, and what should not land.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UCzWYw6Gq5YdmU4MaiGnQa

This branch has not been deployed

No deployments
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