Skip to content

chore: use tailwindcss for styling#6

Open
jiaxinnns wants to merge 2 commits into
git-mastery:mainfrom
jiaxinnns:chore/tailwind
Open

chore: use tailwindcss for styling#6
jiaxinnns wants to merge 2 commits into
git-mastery:mainfrom
jiaxinnns:chore/tailwind

Conversation

@jiaxinnns
Copy link
Copy Markdown
Contributor

Fixes #3

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Migrates the app's styling from inline style objects and per-component CSS files to Tailwind CSS v4 utility classes, per issue #3. Mantine components remain in place; layout primitives like Flex/Stack/Group/Box are largely replaced with <div> + Tailwind utilities, and a small @theme block preserves the custom gm-green/gm-bone/gm-dark-green colors.

Changes:

  • Add @tailwindcss/vite + tailwindcss v4, register the Vite plugin, and introduce src/ui/tailwind.css with theme tokens.
  • Delete App.css, index.css, and TourList.module.css; replace inline style={} and many Mantine layout components with Tailwind className utilities across pages and components.
  • Refactor ExerciseList status indicators into a single StatusDot component driven by a Record<ProgressState, ...> map.

Reviewed changes

Copilot reviewed 15 out of 16 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
vite.config.ts Registers the Tailwind Vite plugin.
src/ui/tailwind.css New Tailwind entrypoint with custom color theme tokens.
src/ui/main.tsx Imports the new tailwind.css.
src/ui/index.css Removed; typography defaults are no longer applied.
src/ui/App.css Removed legacy starter styles.
src/ui/App.tsx Switches AppShell.Main style to Tailwind classes.
src/ui/pages/Onboarding.tsx Rewrites step layouts using Tailwind utilities and trims unused imports.
src/ui/components/Header/Header.tsx Replaces inline styles with utility classes.
src/ui/components/Website/WebsiteWrapper.tsx Converts layout to flex utilities.
src/ui/components/Terminal/Terminal.tsx Uses Tailwind classes for terminal container.
src/ui/components/Navigation/LeftBarWrapper.tsx Rewrites sidebar layout; changes scroll behavior (see comment).
src/ui/components/Navigation/TourList.tsx Replaces module CSS + inline styles with Tailwind classes.
src/ui/components/Navigation/TourList.module.css Removed in favor of Tailwind transition utilities.
src/ui/components/Navigation/ExerciseList.tsx Consolidates status dot components and converts layout to utilities.
package.json / package-lock.json Adds tailwindcss and @tailwindcss/vite dev dependencies.
Comments suppressed due to low confidence (1)

src/ui/index.css:1

  • Removing index.css drops the typography defaults that set font-family: 'Inter' on the body and 'Noto Serif'/Georgia on h1h6. There is no equivalent replacement in tailwind.css (no --font-* theme tokens or base styles), so all text in the app now falls back to the browser/Mantine default fonts. If the intent is to keep the previous look, please re-establish these font families either via @theme tokens in tailwind.css and a @layer base rule, or in the Mantine theme configuration.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +14 to +22
return <div className="flex flex-col justify-between h-full">
{/* Tours */}
<Stack style={{
overflowY: "scroll",

}}>

<div className="flex flex-col overflow-y-scroll">
<TourList />

{/* Lessons (scrollable) */}
<Flex flex={1}>
<div className="flex flex-1">
<ExerciseList />

</Flex>

</Stack>
<Flex style={{ flexGrow: 1 }}>

</Flex>
</div>
</div>
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.

Add TailwindCSS

2 participants