@docxkit/theme-warm 0.3.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) 2025-PRESENT ntnyq <https://github.com/ntnyq>
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.
package/README.md ADDED
@@ -0,0 +1,11 @@
1
+ # @docxkit/theme-warm
2
+
3
+ Warm theme for docx-kit — orange/amber color palette.
4
+
5
+ ## Usage
6
+
7
+ ```ts
8
+ import { warmTheme } from '@docxkit/theme-warm'
9
+
10
+ const docx = createDocx({ theme: warmTheme })
11
+ ```
@@ -0,0 +1,23 @@
1
+ import { DocxTheme } from "@docxkit/core";
2
+
3
+ //#region src/index.d.ts
4
+ /**
5
+ * Warm theme — earthy tones with amber and terracotta accents.
6
+ *
7
+ * Uses Garamond/Georgia serif fonts and warm color palette
8
+ * (amber, terracotta, warm gray) suitable for invitations
9
+ * and personal correspondence.
10
+ *
11
+ * @remarks
12
+ * - `colors` — 12 semantic color tokens (primary, accent, success, etc.)
13
+ * - `fonts` — body/heading/code font stacks
14
+ * - `fontSize` — 5-step type scale (xs/sm/base/lg/xl)
15
+ * - `spacing` — 5-step spacing scale (xs/sm/md/lg/xl) in half-points
16
+ */
17
+ declare const warmTheme: DocxTheme & {
18
+ description: string;
19
+ id: string;
20
+ name: string;
21
+ };
22
+ //#endregion
23
+ export { warmTheme };
package/dist/index.js ADDED
@@ -0,0 +1,54 @@
1
+ //#region src/index.ts
2
+ /**
3
+ * Warm theme — earthy tones with amber and terracotta accents.
4
+ *
5
+ * Uses Garamond/Georgia serif fonts and warm color palette
6
+ * (amber, terracotta, warm gray) suitable for invitations
7
+ * and personal correspondence.
8
+ *
9
+ * @remarks
10
+ * - `colors` — 12 semantic color tokens (primary, accent, success, etc.)
11
+ * - `fonts` — body/heading/code font stacks
12
+ * - `fontSize` — 5-step type scale (xs/sm/base/lg/xl)
13
+ * - `spacing` — 5-step spacing scale (xs/sm/md/lg/xl) in half-points
14
+ */
15
+ const warmTheme = {
16
+ description: "Earthy tones with amber and terracotta accents.",
17
+ id: "warm",
18
+ name: "Warm",
19
+ colors: {
20
+ accent: "#d97706",
21
+ background: "#fffbeb",
22
+ border: "#fde68a",
23
+ danger: "#b91c1c",
24
+ info: "#7c3aed",
25
+ muted: "#78716c",
26
+ primary: "#44403c",
27
+ secondary: "#57534e",
28
+ success: "#15803d",
29
+ surface: "#fef3c7",
30
+ text: "#292524",
31
+ warning: "#ea580c"
32
+ },
33
+ fonts: {
34
+ body: "Garamond, Georgia, serif",
35
+ code: "JetBrains Mono, monospace",
36
+ heading: "Garamond, Georgia, serif"
37
+ },
38
+ fontSize: {
39
+ base: 12,
40
+ lg: 15,
41
+ sm: 10,
42
+ xl: 19,
43
+ xs: 8
44
+ },
45
+ spacing: {
46
+ lg: 26,
47
+ md: 16,
48
+ sm: 9,
49
+ xl: 34,
50
+ xs: 4
51
+ }
52
+ };
53
+ //#endregion
54
+ export { warmTheme };
package/package.json ADDED
@@ -0,0 +1,43 @@
1
+ {
2
+ "name": "@docxkit/theme-warm",
3
+ "type": "module",
4
+ "version": "0.3.0",
5
+ "description": "Warm color theme — docx-kit theme",
6
+ "keywords": [
7
+ "docx",
8
+ "docx-kit",
9
+ "docx-kit-theme"
10
+ ],
11
+ "license": "MIT",
12
+ "author": {
13
+ "name": "ntnyq",
14
+ "email": "ntnyq13@gmail.com"
15
+ },
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "https://github.com/ntnyq/docx-kit",
19
+ "directory": "packages-themes/warm"
20
+ },
21
+ "exports": {
22
+ ".": {
23
+ "types": "./dist/index.d.ts",
24
+ "default": "./dist/index.js"
25
+ }
26
+ },
27
+ "main": "./dist/index.js",
28
+ "types": "./dist/index.d.ts",
29
+ "files": [
30
+ "dist"
31
+ ],
32
+ "publishConfig": {
33
+ "access": "public"
34
+ },
35
+ "sideEffects": false,
36
+ "peerDependencies": {
37
+ "@docxkit/core": "0.3.0"
38
+ },
39
+ "scripts": {
40
+ "build": "tsdown",
41
+ "dev": "tsdown --watch"
42
+ }
43
+ }