Skip to content

fix: transparent toasts#180

Merged
elliotBraem merged 3 commits intomainfrom
fix/transparent-toasts
Jun 20, 2025
Merged

fix: transparent toasts#180
elliotBraem merged 3 commits intomainfrom
fix/transparent-toasts

Conversation

@itexpert120
Copy link
Collaborator

@itexpert120 itexpert120 commented Jun 20, 2025

Preview of all variants of toasts

image

Summary by CodeRabbit

  • Style
    • Added a new "destructive" color palette to the app's theme, enhancing visual consistency for destructive actions.

@vercel
Copy link

vercel bot commented Jun 20, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
curatedotfun-app 🛑 Canceled (Inspect) Jun 20, 2025 9:53pm

@coderabbitai
Copy link

coderabbitai bot commented Jun 20, 2025

Walkthrough

The Tailwind CSS configuration was updated to include a new destructive color palette with DEFAULT and foreground variants, both utilizing CSS custom properties through the oklch() color function. No other configuration or public API changes were made.

Changes

File(s) Change Summary
apps/app/tailwind.config.js Added a destructive color group with DEFAULT and foreground variants using CSS custom props.

Poem

The palette grows, a color anew,
"Destructive" now shines in the CSS view.
With custom props and oklch flair,
Foreground and default, a stylish pair.
Tailwind’s theme hops on with glee,
More vibrant than a carrot can be! 🥕


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 160dc98 and 1d96034.

