Skip to content

An open source design system that's fully customizable and agent ready

TypeScript

fix(core): use subtle border for Card resting border (#4527)

Ernest9f4f04ab22dc
diff --git a/.changeset/card-subtle-border.md b/.changeset/card-subtle-border.md
new file mode 100644
index 0000000000..3550dd0097
--- /dev/null
+++ b/.changeset/card-subtle-border.md
@@ -0,0 +1,6 @@
+---
+'@astryxdesign/core': patch
+---
+
+[fix] Card: rest the bordered variant on the subtle `--color-border` instead of `--color-border-emphasized`, so a Card's outer frame matches its own LayoutHeader/LayoutFooter dividers and neighboring ClickableCards instead of rendering a heavier edge.
+@ernestt
diff --git a/packages/core/src/Card/Card.tsx b/packages/core/src/Card/Card.tsx
index f48499bd19..700177ebce 100644
--- a/packages/core/src/Card/Card.tsx
+++ b/packages/core/src/Card/Card.tsx
@@ -92,7 +92,7 @@ const styles = stylex.create({
withBorder: {
borderWidth: borderVars['--border-width'],
borderStyle: 'solid',
- borderColor: colorVars['--color-border-emphasized'],
+ borderColor: colorVars['--color-border'],
paddingInlineStart: `calc(var(--container-padding-inline-start) - ${borderVars['--border-width']})`,
paddingInlineEnd: `calc(var(--container-padding-inline-end) - ${borderVars['--border-width']})`,
paddingBlockStart: `calc(var(--container-padding-block-start) - ${borderVars['--border-width']})`,