@lemonppt/themes 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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 lemonforme
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,34 @@
1
+ /**
2
+ * dark-tech 主题设计 token
3
+ */
4
+ export declare const darkTechTokens: {
5
+ readonly id: "dark-tech";
6
+ readonly displayName: "深色科技";
7
+ readonly description: "深色背景、霓虹青 accent,适合技术分享与产品发布会";
8
+ readonly colors: {
9
+ readonly background: "#0a0f1c";
10
+ readonly surface: "#111827";
11
+ readonly primary: "#e5e7eb";
12
+ readonly secondary: "#94a3b8";
13
+ readonly accent: "#06b6d4";
14
+ readonly muted: "#1f2937";
15
+ readonly text: "#f3f4f6";
16
+ readonly textInverse: "#0a0f1c";
17
+ };
18
+ readonly fonts: {
19
+ readonly heading: "Inter, \"Noto Sans SC\", system-ui, sans-serif";
20
+ readonly body: "Inter, \"Noto Sans SC\", system-ui, sans-serif";
21
+ readonly mono: "JetBrains Mono, \"SF Mono\", monospace";
22
+ };
23
+ readonly spacing: {
24
+ readonly pagePadding: "48px";
25
+ readonly sectionGap: "32px";
26
+ readonly elementGap: "16px";
27
+ };
28
+ readonly borderRadius: {
29
+ readonly small: "6px";
30
+ readonly medium: "12px";
31
+ readonly large: "16px";
32
+ };
33
+ };
34
+ //# sourceMappingURL=tokens.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../src/dark-tech/tokens.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BjB,CAAC"}
@@ -0,0 +1,34 @@
1
+ /**
2
+ * dark-tech 主题设计 token
3
+ */
4
+ export const darkTechTokens = {
5
+ id: 'dark-tech',
6
+ displayName: '深色科技',
7
+ description: '深色背景、霓虹青 accent,适合技术分享与产品发布会',
8
+ colors: {
9
+ background: '#0a0f1c',
10
+ surface: '#111827',
11
+ primary: '#e5e7eb',
12
+ secondary: '#94a3b8',
13
+ accent: '#06b6d4',
14
+ muted: '#1f2937',
15
+ text: '#f3f4f6',
16
+ textInverse: '#0a0f1c',
17
+ },
18
+ fonts: {
19
+ heading: 'Inter, "Noto Sans SC", system-ui, sans-serif',
20
+ body: 'Inter, "Noto Sans SC", system-ui, sans-serif',
21
+ mono: 'JetBrains Mono, "SF Mono", monospace',
22
+ },
23
+ spacing: {
24
+ pagePadding: '48px',
25
+ sectionGap: '32px',
26
+ elementGap: '16px',
27
+ },
28
+ borderRadius: {
29
+ small: '6px',
30
+ medium: '12px',
31
+ large: '16px',
32
+ },
33
+ };
34
+ //# sourceMappingURL=tokens.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tokens.js","sourceRoot":"","sources":["../../src/dark-tech/tokens.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,EAAE,EAAE,WAAW;IACf,WAAW,EAAE,MAAM;IACnB,WAAW,EAAE,8BAA8B;IAC3C,MAAM,EAAE;QACN,UAAU,EAAE,SAAS;QACrB,OAAO,EAAE,SAAS;QAClB,OAAO,EAAE,SAAS;QAClB,SAAS,EAAE,SAAS;QACpB,MAAM,EAAE,SAAS;QACjB,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,SAAS;QACf,WAAW,EAAE,SAAS;KACvB;IACD,KAAK,EAAE;QACL,OAAO,EAAE,8CAA8C;QACvD,IAAI,EAAE,8CAA8C;QACpD,IAAI,EAAE,sCAAsC;KAC7C;IACD,OAAO,EAAE;QACP,WAAW,EAAE,MAAM;QACnB,UAAU,EAAE,MAAM;QAClB,UAAU,EAAE,MAAM;KACnB;IACD,YAAY,EAAE;QACZ,KAAK,EAAE,KAAK;QACZ,MAAM,EAAE,MAAM;QACd,KAAK,EAAE,MAAM;KACd;CACO,CAAC"}
@@ -0,0 +1,94 @@
1
+ export declare const themes: readonly [{
2
+ readonly id: "minimal";
3
+ readonly displayName: "极简白";
4
+ readonly description: "干净、专业、适合商务汇报";
5
+ readonly colors: {
6
+ readonly background: "#ffffff";
7
+ readonly surface: "#f8fafc";
8
+ readonly primary: "#0f172a";
9
+ readonly secondary: "#64748b";
10
+ readonly accent: "#3b82f6";
11
+ readonly muted: "#e2e8f0";
12
+ readonly text: "#0f172a";
13
+ readonly textInverse: "#ffffff";
14
+ };
15
+ readonly fonts: {
16
+ readonly heading: "Inter, system-ui, sans-serif";
17
+ readonly body: "Inter, system-ui, sans-serif";
18
+ readonly mono: "JetBrains Mono, monospace";
19
+ };
20
+ readonly spacing: {
21
+ readonly pagePadding: "48px";
22
+ readonly sectionGap: "32px";
23
+ readonly elementGap: "16px";
24
+ };
25
+ readonly borderRadius: {
26
+ readonly small: "6px";
27
+ readonly medium: "12px";
28
+ readonly large: "20px";
29
+ };
30
+ }, {
31
+ readonly id: "dark-tech";
32
+ readonly displayName: "深色科技";
33
+ readonly description: "深色背景、霓虹青 accent,适合技术分享与产品发布会";
34
+ readonly colors: {
35
+ readonly background: "#0a0f1c";
36
+ readonly surface: "#111827";
37
+ readonly primary: "#e5e7eb";
38
+ readonly secondary: "#94a3b8";
39
+ readonly accent: "#06b6d4";
40
+ readonly muted: "#1f2937";
41
+ readonly text: "#f3f4f6";
42
+ readonly textInverse: "#0a0f1c";
43
+ };
44
+ readonly fonts: {
45
+ readonly heading: "Inter, \"Noto Sans SC\", system-ui, sans-serif";
46
+ readonly body: "Inter, \"Noto Sans SC\", system-ui, sans-serif";
47
+ readonly mono: "JetBrains Mono, \"SF Mono\", monospace";
48
+ };
49
+ readonly spacing: {
50
+ readonly pagePadding: "48px";
51
+ readonly sectionGap: "32px";
52
+ readonly elementGap: "16px";
53
+ };
54
+ readonly borderRadius: {
55
+ readonly small: "6px";
56
+ readonly medium: "12px";
57
+ readonly large: "16px";
58
+ };
59
+ }, {
60
+ readonly id: "warm-business";
61
+ readonly displayName: "暖色商务";
62
+ readonly description: "米白与浅棕背景、暖橙 accent,适合温暖风格的商务汇报";
63
+ readonly colors: {
64
+ readonly background: "#faf6f1";
65
+ readonly surface: "#fffbf7";
66
+ readonly primary: "#3d2c24";
67
+ readonly secondary: "#8c7b70";
68
+ readonly accent: "#e07b39";
69
+ readonly muted: "#efe6dc";
70
+ readonly text: "#3d2c24";
71
+ readonly textInverse: "#fffbf7";
72
+ };
73
+ readonly fonts: {
74
+ readonly heading: "\"Noto Serif SC\", \"Noto Sans SC\", Georgia, serif";
75
+ readonly body: "\"Noto Sans SC\", Inter, system-ui, sans-serif";
76
+ readonly mono: "JetBrains Mono, monospace";
77
+ };
78
+ readonly spacing: {
79
+ readonly pagePadding: "48px";
80
+ readonly sectionGap: "32px";
81
+ readonly elementGap: "16px";
82
+ };
83
+ readonly borderRadius: {
84
+ readonly small: "8px";
85
+ readonly medium: "16px";
86
+ readonly large: "24px";
87
+ };
88
+ }];
89
+ export type ThemeToken = typeof themes[number];
90
+ export declare function getTheme(id: string): ThemeToken | undefined;
91
+ export * from './minimal/tokens.js';
92
+ export * from './dark-tech/tokens.js';
93
+ export * from './warm-business/tokens.js';
94
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA+D,CAAC;AAEnF,MAAM,MAAM,UAAU,GAAG,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC;AAE/C,wBAAgB,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,CAE3D;AAED,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,11 @@
1
+ import { darkTechTokens } from './dark-tech/tokens.js';
2
+ import { minimalTokens } from './minimal/tokens.js';
3
+ import { warmBusinessTokens } from './warm-business/tokens.js';
4
+ export const themes = [minimalTokens, darkTechTokens, warmBusinessTokens];
5
+ export function getTheme(id) {
6
+ return themes.find((t) => t.id === id);
7
+ }
8
+ export * from './minimal/tokens.js';
9
+ export * from './dark-tech/tokens.js';
10
+ export * from './warm-business/tokens.js';
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAE/D,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,aAAa,EAAE,cAAc,EAAE,kBAAkB,CAAU,CAAC;AAInF,MAAM,UAAU,QAAQ,CAAC,EAAU;IACjC,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;AACzC,CAAC;AAED,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC"}
@@ -0,0 +1,34 @@
1
+ /**
2
+ * minimal 主题设计 token
3
+ */
4
+ export declare const minimalTokens: {
5
+ readonly id: "minimal";
6
+ readonly displayName: "极简白";
7
+ readonly description: "干净、专业、适合商务汇报";
8
+ readonly colors: {
9
+ readonly background: "#ffffff";
10
+ readonly surface: "#f8fafc";
11
+ readonly primary: "#0f172a";
12
+ readonly secondary: "#64748b";
13
+ readonly accent: "#3b82f6";
14
+ readonly muted: "#e2e8f0";
15
+ readonly text: "#0f172a";
16
+ readonly textInverse: "#ffffff";
17
+ };
18
+ readonly fonts: {
19
+ readonly heading: "Inter, system-ui, sans-serif";
20
+ readonly body: "Inter, system-ui, sans-serif";
21
+ readonly mono: "JetBrains Mono, monospace";
22
+ };
23
+ readonly spacing: {
24
+ readonly pagePadding: "48px";
25
+ readonly sectionGap: "32px";
26
+ readonly elementGap: "16px";
27
+ };
28
+ readonly borderRadius: {
29
+ readonly small: "6px";
30
+ readonly medium: "12px";
31
+ readonly large: "20px";
32
+ };
33
+ };
34
+ //# sourceMappingURL=tokens.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../src/minimal/tokens.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BhB,CAAC"}
@@ -0,0 +1,34 @@
1
+ /**
2
+ * minimal 主题设计 token
3
+ */
4
+ export const minimalTokens = {
5
+ id: 'minimal',
6
+ displayName: '极简白',
7
+ description: '干净、专业、适合商务汇报',
8
+ colors: {
9
+ background: '#ffffff',
10
+ surface: '#f8fafc',
11
+ primary: '#0f172a',
12
+ secondary: '#64748b',
13
+ accent: '#3b82f6',
14
+ muted: '#e2e8f0',
15
+ text: '#0f172a',
16
+ textInverse: '#ffffff',
17
+ },
18
+ fonts: {
19
+ heading: 'Inter, system-ui, sans-serif',
20
+ body: 'Inter, system-ui, sans-serif',
21
+ mono: 'JetBrains Mono, monospace',
22
+ },
23
+ spacing: {
24
+ pagePadding: '48px',
25
+ sectionGap: '32px',
26
+ elementGap: '16px',
27
+ },
28
+ borderRadius: {
29
+ small: '6px',
30
+ medium: '12px',
31
+ large: '20px',
32
+ },
33
+ };
34
+ //# sourceMappingURL=tokens.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tokens.js","sourceRoot":"","sources":["../../src/minimal/tokens.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,EAAE,EAAE,SAAS;IACb,WAAW,EAAE,KAAK;IAClB,WAAW,EAAE,cAAc;IAC3B,MAAM,EAAE;QACN,UAAU,EAAE,SAAS;QACrB,OAAO,EAAE,SAAS;QAClB,OAAO,EAAE,SAAS;QAClB,SAAS,EAAE,SAAS;QACpB,MAAM,EAAE,SAAS;QACjB,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,SAAS;QACf,WAAW,EAAE,SAAS;KACvB;IACD,KAAK,EAAE;QACL,OAAO,EAAE,8BAA8B;QACvC,IAAI,EAAE,8BAA8B;QACpC,IAAI,EAAE,2BAA2B;KAClC;IACD,OAAO,EAAE;QACP,WAAW,EAAE,MAAM;QACnB,UAAU,EAAE,MAAM;QAClB,UAAU,EAAE,MAAM;KACnB;IACD,YAAY,EAAE;QACZ,KAAK,EAAE,KAAK;QACZ,MAAM,EAAE,MAAM;QACd,KAAK,EAAE,MAAM;KACd;CACO,CAAC"}
@@ -0,0 +1,34 @@
1
+ /**
2
+ * warm-business 主题设计 token
3
+ */
4
+ export declare const warmBusinessTokens: {
5
+ readonly id: "warm-business";
6
+ readonly displayName: "暖色商务";
7
+ readonly description: "米白与浅棕背景、暖橙 accent,适合温暖风格的商务汇报";
8
+ readonly colors: {
9
+ readonly background: "#faf6f1";
10
+ readonly surface: "#fffbf7";
11
+ readonly primary: "#3d2c24";
12
+ readonly secondary: "#8c7b70";
13
+ readonly accent: "#e07b39";
14
+ readonly muted: "#efe6dc";
15
+ readonly text: "#3d2c24";
16
+ readonly textInverse: "#fffbf7";
17
+ };
18
+ readonly fonts: {
19
+ readonly heading: "\"Noto Serif SC\", \"Noto Sans SC\", Georgia, serif";
20
+ readonly body: "\"Noto Sans SC\", Inter, system-ui, sans-serif";
21
+ readonly mono: "JetBrains Mono, monospace";
22
+ };
23
+ readonly spacing: {
24
+ readonly pagePadding: "48px";
25
+ readonly sectionGap: "32px";
26
+ readonly elementGap: "16px";
27
+ };
28
+ readonly borderRadius: {
29
+ readonly small: "8px";
30
+ readonly medium: "16px";
31
+ readonly large: "24px";
32
+ };
33
+ };
34
+ //# sourceMappingURL=tokens.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../src/warm-business/tokens.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BrB,CAAC"}
@@ -0,0 +1,34 @@
1
+ /**
2
+ * warm-business 主题设计 token
3
+ */
4
+ export const warmBusinessTokens = {
5
+ id: 'warm-business',
6
+ displayName: '暖色商务',
7
+ description: '米白与浅棕背景、暖橙 accent,适合温暖风格的商务汇报',
8
+ colors: {
9
+ background: '#faf6f1',
10
+ surface: '#fffbf7',
11
+ primary: '#3d2c24',
12
+ secondary: '#8c7b70',
13
+ accent: '#e07b39',
14
+ muted: '#efe6dc',
15
+ text: '#3d2c24',
16
+ textInverse: '#fffbf7',
17
+ },
18
+ fonts: {
19
+ heading: '"Noto Serif SC", "Noto Sans SC", Georgia, serif',
20
+ body: '"Noto Sans SC", Inter, system-ui, sans-serif',
21
+ mono: 'JetBrains Mono, monospace',
22
+ },
23
+ spacing: {
24
+ pagePadding: '48px',
25
+ sectionGap: '32px',
26
+ elementGap: '16px',
27
+ },
28
+ borderRadius: {
29
+ small: '8px',
30
+ medium: '16px',
31
+ large: '24px',
32
+ },
33
+ };
34
+ //# sourceMappingURL=tokens.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tokens.js","sourceRoot":"","sources":["../../src/warm-business/tokens.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,EAAE,EAAE,eAAe;IACnB,WAAW,EAAE,MAAM;IACnB,WAAW,EAAE,+BAA+B;IAC5C,MAAM,EAAE;QACN,UAAU,EAAE,SAAS;QACrB,OAAO,EAAE,SAAS;QAClB,OAAO,EAAE,SAAS;QAClB,SAAS,EAAE,SAAS;QACpB,MAAM,EAAE,SAAS;QACjB,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,SAAS;QACf,WAAW,EAAE,SAAS;KACvB;IACD,KAAK,EAAE;QACL,OAAO,EAAE,iDAAiD;QAC1D,IAAI,EAAE,8CAA8C;QACpD,IAAI,EAAE,2BAA2B;KAClC;IACD,OAAO,EAAE;QACP,WAAW,EAAE,MAAM;QACnB,UAAU,EAAE,MAAM;QAClB,UAAU,EAAE,MAAM;KACnB;IACD,YAAY,EAAE;QACZ,KAAK,EAAE,KAAK;QACZ,MAAM,EAAE,MAAM;QACd,KAAK,EAAE,MAAM;KACd;CACO,CAAC"}
package/package.json ADDED
@@ -0,0 +1,40 @@
1
+ {
2
+ "name": "@lemonppt/themes",
3
+ "version": "0.1.0",
4
+ "type": "module",
5
+ "main": "./dist/index.js",
6
+ "types": "./dist/index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "import": "./dist/index.js",
10
+ "types": "./dist/index.d.ts"
11
+ }
12
+ },
13
+ "files": [
14
+ "dist",
15
+ "src/**/*.css"
16
+ ],
17
+ "publishConfig": {
18
+ "access": "public"
19
+ },
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "git+https://github.com/lemonforme/lemonPPT.git",
23
+ "directory": "packages/themes"
24
+ },
25
+ "bugs": {
26
+ "url": "https://github.com/lemonforme/lemonPPT/issues"
27
+ },
28
+ "homepage": "https://github.com/lemonforme/lemonPPT#readme",
29
+ "dependencies": {
30
+ "@lemonppt/core": "0.1.0"
31
+ },
32
+ "devDependencies": {
33
+ "typescript": "^5.5.0"
34
+ },
35
+ "license": "MIT",
36
+ "scripts": {
37
+ "build": "tsc",
38
+ "typecheck": "tsc --noEmit"
39
+ }
40
+ }