Repository navigation
Open
Labels
feature: Design systemRelated to design patterns and componentsmilestone: missingrole: Front Endsize: 5ptCan be done in 19-30 hours
Description
Trillium Firstmate 🤖
Overview
With MUI gone, remove the temporary important flag and the leftover SCSS, so Tailwind is the only styling system and normal CSS layer rules apply. Decided: the flag is removed here.
Dependencies
Action Items
Run yarn commands from client/, and commit client/package.json and client/yarn.lock together.
- List what is left:
git ls-files 'client/src/**/*.scss'. Every remaining file must be either deleted or deliberately kept (see below). - Delete SCSS files that nothing imports, for example
client/src/sass/Navbar.scssandclient/src/sass/AddNew.scss(no importers today), and any other file that is dead by now. - Move the rules in
client/src/index.scssthat still matter intoclient/src/tailwind.cssunder@layer base, using theme tokens: thebodyfont, size, background image (bg-image-skyline.webp, and thebg-image-pier.webpswitch at 500 px), thealiseoregular@font-face, and the Google font imports. Delete the bare-element rules that Tailwind's reset and the components now cover (button { width: 100%; height: 100% },h1-h5sizes,label,a,ol, ul). Then deleteindex.scssandApp.scss, and their imports inindex.jsxandApp.jsx. -
client/src/common/datepicker/index.scssstylesreact-datepicker. Keep it (as a plain.cssfile or in@layer components) unless Optional: replace react-datepicker in the admin reports with a shared date picker #2289 has landed. - Change
@import 'tailwindcss' important;back to@import 'tailwindcss';inclient/src/tailwind.css. - Walk the whole app at 1280 px and 390 px and compare to screenshots from before the epic (home, check-in new/returning, login, welcome, profile, users, permissions, projects list/create/edit, members, meeting times/event form, admin dashboard, leader dashboard, events, design-system). Fix any class that only worked because of
important: usually a missing!or a rule that needs a more specific selector in the component itself. - If no
.scssremains, remove thesassdev dependency. Ifpostcss.config.jsonly runsautoprefixer, remove it and theautoprefixerdependency (Tailwind's Vite plugin already prefixes); otherwise leave it. - Remove the unused
classnamesdependency (nothing inclient/srcimports it; confirm withgit grep classnames). - Update the "UI components and styling" section of
CONTRIBUTING.mdso it no longer mentions the migration or the temporary flag.
Acceptance Criteria
-
@import 'tailwindcss';has noimportant. -
git ls-files 'client/src/**/*.scss'lists no file, or only files with a written reason in the PR. - The walk-through screenshots show no visible difference from before the epic.
-
yarn typecheck,yarn test, andyarn buildpass; final JS/CSS size is reported. - The Vitest checks from the earlier tickets still pass without changes (if one needed a change, explain why).
Resources/Instructions
- Starting numbers from the earlier inventory: 28 SCSS files, 2,106 lines.
- Tailwind
@layer base: https://tailwindcss.com/docs/adding-custom-styles#adding-base-styles - Files:
client/src/index.scss,client/src/App.scss,client/src/sass/*,client/src/tailwind.css,client/postcss.config.js.
Additional Notes
- Why wait until now: the old global rules and MUI styles are not in any CSS layer, so they beat Tailwind classes. The flag hid that conflict; removing it exposes any place that relied on it.
- If this is too large for one PR, split it as (1) remove SCSS and move base rules, then (2) remove the flag and fix the fallout. Tell the epic owner so the checklist can be updated.
- Decided for the whole epic: every screen keeps pixel parity with today. This is a change of tooling, not a redesign. Fonts, colors, spacing, sizes, and breakpoints must look the same after the change.
Metadata
Metadata
Assignees
Labels
feature: Design systemRelated to design patterns and componentsmilestone: missingrole: Front Endsize: 5ptCan be done in 19-30 hours
Type
Projects
- StatusShow more project fieldsNew Issue Approval
Activity