@x-plat/tokens-haetbitgil 0.1.0
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.cjs +148 -0
- package/dist/index.d.cts +23 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.js +116 -0
- package/dist/tokens.css +1304 -0
- package/dist/tokens.dtcg.json +3506 -0
- package/package.json +40 -0
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/index.ts
|
|
21
|
+
var index_exports = {};
|
|
22
|
+
__export(index_exports, {
|
|
23
|
+
brand: () => brand,
|
|
24
|
+
primitive: () => import_tokens_core3.primitive,
|
|
25
|
+
semantic: () => import_tokens_core3.semantic,
|
|
26
|
+
spacingPrimitive: () => import_tokens_core3.spacingPrimitive,
|
|
27
|
+
spacingSemantic: () => import_tokens_core3.spacingSemantic,
|
|
28
|
+
system: () => system,
|
|
29
|
+
typoBrand: () => typoBrand,
|
|
30
|
+
typoPrimitive: () => import_tokens_core3.typoPrimitive,
|
|
31
|
+
typoSemantic: () => import_tokens_core3.typoSemantic
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(index_exports);
|
|
34
|
+
|
|
35
|
+
// src/colors.ts
|
|
36
|
+
var import_tokens_default = require("@x-plat/tokens-default");
|
|
37
|
+
var import_tokens_core = require("@x-plat/tokens-core");
|
|
38
|
+
var brand = {
|
|
39
|
+
...import_tokens_default.brand,
|
|
40
|
+
primary: {
|
|
41
|
+
50: "#EEF3FA",
|
|
42
|
+
100: "#DEE8F6",
|
|
43
|
+
200: "#B6CCEB",
|
|
44
|
+
300: "#7DA5DC",
|
|
45
|
+
400: "#3D78CB",
|
|
46
|
+
500: "#2A5BA1",
|
|
47
|
+
600: "#224981",
|
|
48
|
+
700: "#1B3A66",
|
|
49
|
+
800: "#122644",
|
|
50
|
+
900: "#0A1628"
|
|
51
|
+
},
|
|
52
|
+
secondary: {
|
|
53
|
+
50: "#FFF5EF",
|
|
54
|
+
100: "#FFD7C0",
|
|
55
|
+
200: "#FFB991",
|
|
56
|
+
300: "#FF9B61",
|
|
57
|
+
400: "#FF7D32",
|
|
58
|
+
500: "#FF652F",
|
|
59
|
+
600: "#FF4B2B",
|
|
60
|
+
700: "#FF3228",
|
|
61
|
+
800: "#CB0900",
|
|
62
|
+
900: "#6F0500"
|
|
63
|
+
},
|
|
64
|
+
neutral: {
|
|
65
|
+
50: "#F7F7F7",
|
|
66
|
+
100: "#EAEBEB",
|
|
67
|
+
200: "#D3D4D5",
|
|
68
|
+
300: "#B5B8BA",
|
|
69
|
+
400: "#9DA1A5",
|
|
70
|
+
500: "#848B90",
|
|
71
|
+
600: "#4A6478",
|
|
72
|
+
700: "#2A475F",
|
|
73
|
+
800: "#10273C",
|
|
74
|
+
900: "#000F1F"
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
var system = import_tokens_default.system;
|
|
78
|
+
|
|
79
|
+
// src/typography.ts
|
|
80
|
+
var import_tokens_core2 = require("@x-plat/tokens-core");
|
|
81
|
+
var typoBrand = {
|
|
82
|
+
"font-family": {
|
|
83
|
+
font: (0, import_tokens_core2.typoFont)("sans")
|
|
84
|
+
},
|
|
85
|
+
size: {
|
|
86
|
+
"display-1": { pc: 64, tablet: 52, mobile: 40 },
|
|
87
|
+
"display-2": { pc: 56, tablet: 48, mobile: 36 },
|
|
88
|
+
"title-1": { pc: 52, tablet: 44, mobile: 36 },
|
|
89
|
+
"title-2": { pc: 48, tablet: 40, mobile: 32 },
|
|
90
|
+
"heading-1": { pc: 40, tablet: 36, mobile: 28 },
|
|
91
|
+
"heading-2": { pc: 36, tablet: 32, mobile: 24 },
|
|
92
|
+
"body-1": { pc: 28, tablet: 22, mobile: 18 },
|
|
93
|
+
"body-2": { pc: 24, tablet: 20, mobile: 16 },
|
|
94
|
+
"label-1": { pc: 20, tablet: 16, mobile: 16 },
|
|
95
|
+
"label-2": { pc: 18, tablet: 16, mobile: 14 },
|
|
96
|
+
"caption-1": { pc: 15, tablet: 13, mobile: 13 },
|
|
97
|
+
"caption-2": { pc: 14, tablet: 12, mobile: 12 }
|
|
98
|
+
},
|
|
99
|
+
"line-height": {
|
|
100
|
+
"display-1": { pc: 84, tablet: 68, mobile: 52 },
|
|
101
|
+
"display-2": { pc: 74, tablet: 62, mobile: 48 },
|
|
102
|
+
"title-1": { pc: 68, tablet: 58, mobile: 48 },
|
|
103
|
+
"title-2": { pc: 62, tablet: 52, mobile: 42 },
|
|
104
|
+
"heading-1": { pc: 52, tablet: 46, mobile: 36 },
|
|
105
|
+
"heading-2": { pc: 46, tablet: 42, mobile: 32 },
|
|
106
|
+
"body-1": { pc: 40, tablet: 32, mobile: 26 },
|
|
107
|
+
"body-2": { pc: 34, tablet: 28, mobile: 22 },
|
|
108
|
+
"label-1": { pc: 28, tablet: 24, mobile: 22 },
|
|
109
|
+
"label-2": { pc: 26, tablet: 22, mobile: 20 },
|
|
110
|
+
"caption-1": { pc: 20, tablet: 18, mobile: 18 },
|
|
111
|
+
"caption-2": { pc: 20, tablet: 18, mobile: 18 }
|
|
112
|
+
},
|
|
113
|
+
weight: {
|
|
114
|
+
regular: (0, import_tokens_core2.typoWeight)("regular"),
|
|
115
|
+
medium: (0, import_tokens_core2.typoWeight)("medium"),
|
|
116
|
+
semibold: (0, import_tokens_core2.typoWeight)("semibold"),
|
|
117
|
+
bold: (0, import_tokens_core2.typoWeight)("bold")
|
|
118
|
+
},
|
|
119
|
+
"letter-spacing": {
|
|
120
|
+
"display-1": (0, import_tokens_core2.typoLs)("tight"),
|
|
121
|
+
"display-2": (0, import_tokens_core2.typoLs)("tight"),
|
|
122
|
+
"title-1": (0, import_tokens_core2.typoLs)("tight"),
|
|
123
|
+
"title-2": (0, import_tokens_core2.typoLs)("tight"),
|
|
124
|
+
"heading-1": (0, import_tokens_core2.typoLs)("tight"),
|
|
125
|
+
"heading-2": (0, import_tokens_core2.typoLs)("tight"),
|
|
126
|
+
"body-1": (0, import_tokens_core2.typoLs)("normal"),
|
|
127
|
+
"body-2": (0, import_tokens_core2.typoLs)("normal"),
|
|
128
|
+
"label-1": (0, import_tokens_core2.typoLs)("normal"),
|
|
129
|
+
"label-2": (0, import_tokens_core2.typoLs)("wide"),
|
|
130
|
+
"caption-1": (0, import_tokens_core2.typoLs)("wide"),
|
|
131
|
+
"caption-2": (0, import_tokens_core2.typoLs)("wide")
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
// src/index.ts
|
|
136
|
+
var import_tokens_core3 = require("@x-plat/tokens-core");
|
|
137
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
138
|
+
0 && (module.exports = {
|
|
139
|
+
brand,
|
|
140
|
+
primitive,
|
|
141
|
+
semantic,
|
|
142
|
+
spacingPrimitive,
|
|
143
|
+
spacingSemantic,
|
|
144
|
+
system,
|
|
145
|
+
typoBrand,
|
|
146
|
+
typoPrimitive,
|
|
147
|
+
typoSemantic
|
|
148
|
+
});
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { TokenTheme, TypoBrandTokens } from '@x-plat/tokens-core';
|
|
2
|
+
export { BrandTokens, SystemTokens, TokenTheme, TypoBrandTokens, primitive, semantic, spacingPrimitive, spacingSemantic, typoPrimitive, typoSemantic } from '@x-plat/tokens-core';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* tokens-haetbitgil: 햇빛길 브랜드 테마
|
|
6
|
+
* tokens-default 를 기반으로 primary/secondary/neutral 색상만 override.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
declare const brand: TokenTheme["brand"];
|
|
10
|
+
declare const system: TokenTheme["system"];
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* tokens-haetbitgil: Typography Brand (햇빛길)
|
|
14
|
+
*
|
|
15
|
+
* size / line-height 가 default 보다 1.5~2배 큰 자체 반응형 raw 값.
|
|
16
|
+
* primitive 에 없는 값을 직접 정의.
|
|
17
|
+
*
|
|
18
|
+
* font-family / weight / letter-spacing 은 default 와 동일 패턴 — primitive alias.
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
declare const typoBrand: TypoBrandTokens;
|
|
22
|
+
|
|
23
|
+
export { brand, system, typoBrand };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { TokenTheme, TypoBrandTokens } from '@x-plat/tokens-core';
|
|
2
|
+
export { BrandTokens, SystemTokens, TokenTheme, TypoBrandTokens, primitive, semantic, spacingPrimitive, spacingSemantic, typoPrimitive, typoSemantic } from '@x-plat/tokens-core';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* tokens-haetbitgil: 햇빛길 브랜드 테마
|
|
6
|
+
* tokens-default 를 기반으로 primary/secondary/neutral 색상만 override.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
declare const brand: TokenTheme["brand"];
|
|
10
|
+
declare const system: TokenTheme["system"];
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* tokens-haetbitgil: Typography Brand (햇빛길)
|
|
14
|
+
*
|
|
15
|
+
* size / line-height 가 default 보다 1.5~2배 큰 자체 반응형 raw 값.
|
|
16
|
+
* primitive 에 없는 값을 직접 정의.
|
|
17
|
+
*
|
|
18
|
+
* font-family / weight / letter-spacing 은 default 와 동일 패턴 — primitive alias.
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
declare const typoBrand: TypoBrandTokens;
|
|
22
|
+
|
|
23
|
+
export { brand, system, typoBrand };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
// src/colors.ts
|
|
2
|
+
import {
|
|
3
|
+
brand as defaultBrand,
|
|
4
|
+
system as defaultSystem
|
|
5
|
+
} from "@x-plat/tokens-default";
|
|
6
|
+
import { primitive, semantic } from "@x-plat/tokens-core";
|
|
7
|
+
var brand = {
|
|
8
|
+
...defaultBrand,
|
|
9
|
+
primary: {
|
|
10
|
+
50: "#EEF3FA",
|
|
11
|
+
100: "#DEE8F6",
|
|
12
|
+
200: "#B6CCEB",
|
|
13
|
+
300: "#7DA5DC",
|
|
14
|
+
400: "#3D78CB",
|
|
15
|
+
500: "#2A5BA1",
|
|
16
|
+
600: "#224981",
|
|
17
|
+
700: "#1B3A66",
|
|
18
|
+
800: "#122644",
|
|
19
|
+
900: "#0A1628"
|
|
20
|
+
},
|
|
21
|
+
secondary: {
|
|
22
|
+
50: "#FFF5EF",
|
|
23
|
+
100: "#FFD7C0",
|
|
24
|
+
200: "#FFB991",
|
|
25
|
+
300: "#FF9B61",
|
|
26
|
+
400: "#FF7D32",
|
|
27
|
+
500: "#FF652F",
|
|
28
|
+
600: "#FF4B2B",
|
|
29
|
+
700: "#FF3228",
|
|
30
|
+
800: "#CB0900",
|
|
31
|
+
900: "#6F0500"
|
|
32
|
+
},
|
|
33
|
+
neutral: {
|
|
34
|
+
50: "#F7F7F7",
|
|
35
|
+
100: "#EAEBEB",
|
|
36
|
+
200: "#D3D4D5",
|
|
37
|
+
300: "#B5B8BA",
|
|
38
|
+
400: "#9DA1A5",
|
|
39
|
+
500: "#848B90",
|
|
40
|
+
600: "#4A6478",
|
|
41
|
+
700: "#2A475F",
|
|
42
|
+
800: "#10273C",
|
|
43
|
+
900: "#000F1F"
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
var system = defaultSystem;
|
|
47
|
+
|
|
48
|
+
// src/typography.ts
|
|
49
|
+
import { typoFont, typoLs, typoWeight } from "@x-plat/tokens-core";
|
|
50
|
+
var typoBrand = {
|
|
51
|
+
"font-family": {
|
|
52
|
+
font: typoFont("sans")
|
|
53
|
+
},
|
|
54
|
+
size: {
|
|
55
|
+
"display-1": { pc: 64, tablet: 52, mobile: 40 },
|
|
56
|
+
"display-2": { pc: 56, tablet: 48, mobile: 36 },
|
|
57
|
+
"title-1": { pc: 52, tablet: 44, mobile: 36 },
|
|
58
|
+
"title-2": { pc: 48, tablet: 40, mobile: 32 },
|
|
59
|
+
"heading-1": { pc: 40, tablet: 36, mobile: 28 },
|
|
60
|
+
"heading-2": { pc: 36, tablet: 32, mobile: 24 },
|
|
61
|
+
"body-1": { pc: 28, tablet: 22, mobile: 18 },
|
|
62
|
+
"body-2": { pc: 24, tablet: 20, mobile: 16 },
|
|
63
|
+
"label-1": { pc: 20, tablet: 16, mobile: 16 },
|
|
64
|
+
"label-2": { pc: 18, tablet: 16, mobile: 14 },
|
|
65
|
+
"caption-1": { pc: 15, tablet: 13, mobile: 13 },
|
|
66
|
+
"caption-2": { pc: 14, tablet: 12, mobile: 12 }
|
|
67
|
+
},
|
|
68
|
+
"line-height": {
|
|
69
|
+
"display-1": { pc: 84, tablet: 68, mobile: 52 },
|
|
70
|
+
"display-2": { pc: 74, tablet: 62, mobile: 48 },
|
|
71
|
+
"title-1": { pc: 68, tablet: 58, mobile: 48 },
|
|
72
|
+
"title-2": { pc: 62, tablet: 52, mobile: 42 },
|
|
73
|
+
"heading-1": { pc: 52, tablet: 46, mobile: 36 },
|
|
74
|
+
"heading-2": { pc: 46, tablet: 42, mobile: 32 },
|
|
75
|
+
"body-1": { pc: 40, tablet: 32, mobile: 26 },
|
|
76
|
+
"body-2": { pc: 34, tablet: 28, mobile: 22 },
|
|
77
|
+
"label-1": { pc: 28, tablet: 24, mobile: 22 },
|
|
78
|
+
"label-2": { pc: 26, tablet: 22, mobile: 20 },
|
|
79
|
+
"caption-1": { pc: 20, tablet: 18, mobile: 18 },
|
|
80
|
+
"caption-2": { pc: 20, tablet: 18, mobile: 18 }
|
|
81
|
+
},
|
|
82
|
+
weight: {
|
|
83
|
+
regular: typoWeight("regular"),
|
|
84
|
+
medium: typoWeight("medium"),
|
|
85
|
+
semibold: typoWeight("semibold"),
|
|
86
|
+
bold: typoWeight("bold")
|
|
87
|
+
},
|
|
88
|
+
"letter-spacing": {
|
|
89
|
+
"display-1": typoLs("tight"),
|
|
90
|
+
"display-2": typoLs("tight"),
|
|
91
|
+
"title-1": typoLs("tight"),
|
|
92
|
+
"title-2": typoLs("tight"),
|
|
93
|
+
"heading-1": typoLs("tight"),
|
|
94
|
+
"heading-2": typoLs("tight"),
|
|
95
|
+
"body-1": typoLs("normal"),
|
|
96
|
+
"body-2": typoLs("normal"),
|
|
97
|
+
"label-1": typoLs("normal"),
|
|
98
|
+
"label-2": typoLs("wide"),
|
|
99
|
+
"caption-1": typoLs("wide"),
|
|
100
|
+
"caption-2": typoLs("wide")
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
// src/index.ts
|
|
105
|
+
import { primitive as primitive2, semantic as semantic2, spacingPrimitive, spacingSemantic, typoPrimitive, typoSemantic } from "@x-plat/tokens-core";
|
|
106
|
+
export {
|
|
107
|
+
brand,
|
|
108
|
+
primitive2 as primitive,
|
|
109
|
+
semantic2 as semantic,
|
|
110
|
+
spacingPrimitive,
|
|
111
|
+
spacingSemantic,
|
|
112
|
+
system,
|
|
113
|
+
typoBrand,
|
|
114
|
+
typoPrimitive,
|
|
115
|
+
typoSemantic
|
|
116
|
+
};
|