@micropress/theme-sdk 0.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.
package/README.md ADDED
@@ -0,0 +1,48 @@
1
+ # @micropress/theme-sdk
2
+
3
+ The official SDK for building MicroPress themes.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install @micropress/theme-sdk
9
+ ```
10
+
11
+ ## Quick Start
12
+
13
+ ```typescript
14
+ import { defineTheme, html, css } from '@micropress/theme-sdk';
15
+ import type { HeaderDTO } from '@micropress/theme-sdk';
16
+
17
+ export default defineTheme({
18
+ config: {
19
+ id: 'my-theme',
20
+ name: 'My Theme',
21
+ version: '1.0.0',
22
+ },
23
+ renderers: {
24
+ header: {
25
+ render: (data: HeaderDTO) => html`
26
+ <header>${data.siteName}</header>
27
+ `.html,
28
+ },
29
+ },
30
+ });
31
+ ```
32
+
33
+ ## CLI
34
+
35
+ ```bash
36
+ micropress-theme init my-theme # Create new theme
37
+ micropress-theme build # Build theme
38
+ micropress-theme validate # Validate structure
39
+ micropress-theme package # Create ZIP
40
+ ```
41
+
42
+ ## Documentation
43
+
44
+ See the [full documentation](https://github.com/micropress/theme-sdk#readme).
45
+
46
+ ## License
47
+
48
+ MIT