Skip to content

Commit

Permalink
chore: 폰트 패키지 생성 및 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
ghdtjgus76 committed Aug 13, 2024
1 parent 74ad40b commit 79e7bec
Show file tree
Hide file tree
Showing 42 changed files with 88 additions and 180 deletions.
61 changes: 1 addition & 60 deletions apps/admin/app/global.css
Original file line number Diff line number Diff line change
@@ -1,65 +1,6 @@
@layer reset, base, tokens, recipes, utilities;
@import url("@wow-class/ui/styles.css");

@font-face {
font-family: "SUIT";
font-weight: 200;
src: url("/fonts/SUIT-Thin.ttf") format("truetype");
}

@font-face {
font-family: "SUIT";
font-weight: 300;
src: url("/fonts/SUIT-ExtraLight.ttf") format("truetype");
}

@font-face {
font-family: "SUIT";
font-weight: 400;
src: url("/fonts/SUIT-Regular.ttf") format("truetype");
}

@font-face {
font-family: "SUIT";
font-weight: 500;
src: url("/fonts/SUIT-Medium.ttf") format("truetype");
}

@font-face {
font-family: "SUIT";
font-weight: 600;
src: url("/fonts/SUIT-SemiBold.ttf") format("truetype");
}

@font-face {
font-family: "SUIT";
font-weight: 700;
src: url("/fonts/SUIT-Bold.ttf") format("truetype");
}

@font-face {
font-family: "SUIT";
font-weight: 800;
src: url("/fonts/SUIT-ExtraBold.ttf") format("truetype");
}

@font-face {
font-family: "SUIT";
font-weight: 900;
src: url("/fonts/SUIT-Heavy.ttf") format("truetype");
}

@font-face {
font-family: "Product Sans";
font-weight: 400;
src: url("/fonts/ProductSans-Regular.ttf") format("truetype");
}

@font-face {
font-family: "Product Sans";
font-weight: 700;
src: url("/fonts/ProductSans-Bold.ttf") format("truetype");
}
@import url("@wow-class/fonts/index.css");

