@manjunathhk/design-tokens 1.0.0-rc.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/LICENSE +24 -0
- package/README.md +274 -0
- package/dist/LICENSES/IBM-Plex-Mono-OFL-1.1.txt +93 -0
- package/dist/LICENSES/IBM-Plex-Sans-Condensed-OFL-1.1.txt +93 -0
- package/dist/LICENSES/IBM-Plex-Sans-OFL-1.1.txt +93 -0
- package/dist/_tokens.scss +96 -0
- package/dist/base.css +91 -0
- package/dist/fonts/IBMPlexMono-Medium-Latin1.woff2 +0 -0
- package/dist/fonts/IBMPlexMono-Regular-Latin1.woff2 +0 -0
- package/dist/fonts/IBMPlexSans-Italic-Latin1.woff2 +0 -0
- package/dist/fonts/IBMPlexSans-Medium-Latin1.woff2 +0 -0
- package/dist/fonts/IBMPlexSans-Regular-Latin1.woff2 +0 -0
- package/dist/fonts/IBMPlexSans-SemiBold-Latin1.woff2 +0 -0
- package/dist/fonts/IBMPlexSansCondensed-Bold-Latin1.woff2 +0 -0
- package/dist/fonts/IBMPlexSansCondensed-Medium-Latin1.woff2 +0 -0
- package/dist/fonts/IBMPlexSansCondensed-SemiBold-Latin1.woff2 +0 -0
- package/dist/fonts.css +81 -0
- package/dist/index.css +290 -0
- package/dist/tokens.css +119 -0
- package/dist/tokens.d.ts +89 -0
- package/dist/tokens.json +103 -0
- package/dist/tokens.mjs +102 -0
- package/package.json +71 -0
package/dist/tokens.json
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "1.0.0-rc.2",
|
|
3
|
+
"light": {
|
|
4
|
+
"color.accent": "#2A5AA8",
|
|
5
|
+
"color.accent-subtle": "rgba(42, 90, 168, 0.13)",
|
|
6
|
+
"color.bg": "#F2F0EB",
|
|
7
|
+
"color.bg-subtle": "#E8E5DE",
|
|
8
|
+
"color.border": "#D8D4CB",
|
|
9
|
+
"color.border-control": "#87816F",
|
|
10
|
+
"color.border-strong": "#BFBAAF",
|
|
11
|
+
"color.danger": "#B42318",
|
|
12
|
+
"color.focus-ring": "#2A5AA8",
|
|
13
|
+
"color.grid-line": "rgba(22, 32, 46, 0.05)",
|
|
14
|
+
"color.on-accent": "#FFFFFF",
|
|
15
|
+
"color.success": "#1F6B45",
|
|
16
|
+
"color.surface": "#FBFAF7",
|
|
17
|
+
"color.text": "#16202E",
|
|
18
|
+
"color.text-muted": "#5C6576",
|
|
19
|
+
"color.text-secondary": "#3A4556",
|
|
20
|
+
"color.warning": "#8C5300"
|
|
21
|
+
},
|
|
22
|
+
"dark": {
|
|
23
|
+
"color.accent": "#8DB2F2",
|
|
24
|
+
"color.accent-subtle": "rgba(141, 178, 242, 0.13)",
|
|
25
|
+
"color.bg": "#0F141B",
|
|
26
|
+
"color.bg-subtle": "#141A23",
|
|
27
|
+
"color.border": "#242D3A",
|
|
28
|
+
"color.border-control": "#5E6D83",
|
|
29
|
+
"color.border-strong": "#334052",
|
|
30
|
+
"color.danger": "#FF8A7A",
|
|
31
|
+
"color.focus-ring": "#8DB2F2",
|
|
32
|
+
"color.grid-line": "rgba(255, 255, 255, 0.04)",
|
|
33
|
+
"color.on-accent": "#0B1422",
|
|
34
|
+
"color.success": "#86C99A",
|
|
35
|
+
"color.surface": "#18202B",
|
|
36
|
+
"color.text": "#E7EBF1",
|
|
37
|
+
"color.text-muted": "#8792A2",
|
|
38
|
+
"color.text-secondary": "#B3BCC9",
|
|
39
|
+
"color.warning": "#F0B860"
|
|
40
|
+
},
|
|
41
|
+
"shared": {
|
|
42
|
+
"font.family.display": "'IBM Plex Sans Condensed', 'IBM Plex Sans', 'Arial Narrow', sans-serif",
|
|
43
|
+
"font.family.mono": "'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace",
|
|
44
|
+
"font.family.sans": "'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif",
|
|
45
|
+
"font.letter-spacing.display": "-0.028em",
|
|
46
|
+
"font.letter-spacing.heading": "-0.022em",
|
|
47
|
+
"font.letter-spacing.label": "0.07em",
|
|
48
|
+
"font.letter-spacing.normal": "0",
|
|
49
|
+
"font.line-height.normal": 1.5,
|
|
50
|
+
"font.line-height.relaxed": 1.6,
|
|
51
|
+
"font.line-height.snug": 1.15,
|
|
52
|
+
"font.line-height.tight": 0.9,
|
|
53
|
+
"font.size.2xl": "clamp(34px, 4vw, 64px)",
|
|
54
|
+
"font.size.3xl": "clamp(42px, 5.6vw, 98px)",
|
|
55
|
+
"font.size.base": "17px",
|
|
56
|
+
"font.size.display": "clamp(50px, 8.1vw, 148px)",
|
|
57
|
+
"font.size.lg": "21px",
|
|
58
|
+
"font.size.md": "18px",
|
|
59
|
+
"font.size.sm": "14px",
|
|
60
|
+
"font.size.xl": "clamp(28px, 3vw, 40px)",
|
|
61
|
+
"font.size.xs": "12px",
|
|
62
|
+
"font.weight.bold": 700,
|
|
63
|
+
"font.weight.medium": 500,
|
|
64
|
+
"font.weight.regular": 400,
|
|
65
|
+
"font.weight.semibold": 600,
|
|
66
|
+
"layout.container-max": "1440px",
|
|
67
|
+
"layout.grid-size": "56px",
|
|
68
|
+
"layout.gutter": "clamp(16px, 4vw, 56px)",
|
|
69
|
+
"motion.duration.base": "300ms",
|
|
70
|
+
"motion.duration.fast": "150ms",
|
|
71
|
+
"motion.duration.slow": "500ms",
|
|
72
|
+
"motion.duration.slower": "900ms",
|
|
73
|
+
"motion.ease": "cubic-bezier(0.2, 0.7, 0.1, 1)",
|
|
74
|
+
"radius.lg": "12px",
|
|
75
|
+
"radius.md": "6px",
|
|
76
|
+
"radius.pill": "999px",
|
|
77
|
+
"radius.sm": "4px",
|
|
78
|
+
"radius.xl": "16px",
|
|
79
|
+
"shadow.raised": "0 16px 40px -20px #00000066",
|
|
80
|
+
"spacing.1": "4px",
|
|
81
|
+
"spacing.2": "8px",
|
|
82
|
+
"spacing.3": "12px",
|
|
83
|
+
"spacing.4": "16px",
|
|
84
|
+
"spacing.5": "20px",
|
|
85
|
+
"spacing.6": "24px",
|
|
86
|
+
"spacing.8": "32px",
|
|
87
|
+
"spacing.10": "40px",
|
|
88
|
+
"spacing.12": "48px",
|
|
89
|
+
"spacing.16": "64px",
|
|
90
|
+
"spacing.20": "80px",
|
|
91
|
+
"spacing.24": "96px",
|
|
92
|
+
"spacing.32": "128px",
|
|
93
|
+
"z-index.nav": 50,
|
|
94
|
+
"z-index.overlay": 80,
|
|
95
|
+
"z-index.toast": 90
|
|
96
|
+
},
|
|
97
|
+
"breakpoints": {
|
|
98
|
+
"breakpoint.lg": "1000px",
|
|
99
|
+
"breakpoint.md": "900px",
|
|
100
|
+
"breakpoint.sm": "560px",
|
|
101
|
+
"breakpoint.xl": "1440px"
|
|
102
|
+
}
|
|
103
|
+
}
|
package/dist/tokens.mjs
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/*! @manjunathhk/design-tokens v1.0.0-rc.2 */
|
|
2
|
+
export const version = "1.0.0-rc.2";
|
|
3
|
+
export const light = {
|
|
4
|
+
"color.accent": "#2A5AA8",
|
|
5
|
+
"color.accent-subtle": "rgba(42, 90, 168, 0.13)",
|
|
6
|
+
"color.bg": "#F2F0EB",
|
|
7
|
+
"color.bg-subtle": "#E8E5DE",
|
|
8
|
+
"color.border": "#D8D4CB",
|
|
9
|
+
"color.border-control": "#87816F",
|
|
10
|
+
"color.border-strong": "#BFBAAF",
|
|
11
|
+
"color.danger": "#B42318",
|
|
12
|
+
"color.focus-ring": "#2A5AA8",
|
|
13
|
+
"color.grid-line": "rgba(22, 32, 46, 0.05)",
|
|
14
|
+
"color.on-accent": "#FFFFFF",
|
|
15
|
+
"color.success": "#1F6B45",
|
|
16
|
+
"color.surface": "#FBFAF7",
|
|
17
|
+
"color.text": "#16202E",
|
|
18
|
+
"color.text-muted": "#5C6576",
|
|
19
|
+
"color.text-secondary": "#3A4556",
|
|
20
|
+
"color.warning": "#8C5300"
|
|
21
|
+
};
|
|
22
|
+
export const dark = {
|
|
23
|
+
"color.accent": "#8DB2F2",
|
|
24
|
+
"color.accent-subtle": "rgba(141, 178, 242, 0.13)",
|
|
25
|
+
"color.bg": "#0F141B",
|
|
26
|
+
"color.bg-subtle": "#141A23",
|
|
27
|
+
"color.border": "#242D3A",
|
|
28
|
+
"color.border-control": "#5E6D83",
|
|
29
|
+
"color.border-strong": "#334052",
|
|
30
|
+
"color.danger": "#FF8A7A",
|
|
31
|
+
"color.focus-ring": "#8DB2F2",
|
|
32
|
+
"color.grid-line": "rgba(255, 255, 255, 0.04)",
|
|
33
|
+
"color.on-accent": "#0B1422",
|
|
34
|
+
"color.success": "#86C99A",
|
|
35
|
+
"color.surface": "#18202B",
|
|
36
|
+
"color.text": "#E7EBF1",
|
|
37
|
+
"color.text-muted": "#8792A2",
|
|
38
|
+
"color.text-secondary": "#B3BCC9",
|
|
39
|
+
"color.warning": "#F0B860"
|
|
40
|
+
};
|
|
41
|
+
export const shared = {
|
|
42
|
+
"font.family.display": "'IBM Plex Sans Condensed', 'IBM Plex Sans', 'Arial Narrow', sans-serif",
|
|
43
|
+
"font.family.mono": "'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace",
|
|
44
|
+
"font.family.sans": "'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif",
|
|
45
|
+
"font.letter-spacing.display": "-0.028em",
|
|
46
|
+
"font.letter-spacing.heading": "-0.022em",
|
|
47
|
+
"font.letter-spacing.label": "0.07em",
|
|
48
|
+
"font.letter-spacing.normal": "0",
|
|
49
|
+
"font.line-height.normal": 1.5,
|
|
50
|
+
"font.line-height.relaxed": 1.6,
|
|
51
|
+
"font.line-height.snug": 1.15,
|
|
52
|
+
"font.line-height.tight": 0.9,
|
|
53
|
+
"font.size.2xl": "clamp(34px, 4vw, 64px)",
|
|
54
|
+
"font.size.3xl": "clamp(42px, 5.6vw, 98px)",
|
|
55
|
+
"font.size.base": "17px",
|
|
56
|
+
"font.size.display": "clamp(50px, 8.1vw, 148px)",
|
|
57
|
+
"font.size.lg": "21px",
|
|
58
|
+
"font.size.md": "18px",
|
|
59
|
+
"font.size.sm": "14px",
|
|
60
|
+
"font.size.xl": "clamp(28px, 3vw, 40px)",
|
|
61
|
+
"font.size.xs": "12px",
|
|
62
|
+
"font.weight.bold": 700,
|
|
63
|
+
"font.weight.medium": 500,
|
|
64
|
+
"font.weight.regular": 400,
|
|
65
|
+
"font.weight.semibold": 600,
|
|
66
|
+
"layout.container-max": "1440px",
|
|
67
|
+
"layout.grid-size": "56px",
|
|
68
|
+
"layout.gutter": "clamp(16px, 4vw, 56px)",
|
|
69
|
+
"motion.duration.base": "300ms",
|
|
70
|
+
"motion.duration.fast": "150ms",
|
|
71
|
+
"motion.duration.slow": "500ms",
|
|
72
|
+
"motion.duration.slower": "900ms",
|
|
73
|
+
"motion.ease": "cubic-bezier(0.2, 0.7, 0.1, 1)",
|
|
74
|
+
"radius.lg": "12px",
|
|
75
|
+
"radius.md": "6px",
|
|
76
|
+
"radius.pill": "999px",
|
|
77
|
+
"radius.sm": "4px",
|
|
78
|
+
"radius.xl": "16px",
|
|
79
|
+
"shadow.raised": "0 16px 40px -20px #00000066",
|
|
80
|
+
"spacing.1": "4px",
|
|
81
|
+
"spacing.2": "8px",
|
|
82
|
+
"spacing.3": "12px",
|
|
83
|
+
"spacing.4": "16px",
|
|
84
|
+
"spacing.5": "20px",
|
|
85
|
+
"spacing.6": "24px",
|
|
86
|
+
"spacing.8": "32px",
|
|
87
|
+
"spacing.10": "40px",
|
|
88
|
+
"spacing.12": "48px",
|
|
89
|
+
"spacing.16": "64px",
|
|
90
|
+
"spacing.20": "80px",
|
|
91
|
+
"spacing.24": "96px",
|
|
92
|
+
"spacing.32": "128px",
|
|
93
|
+
"z-index.nav": 50,
|
|
94
|
+
"z-index.overlay": 80,
|
|
95
|
+
"z-index.toast": 90
|
|
96
|
+
};
|
|
97
|
+
export const breakpoints = {
|
|
98
|
+
"breakpoint.lg": "1000px",
|
|
99
|
+
"breakpoint.md": "900px",
|
|
100
|
+
"breakpoint.sm": "560px",
|
|
101
|
+
"breakpoint.xl": "1440px"
|
|
102
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@manjunathhk/design-tokens",
|
|
3
|
+
"version": "1.0.0-rc.2",
|
|
4
|
+
"description": "Design tokens and a small opt-in base stylesheet shared by Manjunath's websites.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "Manjunath Krishnasa",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/manjunathhk/design-tokens.git"
|
|
10
|
+
},
|
|
11
|
+
"type": "module",
|
|
12
|
+
"files": [
|
|
13
|
+
"dist"
|
|
14
|
+
],
|
|
15
|
+
"style": "dist/index.css",
|
|
16
|
+
"exports": {
|
|
17
|
+
".": {
|
|
18
|
+
"types": "./dist/tokens.d.ts",
|
|
19
|
+
"style": "./dist/index.css",
|
|
20
|
+
"default": "./dist/tokens.mjs"
|
|
21
|
+
},
|
|
22
|
+
"./index.css": "./dist/index.css",
|
|
23
|
+
"./tokens.css": "./dist/tokens.css",
|
|
24
|
+
"./base.css": "./dist/base.css",
|
|
25
|
+
"./fonts.css": "./dist/fonts.css",
|
|
26
|
+
"./tokens.json": "./dist/tokens.json",
|
|
27
|
+
"./tokens.mjs": {
|
|
28
|
+
"types": "./dist/tokens.d.ts",
|
|
29
|
+
"default": "./dist/tokens.mjs"
|
|
30
|
+
},
|
|
31
|
+
"./_tokens.scss": "./dist/_tokens.scss",
|
|
32
|
+
"./package.json": "./package.json"
|
|
33
|
+
},
|
|
34
|
+
"sideEffects": [
|
|
35
|
+
"*.css"
|
|
36
|
+
],
|
|
37
|
+
"publishConfig": {
|
|
38
|
+
"access": "public",
|
|
39
|
+
"provenance": true
|
|
40
|
+
},
|
|
41
|
+
"engines": {
|
|
42
|
+
"node": ">=24"
|
|
43
|
+
},
|
|
44
|
+
"scripts": {
|
|
45
|
+
"lint": "eslint . && stylelint \"src/**/*.css\" --allow-empty-input && prettier --check .",
|
|
46
|
+
"format": "prettier --write .",
|
|
47
|
+
"typecheck": "tsc --noEmit",
|
|
48
|
+
"test": "vitest run",
|
|
49
|
+
"test:e2e": "playwright test",
|
|
50
|
+
"api-diff": "tsx scripts/api-diff.ts",
|
|
51
|
+
"build": "tsx src/build.ts"
|
|
52
|
+
},
|
|
53
|
+
"devDependencies": {
|
|
54
|
+
"@eslint/js": "^10.0.1",
|
|
55
|
+
"@ibm/plex-mono": "2.5.0",
|
|
56
|
+
"@ibm/plex-sans": "1.1.0",
|
|
57
|
+
"@ibm/plex-sans-condensed": "2.0.0",
|
|
58
|
+
"@playwright/test": "^1.63.0",
|
|
59
|
+
"@types/node": "^24.13.6",
|
|
60
|
+
"eslint": "^10.11.0",
|
|
61
|
+
"prettier": "^3.9.9",
|
|
62
|
+
"sass": "^1.105.0",
|
|
63
|
+
"style-dictionary": "^5.5.5",
|
|
64
|
+
"stylelint": "^17.15.0",
|
|
65
|
+
"stylelint-config-standard": "^40.0.0",
|
|
66
|
+
"tsx": "^4.23.15",
|
|
67
|
+
"typescript": "~6.0.3",
|
|
68
|
+
"typescript-eslint": "^8.70.1",
|
|
69
|
+
"vitest": "^5.0.1"
|
|
70
|
+
}
|
|
71
|
+
}
|