https://github.com/sebobo/shel.neos.themebuilder
A theme builder for Neos CMS websites
https://github.com/sebobo/shel.neos.themebuilder
neos neoscms theme
Last synced: about 1 year ago
JSON representation
A theme builder for Neos CMS websites
- Host: GitHub
- URL: https://github.com/sebobo/shel.neos.themebuilder
- Owner: Sebobo
- License: gpl-3.0
- Created: 2024-05-23T12:29:48.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-07T08:52:39.000Z (almost 2 years ago)
- Last Synced: 2025-03-16T07:44:25.707Z (about 1 year ago)
- Topics: neos, neoscms, theme
- Language: PHP
- Homepage:
- Size: 28.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Theme builder for Neos CMS
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'
}
```
```
Some test
```
Empty values will be filtered out.
## Contributions
Contributions are very welcome!
Please create detailed issues and PRs.