A DSL enabling programmatic cascading style sheet generation for Pharo Smalltalk
- Improve CSS integration with existing Web Frameworks
- Write & refactor in Smalltalk, deploy to CSS
- Keep in sync your code changes with the changes in the CSS
- Use your favorite browsing and refactoring tools inside the same Pharo image to handle CSS
- The code is licensed under MIT.
- The documentation is licensed under CC BY-SA 4.0.
To load the project in a Pharo image follow these instructions.
Now you can try the Hello World:
CascadingStyleSheetBuilder new
declareRuleSetFor: [:selector | selector body before]
with: [:style | style content: '"Hello World"'];
build
you should see something like this:
body::before
{
content: "Hello World";
}
Check the Contribution Guidelines