rubyforgood / rubyforgood/awbw
Enforce Tailwind conventions in CI (class order + no arbitrary text sizes)
Nobody has claimed this yet.
- Dominant language
- Ruby
- Stars
- 15
- Forks
- 26
- Avg merge
- 12h 42m
- Merged PRs (30d)
- 242
Description
PR #2175 added the tooling to keep Tailwind tidy but nothing enforces it, so main keeps reintroducing arbitrary values (it happened on every rebase of that PR). Convergence is currently manual.
Proposal
Add a CI check (GitHub Actions) that fails when Tailwind conventions drift:
- Class order — run
ai/tw-sort --check --all(rustywind--check-formatted); non-zero exit if any file is unsorted. - No arbitrary font sizes — grep-gate for
text-[…px/rem]inapp/views/app/frontend/app/helpers; fail with a pointer to thetext-2xs/3xs/4xsscale.
Notes
- The repo is not yet fully sorted (only touched files converge in #2175), so
--check --allwould fail today. Options: run the sorter repo-wide first (one big mechanical PR), or scope the check to changed files only until the tree is clean. - Keep it fast — rustywind is a native binary; the grep is trivial.
Context: split out of #2175.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Review PR #2175 and the existing ai/tw-sort tooling first; inspect how GitHub Actions currently runs checks. Decide whether the check targets all files or changed files while the tree is unsorted, then verify the workflow rejects unsorted Tailwind classes and arbitrary text sizes under app/views, app/frontend, and app/helpers.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github-actions, tailwindcss
- Domain
- ci-cd, frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100