Skip to content

fix: replace hardcoded rgba() colors in cards.css with CSS variables#861

Open
Pcmhacker-piro wants to merge 1 commit into
SAPTARSHI-coder:mainfrom
Pcmhacker-piro:fix/replace-hardcoded-colors-cards-840
Open

fix: replace hardcoded rgba() colors in cards.css with CSS variables#861
Pcmhacker-piro wants to merge 1 commit into
SAPTARSHI-coder:mainfrom
Pcmhacker-piro:fix/replace-hardcoded-colors-cards-840

Conversation

@Pcmhacker-piro
Copy link
Copy Markdown

Closes #840

Pull Request Description

6 hardcoded rgba() and #ffffff values in cards.css break theming.
Replaced with CSS variables defined in core/variables.css using
color-mix() for opacity support.

Type of Change

  • ✨ New animation / hover effect
  • 🧩 New component
  • 📝 Documentation improvement
  • 🐛 Bug fix in an existing submission
  • Other (describe below)

Theming fix — replaces hardcoded colors with CSS variables.

Submission Checklist

N/A — this PR fixes core framework files, not a user submission.

Notes for Maintainer

Alpha channel variables use color-mix(in srgb, ...) which is
supported in all modern browsers (Chrome 111+, Firefox 113+,
Safari 16.2+). No runtime dependencies required.

- Added --ease-glass-bg, --ease-glass-border for glass card background/border
- Added --ease-color-primary-alpha, --ease-color-success-alpha,
  --ease-color-danger-alpha for info/alert card backgrounds
- Updated .ease-card-glass to use CSS variables instead of hardcoded
  rgba(255,255,255) and #ffffff
- Updated .ease-card-info, .ease-card-success-bg, .ease-card-danger-bg
  to use alpha-channel variables

Closes SAPTARSHI-coder#840
@Pcmhacker-piro
Copy link
Copy Markdown
Author

hey @SAPTARSHI-coder i fixed the assign issues so plesae check it

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.

### Glass Card and Info/Alert Cards Use Hardcoded rgba() Colors Instead of CSS Variables

1 participant