@micropress/theme-sdk
v0.1.3
Published
SDK for building MicroPress themes
Maintainers
Readme
@micropress/theme-sdk
The official SDK for building MicroPress themes.
Installation
npm install @micropress/theme-sdkQuick Start
import { defineTheme, html, css } from '@micropress/theme-sdk';
import type { HeaderDTO } from '@micropress/theme-sdk';
export default defineTheme({
config: {
id: 'my-theme',
name: 'My Theme',
version: '1.0.0',
},
renderers: {
header: {
render: (data: HeaderDTO) => html`
<header>${data.siteName}</header>
`.html,
},
},
});CLI
micropress-theme init my-theme # Create new theme
micropress-theme build # Build theme
micropress-theme validate # Validate structure
micropress-theme package # Create ZIPDocumentation
See the full documentation.
License
MIT
