Skip to content

fix some tailwind problems#295

Merged
spring1843 merged 2 commits into
mainfrom
fix-tailwind
May 24, 2026
Merged

fix some tailwind problems#295
spring1843 merged 2 commits into
mainfrom
fix-tailwind

Conversation

@spring1843

Copy link
Copy Markdown
Owner

Fix minor tailwind related problems.

Copilot AI review requested due to automatic review settings May 24, 2026 03:31
@netlify

netlify Bot commented May 24, 2026

Copy link
Copy Markdown

Deploy Preview for freedevtool ready!

Name Link
🔨 Latest commit 14f02f0
🔍 Latest deploy log https://app.netlify.com/projects/freedevtool/deploys/6a1274b4a0de4f0008238c78
😎 Deploy Preview https://deploy-preview-295--freedevtool.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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 --radius to 0rem (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 thread client/src/index.css Outdated
Comment thread client/src/index.css
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>
@spring1843 spring1843 merged commit e08f982 into main May 24, 2026
4 of 5 checks passed
@spring1843 spring1843 deleted the fix-tailwind branch May 24, 2026 03:47
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.

2 participants