body {
font-family: "SUIT" !important;
Expand Down
1 change: 1 addition & 0 deletions apps/admin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"@types/react-dom": "^18",
"@wow-class/eslint-config": "workspace:*",
"@wow-class/typescript-config": "workspace:*",
"@wow-class/fonts": "workspace:*",
"@wow-class/utils": "workspace:*",
"eslint": "^8",
"eslint-config-next": "^14.2.5",
Expand Down
61 changes: 1 addition & 60 deletions apps/client/app/global.css
Original file line number Diff line number Diff line change
@@ -1,65 +1,6 @@
@layer reset, base, tokens, recipes, utilities;
@import url("@wow-class/ui/styles.css");

@font-face {
font-family: "SUIT";
font-weight: 200;
src: url("/fonts/SUIT-Thin.ttf") format("truetype");
}

@font-face {
font-family: "SUIT";
font-weight: 300;
src: url("/fonts/SUIT-ExtraLight.ttf") format("truetype");
}

@font-face {
font-family: "SUIT";
font-weight: 400;
src: url("/fonts/SUIT-Regular.ttf") format("truetype");
}

@font-face {
font-family: "SUIT";
font-weight: 500;
src: url("/fonts/SUIT-Medium.ttf") format("truetype");
}

@font-face {
font-family: "SUIT";
font-weight: 600;
src: url("/fonts/SUIT-SemiBold.ttf") format("truetype");
}

@font-face {
font-family: "SUIT";
font-weight: 700;
src: url("/fonts/SUIT-Bold.ttf") format("truetype");
}

@font-face {
font-family: "SUIT";
font-weight: 800;
src: url("/fonts/SUIT-ExtraBold.ttf") format("truetype");
}

@font-face {
font-family: "SUIT";
font-weight: 900;
src: url("/fonts/SUIT-Heavy.ttf") format("truetype");
}

@font-face {
font-family: "Product Sans";
font-weight: 400;
src: url("/fonts/ProductSans-Regular.ttf") format("truetype");
}

@font-face {
font-family: "Product Sans";
font-weight: 700;
src: url("/fonts/ProductSans-Bold.ttf") format("truetype");
}
@import url("@wow-class/fonts/index.css");

body {
font-family: "SUIT" !important;
Expand Down
1 change: 1 addition & 0 deletions apps/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"@types/react-dom": "^18",
"@wow-class/eslint-config": "workspace:*",
"@wow-class/typescript-config": "workspace:*",
"@wow-class/fonts": "workspace:*",
"@wow-class/utils": "workspace:*",
"eslint": "^8",
"eslint-config-next": "^14.2.5",
Expand Down
Binary file removed apps/client/public/fonts/Product Sans Bold.ttf
Binary file not shown.
Binary file removed apps/client/public/fonts/Product Sans Regular.ttf
Binary file not shown.
Binary file removed apps/client/public/fonts/SUIT-Bold.ttf
Binary file not shown.
Binary file removed apps/client/public/fonts/SUIT-ExtraBold.ttf
Binary file not shown.
Binary file removed apps/client/public/fonts/SUIT-ExtraLight.ttf
Binary file not shown.
Binary file removed apps/client/public/fonts/SUIT-Heavy.ttf
Binary file not shown.
Binary file removed apps/client/public/fonts/SUIT-Light.ttf
Binary file not shown.
Binary file removed apps/client/public/fonts/SUIT-Medium.ttf
Binary file not shown.
Binary file removed apps/client/public/fonts/SUIT-Regular.ttf
Binary file not shown.
Binary file removed apps/client/public/fonts/SUIT-SemiBold.ttf
Binary file not shown.
Binary file removed apps/client/public/fonts/SUIT-Thin.ttf
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
63 changes: 63 additions & 0 deletions packages/fonts/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
@font-face {
font-family: "SUIT";
font-weight: 200;
src: url("./SUIT-Thin.ttf") format("truetype");
}

@font-face {
font-family: "SUIT";
font-weight: 300;
src: url("./SUIT-ExtraLight.ttf") format("truetype");
}

@font-face {
font-family: "SUIT";
font-weight: 400;
src: url("./SUIT-Regular.ttf") format("truetype");
}

@font-face {
font-family: "SUIT";
font-weight: 500;
src: url("./SUIT-Medium.ttf") format("truetype");
}

@font-face {
font-family: "SUIT";
font-weight: 600;
src: url("./SUIT-SemiBold.ttf") format("truetype");
}

@font-face {
font-family: "SUIT";
font-weight: 700;
src: url("./SUIT-Bold.ttf") format("truetype");
}

@font-face {
font-family: "SUIT";
font-weight: 800;
src: url("./SUIT-ExtraBold.ttf") format("truetype");
}

@font-face {
font-family: "SUIT";
font-weight: 900;
src: url("./SUIT-Heavy.ttf") format("truetype");
}

@font-face {
font-family: "Product Sans";
font-weight: 400;
src: url("./ProductSans-Regular.ttf") format("truetype");
}

@font-face {
font-family: "Product Sans";
font-weight: 700;
src: url("./ProductSans-Bold.ttf") format("truetype");
}

body {
font-family: "SUIT" !important;
}
8 changes: 8 additions & 0 deletions packages/fonts/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "@wow-class/fonts",
"version": "0.0.0",
"private": true,
"exports": {
"./index.css": "./index.css"
}
}
1 change: 1 addition & 0 deletions packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"@types/react-dom": "^18.2.19",
"@wow-class/eslint-config": "workspace:*",
"@wow-class/typescript-config": "workspace:*",
"@wow-class/fonts": "workspace:*",
"eslint": "^8.57.0",
"eslint-plugin-storybook": "^0.8.0",
"storybook": "^8.2.7",
Expand Down
Binary file removed packages/ui/src/assets/fonts/Product Sans Bold.ttf
Binary file not shown.
Binary file not shown.
Binary file removed packages/ui/src/assets/fonts/SUIT-Bold.ttf
Binary file not shown.
Binary file removed packages/ui/src/assets/fonts/SUIT-ExtraBold.ttf
Binary file not shown.
Binary file removed packages/ui/src/assets/fonts/SUIT-ExtraLight.ttf
Binary file not shown.
Binary file removed packages/ui/src/assets/fonts/SUIT-Heavy.ttf
Binary file not shown.
Binary file removed packages/ui/src/assets/fonts/SUIT-Light.ttf
Binary file not shown.
Binary file removed packages/ui/src/assets/fonts/SUIT-Medium.ttf
Binary file not shown.
Binary file removed packages/ui/src/assets/fonts/SUIT-Regular.ttf
Binary file not shown.
Binary file removed packages/ui/src/assets/fonts/SUIT-SemiBold.ttf
Binary file not shown.
Binary file removed packages/ui/src/assets/fonts/SUIT-Thin.ttf
Binary file not shown.
61 changes: 1 addition & 60 deletions packages/ui/src/index.css
Original file line number Diff line number Diff line change
@@ -1,64 +1,5 @@
@layer reset, base, tokens, recipes, utilities;

@font-face {
font-family: "SUIT";
font-weight: 200;
src: url("/fonts/SUIT-Thin.ttf") format("truetype");
}

@font-face {
font-family: "SUIT";
font-weight: 300;
src: url("/fonts/SUIT-ExtraLight.ttf") format("truetype");
}

@font-face {
font-family: "SUIT";
font-weight: 400;
src: url("/fonts/SUIT-Regular.ttf") format("truetype");
}

@font-face {
font-family: "SUIT";
font-weight: 500;
src: url("/fonts/SUIT-Medium.ttf") format("truetype");
}

@font-face {
font-family: "SUIT";
font-weight: 600;
src: url("/fonts/SUIT-SemiBold.ttf") format("truetype");
}

@font-face {
font-family: "SUIT";
font-weight: 700;
src: url("/fonts/SUIT-Bold.ttf") format("truetype");
}

@font-face {
font-family: "SUIT";
font-weight: 800;
src: url("/fonts/SUIT-ExtraBold.ttf") format("truetype");
}

@font-face {
font-family: "SUIT";
font-weight: 900;
src: url("/fonts/SUIT-Heavy.ttf") format("truetype");
}

@font-face {
font-family: "Product Sans";
font-weight: 400;
src: url("/fonts/ProductSans-Regular.ttf") format("truetype");
}

@font-face {
font-family: "Product Sans";
font-weight: 700;
src: url("/fonts/ProductSans-Bold.ttf") format("truetype");
}
@import url("@wow-class/fonts/index.css");

body {
font-family: "SUIT";
Expand Down
11 changes: 11 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 79e7bec

Please sign in to comment.