Skip to content

Commit 7d61492

Browse files
committed
refactor: recommendation 섹션 layout 토큰 적용
1 parent c121d44 commit 7d61492

File tree

1 file changed

+27
-25
lines changed

1 file changed

+27
-25
lines changed

src/page/todo/myTodo/MyTodo.css.ts

Lines changed: 27 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { style, styleVariants } from '@vanilla-extract/css';
22

3-
import { colors, fonts } from '@/style/token';
3+
import { colors, fonts, layout } from '@/style/token';
44

55
export const myTodoBg = style({
66
position: 'fixed',
@@ -49,20 +49,22 @@ export const mainContentWrapper = style({
4949
gap: '11.8rem',
5050
});
5151

52-
export const recommendSection = style({
53-
display: 'flex',
54-
flexDirection: 'column',
55-
alignItems: 'flex-start',
56-
width: '100%',
57-
gap: '2.8rem',
58-
});
52+
export const recommendSection = style([
53+
layout.flexColumn,
54+
{
55+
alignItems: 'flex-start',
56+
width: '100%',
57+
gap: '2.8rem',
58+
},
59+
]);
5960

60-
export const recommendTextWrapper = style({
61-
display: 'flex',
62-
flexDirection: 'column',
63-
alignItems: 'flex-start',
64-
gap: '0.4rem',
65-
});
61+
export const recommendTextWrapper = style([
62+
layout.flexColumn,
63+
{
64+
alignItems: 'flex-start',
65+
gap: '0.4rem',
66+
},
67+
]);
6668

6769
export const recommendTitle = style({
6870
...fonts.title01,
@@ -77,17 +79,17 @@ export const recommendSubtitle = style({
7779
alignSelf: 'stretch',
7880
});
7981

80-
export const recommendBoxWrapper = style({
81-
background: colors.grey05_32,
82-
borderRadius: '12px',
83-
display: 'flex',
84-
padding: '1.5rem',
85-
flexDirection: 'row',
86-
justifyContent: 'center',
87-
alignItems: 'center',
88-
gap: '1.6rem',
89-
alignSelf: 'stretch',
90-
});
82+
export const recommendBoxWrapper = style([
83+
layout.rowCenter,
84+
{
85+
background: colors.grey05_32,
86+
borderRadius: '12px',
87+
display: 'flex',
88+
padding: '1.5rem',
89+
gap: '1.6rem',
90+
alignSelf: 'stretch',
91+
},
92+
]);
9193

9294
export const checkSection = style({
9395
display: 'flex',

0 commit comments

Comments
 (0)