Skip to content

Commit bf19ab6

Browse files
misama-ctclaude
andauthored
fix: card backgrounds in dark mode (#655)
- Change card recipe background from colorPalette.contrast to bg token - Remove cardPadding props from frontpage Card components 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude <[email protected]>
1 parent f92fb51 commit bf19ab6

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

.changeset/pink-poems-change.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@commercetools/nimbus": patch
3+
---
4+
5+
fix an issue with card backgrounds in dark-mode

apps/docs/src/components/document-renderer/components/frontpage/frontpage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const links = [
3939
export const Frontpage = () => {
4040
return (
4141
<Stack gap="400">
42-
<Card.Root borderStyle="outlined" cardPadding="md" elevation="elevated">
42+
<Card.Root borderStyle="outlined">
4343
<Flex direction="column" width="100%" align="center" py="800">
4444
<Heading size="7xl" m="auto" letterSpacing={"-.025em"}>
4545
Nimbus
@@ -62,7 +62,7 @@ export const Frontpage = () => {
6262
href={link.href?.substring(1)}
6363
textDecoration="none"
6464
>
65-
<Card.Root borderStyle="outlined" cardPadding="lg" width="full">
65+
<Card.Root borderStyle="outlined" width="full">
6666
<Card.Content>
6767
<Stack direction="row" gap="400" alignItems="center">
6868
<Box>

packages/nimbus/src/components/card/card.recipe.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export const cardRecipe = defineSlotRecipe({
5858
backgroundStyle: {
5959
default: {
6060
root: {
61-
backgroundColor: "colorPalette.contrast",
61+
backgroundColor: "bg",
6262
},
6363
},
6464
muted: {

0 commit comments

Comments
 (0)