Skip to content

Commit 672890f

Browse files
committed
refactor: update font-family inheritance and cleanup unused exports
1 parent 263c3d3 commit 672890f

File tree

7 files changed

+14
-9
lines changed

7 files changed

+14
-9
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/* 스토리북 글로벌 스타일 */
2+
html, body, * {
3+
font-family: 'Pretendard', 'Noto Sans KR', sans-serif !important;
4+
}

apps/renderer-storybook/.storybook/preview.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import type { Preview } from '@storybook/react';
22
import 'notion-to-jsx/dist/index.css';
33

4+
// 글로벌 폰트 스타일 적용
5+
import './preview.css';
6+
47
const preview: Preview = {
58
parameters: {
69
controls: {

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@ import { recipe } from '@vanilla-extract/recipes';
33
import { vars } from '../../../../styles/theme.css';
44

55
export const richText = recipe({
6-
base: {
7-
fontFamily: 'inherit',
8-
},
9-
106
variants: {
117
bold: {
128
true: {

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { vars } from '../../../../styles/theme.css';
44
// 공통 타이포그래피 스타일
55
const baseTypography = {
66
color: vars.colors.text,
7-
fontFamily: vars.typography.fontFamily.base,
87
lineHeight: vars.typography.lineHeight.base,
98
selectors: {
109
'&:focus-visible': {

packages/notion-to-jsx/src/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
export * from './components/Renderer';
22
export * from './types';
3-
// export * from './components/MemoizedComponents';
4-
// export * from './styles/theme';

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ globalStyle('*::before, *::after', {
1111
boxSizing: 'border-box',
1212
});
1313

14+
15+
1416
// HTML과 body 요소
1517
globalStyle('html, body', {
1618
height: '100%',

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
import { createTheme, createThemeContract } from '@vanilla-extract/css';
1+
import {
2+
createTheme,
3+
createThemeContract,
4+
} from '@vanilla-extract/css';
25

36
/**
47
* 이 변수는 테마의 구조만 정의하며, 실제 값은 없습니다.
@@ -100,7 +103,7 @@ export const vars = createThemeContract({
100103
const commonThemeValues = {
101104
typography: {
102105
fontFamily: {
103-
base: 'ui-sans-serif -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif',
106+
base: 'inherit',
104107
code: 'SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace',
105108
},
106109
fontSize: {

0 commit comments

Comments
 (0)