Skip to content

Conversation

@devin-ai-integration
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot commented Nov 26, 2025

Description

Refs: Customer request from Jeff Reiner via Slack

Removes the misleading warning messages that claimed "Fern will adjust the color to meet the minimum contrast ratio" during docs validation. These warnings were confusing because the CLI doesn't actually adjust colors - the color palette generation happens on the frontend.

Changes Made

  • Removed warning messages for contrast ratios between 3:1 and 7:1 that incorrectly stated Fern would adjust colors
  • Removed unused helper functions (getDesiredRatio, getUserReadableRatio, increaseForegroundContrast) that were never called
  • Kept the warning for contrast ratios below 3:1 (minimum for UI components) as this is a genuine accessibility concern

Testing

  • Manual testing completed - verified lint passes
  • Unit tests added/updated

Human Review Checklist

  • Verify this aligns with the user's intent - they wanted to disable the "automatic color changes" warnings
  • Confirm the remaining 3:1 contrast warning is still appropriate to keep

Requested by: Deep Singhvi (@dsinghvi)
Link to Devin run: https://app.devin.ai/sessions/106f8d6c624946349b23a34c147e5a28

@devin-ai-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant