css.cr
css.cr
Create CSS stylesheets in pure Crystal
Installation
-
Add the dependency to your
shard.yml
:dependencies: css: github: sbsoftware/css.cr
-
Run
shards install
Usage
require "css"
class Style < CSS::Stylesheet
rule div do
display :block
end
end
# div {
# display: block;
# }
puts Style
Contributing
- Fork it (https://github.com/sbsoftware/css.cr/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Contributors
- Stefan Bilharz - creator and maintainer
Repository
css.cr
Owner
Statistic
- 0
- 0
- 0
- 0
- 0
- about 14 hours ago
- April 25, 2025
License
MIT License
Links
Synced at
Fri, 25 Apr 2025 19:50:55 GMT
Languages