Skip to content

Commit dddc18f

Browse files
committed
Revert "feat: add background color definition to box component"
This reverts commit 90f5c98.
1 parent 3aa3f11 commit dddc18f

File tree

4 files changed

+1
-25
lines changed

4 files changed

+1
-25
lines changed

src/design-system/box/box.component.tsx

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import type { Sx } from '../../design-tokens';
99

1010
export type BoxProps = Pick<
1111
Sx,
12-
| 'background'
1312
| 'h'
1413
| 'm'
1514
| 'mb'
@@ -34,7 +33,6 @@ export type Props = PropsWithChildren<BoxProps> &
3433
export const Box = forwardRef<HTMLDivElement | null, Readonly<Props>>(
3534
(
3635
{
37-
background,
3836
children,
3937
className,
4038
h,
@@ -60,25 +58,7 @@ export const Box = forwardRef<HTMLDivElement | null, Readonly<Props>>(
6058
<div
6159
{...props}
6260
className={classNames(
63-
sx({
64-
background,
65-
h,
66-
m,
67-
mb,
68-
ml,
69-
mr,
70-
mt,
71-
mx,
72-
my,
73-
p,
74-
pb,
75-
pl,
76-
pr,
77-
pt,
78-
px,
79-
py,
80-
w,
81-
}),
61+
sx({ h, m, mb, ml, mr, mt, mx, my, p, pb, pl, pr, pt, px, py, w }),
8262
className,
8363
)}
8464
ref={ref}

src/design-tokens/colors.data.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,6 @@ export const colors = {
295295
$address_tag_own_bgColor: '',
296296
$address_tag_foreign_color: '',
297297
$address_tag_foreign_bgColor: '',
298-
299-
$box_primary_container_bgColor: '',
300298
};
301299

302300
export type Colors = typeof colors;

src/design-tokens/theme/dark-theme.css.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,6 @@ const colors: Colors = {
394394
darkColorScheme.$primary_accent_purple,
395395
0.1,
396396
),
397-
$box_primary_container_bgColor: rgba(darkColorScheme.$primary_mid_black, 0.9),
398397
};
399398

400399
const elevation: Elevation = {

src/design-tokens/theme/light-theme.css.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,6 @@ const colors: Colors = {
422422
lightColorScheme.$primary_accent_purple,
423423
0.1,
424424
),
425-
$box_primary_container_bgColor: rgba(lightColorScheme.$primary_white, 0.9),
426425
};
427426

428427
export const elevation: Elevation = {

0 commit comments

Comments
 (0)