Skip to content

Commit 27bbbd2

Browse files
committed
feat: delete margin, spacing base add
1 parent 13be6e1 commit 27bbbd2

File tree

4 files changed

+250
-440
lines changed

4 files changed

+250
-440
lines changed

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

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ export const link = style({
66
});
77

88
export const card = style({
9-
margin: `${vars.spacing.md} 0`,
109
border: `1px solid ${vars.colors.border}`,
1110
borderRadius: vars.borderRadius.md,
1211
overflow: 'hidden',
@@ -17,7 +16,7 @@ export const card = style({
1716
});
1817

1918
export const content = style({
20-
padding: vars.spacing.md,
19+
padding: vars.spacing.base,
2120
});
2221

2322
export const previewImage = style({
@@ -28,13 +27,13 @@ export const previewImage = style({
2827
});
2928

3029
export const title = style({
31-
margin: `0 0 ${vars.spacing.xs}`,
30+
padding: `0 0 ${vars.spacing.xs}`,
3231
fontSize: vars.typography.fontSize.base,
3332
color: vars.colors.text,
3433
});
3534

3635
export const description = style({
37-
margin: 0,
36+
padding: 0,
3837
fontSize: vars.typography.fontSize.small,
3938
color: vars.colors.secondary,
4039
display: '-webkit-box',
@@ -44,15 +43,7 @@ export const description = style({
4443
});
4544

4645
export const siteName = style({
47-
marginTop: vars.spacing.sm,
48-
fontSize: vars.typography.fontSize.small,
49-
color: vars.colors.primary,
50-
});
51-
52-
export const caption = style({
53-
marginTop: vars.spacing.sm,
5446
paddingTop: vars.spacing.sm,
55-
borderTop: `1px solid ${vars.colors.border}`,
5647
fontSize: vars.typography.fontSize.small,
57-
color: vars.colors.secondary,
48+
color: vars.colors.primary,
5849
});

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

Lines changed: 3 additions & 3 deletions
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-
margin: `${vars.spacing.lg} 0 ${vars.spacing.md}`,
30+
padding: `${vars.spacing.lg} 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-
margin: `${vars.spacing.md} 0 ${vars.spacing.sm}`,
37+
padding: `${vars.spacing.md} 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-
margin: `${vars.spacing.sm} 0 ${vars.spacing.xs}`,
44+
padding: `${vars.spacing.sm} 0 ${vars.spacing.xs}`,
4545
});

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ export const vars = createThemeContract({
4242
xxs: null,
4343
xs: null,
4444
sm: null,
45+
base: null,
4546
md: null,
4647
lg: null,
4748
xl: null,
@@ -100,6 +101,7 @@ export const lightTheme = createTheme(vars, {
100101
xxs: '0.125rem',
101102
xs: '0.25rem',
102103
sm: '0.5rem',
104+
base: '0.75rem',
103105
md: '1rem',
104106
lg: '1.5rem',
105107
xl: '2rem',
@@ -158,6 +160,7 @@ export const darkTheme = createTheme(vars, {
158160
xxs: '0.125rem',
159161
xs: '0.25rem',
160162
sm: '0.5rem',
163+
base: '0.75rem',
161164
md: '1rem',
162165
lg: '1.5rem',
163166
xl: '2rem',
@@ -169,7 +172,7 @@ export const darkTheme = createTheme(vars, {
169172
},
170173
shadows: {
171174
sm: '0 1px 2px 0 rgba(0, 0, 0, 0.05)',
172-
md: '0 4px 6px -1px rgba(0, 0, 0, 0.1)',
175+
md: '0 3px 4px 0 rgba(0, 0, 0, 0.1)',
173176
lg: '0 10px 15px -3px rgba(0, 0, 0, 0.1)',
174177
},
175178
});

0 commit comments

Comments
 (0)