Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(sds): 기본 디자인 토큰 세팅 #53

Merged
merged 1 commit into from
Jul 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/core/sds/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"version": "0.0.0",
"private": true,
"exports": {
".": "./src/index.ts"
".": "./src/index.ts",
"./theme": "./src/theme/index.ts"
},
"scripts": {
"lint": "eslint . --max-warnings 0"
Expand Down
1 change: 0 additions & 1 deletion packages/core/sds/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export { Button } from './components/Button';
export { Card } from './components/Card';
export { Code } from './components/Code';
export { colors } from './theme/colors';
7 changes: 7 additions & 0 deletions packages/core/sds/src/theme/borderRadius.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export const borderRadius = {
none: '0px',
xsmall: '4px',
small: '8px',
medium: '16px',
round: '100px',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

단순히 궁금한건데 round: '50%' 대신 '100px' 로 하는 이유가 있나여?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

아 이거

  • 50% 하면 땡그랗게 안 될 때 있기도 하고
  • 디자인 토큰에 100px로 되어 있어서

100px로 해도 되겠다 생각해서 했어유

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

오호 그렇군여? 처음 알았습니다.

혹시 처음 아신 다른 분들을 위해 관련 스택오버플로우 글 툭~

};
13 changes: 12 additions & 1 deletion packages/core/sds/src/theme/colors.ts
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
export const colors = {};
export const colors = {
black: '#000000',
white: '#FFFFFF',
grey800: '#1F1F1F',
grey700: '#4B4B4B',
grey600: '#8E8E8E',
grey500: '#CACACA',
grey400: '#E1E1E1',
grey300: '#EEEEEE',
grey200: '#F5F5F5',
grey100: '#F5F5F5',
};
4 changes: 4 additions & 0 deletions packages/core/sds/src/theme/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export { borderRadius } from './borderRadius';
export { colors } from './colors';
export { opacity } from './opacity';
export { shadow } from './shadow';
7 changes: 7 additions & 0 deletions packages/core/sds/src/theme/opacity.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export const opacity = {
level1: '0%',
level2: '20%',
level3: '40%',
level4: '60%',
level5: '80%',
};
6 changes: 6 additions & 0 deletions packages/core/sds/src/theme/shadow.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export const shadow = {
elevation1: '0px 2px 4px 0px rgba(0, 0, 0, 0.10)',
elevation2: '0px 1px 4px 0px rgba(0, 0, 0, 0.12), 0px 2px 8px 0px rgba(0, 0, 0, 0.14)',
elevation3: '0px 1px 6px 0px rgba(0, 0, 0, 0.12), 0px 4px 12px 0px rgba(0, 0, 0, 0.20)',
elevation4: '0px 1px 8px 0px rgba(0, 0, 0, 0.12), 0px 8px 20px 0px rgba(0, 0, 0, 0.20)',
};