fix some tailwind problems#295
Merged
Merged
Conversation
✅ Deploy Preview for freedevtool ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
There was a problem hiding this comment.
Pull request overview
Adjusts styling to address Tailwind/theme-related UI issues, primarily around dark mode appearance and global CSS consistency.
Changes:
- Added theme awareness to Recharts tooltip label styling in the debt repayment and compound interest tools.
- Updated global CSS to use CSS variables for syntax highlighting colors (including dark mode variants).
- Switched the global
--radiusto0rem(flat design) and cleaned up/adjusted some custom utility styles (e.g., mind map styles).
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| client/src/pages/tools/debt-repayment.tsx | Uses current theme to set Recharts tooltip labelStyle color. |
| client/src/pages/tools/compound-interest.tsx | Uses current theme to set Recharts tooltip labelStyle color. |
| client/src/index.css | Introduces themeable hljs token CSS variables, updates global radius, and refactors utility styles. |
| export default function DebtRepaymentCalculator() { | ||
| const tool = getToolByPath("/tools/debt-repayment"); | ||
| const { theme } = useTheme(); | ||
| const labelColor = theme === "dark" ? "#fff" : "#000"; |
Comment on lines
58
to
+60
| const tool = getToolByPath("/tools/compound-interest"); | ||
| const { theme } = useTheme(); | ||
| const labelColor = theme === "dark" ? "#fff" : "#000"; |
Comment on lines
+163
to
167
| .dark .hljs-number, | ||
| .dark .hljs-attr, | ||
| .dark .hljs-punctuation { | ||
| color: #73daca; | ||
| /* Values already updated via .dark CSS variables above */ | ||
| } |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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.
Fix minor tailwind related problems.