feat: add tailwind with toggle theme#7
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Adds Tailwind CSS v4 styling support and a light/dark theme toggle to the Angular UI, including global design tokens (CSS variables) and an early theme bootstrap to avoid flash-of-incorrect-theme.
Changes:
- Integrated Tailwind via PostCSS and added a Tailwind entrypoint stylesheet.
- Implemented a theme service + toggle component and wired it into the root app shell.
- Updated global styles and HTML lint rules to accommodate Tailwind utility class naming.
Reviewed changes
Copilot reviewed 12 out of 13 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| yarn.lock | Adds Tailwind/PostCSS-related dependency resolutions. |
| package.json | Adds Tailwind + PostCSS dev dependencies. |
| angular.json | Registers Tailwind stylesheet in the global styles pipeline. |
| .postcssrc.json | Configures PostCSS to run the Tailwind v4 plugin. |
| .lint/.htmlhintrc | Disables id-class-value rule to allow Tailwind class naming. |
| src/tailwind.css | Tailwind entrypoint + custom dark variant + theme tokens. |
| src/styles.scss | Defines global CSS variables for light/dark palettes and base element styling. |
| src/index.html | Adds font loading and an early inline script to set the initial theme class. |
| src/app/core/theme/theme.service.ts | Adds ThemeService to manage theme state, persistence, and DOM class toggling. |
| src/app/core/theme/theme-toggle.ts | Adds a theme toggle button component with accessible labeling. |
| src/app/app.ts | Imports the toggle component and wires theme support into the root component. |
| src/app/app.html | Introduces a basic app shell layout with header, toggle, and router outlet. |
| src/app/app.scss | Adds app-shell styling (currently unused by the template). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Checklist: