@bigtablet/design-system 3.32.1 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -2
- package/dist/esm/index.js +85 -0
- package/dist/esm/styles/a11y/index.js +1 -0
- package/dist/esm/styles/autofill.css +4 -0
- package/dist/esm/styles/border-width/index.js +1 -0
- package/dist/esm/styles/breakpoints/index.js +1 -0
- package/dist/esm/styles/colors/index.js +1 -0
- package/dist/esm/styles/css-vars.js +1 -0
- package/dist/esm/styles/elevation/index.js +1 -0
- package/dist/esm/styles/icon/index.js +1 -0
- package/dist/esm/styles/link.css +4 -0
- package/dist/esm/styles/motion/index.js +1 -0
- package/dist/esm/styles/opacity/index.js +1 -0
- package/dist/esm/styles/radius/index.js +1 -0
- package/dist/esm/styles/skeleton/index.js +1 -0
- package/dist/esm/styles/spacing/index.js +1 -0
- package/dist/esm/styles/theme.css +4 -0
- package/dist/esm/styles/typography/index.js +1 -0
- package/dist/esm/styles/z-index/index.js +1 -0
- package/dist/esm/ui/display/accordion/index.js +1 -0
- package/dist/esm/ui/display/accordion/style.css +4 -0
- package/dist/esm/ui/display/avatar/index.js +1 -0
- package/dist/esm/ui/display/avatar/style.css +4 -0
- package/dist/esm/ui/display/badge/index.js +1 -0
- package/dist/esm/ui/display/badge/style.css +4 -0
- package/dist/esm/ui/display/card/index.js +1 -0
- package/dist/esm/ui/display/card/style.css +4 -0
- package/dist/esm/ui/display/chip/index.js +1 -0
- package/dist/esm/ui/display/chip/style.css +4 -0
- package/dist/esm/ui/display/data-view/index.js +1 -0
- package/dist/esm/ui/display/data-view/style.css +4 -0
- package/dist/esm/ui/display/description-list/index.js +1 -0
- package/dist/esm/ui/display/description-list/style.css +4 -0
- package/dist/esm/ui/display/divider/index.js +1 -0
- package/dist/esm/ui/display/divider/style.css +4 -0
- package/dist/esm/ui/display/hero/index.js +1 -0
- package/dist/esm/ui/display/hero/style.css +4 -0
- package/dist/esm/ui/display/icon/index.js +1 -0
- package/dist/esm/ui/display/list-item/index.js +1 -0
- package/dist/esm/ui/display/list-item/style.css +4 -0
- package/dist/esm/ui/display/media-card/index.js +1 -0
- package/dist/esm/ui/display/media-card/style.css +4 -0
- package/dist/esm/ui/display/prose/index.js +1 -0
- package/dist/esm/ui/display/prose/style.css +4 -0
- package/dist/esm/ui/display/stat/index.js +1 -0
- package/dist/esm/ui/display/stat/style.css +4 -0
- package/dist/esm/ui/display/table/index.js +1 -0
- package/dist/esm/ui/display/table/style.css +4 -0
- package/dist/esm/ui/display/timeline/index.js +1 -0
- package/dist/esm/ui/display/timeline/style.css +4 -0
- package/dist/esm/ui/feedback/alert/index.js +1 -0
- package/dist/esm/ui/feedback/alert/style.css +4 -0
- package/dist/esm/ui/feedback/empty-state/index.js +1 -0
- package/dist/esm/ui/feedback/empty-state/style.css +4 -0
- package/dist/esm/ui/feedback/error-state/index.js +1 -0
- package/dist/esm/ui/feedback/error-state/style.css +4 -0
- package/dist/esm/ui/feedback/inline-alert/index.js +1 -0
- package/dist/esm/ui/feedback/inline-alert/style.css +4 -0
- package/dist/esm/ui/feedback/linear-progress/index.js +1 -0
- package/dist/esm/ui/feedback/linear-progress/style.css +4 -0
- package/dist/esm/ui/feedback/skeleton/index.js +1 -0
- package/dist/esm/ui/feedback/skeleton/style.css +4 -0
- package/dist/esm/ui/feedback/spinner/index.js +1 -0
- package/dist/esm/ui/feedback/spinner/style.css +4 -0
- package/dist/esm/ui/feedback/toast/index.js +1 -0
- package/dist/esm/ui/feedback/toast/style.css +4 -0
- package/dist/esm/ui/feedback/toast/use-toast.js +1 -0
- package/dist/esm/ui/feedback/top-loading/index.js +1 -0
- package/dist/esm/ui/feedback/top-loading/style.css +4 -0
- package/dist/esm/ui/forms/checkbox/index.js +1 -0
- package/dist/esm/ui/forms/checkbox/style.css +4 -0
- package/dist/esm/ui/forms/combobox/index.js +1 -0
- package/dist/esm/ui/forms/combobox/style.css +4 -0
- package/dist/esm/ui/forms/date-calendar/index.js +1 -0
- package/dist/esm/ui/forms/date-calendar/style.css +4 -0
- package/dist/esm/ui/forms/date-picker/index.js +1 -0
- package/dist/esm/ui/forms/date-picker/style.css +4 -0
- package/dist/esm/ui/forms/date-range-picker/index.js +1 -0
- package/dist/esm/ui/forms/date-range-picker/style.css +4 -0
- package/dist/esm/ui/forms/dropdown/index.js +1 -0
- package/dist/esm/ui/forms/dropdown/style.css +4 -0
- package/dist/esm/ui/forms/field/index.js +1 -0
- package/dist/esm/ui/forms/field/style.css +4 -0
- package/dist/esm/ui/forms/file/index.js +1 -0
- package/dist/esm/ui/forms/file/style.css +4 -0
- package/dist/esm/ui/forms/filter-bar/index.js +1 -0
- package/dist/esm/ui/forms/filter-bar/style.css +4 -0
- package/dist/esm/ui/forms/form/index.js +1 -0
- package/dist/esm/ui/forms/form/style.css +4 -0
- package/dist/esm/ui/forms/image-cropper/crop.util.js +1 -0
- package/dist/esm/ui/forms/image-cropper/index.js +1 -0
- package/dist/esm/ui/forms/image-cropper/style.css +4 -0
- package/dist/esm/ui/forms/otp-input/index.js +1 -0
- package/dist/esm/ui/forms/otp-input/style.css +4 -0
- package/dist/esm/ui/forms/radio/index.js +1 -0
- package/dist/esm/ui/forms/radio/style.css +4 -0
- package/dist/esm/ui/forms/radio-group/index.js +1 -0
- package/dist/esm/ui/forms/radio-group/style.css +4 -0
- package/dist/esm/ui/forms/segmented-control/index.js +1 -0
- package/dist/esm/ui/forms/segmented-control/style.css +4 -0
- package/dist/esm/ui/forms/tag-input/index.js +1 -0
- package/dist/esm/ui/forms/tag-input/style.css +4 -0
- package/dist/esm/ui/forms/textarea/index.js +1 -0
- package/dist/esm/ui/forms/textarea/style.css +4 -0
- package/dist/esm/ui/forms/textfield/index.js +1 -0
- package/dist/esm/ui/forms/textfield/style.css +4 -0
- package/dist/esm/ui/forms/time-picker/index.js +1 -0
- package/dist/esm/ui/forms/time-picker/style.css +4 -0
- package/dist/esm/ui/forms/toggle/index.js +1 -0
- package/dist/esm/ui/forms/toggle/style.css +4 -0
- package/dist/esm/ui/general/button/index.js +1 -0
- package/dist/esm/ui/general/button/style.css +4 -0
- package/dist/esm/ui/general/copy-button/index.js +1 -0
- package/dist/esm/ui/general/copy-button/style.css +4 -0
- package/dist/esm/ui/general/icon-button/index.js +1 -0
- package/dist/esm/ui/general/icon-button/style.css +4 -0
- package/dist/esm/ui/layout/app-shell/index.js +1 -0
- package/dist/esm/ui/layout/app-shell/style.css +4 -0
- package/dist/esm/ui/layout/container/index.js +1 -0
- package/dist/esm/ui/layout/container/style.css +4 -0
- package/dist/esm/ui/layout/grid/index.js +1 -0
- package/dist/esm/ui/layout/grid/style.css +4 -0
- package/dist/esm/ui/layout/page-header/index.js +1 -0
- package/dist/esm/ui/layout/page-header/style.css +4 -0
- package/dist/esm/ui/layout/section/index.js +1 -0
- package/dist/esm/ui/layout/section/style.css +4 -0
- package/dist/esm/ui/layout/stack/index.js +1 -0
- package/dist/esm/ui/layout/stack/style.css +4 -0
- package/dist/esm/ui/navigation/bottom-nav/index.js +1 -0
- package/dist/esm/ui/navigation/bottom-nav/style.css +4 -0
- package/dist/esm/ui/navigation/breadcrumb/index.js +1 -0
- package/dist/esm/ui/navigation/breadcrumb/style.css +4 -0
- package/dist/esm/ui/navigation/menu/index.js +1 -0
- package/dist/esm/ui/navigation/menu/style.css +4 -0
- package/dist/esm/ui/navigation/nav-bar/index.js +1 -0
- package/dist/esm/ui/navigation/nav-bar/style.css +4 -0
- package/dist/esm/ui/navigation/pagination/index.js +1 -0
- package/dist/esm/ui/navigation/pagination/style.css +4 -0
- package/dist/esm/ui/navigation/sidebar/index.js +1 -0
- package/dist/esm/ui/navigation/sidebar/style.css +4 -0
- package/dist/esm/ui/navigation/stepper/index.js +1 -0
- package/dist/esm/ui/navigation/stepper/style.css +4 -0
- package/dist/esm/ui/navigation/tabs/index.js +1 -0
- package/dist/esm/ui/navigation/tabs/style.css +4 -0
- package/dist/esm/ui/overlay/drawer/index.js +1 -0
- package/dist/esm/ui/overlay/drawer/style.css +4 -0
- package/dist/esm/ui/overlay/modal/index.js +1 -0
- package/dist/esm/ui/overlay/modal/style.css +4 -0
- package/dist/esm/ui/overlay/popover/index.js +1 -0
- package/dist/esm/ui/overlay/popover/style.css +4 -0
- package/dist/esm/ui/overlay/tooltip/index.js +1 -0
- package/dist/esm/ui/overlay/tooltip/style.css +4 -0
- package/dist/esm/ui/system/locale-provider/index.js +1 -0
- package/dist/esm/ui/system/locale-provider/messages.js +1 -0
- package/dist/esm/ui/system/theme-provider/index.js +1 -0
- package/dist/esm/utils/cn.js +1 -0
- package/dist/esm/utils/hangul-search.js +1 -0
- package/dist/esm/utils/index.js +1 -0
- package/dist/esm/utils/key-activation.js +1 -0
- package/dist/esm/utils/overlay-stack.js +1 -0
- package/dist/esm/utils/polymorphic.js +0 -0
- package/dist/esm/utils/safe-html.js +0 -0
- package/dist/esm/utils/scroll-lock.js +1 -0
- package/dist/esm/utils/split-aria-props.js +1 -0
- package/dist/esm/utils/use-anchored-position.js +1 -0
- package/dist/esm/utils/use-clipboard.js +1 -0
- package/dist/esm/utils/use-focus-trap.js +1 -0
- package/dist/esm/utils/use-is-mounted.js +1 -0
- package/dist/esm/utils/use-listbox-popup.js +1 -0
- package/dist/esm/utils/use-presence.js +1 -0
- package/dist/esm/utils/use-reduced-motion.js +1 -0
- package/dist/esm/utils/use-safe-layout-effect.js +1 -0
- package/dist/esm/utils/use-top-inset.js +1 -0
- package/dist/index.css +3 -7818
- package/dist/index.d.ts +145 -154
- package/dist/styles/a11y/_index.scss +2 -28
- package/dist/styles/a11y/_tokens.scss +25 -0
- package/dist/styles/border-width/_index.scss +2 -14
- package/dist/styles/border-width/_tokens.scss +9 -0
- package/dist/styles/breakpoints/_index.scss +2 -4
- package/dist/styles/breakpoints/_tokens.scss +6 -0
- package/dist/styles/colors/_index.scss +2 -195
- package/dist/styles/colors/_tokens.scss +178 -0
- package/dist/styles/elevation/_index.scss +2 -9
- package/dist/styles/elevation/_tokens.scss +7 -0
- package/dist/styles/icon/_index.scss +2 -5
- package/dist/styles/icon/_tokens.scss +7 -0
- package/dist/styles/layout/_index.scss +2 -1
- package/dist/styles/layout/_tokens.scss +4 -0
- package/dist/styles/motion/_index.scss +31 -56
- package/dist/styles/motion/_tokens.scss +52 -0
- package/dist/styles/opacity/_index.scss +2 -12
- package/dist/styles/opacity/_tokens.scss +12 -0
- package/dist/styles/radius/_index.scss +2 -7
- package/dist/styles/radius/_tokens.scss +19 -0
- package/dist/styles/skeleton/_index.scss +2 -28
- package/dist/styles/skeleton/_tokens.scss +23 -0
- package/dist/styles/spacing/_index.scss +2 -20
- package/dist/styles/spacing/_tokens.scss +43 -0
- package/dist/styles/typography/_index.scss +2 -118
- package/dist/styles/typography/_tokens.scss +93 -0
- package/dist/styles/z-index/_index.scss +2 -24
- package/dist/styles/z-index/_tokens.scss +27 -0
- package/dist/tailwind.css +111 -0
- package/dist/vanilla/bigtablet.min.css +1 -1
- package/docs/AGENT_GUIDE.md +30 -31
- package/package.json +12 -10
- package/dist/index.js +0 -8045
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
// 생성 파일 - 직접 고치지 말 것. 원본은 src/styles/tokens.json, `pnpm tokens` 로 다시 만든다.
|
|
2
|
+
|
|
3
|
+
$duration_fast: 0.1s;
|
|
4
|
+
$duration_base: 0.2s;
|
|
5
|
+
$duration_slow: 0.3s;
|
|
6
|
+
// Keyword easing - animation shorthand 에서 duration 과 조합할 때.
|
|
7
|
+
// ($transition_* composite 는 easing 이 이미 들어있어 animation 에 쓰면 중복된다)
|
|
8
|
+
// `//` 주석 사용 - `/* */` 는 vanilla CSS 번들에 그대로 실려 나간다.
|
|
9
|
+
$easing_linear: linear;
|
|
10
|
+
$easing_standard: ease-in-out;
|
|
11
|
+
$ease_out_expo: cubic-bezier(0.16, 1, 0.3, 1);
|
|
12
|
+
$ease_out_quart: cubic-bezier(0.25, 1, 0.5, 1);
|
|
13
|
+
$ease_in_out_cubic: cubic-bezier(0.65, 0, 0.35, 1);
|
|
14
|
+
$ease_spring: cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
15
|
+
// 감속 진입
|
|
16
|
+
$easing_enter: cubic-bezier(0.16, 1, 0.3, 1);
|
|
17
|
+
// 가속 퇴출
|
|
18
|
+
$easing_exit: cubic-bezier(0.4, 0, 1, 1);
|
|
19
|
+
// hover, icon
|
|
20
|
+
$transition_fast: 0.1s ease-in-out;
|
|
21
|
+
// 메뉴 열림
|
|
22
|
+
$transition_base: 0.2s ease-in-out;
|
|
23
|
+
// 레이아웃 변화
|
|
24
|
+
$transition_slow: 0.3s ease-in-out;
|
|
25
|
+
$transition_emphasized: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
|
|
26
|
+
$transition_bounce: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
|
|
27
|
+
$transition_fade: 0.15s ease-in-out;
|
|
28
|
+
$transition_slide: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
|
|
29
|
+
$transition_scale: 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
|
|
30
|
+
$transition_state: 0.18s ease-in-out;
|
|
31
|
+
$transition_enter_fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
|
|
32
|
+
$transition_enter_base: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
|
|
33
|
+
$transition_exit_fast: 0.12s cubic-bezier(0.4, 0, 1, 1);
|
|
34
|
+
$transition_exit_base: 0.15s cubic-bezier(0.4, 0, 1, 1);
|
|
35
|
+
$transition_smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
|
|
36
|
+
$transition_spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
37
|
+
$transition_dramatic: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
|
|
38
|
+
$transition_lift: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
|
|
39
|
+
// Loading & progress indicators
|
|
40
|
+
// 무한 반복(`infinite`) 이 허용되는 유일한 자리 - loading affordance 전용.
|
|
41
|
+
// ($skeleton_animation_duration / _timing 과 같은 역할의 컴포넌트 스코프 토큰)
|
|
42
|
+
// Spinner spoke fade 1 cycle
|
|
43
|
+
$duration_loading_spinner: 1.2s;
|
|
44
|
+
// TopLoading indeterminate sweep 1 cycle
|
|
45
|
+
$duration_loading_bar: 1.5s;
|
|
46
|
+
// Toast progress bar 기본값 (--toast-duration fallback)
|
|
47
|
+
$duration_progress_default: 3s;
|
|
48
|
+
// Presence (오버레이·팝업 진입/퇴출) - 예전 react-spring(tension 280, friction 28) 곡선을 풀어 근사한 것.
|
|
49
|
+
// 감쇠비 0.84 의 오버슈트(0.8%)는 잘랐다 - 눈에 안 보이고 퇴출과 같은 곡선을 쓰기 위해서다.
|
|
50
|
+
// `linear()` 를 모르는 브라우저는 transition 선언 전체를 버려 모션 없이 즉시 열고 닫는다.
|
|
51
|
+
$duration_presence: 0.3s;
|
|
52
|
+
$easing_presence: linear(0, 0.069, 0.219, 0.39, 0.551, 0.687, 0.793, 0.871, 0.926, 0.963, 0.985, 0.998, 1);
|
|
@@ -1,12 +1,2 @@
|
|
|
1
|
-
//
|
|
2
|
-
|
|
3
|
-
$opacity_0: 0;
|
|
4
|
-
$opacity_5: 0.05;
|
|
5
|
-
$opacity_8: 0.08;
|
|
6
|
-
$opacity_12: 0.12;
|
|
7
|
-
$opacity_16: 0.16;
|
|
8
|
-
$opacity_38: 0.38;
|
|
9
|
-
$opacity_50: 0.5;
|
|
10
|
-
$opacity_80: 0.8;
|
|
11
|
-
$opacity_90: 0.9;
|
|
12
|
-
$opacity_100: 1;
|
|
1
|
+
// 값은 tokens.json 에서 생성한 _tokens.scss 에 있다 - 고칠 때는 tokens.json 을 고치고 `pnpm tokens`.
|
|
2
|
+
@forward "tokens";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// 생성 파일 - 직접 고치지 말 것. 원본은 src/styles/tokens.json, `pnpm tokens` 로 다시 만든다.
|
|
2
|
+
|
|
3
|
+
$opacity_0: 0;
|
|
4
|
+
$opacity_5: 0.05;
|
|
5
|
+
$opacity_8: 0.08;
|
|
6
|
+
$opacity_12: 0.12;
|
|
7
|
+
$opacity_16: 0.16;
|
|
8
|
+
$opacity_38: 0.38;
|
|
9
|
+
$opacity_50: 0.5;
|
|
10
|
+
$opacity_80: 0.8;
|
|
11
|
+
$opacity_90: 0.9;
|
|
12
|
+
$opacity_100: 1;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// 생성 파일 - 직접 고치지 말 것. 원본은 src/styles/tokens.json, `pnpm tokens` 로 다시 만든다.
|
|
2
|
+
|
|
3
|
+
// 원값(숫자) - 계산·고정 크기·CSS 변수 정의용. 사용처가 덮어써도 바뀌지 않는다.
|
|
4
|
+
$radius_base_none: 0px;
|
|
5
|
+
$radius_base_xs: 4px;
|
|
6
|
+
$radius_base_sm: 6px;
|
|
7
|
+
$radius_base_md: 8px;
|
|
8
|
+
$radius_base_lg: 12px;
|
|
9
|
+
$radius_base_xl: 16px;
|
|
10
|
+
$radius_base_full: 9999px;
|
|
11
|
+
// 컴포넌트·소비자용 - `var(--bt-*, 원값)`. `:root { --bt-radius-md: 4px }` 처럼 덮어쓰면 따라간다.
|
|
12
|
+
// 문자열이라 Sass 산술(`* 2`, 단항 `-`)이 안 된다 - `calc(2 * #{$x})` 를 쓰거나 원값(`_base_`)을 쓴다.
|
|
13
|
+
$radius_none: var(--bt-radius-none, 0px);
|
|
14
|
+
$radius_xs: var(--bt-radius-xs, 4px);
|
|
15
|
+
$radius_sm: var(--bt-radius-sm, 6px);
|
|
16
|
+
$radius_md: var(--bt-radius-md, 8px);
|
|
17
|
+
$radius_lg: var(--bt-radius-lg, 12px);
|
|
18
|
+
$radius_xl: var(--bt-radius-xl, 16px);
|
|
19
|
+
$radius_full: var(--bt-radius-full, 9999px);
|
|
@@ -1,31 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
// CSS custom property 기반 - `[data-theme="dark"]` 에서 자동 전환.
|
|
5
|
-
// fallback 값은 standalone import (colors 미포함) 시 light 동작 보장.
|
|
6
|
-
$color_skeleton_base: var(--bt-color-skeleton-base, #F3F3F3);
|
|
7
|
-
$color_skeleton_wave: var(--bt-color-skeleton-wave, #f0f0f0);
|
|
8
|
-
$color_skeleton_highlight: var(--bt-color-skeleton-highlight, #fafafa);
|
|
9
|
-
|
|
10
|
-
$skeleton_gradient: linear-gradient(
|
|
11
|
-
90deg,
|
|
12
|
-
$color_skeleton_base 25%,
|
|
13
|
-
$color_skeleton_highlight 37%,
|
|
14
|
-
$color_skeleton_wave 63%
|
|
15
|
-
);
|
|
16
|
-
|
|
17
|
-
$skeleton_radius_sm: 6px;
|
|
18
|
-
$skeleton_radius_md: 8px;
|
|
19
|
-
$skeleton_radius_lg: 12px;
|
|
20
|
-
|
|
21
|
-
$skeleton_height_xs: 0.25rem; // 4px
|
|
22
|
-
$skeleton_height_sm: 0.5rem; // 8px
|
|
23
|
-
$skeleton_height_md: 0.75rem; // 12px
|
|
24
|
-
$skeleton_height_lg: 1rem; // 16px
|
|
25
|
-
$skeleton_height_xl: 1.25rem; // 20px
|
|
26
|
-
|
|
27
|
-
$skeleton_animation_duration: 1.4s;
|
|
28
|
-
$skeleton_animation_timing: ease-in-out;
|
|
1
|
+
@forward "tokens";
|
|
2
|
+
@use "tokens" as *;
|
|
29
3
|
|
|
30
4
|
@mixin skeleton(
|
|
31
5
|
$width: 100%,
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// 생성 파일 - 직접 고치지 말 것. 원본은 src/styles/tokens.json, `pnpm tokens` 로 다시 만든다.
|
|
2
|
+
|
|
3
|
+
// CSS custom property 기반 - `[data-theme="dark"]` 에서 자동 전환.
|
|
4
|
+
// fallback 값은 standalone import (colors 미포함) 시 light 동작 보장.
|
|
5
|
+
$color_skeleton_base: var(--bt-color-skeleton-base, #F3F3F3);
|
|
6
|
+
$color_skeleton_wave: var(--bt-color-skeleton-wave, #F0F0F0);
|
|
7
|
+
$color_skeleton_highlight: var(--bt-color-skeleton-highlight, #FAFAFA);
|
|
8
|
+
$skeleton_gradient: linear-gradient(90deg, var(--bt-color-skeleton-base, #F3F3F3) 25%, var(--bt-color-skeleton-highlight, #FAFAFA) 37%, var(--bt-color-skeleton-wave, #F0F0F0) 63%);
|
|
9
|
+
$skeleton_radius_sm: 6px;
|
|
10
|
+
$skeleton_radius_md: 8px;
|
|
11
|
+
$skeleton_radius_lg: 12px;
|
|
12
|
+
// 4px
|
|
13
|
+
$skeleton_height_xs: 0.25rem;
|
|
14
|
+
// 8px
|
|
15
|
+
$skeleton_height_sm: 0.5rem;
|
|
16
|
+
// 12px
|
|
17
|
+
$skeleton_height_md: 0.75rem;
|
|
18
|
+
// 16px
|
|
19
|
+
$skeleton_height_lg: 1rem;
|
|
20
|
+
// 20px
|
|
21
|
+
$skeleton_height_xl: 1.25rem;
|
|
22
|
+
$skeleton_animation_duration: 1.4s;
|
|
23
|
+
$skeleton_animation_timing: ease-in-out;
|
|
@@ -1,20 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
$spacing_2: 2px;
|
|
4
|
-
$spacing_3: 3px;
|
|
5
|
-
$spacing_4: 4px;
|
|
6
|
-
$spacing_6: 6px;
|
|
7
|
-
$spacing_8: 8px;
|
|
8
|
-
$spacing_10: 10px;
|
|
9
|
-
$spacing_12: 12px;
|
|
10
|
-
$spacing_16: 16px;
|
|
11
|
-
$spacing_20: 20px;
|
|
12
|
-
$spacing_24: 24px;
|
|
13
|
-
$spacing_32: 32px;
|
|
14
|
-
$spacing_40: 40px;
|
|
15
|
-
$spacing_48: 48px;
|
|
16
|
-
// 레이아웃 리듬 - 컴포넌트 내부 여백이 아니라 Section 처럼 화면 단위 블록의 상하 여백에 쓴다.
|
|
17
|
-
// 48 에서 스케일이 끝나 Section 이 raw 64/96/128 을 적고 있었다.
|
|
18
|
-
$spacing_64: 64px;
|
|
19
|
-
$spacing_96: 96px;
|
|
20
|
-
$spacing_128: 128px;
|
|
1
|
+
// 값은 tokens.json 에서 생성한 _tokens.scss 에 있다 - 고칠 때는 tokens.json 을 고치고 `pnpm tokens`.
|
|
2
|
+
@forward "tokens";
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// 생성 파일 - 직접 고치지 말 것. 원본은 src/styles/tokens.json, `pnpm tokens` 로 다시 만든다.
|
|
2
|
+
|
|
3
|
+
// 원값(숫자) - 계산·고정 크기·CSS 변수 정의용. 사용처가 덮어써도 바뀌지 않는다.
|
|
4
|
+
$spacing_base_0: 0px;
|
|
5
|
+
$spacing_base_1: 1px;
|
|
6
|
+
$spacing_base_2: 2px;
|
|
7
|
+
$spacing_base_3: 3px;
|
|
8
|
+
$spacing_base_4: 4px;
|
|
9
|
+
$spacing_base_6: 6px;
|
|
10
|
+
$spacing_base_8: 8px;
|
|
11
|
+
$spacing_base_10: 10px;
|
|
12
|
+
$spacing_base_12: 12px;
|
|
13
|
+
$spacing_base_16: 16px;
|
|
14
|
+
$spacing_base_20: 20px;
|
|
15
|
+
$spacing_base_24: 24px;
|
|
16
|
+
$spacing_base_32: 32px;
|
|
17
|
+
$spacing_base_40: 40px;
|
|
18
|
+
$spacing_base_48: 48px;
|
|
19
|
+
// 레이아웃 리듬 - 컴포넌트 내부 여백이 아니라 Section 처럼 화면 단위 블록의 상하 여백에 쓴다.
|
|
20
|
+
// 48 에서 스케일이 끝나 Section 이 raw 64/96/128 을 적고 있었다.
|
|
21
|
+
$spacing_base_64: 64px;
|
|
22
|
+
$spacing_base_96: 96px;
|
|
23
|
+
$spacing_base_128: 128px;
|
|
24
|
+
// 컴포넌트·소비자용 - `var(--bt-*, 원값)`. `:root { --bt-spacing-16: 20px }` 처럼 덮어쓰면 따라간다.
|
|
25
|
+
// 문자열이라 Sass 산술(`* 2`, 단항 `-`)이 안 된다 - `calc(2 * #{$x})` 를 쓰거나 원값(`_base_`)을 쓴다.
|
|
26
|
+
$spacing_0: var(--bt-spacing-0, 0px);
|
|
27
|
+
$spacing_1: var(--bt-spacing-1, 1px);
|
|
28
|
+
$spacing_2: var(--bt-spacing-2, 2px);
|
|
29
|
+
$spacing_3: var(--bt-spacing-3, 3px);
|
|
30
|
+
$spacing_4: var(--bt-spacing-4, 4px);
|
|
31
|
+
$spacing_6: var(--bt-spacing-6, 6px);
|
|
32
|
+
$spacing_8: var(--bt-spacing-8, 8px);
|
|
33
|
+
$spacing_10: var(--bt-spacing-10, 10px);
|
|
34
|
+
$spacing_12: var(--bt-spacing-12, 12px);
|
|
35
|
+
$spacing_16: var(--bt-spacing-16, 16px);
|
|
36
|
+
$spacing_20: var(--bt-spacing-20, 20px);
|
|
37
|
+
$spacing_24: var(--bt-spacing-24, 24px);
|
|
38
|
+
$spacing_32: var(--bt-spacing-32, 32px);
|
|
39
|
+
$spacing_40: var(--bt-spacing-40, 40px);
|
|
40
|
+
$spacing_48: var(--bt-spacing-48, 48px);
|
|
41
|
+
$spacing_64: var(--bt-spacing-64, 64px);
|
|
42
|
+
$spacing_96: var(--bt-spacing-96, 96px);
|
|
43
|
+
$spacing_128: var(--bt-spacing-128, 128px);
|
|
@@ -2,124 +2,8 @@
|
|
|
2
2
|
@use "../breakpoints" as breakpoint;
|
|
3
3
|
@use "../colors" as colors;
|
|
4
4
|
@use "../radius" as radius;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
// ── Base: Font size ───────────────────────────────────────────────────────────
|
|
9
|
-
|
|
10
|
-
// 10px - 본문에는 쓰지 않는다. avatar xs(24px 원) 이니셜과 badge count 처럼 장식적인 숫자·글자
|
|
11
|
-
// 전용이다. 그 자리에 12px 을 넣으면 16px 카운트 뱃지를 넘친다.
|
|
12
|
-
$font_size_10: 10px;
|
|
13
|
-
$font_size_12: 12px;
|
|
14
|
-
$font_size_13: 13px;
|
|
15
|
-
$font_size_14: 14px;
|
|
16
|
-
$font_size_15: 15px;
|
|
17
|
-
$font_size_16: 16px;
|
|
18
|
-
$font_size_18: 18px;
|
|
19
|
-
$font_size_20: 20px;
|
|
20
|
-
$font_size_24: 24px;
|
|
21
|
-
$font_size_28: 28px;
|
|
22
|
-
$font_size_32: 32px;
|
|
23
|
-
$font_size_40: 40px;
|
|
24
|
-
$font_size_48: 48px;
|
|
25
|
-
|
|
26
|
-
// ── Base: Font weight ─────────────────────────────────────────────────────────
|
|
27
|
-
|
|
28
|
-
$font_weight_thin: 100;
|
|
29
|
-
$font_weight_extra_light: 200;
|
|
30
|
-
$font_weight_light: 300;
|
|
31
|
-
$font_weight_regular: 400;
|
|
32
|
-
$font_weight_medium: 500;
|
|
33
|
-
$font_weight_semi_bold: 600;
|
|
34
|
-
$font_weight_bold: 700;
|
|
35
|
-
$font_weight_extra_bold: 800;
|
|
36
|
-
$font_weight_black: 900;
|
|
37
|
-
|
|
38
|
-
// ── Base: Line height ─────────────────────────────────────────────────────────
|
|
39
|
-
|
|
40
|
-
$line_height_16: 16px;
|
|
41
|
-
$line_height_18: 18px;
|
|
42
|
-
$line_height_20: 20px;
|
|
43
|
-
$line_height_22_5: 22.5px;
|
|
44
|
-
$line_height_24: 24px;
|
|
45
|
-
$line_height_28: 28px;
|
|
46
|
-
$line_height_32: 32px;
|
|
47
|
-
$line_height_36: 36px;
|
|
48
|
-
$line_height_40: 40px;
|
|
49
|
-
$line_height_50: 50px;
|
|
50
|
-
$line_height_60: 60px;
|
|
51
|
-
|
|
52
|
-
$letter_spacing_normal: 0px;
|
|
53
|
-
$letter_spacing_tight: 0.32px;
|
|
54
|
-
|
|
55
|
-
// ── Semantic mixins ───────────────────────────────────────────────────────────
|
|
56
|
-
|
|
57
|
-
@mixin display_large { font-size: $font_size_48; font-weight: $font_weight_regular; line-height: $line_height_60; letter-spacing: $letter_spacing_normal; }
|
|
58
|
-
@mixin display_large_medium { font-size: $font_size_48; font-weight: $font_weight_medium; line-height: $line_height_60; letter-spacing: $letter_spacing_normal; }
|
|
59
|
-
@mixin display_medium { font-size: $font_size_40; font-weight: $font_weight_regular; line-height: $line_height_50; letter-spacing: $letter_spacing_normal; }
|
|
60
|
-
@mixin display_medium_medium { font-size: $font_size_40; font-weight: $font_weight_medium; line-height: $line_height_50; letter-spacing: $letter_spacing_normal; }
|
|
61
|
-
@mixin display_small { font-size: $font_size_32; font-weight: $font_weight_regular; line-height: $line_height_40; letter-spacing: $letter_spacing_normal; }
|
|
62
|
-
@mixin display_small_medium { font-size: $font_size_32; font-weight: $font_weight_medium; line-height: $line_height_40; letter-spacing: $letter_spacing_normal; }
|
|
63
|
-
|
|
64
|
-
@mixin heading_large { font-size: $font_size_28; font-weight: $font_weight_regular; line-height: $line_height_36; letter-spacing: $letter_spacing_normal; }
|
|
65
|
-
@mixin heading_large_medium { font-size: $font_size_28; font-weight: $font_weight_medium; line-height: $line_height_36; letter-spacing: $letter_spacing_normal; }
|
|
66
|
-
@mixin heading_medium { font-size: $font_size_24; font-weight: $font_weight_regular; line-height: $line_height_32; letter-spacing: $letter_spacing_normal; }
|
|
67
|
-
@mixin heading_medium_medium { font-size: $font_size_24; font-weight: $font_weight_medium; line-height: $line_height_32; letter-spacing: $letter_spacing_normal; }
|
|
68
|
-
@mixin heading_small { font-size: $font_size_20; font-weight: $font_weight_regular; line-height: $line_height_28; letter-spacing: $letter_spacing_normal; }
|
|
69
|
-
@mixin heading_small_medium { font-size: $font_size_20; font-weight: $font_weight_medium; line-height: $line_height_28; letter-spacing: $letter_spacing_normal; }
|
|
70
|
-
|
|
71
|
-
@mixin title_large { font-size: $font_size_18; font-weight: $font_weight_regular; line-height: $line_height_24; letter-spacing: $letter_spacing_normal; }
|
|
72
|
-
@mixin title_large_medium { font-size: $font_size_18; font-weight: $font_weight_medium; line-height: $line_height_24; letter-spacing: $letter_spacing_normal; }
|
|
73
|
-
@mixin title_medium { font-size: $font_size_16; font-weight: $font_weight_regular; line-height: $line_height_24; letter-spacing: $letter_spacing_normal; }
|
|
74
|
-
@mixin title_medium_medium { font-size: $font_size_16; font-weight: $font_weight_medium; line-height: $line_height_24; letter-spacing: $letter_spacing_normal; }
|
|
75
|
-
@mixin title_small { font-size: $font_size_14; font-weight: $font_weight_regular; line-height: $line_height_20; letter-spacing: $letter_spacing_normal; }
|
|
76
|
-
@mixin title_small_medium { font-size: $font_size_14; font-weight: $font_weight_medium; line-height: $line_height_20; letter-spacing: $letter_spacing_normal; }
|
|
77
|
-
|
|
78
|
-
@mixin body_large { font-size: $font_size_16; font-weight: $font_weight_regular; line-height: $line_height_24; letter-spacing: $letter_spacing_normal; }
|
|
79
|
-
@mixin body_large_medium { font-size: $font_size_16; font-weight: $font_weight_medium; line-height: $line_height_24; letter-spacing: $letter_spacing_normal; }
|
|
80
|
-
@mixin body_medium { font-size: $font_size_15; font-weight: $font_weight_regular; line-height: $line_height_22_5; letter-spacing: $letter_spacing_normal; }
|
|
81
|
-
@mixin body_medium_medium { font-size: $font_size_15; font-weight: $font_weight_medium; line-height: $line_height_22_5; letter-spacing: $letter_spacing_normal; }
|
|
82
|
-
@mixin body_small { font-size: $font_size_14; font-weight: $font_weight_regular; line-height: $line_height_20; letter-spacing: $letter_spacing_normal; }
|
|
83
|
-
@mixin body_small_medium { font-size: $font_size_14; font-weight: $font_weight_medium; line-height: $line_height_20; letter-spacing: $letter_spacing_normal; }
|
|
84
|
-
|
|
85
|
-
@mixin label_large { font-size: $font_size_14; font-weight: $font_weight_regular; line-height: $line_height_20; letter-spacing: $letter_spacing_normal; }
|
|
86
|
-
@mixin label_large_medium { font-size: $font_size_14; font-weight: $font_weight_medium; line-height: $line_height_20; letter-spacing: $letter_spacing_normal; }
|
|
87
|
-
@mixin label_medium { font-size: $font_size_13; font-weight: $font_weight_regular; line-height: $line_height_18; letter-spacing: $letter_spacing_normal; }
|
|
88
|
-
@mixin label_medium_medium { font-size: $font_size_13; font-weight: $font_weight_medium; line-height: $line_height_18; letter-spacing: $letter_spacing_normal; }
|
|
89
|
-
@mixin label_small { font-size: $font_size_12; font-weight: $font_weight_regular; line-height: $line_height_16; letter-spacing: $letter_spacing_normal; }
|
|
90
|
-
@mixin label_small_medium { font-size: $font_size_12; font-weight: $font_weight_medium; line-height: $line_height_16; letter-spacing: $letter_spacing_normal; }
|
|
91
|
-
|
|
92
|
-
// ── Bold weight variants (v3.1) ───────────────────────────────────────────
|
|
93
|
-
// 강조용 - 매번 font-weight 명시 안 해도 되도록.
|
|
94
|
-
|
|
95
|
-
@mixin display_large_bold { font-size: $font_size_48; font-weight: $font_weight_bold; line-height: $line_height_60; letter-spacing: -0.02em; }
|
|
96
|
-
@mixin display_medium_bold { font-size: $font_size_40; font-weight: $font_weight_bold; line-height: $line_height_50; letter-spacing: -0.02em; }
|
|
97
|
-
@mixin display_small_bold { font-size: $font_size_32; font-weight: $font_weight_bold; line-height: $line_height_40; letter-spacing: -0.015em; }
|
|
98
|
-
|
|
99
|
-
@mixin heading_large_bold { font-size: $font_size_28; font-weight: $font_weight_bold; line-height: $line_height_36; letter-spacing: -0.01em; }
|
|
100
|
-
@mixin heading_medium_bold { font-size: $font_size_24; font-weight: $font_weight_bold; line-height: $line_height_32; letter-spacing: -0.01em; }
|
|
101
|
-
@mixin heading_small_bold { font-size: $font_size_20; font-weight: $font_weight_bold; line-height: $line_height_28; letter-spacing: $letter_spacing_normal; }
|
|
102
|
-
|
|
103
|
-
@mixin title_large_bold { font-size: $font_size_18; font-weight: $font_weight_bold; line-height: $line_height_24; letter-spacing: $letter_spacing_normal; }
|
|
104
|
-
@mixin title_medium_bold { font-size: $font_size_16; font-weight: $font_weight_bold; line-height: $line_height_24; letter-spacing: $letter_spacing_normal; }
|
|
105
|
-
@mixin title_small_bold { font-size: $font_size_14; font-weight: $font_weight_bold; line-height: $line_height_20; letter-spacing: $letter_spacing_normal; }
|
|
106
|
-
|
|
107
|
-
@mixin body_large_bold { font-size: $font_size_16; font-weight: $font_weight_bold; line-height: $line_height_24; letter-spacing: $letter_spacing_normal; }
|
|
108
|
-
@mixin body_medium_bold { font-size: $font_size_15; font-weight: $font_weight_bold; line-height: $line_height_22_5; letter-spacing: $letter_spacing_normal; }
|
|
109
|
-
@mixin body_small_bold { font-size: $font_size_14; font-weight: $font_weight_bold; line-height: $line_height_20; letter-spacing: $letter_spacing_normal; }
|
|
110
|
-
|
|
111
|
-
@mixin label_large_bold { font-size: $font_size_14; font-weight: $font_weight_bold; line-height: $line_height_20; letter-spacing: $letter_spacing_tight; }
|
|
112
|
-
@mixin label_medium_bold { font-size: $font_size_13; font-weight: $font_weight_bold; line-height: $line_height_18; letter-spacing: $letter_spacing_tight; }
|
|
113
|
-
@mixin label_small_bold { font-size: $font_size_12; font-weight: $font_weight_bold; line-height: $line_height_16; letter-spacing: $letter_spacing_tight; }
|
|
114
|
-
|
|
115
|
-
// ── Semantic aliases (v3.1) ───────────────────────────────────────────────
|
|
116
|
-
// 의미상 명확한 이름. heading_*/body_* 외워두기 어려운 경우 대안.
|
|
117
|
-
|
|
118
|
-
@mixin caption { font-size: $font_size_12; font-weight: $font_weight_regular; line-height: $line_height_16; letter-spacing: $letter_spacing_tight; }
|
|
119
|
-
@mixin caption_bold { font-size: $font_size_12; font-weight: $font_weight_bold; line-height: $line_height_16; letter-spacing: $letter_spacing_tight; }
|
|
120
|
-
@mixin overline { font-size: $font_size_12; font-weight: $font_weight_semi_bold; line-height: $line_height_16; letter-spacing: 0.08em; text-transform: uppercase; }
|
|
121
|
-
@mixin subtitle { font-size: $font_size_15; font-weight: $font_weight_medium; line-height: $line_height_22_5; letter-spacing: $letter_spacing_normal; }
|
|
122
|
-
@mixin code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: $font_size_13; line-height: $line_height_18; }
|
|
5
|
+
@forward "tokens";
|
|
6
|
+
@use "tokens" as *;
|
|
123
7
|
|
|
124
8
|
// ── Responsive display (v3.1) ─────────────────────────────────────────────
|
|
125
9
|
// Hero/marketing title - 데스크탑 큰 사이즈, 모바일에서 자동 한 단계 축소.
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
// 생성 파일 - 직접 고치지 말 것. 원본은 src/styles/tokens.json, `pnpm tokens` 로 다시 만든다.
|
|
2
|
+
|
|
3
|
+
// 폴백까지 포함한 CSS font-family 값
|
|
4
|
+
$font_family_base_primary: "Pretendard", sans-serif;
|
|
5
|
+
// 10px - 본문에는 쓰지 않는다. avatar xs(24px 원) 이니셜과 badge count 처럼 장식적인 숫자·글자
|
|
6
|
+
// 전용이다. 그 자리에 12px 을 넣으면 16px 카운트 뱃지를 넘친다.
|
|
7
|
+
$font_size_10: 10px;
|
|
8
|
+
$font_size_12: 12px;
|
|
9
|
+
$font_size_13: 13px;
|
|
10
|
+
$font_size_14: 14px;
|
|
11
|
+
$font_size_15: 15px;
|
|
12
|
+
$font_size_16: 16px;
|
|
13
|
+
$font_size_18: 18px;
|
|
14
|
+
$font_size_20: 20px;
|
|
15
|
+
$font_size_24: 24px;
|
|
16
|
+
$font_size_28: 28px;
|
|
17
|
+
$font_size_32: 32px;
|
|
18
|
+
$font_size_40: 40px;
|
|
19
|
+
$font_size_48: 48px;
|
|
20
|
+
$font_weight_thin: 100;
|
|
21
|
+
$font_weight_extra_light: 200;
|
|
22
|
+
$font_weight_light: 300;
|
|
23
|
+
$font_weight_regular: 400;
|
|
24
|
+
$font_weight_medium: 500;
|
|
25
|
+
$font_weight_semi_bold: 600;
|
|
26
|
+
$font_weight_bold: 700;
|
|
27
|
+
$font_weight_extra_bold: 800;
|
|
28
|
+
$font_weight_black: 900;
|
|
29
|
+
$line_height_16: 16px;
|
|
30
|
+
$line_height_18: 18px;
|
|
31
|
+
$line_height_20: 20px;
|
|
32
|
+
$line_height_22_5: 22.5px;
|
|
33
|
+
$line_height_24: 24px;
|
|
34
|
+
$line_height_28: 28px;
|
|
35
|
+
$line_height_32: 32px;
|
|
36
|
+
$line_height_36: 36px;
|
|
37
|
+
$line_height_40: 40px;
|
|
38
|
+
$line_height_50: 50px;
|
|
39
|
+
$line_height_60: 60px;
|
|
40
|
+
$letter_spacing_normal: 0px;
|
|
41
|
+
$letter_spacing_tight: 0.32px;
|
|
42
|
+
// `:root { --bt-font-family: "Inter", sans-serif }` 로 덮어쓰면 컴포넌트 글꼴이 따라간다
|
|
43
|
+
$font_family_primary: var(--bt-font-family, "Pretendard", sans-serif);
|
|
44
|
+
@mixin display_large { font-size: 48px; font-weight: 400; line-height: 60px; letter-spacing: 0px; }
|
|
45
|
+
@mixin display_large_medium { font-size: 48px; font-weight: 500; line-height: 60px; letter-spacing: 0px; }
|
|
46
|
+
@mixin display_medium { font-size: 40px; font-weight: 400; line-height: 50px; letter-spacing: 0px; }
|
|
47
|
+
@mixin display_medium_medium { font-size: 40px; font-weight: 500; line-height: 50px; letter-spacing: 0px; }
|
|
48
|
+
@mixin display_small { font-size: 32px; font-weight: 400; line-height: 40px; letter-spacing: 0px; }
|
|
49
|
+
@mixin display_small_medium { font-size: 32px; font-weight: 500; line-height: 40px; letter-spacing: 0px; }
|
|
50
|
+
@mixin display_large_bold { font-size: 48px; font-weight: 700; line-height: 60px; letter-spacing: -0.02em; }
|
|
51
|
+
@mixin display_medium_bold { font-size: 40px; font-weight: 700; line-height: 50px; letter-spacing: -0.02em; }
|
|
52
|
+
@mixin display_small_bold { font-size: 32px; font-weight: 700; line-height: 40px; letter-spacing: -0.015em; }
|
|
53
|
+
@mixin heading_large { font-size: 28px; font-weight: 400; line-height: 36px; letter-spacing: 0px; }
|
|
54
|
+
@mixin heading_large_medium { font-size: 28px; font-weight: 500; line-height: 36px; letter-spacing: 0px; }
|
|
55
|
+
@mixin heading_medium { font-size: 24px; font-weight: 400; line-height: 32px; letter-spacing: 0px; }
|
|
56
|
+
@mixin heading_medium_medium { font-size: 24px; font-weight: 500; line-height: 32px; letter-spacing: 0px; }
|
|
57
|
+
@mixin heading_small { font-size: 20px; font-weight: 400; line-height: 28px; letter-spacing: 0px; }
|
|
58
|
+
@mixin heading_small_medium { font-size: 20px; font-weight: 500; line-height: 28px; letter-spacing: 0px; }
|
|
59
|
+
@mixin heading_large_bold { font-size: 28px; font-weight: 700; line-height: 36px; letter-spacing: -0.01em; }
|
|
60
|
+
@mixin heading_medium_bold { font-size: 24px; font-weight: 700; line-height: 32px; letter-spacing: -0.01em; }
|
|
61
|
+
@mixin heading_small_bold { font-size: 20px; font-weight: 700; line-height: 28px; letter-spacing: 0px; }
|
|
62
|
+
@mixin title_large { font-size: 18px; font-weight: 400; line-height: 24px; letter-spacing: 0px; }
|
|
63
|
+
@mixin title_large_medium { font-size: 18px; font-weight: 500; line-height: 24px; letter-spacing: 0px; }
|
|
64
|
+
@mixin title_medium { font-size: 16px; font-weight: 400; line-height: 24px; letter-spacing: 0px; }
|
|
65
|
+
@mixin title_medium_medium { font-size: 16px; font-weight: 500; line-height: 24px; letter-spacing: 0px; }
|
|
66
|
+
@mixin title_small { font-size: 14px; font-weight: 400; line-height: 20px; letter-spacing: 0px; }
|
|
67
|
+
@mixin title_small_medium { font-size: 14px; font-weight: 500; line-height: 20px; letter-spacing: 0px; }
|
|
68
|
+
@mixin title_large_bold { font-size: 18px; font-weight: 700; line-height: 24px; letter-spacing: 0px; }
|
|
69
|
+
@mixin title_medium_bold { font-size: 16px; font-weight: 700; line-height: 24px; letter-spacing: 0px; }
|
|
70
|
+
@mixin title_small_bold { font-size: 14px; font-weight: 700; line-height: 20px; letter-spacing: 0px; }
|
|
71
|
+
@mixin body_large { font-size: 16px; font-weight: 400; line-height: 24px; letter-spacing: 0px; }
|
|
72
|
+
@mixin body_large_medium { font-size: 16px; font-weight: 500; line-height: 24px; letter-spacing: 0px; }
|
|
73
|
+
@mixin body_medium { font-size: 15px; font-weight: 400; line-height: 22.5px; letter-spacing: 0px; }
|
|
74
|
+
@mixin body_medium_medium { font-size: 15px; font-weight: 500; line-height: 22.5px; letter-spacing: 0px; }
|
|
75
|
+
@mixin body_small { font-size: 14px; font-weight: 400; line-height: 20px; letter-spacing: 0px; }
|
|
76
|
+
@mixin body_small_medium { font-size: 14px; font-weight: 500; line-height: 20px; letter-spacing: 0px; }
|
|
77
|
+
@mixin body_large_bold { font-size: 16px; font-weight: 700; line-height: 24px; letter-spacing: 0px; }
|
|
78
|
+
@mixin body_medium_bold { font-size: 15px; font-weight: 700; line-height: 22.5px; letter-spacing: 0px; }
|
|
79
|
+
@mixin body_small_bold { font-size: 14px; font-weight: 700; line-height: 20px; letter-spacing: 0px; }
|
|
80
|
+
@mixin label_large { font-size: 14px; font-weight: 400; line-height: 20px; letter-spacing: 0px; }
|
|
81
|
+
@mixin label_large_medium { font-size: 14px; font-weight: 500; line-height: 20px; letter-spacing: 0px; }
|
|
82
|
+
@mixin label_medium { font-size: 13px; font-weight: 400; line-height: 18px; letter-spacing: 0px; }
|
|
83
|
+
@mixin label_medium_medium { font-size: 13px; font-weight: 500; line-height: 18px; letter-spacing: 0px; }
|
|
84
|
+
@mixin label_small { font-size: 12px; font-weight: 400; line-height: 16px; letter-spacing: 0px; }
|
|
85
|
+
@mixin label_small_medium { font-size: 12px; font-weight: 500; line-height: 16px; letter-spacing: 0px; }
|
|
86
|
+
@mixin label_large_bold { font-size: 14px; font-weight: 700; line-height: 20px; letter-spacing: 0.32px; }
|
|
87
|
+
@mixin label_medium_bold { font-size: 13px; font-weight: 700; line-height: 18px; letter-spacing: 0.32px; }
|
|
88
|
+
@mixin label_small_bold { font-size: 12px; font-weight: 700; line-height: 16px; letter-spacing: 0.32px; }
|
|
89
|
+
@mixin caption { font-size: 12px; font-weight: 400; line-height: 16px; letter-spacing: 0.32px; }
|
|
90
|
+
@mixin caption_bold { font-size: 12px; font-weight: 700; line-height: 16px; letter-spacing: 0.32px; }
|
|
91
|
+
@mixin overline { font-size: 12px; font-weight: 600; line-height: 16px; letter-spacing: 0.08em; text-transform: uppercase; }
|
|
92
|
+
@mixin subtitle { font-size: 15px; font-weight: 500; line-height: 22.5px; letter-spacing: 0px; }
|
|
93
|
+
@mixin code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; line-height: 18px; }
|
|
@@ -1,24 +1,2 @@
|
|
|
1
|
-
//
|
|
2
|
-
|
|
3
|
-
$z_level1: 10;
|
|
4
|
-
$z_level2: 100;
|
|
5
|
-
$z_level3: 200;
|
|
6
|
-
$z_level4: 500;
|
|
7
|
-
$z_level5: 1000;
|
|
8
|
-
|
|
9
|
-
// ── 역할 별칭 ─────────────────────────────────────────────────────────────
|
|
10
|
-
// 레벨 이름만으로는 "무엇이 어디 있는지" 를 알 수 없다. $z_level2 를 보고 모달을 떠올릴 방법이
|
|
11
|
-
// 없어서, 소비자가 배포 CSS 를 grep 해 레이어를 알아내고 있었다. 값은 위와 같고 이름만 붙인다.
|
|
12
|
-
//
|
|
13
|
-
// 앱 레이어를 DS 레이어 사이에 놓을 때는 값을 베끼지 말고 이 이름을 기준으로 계산한다.
|
|
14
|
-
// .floating_bar { z-index: calc(#{$z_notification} - 1); } // 토스트 아래, 모달 위
|
|
15
|
-
$z_content: $z_level1; // 10 - 컨텐츠 내부 겹침 (sticky 표 헤더, Hero 오버레이)
|
|
16
|
-
$z_chrome: $z_level2; // 100 - Modal · Drawer · Sidebar · BottomNav
|
|
17
|
-
$z_notification: $z_level3; // 200 - Toast · NavBar
|
|
18
|
-
$z_loading: $z_level4; // 500 - TopLoading
|
|
19
|
-
$z_popup: $z_level5; // 1000 - Tooltip · Popover · Menu · Dropdown 목록 · Alert
|
|
20
|
-
|
|
21
|
-
// 앱이 소유한 하단·상단 크롬을 위한 자리. DS 크롬(100)보다 위, 알림(200)보다 아래.
|
|
22
|
-
// 소비처의 플로팅 액션 바가 정확히 이 대역을 필요로 한다 - 앱 스케일에서 900 을 골랐다가
|
|
23
|
-
// DS 토스트(200)를 덮어 토스트에 z-index 를 덧씌우는 규칙이 남아 있었다.
|
|
24
|
-
$z_app_chrome: 150;
|
|
1
|
+
// 값은 tokens.json 에서 생성한 _tokens.scss 에 있다 - 고칠 때는 tokens.json 을 고치고 `pnpm tokens`.
|
|
2
|
+
@forward "tokens";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// 생성 파일 - 직접 고치지 말 것. 원본은 src/styles/tokens.json, `pnpm tokens` 로 다시 만든다.
|
|
2
|
+
|
|
3
|
+
// 레벨 스케일 - 값의 원천. 제거하면 하위 호환이 깨지므로 유지한다.
|
|
4
|
+
$z_level0: 0;
|
|
5
|
+
$z_level1: 10;
|
|
6
|
+
$z_level2: 100;
|
|
7
|
+
$z_level3: 200;
|
|
8
|
+
$z_level4: 500;
|
|
9
|
+
$z_level5: 1000;
|
|
10
|
+
// 레벨 이름만으로는 "무엇이 어디 있는지" 를 알 수 없다. $z_level2 를 보고 모달을 떠올릴 방법이
|
|
11
|
+
// 없어서, 소비자가 배포 CSS 를 grep 해 레이어를 알아내고 있었다. 값은 위와 같고 이름만 붙인다.
|
|
12
|
+
// 앱 레이어를 DS 레이어 사이에 놓을 때는 값을 베끼지 말고 이 이름을 기준으로 계산한다.
|
|
13
|
+
// .floating_bar { z-index: calc(#{$z_notification} - 1); } // 토스트 아래, 모달 위
|
|
14
|
+
// 10 - 컨텐츠 내부 겹침 (sticky 표 헤더, Hero 오버레이)
|
|
15
|
+
$z_content: 10;
|
|
16
|
+
// 100 - Modal · Drawer · Sidebar · BottomNav
|
|
17
|
+
$z_chrome: 100;
|
|
18
|
+
// 200 - Toast · NavBar
|
|
19
|
+
$z_notification: 200;
|
|
20
|
+
// 500 - TopLoading
|
|
21
|
+
$z_loading: 500;
|
|
22
|
+
// 1000 - Tooltip · Popover · Menu · Dropdown 목록 · Alert
|
|
23
|
+
$z_popup: 1000;
|
|
24
|
+
// 앱이 소유한 하단·상단 크롬을 위한 자리. DS 크롬(100)보다 위, 알림(200)보다 아래.
|
|
25
|
+
// 소비처의 플로팅 액션 바가 정확히 이 대역을 필요로 한다 - 앱 스케일에서 900 을 골랐다가
|
|
26
|
+
// DS 토스트(200)를 덮어 토스트에 z-index 를 덧씌우는 규칙이 남아 있었다.
|
|
27
|
+
$z_app_chrome: 150;
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/* @bigtablet/design-system - Tailwind v4 theme bridge (generated by scripts/build-tailwind.mjs) */
|
|
2
|
+
|
|
3
|
+
/* style.css 와 같은 레이어 순서. `@import "tailwindcss"` 보다 먼저 import 하면 CSS 로드 순서와 무관하게
|
|
4
|
+
리셋(base) < DS(bigtablet) < 유틸리티 가 고정된다 */
|
|
5
|
+
@layer theme, base, reset, bigtablet, components, utilities;
|
|
6
|
+
|
|
7
|
+
/* ThemeProvider 와 같은 규칙: data-theme="dark" 명시 또는 data-theme 없을 때 OS 다크 */
|
|
8
|
+
@custom-variant dark {
|
|
9
|
+
&:where([data-theme="dark"], [data-theme="dark"] *) {
|
|
10
|
+
@slot;
|
|
11
|
+
}
|
|
12
|
+
@media (prefers-color-scheme: dark) {
|
|
13
|
+
&:where(:root:not([data-theme]), :root:not([data-theme]) *) {
|
|
14
|
+
@slot;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@theme inline {
|
|
20
|
+
--color-bt-brand-primary: var(--bt-color-brand-primary);
|
|
21
|
+
--color-bt-brand-on-primary: var(--bt-color-brand-on-primary);
|
|
22
|
+
--color-bt-brand-primary-container: var(--bt-color-brand-primary-container);
|
|
23
|
+
--color-bt-text-heading: var(--bt-color-text-heading);
|
|
24
|
+
--color-bt-text-body: var(--bt-color-text-body);
|
|
25
|
+
--color-bt-text-caption: var(--bt-color-text-caption);
|
|
26
|
+
--color-bt-text-brand: var(--bt-color-text-brand);
|
|
27
|
+
--color-bt-text-inverse: var(--bt-color-text-inverse);
|
|
28
|
+
--color-bt-text-disabled: var(--bt-color-text-disabled);
|
|
29
|
+
--color-bt-bg-solid: var(--bt-color-bg-solid);
|
|
30
|
+
--color-bt-bg-solid-dim: var(--bt-color-bg-solid-dim);
|
|
31
|
+
--color-bt-bg-additive: var(--bt-color-bg-additive);
|
|
32
|
+
--color-bt-bg-disabled: var(--bt-color-bg-disabled);
|
|
33
|
+
--color-bt-bg-overlay: var(--bt-color-bg-overlay);
|
|
34
|
+
--color-bt-bg-inverse-surface: var(--bt-color-bg-inverse-surface);
|
|
35
|
+
--color-bt-state-hover-on-light: var(--bt-color-state-hover-on-light);
|
|
36
|
+
--color-bt-state-pressed-on-light: var(--bt-color-state-pressed-on-light);
|
|
37
|
+
--color-bt-state-focus-on-light: var(--bt-color-state-focus-on-light);
|
|
38
|
+
--color-bt-state-hover-on-dark: var(--bt-color-state-hover-on-dark);
|
|
39
|
+
--color-bt-state-pressed-on-dark: var(--bt-color-state-pressed-on-dark);
|
|
40
|
+
--color-bt-state-focus-on-dark: var(--bt-color-state-focus-on-dark);
|
|
41
|
+
--color-bt-border-default: var(--bt-color-border-default);
|
|
42
|
+
--color-bt-border-hover: var(--bt-color-border-hover);
|
|
43
|
+
--color-bt-border-subtle: var(--bt-color-border-subtle);
|
|
44
|
+
--color-bt-border-focus: var(--bt-color-border-focus);
|
|
45
|
+
--color-bt-border-disabled: var(--bt-color-border-disabled);
|
|
46
|
+
--color-bt-status-error: var(--bt-color-status-error);
|
|
47
|
+
--color-bt-status-success: var(--bt-color-status-success);
|
|
48
|
+
--color-bt-status-warning: var(--bt-color-status-warning);
|
|
49
|
+
--color-bt-status-info: var(--bt-color-status-info);
|
|
50
|
+
--color-bt-status-error-on-default: var(--bt-color-status-error-on-default);
|
|
51
|
+
--color-bt-status-success-on-default: var(--bt-color-status-success-on-default);
|
|
52
|
+
--color-bt-status-warning-on-default: var(--bt-color-status-warning-on-default);
|
|
53
|
+
--color-bt-status-info-on-default: var(--bt-color-status-info-on-default);
|
|
54
|
+
--color-bt-status-error-container: var(--bt-color-status-error-container);
|
|
55
|
+
--color-bt-status-success-container: var(--bt-color-status-success-container);
|
|
56
|
+
--color-bt-status-warning-container: var(--bt-color-status-warning-container);
|
|
57
|
+
--color-bt-status-info-container: var(--bt-color-status-info-container);
|
|
58
|
+
--color-bt-status-error-on-container: var(--bt-color-status-error-on-container);
|
|
59
|
+
--color-bt-status-success-on-container: var(--bt-color-status-success-on-container);
|
|
60
|
+
--color-bt-status-warning-on-container: var(--bt-color-status-warning-on-container);
|
|
61
|
+
--color-bt-status-info-on-container: var(--bt-color-status-info-on-container);
|
|
62
|
+
--color-bt-status-error-on-surface: var(--bt-color-status-error-on-surface);
|
|
63
|
+
--color-bt-status-success-on-surface: var(--bt-color-status-success-on-surface);
|
|
64
|
+
--color-bt-status-warning-on-surface: var(--bt-color-status-warning-on-surface);
|
|
65
|
+
--color-bt-status-info-on-surface: var(--bt-color-status-info-on-surface);
|
|
66
|
+
--color-bt-accent-subtle: var(--bt-color-accent-subtle);
|
|
67
|
+
--color-bt-accent-muted: var(--bt-color-accent-muted);
|
|
68
|
+
--color-bt-accent-light: var(--bt-color-accent-light);
|
|
69
|
+
--color-bt-accent-default: var(--bt-color-accent-default);
|
|
70
|
+
--color-bt-accent-strong: var(--bt-color-accent-strong);
|
|
71
|
+
--color-bt-accent-on-surface: var(--bt-color-accent-on-surface);
|
|
72
|
+
--color-bt-skeleton-base: var(--bt-color-skeleton-base);
|
|
73
|
+
--color-bt-skeleton-wave: var(--bt-color-skeleton-wave);
|
|
74
|
+
--color-bt-skeleton-highlight: var(--bt-color-skeleton-highlight);
|
|
75
|
+
|
|
76
|
+
--shadow-bt-level1: var(--bt-elevation-level1);
|
|
77
|
+
--shadow-bt-level2: var(--bt-elevation-level2);
|
|
78
|
+
--shadow-bt-level3: var(--bt-elevation-level3);
|
|
79
|
+
--shadow-bt-level4: var(--bt-elevation-level4);
|
|
80
|
+
--shadow-bt-level5: var(--bt-elevation-level5);
|
|
81
|
+
--shadow-bt-focus-ring: var(--bt-focus-ring);
|
|
82
|
+
--shadow-bt-focus-ring-error: var(--bt-focus-ring-error);
|
|
83
|
+
--shadow-bt-focus-ring-success: var(--bt-focus-ring-success);
|
|
84
|
+
|
|
85
|
+
--radius-bt-none: var(--bt-radius-none);
|
|
86
|
+
--radius-bt-xs: var(--bt-radius-xs);
|
|
87
|
+
--radius-bt-sm: var(--bt-radius-sm);
|
|
88
|
+
--radius-bt-md: var(--bt-radius-md);
|
|
89
|
+
--radius-bt-lg: var(--bt-radius-lg);
|
|
90
|
+
--radius-bt-xl: var(--bt-radius-xl);
|
|
91
|
+
--radius-bt-full: var(--bt-radius-full);
|
|
92
|
+
--spacing-bt-0: var(--bt-spacing-0);
|
|
93
|
+
--spacing-bt-1: var(--bt-spacing-1);
|
|
94
|
+
--spacing-bt-2: var(--bt-spacing-2);
|
|
95
|
+
--spacing-bt-3: var(--bt-spacing-3);
|
|
96
|
+
--spacing-bt-4: var(--bt-spacing-4);
|
|
97
|
+
--spacing-bt-6: var(--bt-spacing-6);
|
|
98
|
+
--spacing-bt-8: var(--bt-spacing-8);
|
|
99
|
+
--spacing-bt-10: var(--bt-spacing-10);
|
|
100
|
+
--spacing-bt-12: var(--bt-spacing-12);
|
|
101
|
+
--spacing-bt-16: var(--bt-spacing-16);
|
|
102
|
+
--spacing-bt-20: var(--bt-spacing-20);
|
|
103
|
+
--spacing-bt-24: var(--bt-spacing-24);
|
|
104
|
+
--spacing-bt-32: var(--bt-spacing-32);
|
|
105
|
+
--spacing-bt-40: var(--bt-spacing-40);
|
|
106
|
+
--spacing-bt-48: var(--bt-spacing-48);
|
|
107
|
+
--spacing-bt-64: var(--bt-spacing-64);
|
|
108
|
+
--spacing-bt-96: var(--bt-spacing-96);
|
|
109
|
+
--spacing-bt-128: var(--bt-spacing-128);
|
|
110
|
+
--font-bt: var(--bt-font-family);
|
|
111
|
+
}
|