📒 Files selected for processing (1)
  • apps/app/tailwind.config.js (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: Run Tests
🔇 Additional comments (1)
apps/app/tailwind.config.js (1)

17-22: ```shell
#!/bin/bash

Search for CSS custom property definitions in CSS files

rg -e '--destructive' -t css -A 3 -B 3
rg -e '--destructive-foreground' -t css -A 3 -B 3

Also search in JS/TS files in case they are defined programmatically

rg -e '--destructive' -t js -t ts -A 3 -B 3
rg -e '--destructive-foreground' -t js -t ts -A 3 -B 3


</details>

</blockquote></details>

</details>
<!-- internal state start -->


<!-- DwQgtGAEAqAWCWBnSTIEMB26CuAXA9m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KD8FpncgoH4ZcXVRLR5SqgwkDsOoIKIFmkAbWB9Iityf23JOQMCCDYPyhD0gAOQEqI4qkq9RSXUyJAANz8BgGmsTB8AXosCHIeSbCoSdhNYIIIhiJZeEEfmUTWZQGDqa6r7vgY2YGH2GMFkWJb/hOlYsGwM5+Gg86OBCS4rooa5qBuPbblLuZTpUuAAPrwLQiDm2moJ0ObeTOKEkvS50ABsvS0AwACcswAMyzAALCQ/uxJ0qgkFHDC1bQfs+0HQezCQKjuwIsTdAw7uzFivYm50cee/7Qf+xH/sML0pFB70nTl0nHskO7PsAOw+yQ3S0AIsxoAArCQ6ezFuO7S1WZuW9btskMC9u0Ob+ZD0AA -->

<!-- internal state end -->
<!-- finishing_touch_checkbox_start -->

<details open="true">
<summary>✨ Finishing Touches</summary>

- [ ] <!-- {"checkboxId": "7962f53c-55bc-4827-bfbf-6a18da830691"} --> 📝 Generate Docstrings

</details>

<!-- finishing_touch_checkbox_end -->
<!-- tips_start -->

---

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

<details>
<summary>❤️ Share</summary>

- [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai)
- [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai)
- [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai)
- [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code)

</details>

<details>
<summary>🪧 Tips</summary>

### Chat

There are 3 ways to chat with [CodeRabbit](https://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=PotLock/curatedotfun&utm_content=180):

- Review comments: Directly reply to a review comment made by CodeRabbit. Example:
  - `I pushed a fix in commit <commit_id>, please review it.`
  - `Explain this complex logic.`
  - `Open a follow-up GitHub issue for this discussion.`
- Files and specific lines of code (under the "Files changed" tab): Tag `@coderabbitai` in a new review comment at the desired location with your query. Examples:
  - `@coderabbitai explain this code block.`
  -	`@coderabbitai modularize this function.`
- PR comments: Tag `@coderabbitai` in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
  - `@coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.`
  - `@coderabbitai read src/utils.ts and explain its main purpose.`
  - `@coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.`
  - `@coderabbitai help me debug CodeRabbit configuration file.`

### Support

Need help? Create a ticket on our [support page](https://www.coderabbit.ai/contact-us/support) for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

### CodeRabbit Commands (Invoked using PR comments)

- `@coderabbitai pause` to pause the reviews on a PR.
- `@coderabbitai resume` to resume the paused reviews.
- `@coderabbitai review` to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
- `@coderabbitai full review` to do a full review from scratch and review all the files again.
- `@coderabbitai summary` to regenerate the summary of the PR.
- `@coderabbitai generate docstrings` to [generate docstrings](https://docs.coderabbit.ai/finishing-touches/docstrings) for this PR.
- `@coderabbitai generate sequence diagram` to generate a sequence diagram of the changes in this PR.
- `@coderabbitai resolve` resolve all the CodeRabbit review comments.
- `@coderabbitai configuration` to show the current CodeRabbit configuration for the repository.
- `@coderabbitai help` to get help.

### Other keywords and placeholders

- Add `@coderabbitai ignore` anywhere in the PR description to prevent this PR from being reviewed.
- Add `@coderabbitai summary` to generate the high-level summary at a specific location in the PR description.
- Add `@coderabbitai` anywhere in the PR title to generate the title automatically.

### CodeRabbit Configuration File (`.coderabbit.yaml`)

- You can programmatically configure CodeRabbit by adding a `.coderabbit.yaml` file to the root of your repository.
- Please see the [configuration documentation](https://docs.coderabbit.ai/guides/configure-coderabbit) for more information.
- If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: `# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json`

### Documentation and Community

- Visit our [Documentation](https://docs.coderabbit.ai) for detailed information on how to use CodeRabbit.
- Join our [Discord Community](http://discord.gg/coderabbit) to get help, request features, and share feedback.
- Follow us on [X/Twitter](https://twitter.com/coderabbitai) for updates and announcements.

</details>

<!-- tips_end -->

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between fbfd4c9 and 160dc98.

📒 Files selected for processing (1)
  • apps/app/src/components/ui/toast.tsx (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: Run Tests

Comment on lines +31 to +32
destructive:
"destructive group border-destructive bg-destructive text-destructive-foreground",
"destructive group border-destructive bg-destructive text-destructive-foreground bg-red-100",
Copy link

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

❓ Verification inconclusive

Avoid conflicting background utilities.

Adding bg-red-100 alongside bg-destructive results in two competing background classes. If your goal is to lighten the destructive toast, prefer a semantic opacity utility (e.g. bg-destructive/20) or remove the original bg-destructive so only the intended color applies. This avoids hard-coding palette colors and ensures theming consistency (including dark mode).
Do you want to swap to an opacity-based class like bg-destructive/10 instead of bg-red-100?


Avoid conflicting background utilities.

Adding bg-red-100 alongside bg-destructive results in two competing background classes. If your goal is to lighten the destructive toast, prefer a semantic opacity utility (e.g. bg-destructive/20) or remove the original bg-destructive so only the intended color applies. This avoids hard-coding palette colors and ensures theming consistency (including dark mode).
Do you want to swap to an opacity-based class like bg-destructive/10 instead of bg-red-100?

🤖 Prompt for AI Agents
In apps/app/src/components/ui/toast.tsx around lines 31 to 32, the class list
for the destructive toast includes both bg-destructive and bg-red-100, causing
conflicting background styles. To fix this, remove bg-red-100 and replace it
with a semantic opacity utility like bg-destructive/10 or bg-destructive/20 to
lighten the background while preserving theming and dark mode consistency.

@elliotBraem elliotBraem merged commit 6811463 into main Jun 20, 2025
3 of 5 checks passed
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