@adam-milo/tokens 1.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.
@@ -0,0 +1,127 @@
1
+ /**
2
+ * Smart V2 Design System - Typography Tokens
3
+ * Almoni DL AAA Font Family
4
+ * @package @adam-milo/tokens
5
+ */
6
+ declare const fontSize: {
7
+ readonly 'title-1': readonly ["3rem", {
8
+ readonly lineHeight: "1.2";
9
+ readonly fontWeight: "700";
10
+ }];
11
+ readonly 'text-1': readonly ["3rem", {
12
+ readonly lineHeight: "1.2";
13
+ readonly fontWeight: "400";
14
+ }];
15
+ readonly 'title-2': readonly ["2.5rem", {
16
+ readonly lineHeight: "1.2";
17
+ readonly fontWeight: "700";
18
+ }];
19
+ readonly 'text-2': readonly ["2.5rem", {
20
+ readonly lineHeight: "1.2";
21
+ readonly fontWeight: "400";
22
+ }];
23
+ readonly 'title-3': readonly ["2rem", {
24
+ readonly lineHeight: "1.2";
25
+ readonly fontWeight: "700";
26
+ }];
27
+ readonly 'text-3': readonly ["2rem", {
28
+ readonly lineHeight: "1.2";
29
+ readonly fontWeight: "400";
30
+ }];
31
+ readonly 'title-4': readonly ["1.75rem", {
32
+ readonly lineHeight: "1.2";
33
+ readonly fontWeight: "700";
34
+ }];
35
+ readonly 'text-4': readonly ["1.75rem", {
36
+ readonly lineHeight: "1.2";
37
+ readonly fontWeight: "400";
38
+ }];
39
+ readonly 'title-5': readonly ["1.5rem", {
40
+ readonly lineHeight: "1.2";
41
+ readonly fontWeight: "700";
42
+ }];
43
+ readonly 'text-5': readonly ["1.5rem", {
44
+ readonly lineHeight: "1.2";
45
+ readonly fontWeight: "400";
46
+ }];
47
+ readonly 'title-6': readonly ["1.25rem", {
48
+ readonly lineHeight: "1.2";
49
+ readonly fontWeight: "700";
50
+ }];
51
+ readonly 'text-6': readonly ["1.25rem", {
52
+ readonly lineHeight: "1.2";
53
+ readonly fontWeight: "400";
54
+ }];
55
+ readonly 'title-7': readonly ["1.125rem", {
56
+ readonly lineHeight: "1.2";
57
+ readonly fontWeight: "700";
58
+ }];
59
+ readonly 'text-7': readonly ["1.125rem", {
60
+ readonly lineHeight: "1.2";
61
+ readonly fontWeight: "400";
62
+ }];
63
+ readonly 'title-8': readonly ["1rem", {
64
+ readonly lineHeight: "1.2";
65
+ readonly fontWeight: "700";
66
+ }];
67
+ readonly 'text-8': readonly ["1rem", {
68
+ readonly lineHeight: "1.2";
69
+ readonly fontWeight: "400";
70
+ }];
71
+ readonly 'title-9': readonly ["0.875rem", {
72
+ readonly lineHeight: "1.2";
73
+ readonly fontWeight: "700";
74
+ }];
75
+ readonly 'text-9': readonly ["0.875rem", {
76
+ readonly lineHeight: "1.2";
77
+ readonly fontWeight: "400";
78
+ }];
79
+ readonly 'title-10': readonly ["0.75rem", {
80
+ readonly lineHeight: "1.2";
81
+ readonly fontWeight: "700";
82
+ }];
83
+ readonly 'text-10': readonly ["0.75rem", {
84
+ readonly lineHeight: "1.2";
85
+ readonly fontWeight: "400";
86
+ }];
87
+ readonly h1: readonly ["2.5rem", {
88
+ readonly lineHeight: "3rem";
89
+ readonly fontWeight: "700";
90
+ }];
91
+ readonly h2: readonly ["2rem", {
92
+ readonly lineHeight: "2.5rem";
93
+ readonly fontWeight: "700";
94
+ }];
95
+ readonly h3: readonly ["1.5rem", {
96
+ readonly lineHeight: "2rem";
97
+ readonly fontWeight: "600";
98
+ }];
99
+ readonly h4: readonly ["1.25rem", {
100
+ readonly lineHeight: "1.75rem";
101
+ readonly fontWeight: "600";
102
+ }];
103
+ readonly 'body-lg': readonly ["1.125rem", {
104
+ readonly lineHeight: "1.75rem";
105
+ readonly fontWeight: "400";
106
+ }];
107
+ readonly body: readonly ["1rem", {
108
+ readonly lineHeight: "1.5rem";
109
+ readonly fontWeight: "400";
110
+ }];
111
+ readonly 'body-sm': readonly ["0.875rem", {
112
+ readonly lineHeight: "1.25rem";
113
+ readonly fontWeight: "400";
114
+ }];
115
+ readonly caption: readonly ["0.75rem", {
116
+ readonly lineHeight: "1rem";
117
+ readonly fontWeight: "400";
118
+ }];
119
+ };
120
+ declare const fontFamily: {
121
+ readonly almoni: readonly ["Almoni DL AAA", "sans-serif"];
122
+ readonly sans: readonly ["Almoni DL AAA", "ui-sans-serif", "system-ui", "sans-serif"];
123
+ };
124
+ type FontSize = typeof fontSize;
125
+ type FontFamily = typeof fontFamily;
126
+
127
+ export { type FontFamily, type FontSize, fontFamily, fontSize };
@@ -0,0 +1,87 @@
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/typography.ts
21
+ var typography_exports = {};
22
+ __export(typography_exports, {
23
+ fontFamily: () => fontFamily,
24
+ fontSize: () => fontSize
25
+ });
26
+ module.exports = __toCommonJS(typography_exports);
27
+ var fontSize = {
28
+ // Title and Text pairs (Smart V2)
29
+ "title-1": ["3rem", { lineHeight: "1.2", fontWeight: "700" }],
30
+ // 48px - Bold
31
+ "text-1": ["3rem", { lineHeight: "1.2", fontWeight: "400" }],
32
+ // 48px - Regular
33
+ "title-2": ["2.5rem", { lineHeight: "1.2", fontWeight: "700" }],
34
+ // 40px - Bold
35
+ "text-2": ["2.5rem", { lineHeight: "1.2", fontWeight: "400" }],
36
+ // 40px - Regular
37
+ "title-3": ["2rem", { lineHeight: "1.2", fontWeight: "700" }],
38
+ // 32px - Bold
39
+ "text-3": ["2rem", { lineHeight: "1.2", fontWeight: "400" }],
40
+ // 32px - Regular
41
+ "title-4": ["1.75rem", { lineHeight: "1.2", fontWeight: "700" }],
42
+ // 28px - Bold
43
+ "text-4": ["1.75rem", { lineHeight: "1.2", fontWeight: "400" }],
44
+ // 28px - Regular
45
+ "title-5": ["1.5rem", { lineHeight: "1.2", fontWeight: "700" }],
46
+ // 24px - Bold
47
+ "text-5": ["1.5rem", { lineHeight: "1.2", fontWeight: "400" }],
48
+ // 24px - Regular
49
+ "title-6": ["1.25rem", { lineHeight: "1.2", fontWeight: "700" }],
50
+ // 20px - Bold
51
+ "text-6": ["1.25rem", { lineHeight: "1.2", fontWeight: "400" }],
52
+ // 20px - Regular
53
+ "title-7": ["1.125rem", { lineHeight: "1.2", fontWeight: "700" }],
54
+ // 18px - Bold (Main)
55
+ "text-7": ["1.125rem", { lineHeight: "1.2", fontWeight: "400" }],
56
+ // 18px - Regular
57
+ "title-8": ["1rem", { lineHeight: "1.2", fontWeight: "700" }],
58
+ // 16px - Bold
59
+ "text-8": ["1rem", { lineHeight: "1.2", fontWeight: "400" }],
60
+ // 16px - Regular (Main)
61
+ "title-9": ["0.875rem", { lineHeight: "1.2", fontWeight: "700" }],
62
+ // 14px - Bold
63
+ "text-9": ["0.875rem", { lineHeight: "1.2", fontWeight: "400" }],
64
+ // 14px - Regular
65
+ "title-10": ["0.75rem", { lineHeight: "1.2", fontWeight: "700" }],
66
+ // 12px - Bold
67
+ "text-10": ["0.75rem", { lineHeight: "1.2", fontWeight: "400" }],
68
+ // 12px - Regular
69
+ // Legacy names (keeping for backward compatibility)
70
+ h1: ["2.5rem", { lineHeight: "3rem", fontWeight: "700" }],
71
+ h2: ["2rem", { lineHeight: "2.5rem", fontWeight: "700" }],
72
+ h3: ["1.5rem", { lineHeight: "2rem", fontWeight: "600" }],
73
+ h4: ["1.25rem", { lineHeight: "1.75rem", fontWeight: "600" }],
74
+ "body-lg": ["1.125rem", { lineHeight: "1.75rem", fontWeight: "400" }],
75
+ body: ["1rem", { lineHeight: "1.5rem", fontWeight: "400" }],
76
+ "body-sm": ["0.875rem", { lineHeight: "1.25rem", fontWeight: "400" }],
77
+ caption: ["0.75rem", { lineHeight: "1rem", fontWeight: "400" }]
78
+ };
79
+ var fontFamily = {
80
+ almoni: ["Almoni DL AAA", "sans-serif"],
81
+ sans: ["Almoni DL AAA", "ui-sans-serif", "system-ui", "sans-serif"]
82
+ };
83
+ // Annotate the CommonJS export names for ESM import in node:
84
+ 0 && (module.exports = {
85
+ fontFamily,
86
+ fontSize
87
+ });
@@ -0,0 +1,8 @@
1
+ import {
2
+ fontFamily,
3
+ fontSize
4
+ } from "./chunk-7VTNCMPG.mjs";
5
+ export {
6
+ fontFamily,
7
+ fontSize
8
+ };
package/package.json ADDED
@@ -0,0 +1,68 @@
1
+ {
2
+ "name": "@adam-milo/tokens",
3
+ "version": "1.0.1",
4
+ "description": "Design tokens for the Adam Milo Design System",
5
+ "main": "./dist/index.js",
6
+ "module": "./dist/index.mjs",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.mjs",
12
+ "require": "./dist/index.js"
13
+ },
14
+ "./colors": {
15
+ "types": "./dist/colors.d.ts",
16
+ "import": "./dist/colors.mjs",
17
+ "require": "./dist/colors.js"
18
+ },
19
+ "./spacing": {
20
+ "types": "./dist/spacing.d.ts",
21
+ "import": "./dist/spacing.mjs",
22
+ "require": "./dist/spacing.js"
23
+ },
24
+ "./typography": {
25
+ "types": "./dist/typography.d.ts",
26
+ "import": "./dist/typography.mjs",
27
+ "require": "./dist/typography.js"
28
+ },
29
+ "./tokens.css": "./dist/tokens.css"
30
+ },
31
+ "files": [
32
+ "dist",
33
+ "README.md",
34
+ "LICENSE"
35
+ ],
36
+ "scripts": {
37
+ "build": "tsup src/index.ts src/colors.ts src/spacing.ts src/typography.ts --format cjs,esm --dts && cp src/tokens.css dist/tokens.css",
38
+ "dev": "tsup src/index.ts --format cjs,esm --dts --watch",
39
+ "clean": "rm -rf dist"
40
+ },
41
+ "keywords": [
42
+ "design-tokens",
43
+ "design-system",
44
+ "tokens",
45
+ "colors",
46
+ "typography",
47
+ "spacing",
48
+ "adam-milo"
49
+ ],
50
+ "author": "Adam Milo",
51
+ "license": "MIT",
52
+ "repository": {
53
+ "type": "git",
54
+ "url": "git+https://github.com/adam-milo-smart/adam-milo-design-system.git",
55
+ "directory": "packages/tokens"
56
+ },
57
+ "homepage": "https://github.com/adam-milo-smart/adam-milo-design-system#readme",
58
+ "bugs": {
59
+ "url": "https://github.com/adam-milo-smart/adam-milo-design-system/issues"
60
+ },
61
+ "publishConfig": {
62
+ "access": "public"
63
+ },
64
+ "devDependencies": {
65
+ "tsup": "^8.0.1",
66
+ "typescript": "^5.3.3"
67
+ }
68
+ }