@bigtablet/design-system 1.6.0 → 1.6.2
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/dist/index.css +145 -6
- package/dist/index.d.ts +21 -18
- package/dist/index.js +6509 -81
- package/dist/styles/scss/_a11y.scss +7 -0
- package/dist/styles/scss/_breakpoints.scss +28 -0
- package/dist/styles/scss/_colors.scss +25 -0
- package/dist/styles/scss/_layout.scss +8 -0
- package/dist/styles/scss/_motion.scss +4 -0
- package/dist/styles/scss/_radius.scss +5 -0
- package/dist/styles/scss/_shadows.scss +4 -0
- package/dist/styles/scss/_spacing.scss +7 -0
- package/dist/styles/scss/_typography.scss +77 -0
- package/dist/styles/scss/_variables.scss +59 -0
- package/dist/styles/scss/_z-index.scss +3 -0
- package/dist/styles/scss/token.scss +9 -0
- package/package.json +6 -3
- package/src/styles/scss/_a11y.scss +7 -0
- package/src/styles/scss/_breakpoints.scss +28 -0
- package/src/styles/scss/_colors.scss +25 -0
- package/src/styles/scss/_layout.scss +8 -0
- package/src/styles/scss/_motion.scss +4 -0
- package/src/styles/scss/_radius.scss +5 -0
- package/src/styles/scss/_shadows.scss +4 -0
- package/src/styles/scss/_spacing.scss +7 -0
- package/src/styles/scss/_typography.scss +77 -0
- package/src/styles/scss/_variables.scss +59 -0
- package/src/styles/scss/_z-index.scss +3 -0
- package/src/styles/scss/token.scss +9 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
$breakpoint_mobile: 360px;
|
|
2
|
+
$breakpoint_tablet: 768px;
|
|
3
|
+
$breakpoint_laptop: 1024px;
|
|
4
|
+
$breakpoint_desktop: 1280px;
|
|
5
|
+
|
|
6
|
+
@mixin mobile {
|
|
7
|
+
@media (max-width: #{$breakpoint_tablet - 1}) {
|
|
8
|
+
@content;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@mixin tablet {
|
|
13
|
+
@media (min-width: $breakpoint_tablet) and (max-width: #{$breakpoint_laptop - 1}) {
|
|
14
|
+
@content;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@mixin laptop {
|
|
19
|
+
@media (min-width: $breakpoint_laptop) and (max-width: #{$breakpoint_desktop - 1}) {
|
|
20
|
+
@content;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@mixin desktop {
|
|
25
|
+
@media (min-width: $breakpoint_desktop) {
|
|
26
|
+
@content;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
$color_primary: #000000;
|
|
2
|
+
$color_primary_hover: #333333;
|
|
3
|
+
|
|
4
|
+
$color_background: #ffffff;
|
|
5
|
+
$color_background_secondary: #fafafa;
|
|
6
|
+
|
|
7
|
+
$color_text_primary: #1a1a1a;
|
|
8
|
+
$color_text_secondary: #666666;
|
|
9
|
+
$color_text_tertiary: #999999;
|
|
10
|
+
|
|
11
|
+
$color_border: #e5e5e5;
|
|
12
|
+
$color_border_light: rgba(0, 0, 0, 0.08);
|
|
13
|
+
|
|
14
|
+
$color_success: #10b981;
|
|
15
|
+
$color_error: #ef4444;
|
|
16
|
+
$color_warning: #f59e0b;
|
|
17
|
+
$color_info: #3b82f6;
|
|
18
|
+
|
|
19
|
+
$color_overlay: rgba(0, 0, 0, 0.5);
|
|
20
|
+
|
|
21
|
+
$text_strong: #1f2937;
|
|
22
|
+
$text_normal: #3b3b3b;
|
|
23
|
+
$text_subtle: #6b7280;
|
|
24
|
+
$text_disabled: #9ca3af;
|
|
25
|
+
$text_inverse: #ffffff;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
@mixin flex_center { display: flex; align-items: center; justify-content: center; }
|
|
2
|
+
@mixin flex_left { display: flex; align-items: center; justify-content: flex-start; }
|
|
3
|
+
@mixin flex_right { display: flex; align-items: center; justify-content: flex-end; }
|
|
4
|
+
@mixin flex_between { display: flex; align-items: center; justify-content: space-between; }
|
|
5
|
+
|
|
6
|
+
@mixin flex_column { display: flex; flex-direction: column; }
|
|
7
|
+
@mixin flex_column_center { display: flex; flex-direction: column; align-items: center; justify-content: center; }
|
|
8
|
+
@mixin flex_column_start { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; }
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
$shadow_sm: 0 2px 4px rgba(0, 0, 0, 0.04);
|
|
2
|
+
$shadow_md: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
|
|
3
|
+
$shadow_lg: 0 8px 20px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.06);
|
|
4
|
+
$shadow_xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
$font_family_primary: "Pretendard", sans-serif;
|
|
2
|
+
|
|
3
|
+
$font_size_xs: 0.75rem;
|
|
4
|
+
$font_size_sm: 0.875rem;
|
|
5
|
+
$font_size_base: 0.9375rem;
|
|
6
|
+
$font_size_md: 1rem;
|
|
7
|
+
$font_size_lg: 1.125rem;
|
|
8
|
+
$font_size_xl: 1.25rem;
|
|
9
|
+
$font_size_2xl: 1.5rem;
|
|
10
|
+
$font_size_3xl: 2rem;
|
|
11
|
+
$font_size_4xl: 2.5rem;
|
|
12
|
+
|
|
13
|
+
$font_weight_thin: 100;
|
|
14
|
+
$font_weight_extralight: 200;
|
|
15
|
+
$font_weight_light: 300;
|
|
16
|
+
$font_weight_regular: 400;
|
|
17
|
+
$font_weight_medium: 500;
|
|
18
|
+
$font_weight_semibold: 600;
|
|
19
|
+
$font_weight_bold: 700;
|
|
20
|
+
$font_weight_extrabold: 800;
|
|
21
|
+
$font_weight_black: 900;
|
|
22
|
+
|
|
23
|
+
$line_height_tight: 1.25;
|
|
24
|
+
$line_height_snug: 1.3;
|
|
25
|
+
$line_height_normal: 1.5;
|
|
26
|
+
$line_height_relaxed: 1.75;
|
|
27
|
+
|
|
28
|
+
$letter_spacing_tight: -0.02em;
|
|
29
|
+
$letter_spacing_normal: 0;
|
|
30
|
+
$letter_spacing_wide: 0.02em;
|
|
31
|
+
|
|
32
|
+
@mixin text_xs { font-size: $font_size_xs; line-height: $line_height_normal; }
|
|
33
|
+
@mixin text_sm { font-size: $font_size_sm; line-height: $line_height_normal; }
|
|
34
|
+
@mixin text_base { font-size: $font_size_base; line-height: $line_height_normal; }
|
|
35
|
+
@mixin text_md { font-size: $font_size_md; line-height: $line_height_normal; }
|
|
36
|
+
@mixin text_lg { font-size: $font_size_lg; line-height: $line_height_normal; }
|
|
37
|
+
@mixin text_xl { font-size: $font_size_xl; line-height: $line_height_snug; }
|
|
38
|
+
@mixin text_2xl { font-size: $font_size_2xl; line-height: $line_height_snug; }
|
|
39
|
+
@mixin text_3xl { font-size: $font_size_3xl; line-height: $line_height_tight; }
|
|
40
|
+
|
|
41
|
+
@mixin heading_1 {
|
|
42
|
+
font-size: $font_size_3xl;
|
|
43
|
+
font-weight: $font_weight_bold;
|
|
44
|
+
line-height: $line_height_tight;
|
|
45
|
+
letter-spacing: $letter_spacing_tight;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@mixin heading_2 {
|
|
49
|
+
font-size: $font_size_2xl;
|
|
50
|
+
font-weight: $font_weight_semibold;
|
|
51
|
+
line-height: $line_height_snug;
|
|
52
|
+
letter-spacing: $letter_spacing_tight;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@mixin heading_3 {
|
|
56
|
+
font-size: $font_size_xl;
|
|
57
|
+
font-weight: $font_weight_semibold;
|
|
58
|
+
line-height: $line_height_snug;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
@mixin body_regular {
|
|
62
|
+
font-size: $font_size_base;
|
|
63
|
+
font-weight: $font_weight_regular;
|
|
64
|
+
line-height: $line_height_normal;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@mixin body_medium {
|
|
68
|
+
font-size: $font_size_base;
|
|
69
|
+
font-weight: $font_weight_medium;
|
|
70
|
+
line-height: $line_height_normal;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@mixin caption {
|
|
74
|
+
font-size: $font_size_sm;
|
|
75
|
+
font-weight: $font_weight_regular;
|
|
76
|
+
line-height: $line_height_normal;
|
|
77
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
// colors
|
|
2
|
+
$color-primary: #000000;
|
|
3
|
+
$color-primary-hover: #333333;
|
|
4
|
+
|
|
5
|
+
$color-background: #ffffff;
|
|
6
|
+
$color-background-secondary: #fafafa;
|
|
7
|
+
|
|
8
|
+
$color-text-primary: #1a1a1a;
|
|
9
|
+
$color-text-secondary: #666666;
|
|
10
|
+
$color-text-tertiary: #999999;
|
|
11
|
+
|
|
12
|
+
$color-border: #e5e5e5;
|
|
13
|
+
$color-border-light: rgba(0, 0, 0, 0.08);
|
|
14
|
+
|
|
15
|
+
$color-success: #10b981;
|
|
16
|
+
$color-error: #ef4444;
|
|
17
|
+
$color-warning: #f59e0b;
|
|
18
|
+
$color-info: #3b82f6;
|
|
19
|
+
|
|
20
|
+
$color-overlay: rgba(0, 0, 0, 0.5);
|
|
21
|
+
|
|
22
|
+
$text-strong: #1F2937;
|
|
23
|
+
$text-normal: #3B3B3B;
|
|
24
|
+
$text-subtle: #6B7280;
|
|
25
|
+
$text-disabled: #9CA3AF;
|
|
26
|
+
$text-inverse: #FFFFFF;
|
|
27
|
+
|
|
28
|
+
// shadow
|
|
29
|
+
$shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
|
|
30
|
+
$shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
|
|
31
|
+
$shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.06);
|
|
32
|
+
$shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
|
|
33
|
+
|
|
34
|
+
// spacing
|
|
35
|
+
$spacing-xs: 0.25rem; // 4px
|
|
36
|
+
$spacing-sm: 0.5rem; // 8px
|
|
37
|
+
$spacing-md: 0.75rem; // 12px
|
|
38
|
+
$spacing-lg: 1rem; // 16px
|
|
39
|
+
$spacing-xl: 1.25rem; // 20px
|
|
40
|
+
$spacing-2xl: 1.5rem; // 24px
|
|
41
|
+
$spacing-3xl: 2rem; // 32px
|
|
42
|
+
|
|
43
|
+
// radius
|
|
44
|
+
$radius-sm: 6px;
|
|
45
|
+
$radius-md: 8px;
|
|
46
|
+
$radius-lg: 12px;
|
|
47
|
+
$radius-xl: 16px;
|
|
48
|
+
$radius-full: 9999px;
|
|
49
|
+
|
|
50
|
+
// z-index
|
|
51
|
+
$z-modal: 10000;
|
|
52
|
+
$z-toast: 10001;
|
|
53
|
+
$z-loading: 9999;
|
|
54
|
+
|
|
55
|
+
// transition
|
|
56
|
+
$transition-fast: 0.1s ease-out;
|
|
57
|
+
$transition-base: 0.2s ease-out;
|
|
58
|
+
$transition-slow: 0.3s ease-out;
|
|
59
|
+
$transition-bounce: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigtablet/design-system",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.2",
|
|
4
4
|
"description": "Bigtablet Design System UI Components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -14,10 +14,12 @@
|
|
|
14
14
|
"types": "./dist/next.d.ts",
|
|
15
15
|
"import": "./dist/next.js"
|
|
16
16
|
},
|
|
17
|
-
"./style.css": "./dist/index.css"
|
|
17
|
+
"./style.css": "./dist/index.css",
|
|
18
|
+
"./scss/token": "./dist/styles/scss/token.scss"
|
|
18
19
|
},
|
|
19
20
|
"files": [
|
|
20
21
|
"dist",
|
|
22
|
+
"src/styles/scss",
|
|
21
23
|
"README.md",
|
|
22
24
|
"LICENSE"
|
|
23
25
|
],
|
|
@@ -27,7 +29,8 @@
|
|
|
27
29
|
"./dist/next.css"
|
|
28
30
|
],
|
|
29
31
|
"scripts": {
|
|
30
|
-
"build": "tsup",
|
|
32
|
+
"build": "tsup && pnpm run copy:scss",
|
|
33
|
+
"copy:scss": "node scripts/copy-scss.mjs",
|
|
31
34
|
"dev": "tsup --watch",
|
|
32
35
|
"storybook": "storybook dev -p 6006",
|
|
33
36
|
"build:sb": "storybook build",
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
$breakpoint_mobile: 360px;
|
|
2
|
+
$breakpoint_tablet: 768px;
|
|
3
|
+
$breakpoint_laptop: 1024px;
|
|
4
|
+
$breakpoint_desktop: 1280px;
|
|
5
|
+
|
|
6
|
+
@mixin mobile {
|
|
7
|
+
@media (max-width: #{$breakpoint_tablet - 1}) {
|
|
8
|
+
@content;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@mixin tablet {
|
|
13
|
+
@media (min-width: $breakpoint_tablet) and (max-width: #{$breakpoint_laptop - 1}) {
|
|
14
|
+
@content;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@mixin laptop {
|
|
19
|
+
@media (min-width: $breakpoint_laptop) and (max-width: #{$breakpoint_desktop - 1}) {
|
|
20
|
+
@content;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@mixin desktop {
|
|
25
|
+
@media (min-width: $breakpoint_desktop) {
|
|
26
|
+
@content;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
$color_primary: #000000;
|
|
2
|
+
$color_primary_hover: #333333;
|
|
3
|
+
|
|
4
|
+
$color_background: #ffffff;
|
|
5
|
+
$color_background_secondary: #fafafa;
|
|
6
|
+
|
|
7
|
+
$color_text_primary: #1a1a1a;
|
|
8
|
+
$color_text_secondary: #666666;
|
|
9
|
+
$color_text_tertiary: #999999;
|
|
10
|
+
|
|
11
|
+
$color_border: #e5e5e5;
|
|
12
|
+
$color_border_light: rgba(0, 0, 0, 0.08);
|
|
13
|
+
|
|
14
|
+
$color_success: #10b981;
|
|
15
|
+
$color_error: #ef4444;
|
|
16
|
+
$color_warning: #f59e0b;
|
|
17
|
+
$color_info: #3b82f6;
|
|
18
|
+
|
|
19
|
+
$color_overlay: rgba(0, 0, 0, 0.5);
|
|
20
|
+
|
|
21
|
+
$text_strong: #1f2937;
|
|
22
|
+
$text_normal: #3b3b3b;
|
|
23
|
+
$text_subtle: #6b7280;
|
|
24
|
+
$text_disabled: #9ca3af;
|
|
25
|
+
$text_inverse: #ffffff;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
@mixin flex_center { display: flex; align-items: center; justify-content: center; }
|
|
2
|
+
@mixin flex_left { display: flex; align-items: center; justify-content: flex-start; }
|
|
3
|
+
@mixin flex_right { display: flex; align-items: center; justify-content: flex-end; }
|
|
4
|
+
@mixin flex_between { display: flex; align-items: center; justify-content: space-between; }
|
|
5
|
+
|
|
6
|
+
@mixin flex_column { display: flex; flex-direction: column; }
|
|
7
|
+
@mixin flex_column_center { display: flex; flex-direction: column; align-items: center; justify-content: center; }
|
|
8
|
+
@mixin flex_column_start { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; }
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
$shadow_sm: 0 2px 4px rgba(0, 0, 0, 0.04);
|
|
2
|
+
$shadow_md: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
|
|
3
|
+
$shadow_lg: 0 8px 20px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.06);
|
|
4
|
+
$shadow_xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
$font_family_primary: "Pretendard", sans-serif;
|
|
2
|
+
|
|
3
|
+
$font_size_xs: 0.75rem;
|
|
4
|
+
$font_size_sm: 0.875rem;
|
|
5
|
+
$font_size_base: 0.9375rem;
|
|
6
|
+
$font_size_md: 1rem;
|
|
7
|
+
$font_size_lg: 1.125rem;
|
|
8
|
+
$font_size_xl: 1.25rem;
|
|
9
|
+
$font_size_2xl: 1.5rem;
|
|
10
|
+
$font_size_3xl: 2rem;
|
|
11
|
+
$font_size_4xl: 2.5rem;
|
|
12
|
+
|
|
13
|
+
$font_weight_thin: 100;
|
|
14
|
+
$font_weight_extralight: 200;
|
|
15
|
+
$font_weight_light: 300;
|
|
16
|
+
$font_weight_regular: 400;
|
|
17
|
+
$font_weight_medium: 500;
|
|
18
|
+
$font_weight_semibold: 600;
|
|
19
|
+
$font_weight_bold: 700;
|
|
20
|
+
$font_weight_extrabold: 800;
|
|
21
|
+
$font_weight_black: 900;
|
|
22
|
+
|
|
23
|
+
$line_height_tight: 1.25;
|
|
24
|
+
$line_height_snug: 1.3;
|
|
25
|
+
$line_height_normal: 1.5;
|
|
26
|
+
$line_height_relaxed: 1.75;
|
|
27
|
+
|
|
28
|
+
$letter_spacing_tight: -0.02em;
|
|
29
|
+
$letter_spacing_normal: 0;
|
|
30
|
+
$letter_spacing_wide: 0.02em;
|
|
31
|
+
|
|
32
|
+
@mixin text_xs { font-size: $font_size_xs; line-height: $line_height_normal; }
|
|
33
|
+
@mixin text_sm { font-size: $font_size_sm; line-height: $line_height_normal; }
|
|
34
|
+
@mixin text_base { font-size: $font_size_base; line-height: $line_height_normal; }
|
|
35
|
+
@mixin text_md { font-size: $font_size_md; line-height: $line_height_normal; }
|
|
36
|
+
@mixin text_lg { font-size: $font_size_lg; line-height: $line_height_normal; }
|
|
37
|
+
@mixin text_xl { font-size: $font_size_xl; line-height: $line_height_snug; }
|
|
38
|
+
@mixin text_2xl { font-size: $font_size_2xl; line-height: $line_height_snug; }
|
|
39
|
+
@mixin text_3xl { font-size: $font_size_3xl; line-height: $line_height_tight; }
|
|
40
|
+
|
|
41
|
+
@mixin heading_1 {
|
|
42
|
+
font-size: $font_size_3xl;
|
|
43
|
+
font-weight: $font_weight_bold;
|
|
44
|
+
line-height: $line_height_tight;
|
|
45
|
+
letter-spacing: $letter_spacing_tight;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@mixin heading_2 {
|
|
49
|
+
font-size: $font_size_2xl;
|
|
50
|
+
font-weight: $font_weight_semibold;
|
|
51
|
+
line-height: $line_height_snug;
|
|
52
|
+
letter-spacing: $letter_spacing_tight;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@mixin heading_3 {
|
|
56
|
+
font-size: $font_size_xl;
|
|
57
|
+
font-weight: $font_weight_semibold;
|
|
58
|
+
line-height: $line_height_snug;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
@mixin body_regular {
|
|
62
|
+
font-size: $font_size_base;
|
|
63
|
+
font-weight: $font_weight_regular;
|
|
64
|
+
line-height: $line_height_normal;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@mixin body_medium {
|
|
68
|
+
font-size: $font_size_base;
|
|
69
|
+
font-weight: $font_weight_medium;
|
|
70
|
+
line-height: $line_height_normal;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@mixin caption {
|
|
74
|
+
font-size: $font_size_sm;
|
|
75
|
+
font-weight: $font_weight_regular;
|
|
76
|
+
line-height: $line_height_normal;
|
|
77
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
// colors
|
|
2
|
+
$color-primary: #000000;
|
|
3
|
+
$color-primary-hover: #333333;
|
|
4
|
+
|
|
5
|
+
$color-background: #ffffff;
|
|
6
|
+
$color-background-secondary: #fafafa;
|
|
7
|
+
|
|
8
|
+
$color-text-primary: #1a1a1a;
|
|
9
|
+
$color-text-secondary: #666666;
|
|
10
|
+
$color-text-tertiary: #999999;
|
|
11
|
+
|
|
12
|
+
$color-border: #e5e5e5;
|
|
13
|
+
$color-border-light: rgba(0, 0, 0, 0.08);
|
|
14
|
+
|
|
15
|
+
$color-success: #10b981;
|
|
16
|
+
$color-error: #ef4444;
|
|
17
|
+
$color-warning: #f59e0b;
|
|
18
|
+
$color-info: #3b82f6;
|
|
19
|
+
|
|
20
|
+
$color-overlay: rgba(0, 0, 0, 0.5);
|
|
21
|
+
|
|
22
|
+
$text-strong: #1F2937;
|
|
23
|
+
$text-normal: #3B3B3B;
|
|
24
|
+
$text-subtle: #6B7280;
|
|
25
|
+
$text-disabled: #9CA3AF;
|
|
26
|
+
$text-inverse: #FFFFFF;
|
|
27
|
+
|
|
28
|
+
// shadow
|
|
29
|
+
$shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
|
|
30
|
+
$shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
|
|
31
|
+
$shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.06);
|
|
32
|
+
$shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
|
|
33
|
+
|
|
34
|
+
// spacing
|
|
35
|
+
$spacing-xs: 0.25rem; // 4px
|
|
36
|
+
$spacing-sm: 0.5rem; // 8px
|
|
37
|
+
$spacing-md: 0.75rem; // 12px
|
|
38
|
+
$spacing-lg: 1rem; // 16px
|
|
39
|
+
$spacing-xl: 1.25rem; // 20px
|
|
40
|
+
$spacing-2xl: 1.5rem; // 24px
|
|
41
|
+
$spacing-3xl: 2rem; // 32px
|
|
42
|
+
|
|
43
|
+
// radius
|
|
44
|
+
$radius-sm: 6px;
|
|
45
|
+
$radius-md: 8px;
|
|
46
|
+
$radius-lg: 12px;
|
|
47
|
+
$radius-xl: 16px;
|
|
48
|
+
$radius-full: 9999px;
|
|
49
|
+
|
|
50
|
+
// z-index
|
|
51
|
+
$z-modal: 10000;
|
|
52
|
+
$z-toast: 10001;
|
|
53
|
+
$z-loading: 9999;
|
|
54
|
+
|
|
55
|
+
// transition
|
|
56
|
+
$transition-fast: 0.1s ease-out;
|
|
57
|
+
$transition-base: 0.2s ease-out;
|
|
58
|
+
$transition-slow: 0.3s ease-out;
|
|
59
|
+
$transition-bounce: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
|