Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Card background #52

Merged
merged 1 commit into from
Dec 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions packages/frosted-ui/src/components/card.css
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@

.fui-Card:where(.fui-variant-surface) {
--card-border-width: 1px;
background-color: var(--color-panel);
background: var(--card-background);

&::after {
border-radius: var(--card-after-border-radius);
Expand Down Expand Up @@ -173,6 +173,7 @@
0 2px 3px -2px var(--black-a1),
0 3px 12px -4px var(--gray-a3),
0 4px 16px -8px var(--black-a1);
--card-background: var(--color-background);
}
/* prettier-ignore */
:is(.dark, .dark-theme),
Expand All @@ -184,6 +185,7 @@
0 0 3px -2px var(--gray-a3),
0 0 12px -2px var(--gray-a3),
0 0 16px -8px var(--gray-a9);
--card-background: linear-gradient(var(--color-panel-elevation-a3), var(--color-panel-elevation-a3)), var(--color-background);
}

/* prettier-ignore */
Expand All @@ -202,7 +204,7 @@

.fui-Card:where(.fui-variant-classic) {
--card-border-width: 1px;
background-color: var(--color-panel);
background: var(--card-background);

&::after {
border-radius: var(--card-after-border-radius);
Expand Down