Skip to content

Final cleanup: remove the Tailwind 'important' flag and the old global SCSS #2288

Open

Description

@trillium

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.scss and client/src/sass/AddNew.scss (no importers today), and any other file that is dead by now.
  • Move the rules in client/src/index.scss that still matter into client/src/tailwind.css under @layer base, using theme tokens: the body font, size, background image (bg-image-skyline.webp, and the bg-image-pier.webp switch at 500 px), the aliseoregular @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-h5 sizes, label, a, ol, ul). Then delete index.scss and App.scss, and their imports in index.jsx and App.jsx.
  • client/src/common/datepicker/index.scss styles react-datepicker. Keep it (as a plain .css file 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'; in client/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 .scss remains, remove the sass dev dependency. If postcss.config.js only runs autoprefixer, remove it and the autoprefixer dependency (Tailwind's Vite plugin already prefixes); otherwise leave it.
  • Remove the unused classnames dependency (nothing in client/src imports it; confirm with git grep classnames).
  • Update the "UI components and styling" section of CONTRIBUTING.md so it no longer mentions the migration or the temporary flag.

Acceptance Criteria

  • @import 'tailwindcss'; has no important.
  • 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, and yarn build pass; 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

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

No one assigned

    Labels

    feature: Design systemmilestone: missingrole: Front Endsize: 5pt

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions