Skip to content

Commit 1798f34

Browse files
committed
feat: typography, List css 수정
1 parent b6a1152 commit 1798f34

File tree

6 files changed

+16
-8
lines changed

6 files changed

+16
-8
lines changed

packages/notion-to-jsx/src/components/Renderer/components/Image/styles.css.ts

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { vars } from '../../../../styles/theme.css';
66
export const imageContainer = style({
77
position: 'relative',
88
width: '100%',
9+
padding: `${vars.spacing.sm} 0`,
910
borderRadius: vars.borderRadius.md,
1011
overflow: 'hidden',
1112
margin: '0 auto',

packages/notion-to-jsx/src/components/Renderer/components/List/styles.css.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { vars } from '../../../../styles/theme.css';
44

55
export const list = recipe({
66
base: {
7+
padding: `${vars.spacing.xs} ${vars.spacing.xxs}`,
78
paddingLeft: vars.spacing.lg,
89
},
910
variants: {
@@ -18,4 +19,6 @@ export const list = recipe({
1819
},
1920
});
2021

21-
export const listItem = style({});
22+
export const listItem = style({
23+
padding: `${vars.spacing.xxs} 0`,
24+
});

packages/notion-to-jsx/src/components/Renderer/components/RichText/RichTexts.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const RichTexts: React.FC<RichTextProps> = ({ richTexts }) => {
5050
) : (
5151
text.text.content
5252
);
53-
53+
5454
// TODO: NOTION COLOR 적용
5555
// const colorValue =
5656
// color === 'default'
@@ -69,7 +69,6 @@ const RichTexts: React.FC<RichTextProps> = ({ richTexts }) => {
6969
underline,
7070
code,
7171
})}
72-
// style={{ color: colorValue }}
7372
>
7473
{content}
7574
</span>

packages/notion-to-jsx/src/components/Renderer/components/RichText/styles.css.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,15 @@ export const richText = recipe({
3030
},
3131
code: {
3232
true: {
33-
background: vars.colors.code.background,
34-
padding: '0.2em 0.4em',
33+
background: vars.colors.code.inlineBackground,
34+
padding: '0.1em 0.35em',
3535
borderRadius: vars.borderRadius.sm,
3636
fontWeight: vars.typography.fontWeight.medium,
3737
fontFamily: vars.typography.fontFamily.code,
3838
fontSize: '0.85em',
3939
color: vars.colors.code.inline,
40+
display: 'inline-block',
41+
verticalAlign: 'middle',
4042
},
4143
},
4244
},

packages/notion-to-jsx/src/components/Renderer/components/Typography/styles.css.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,19 @@ export const heading1 = style({
2727
...baseTypography,
2828
fontSize: vars.typography.fontSize.h1,
2929
fontWeight: vars.typography.fontWeight.bold,
30-
padding: `${vars.spacing.lg} 0 ${vars.spacing.md}`,
30+
padding: `${vars.spacing.xl} 0 ${vars.spacing.md}`,
3131
});
3232

3333
export const heading2 = style({
3434
...baseTypography,
3535
fontSize: vars.typography.fontSize.h2,
3636
fontWeight: vars.typography.fontWeight.bold,
37-
padding: `${vars.spacing.md} 0 ${vars.spacing.sm}`,
37+
padding: `${vars.spacing.lg} 0 ${vars.spacing.sm}`,
3838
});
3939

4040
export const heading3 = style({
4141
...baseTypography,
4242
fontSize: vars.typography.fontSize.h3,
4343
fontWeight: vars.typography.fontWeight.bold,
44-
padding: `${vars.spacing.sm} 0 ${vars.spacing.xs}`,
44+
padding: `${vars.spacing.base} 0 ${vars.spacing.xs}`,
4545
});

packages/notion-to-jsx/src/styles/theme.css.ts

+3
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export const vars = createThemeContract({
1919
background: null,
2020
text: null,
2121
inline: null,
22+
inlineBackground: null,
2223
},
2324
},
2425
typography: {
@@ -133,6 +134,7 @@ export const lightTheme = createTheme(vars, {
133134
background: 'rgba(135,131,120,.1)',
134135
text: '#24292e',
135136
inline: '#EB5757',
137+
inlineBackground: 'rgba(135,131,120,.15)',
136138
},
137139
},
138140
shadows: {
@@ -159,6 +161,7 @@ export const darkTheme = createTheme(vars, {
159161
background: '#161b22',
160162
text: '#c9d1d9',
161163
inline: '#EB5757',
164+
inlineBackground: '#161b22',
162165
},
163166
},
164167
shadows: {

0 commit comments

Comments
 (0)