shel / neos-themebuilder
A plugin for NeosCMS which provides integrator/editor tools to define and use themes.
Installs: 11
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:neos-plugin
Requires
- neos/neos: ^8.3
README
WIP Neos CMS theme builder package. Currently in development.
Features
- Define theme properties by extending a common NodeType mixin with property presets
- Set theme properties in pages inheriting this mixin
- Use theme properties in other elements via property presets using an included data source
- Merged CSS variables for the current page are automatically rendered into the head of the document
Helpers
Generate CSS from props for style attributes
Define styles f.e. as privat prop in a component and use it in the AFX template:
@private.myStyle = Shel.Neos.ThemeBuilder:Helper.Styles {
--my-prop = '20px'
--my-prop-2 = ${props.myStyleProp}
color = 'blue'
}
<div style={private.myStyle}>Some test</div>
Empty values will be filtered out.
Contributions
Contributions are very welcome!
Please create detailed issues and PRs.