Today we're shipping Partials 2.0. Partials are pre-built components that can be used across templates to quickly create beautiful messages and ensure brand consistency across every message your team sends.
Here's what’s new:
- Custom brand attributes. Define brand colors and attributes using
vars.branding.*variables. Update your design system in one place and have changes propagate across all templates. - Schemas for partial inputs. Partials now support optional input schemas for field types, labels, descriptions, and required flags, so editors can move faster without breaking brand or content guidelines. Schemas are versioned with the partial, making it easy to manage changes over time.
- JSON object support for partial inputs. Partials now accept JSON objects through markdown inputs. This enables passing complex data like objects and lists instead of only strings.
- Isolated CSS styles. HTML partials now support isolated
<style>tags that inject into the email<head>only when the partial is used. Styles are deduplicated and pollute your root stylesheet. - Improved discoverability in the visual editor. All partials are now visible directly in the block editor, with search support to quickly find components.
- Configurable editor experience. Default blocks (buttons, text, images, etc.) can now be disabled at the account level, limiting editors to use partials to enforce brand consistency.
These improvements are available today for all Knock customers. Read the documentation to learn more about building reusable email components with partials.










