Releases: ghivert/sketch
v2.2.2
v2.2.1
What's Changed
- Small bugfix on class name generation to push in the virtual stylesheet.
Full Changelog: v2.2.0...v2.2.1
v2.2.0
What's Changed
- A tiny release, including the missing property
float!
Full Changelog: v2.1.0...v2.2.0
v2.1.0
Improvements
Sketch now targets BEAM as well as JS! This is a major milestone, and unlocks new possibilities. Some bugs can still be hidden in the BEAM codebase, so open an issue for anything! But sketch can now become the ultimate CSS-in-Gleam tool, to help building UI better than ever!
What's Changed
classdoes not memo by default anymore.memoshould be used on selected class, to have a more lightweight stylesheet transmitted in server components. This can reduce the output bandwidth.- sketch can be used on BEAM target, with both SSR, pure gleam or lustre!
- More documentation added
- Most of the transform code has been rewrote in gleam, reducing the JS part
- Cache algorithm has been ported to gleam
Full Changelog: v2.0.0...v2.1.0
v2.0.0
What's Changed
- Add support for Shadow DOM
- Add size support for
border-radiuses - Improve setup with lustre
Breaking Changes
border_top_right_radius->border_top_right_radius_border_top_left_radius->border_top_left_radius_border_bottom_right_radius->border_bottom_right_radius_border_bottom_left_radius->border_bottom_left_radius_
v1.2.0
What's Changed
- Bugfix usage of cache when no prior setup
- Expose
to_class_name(forgotten expose)
Full Changelog: v1.1.0...v1.2.0
v1.1.0
v1.0.1
Debug improvements
When using Sketch while the cache has not been initialized, the functions launched a bug immediately.
This release fixes it by transparently doing nothing, and displaying a warning message in the console.
Results
What's Changed
- Crash when Sketch was not initialized
- Display a warning message when Sketch was not initialized
Full Changelog: v1.1.0...v1.0.1
v1.0.0
First release of Sketch!
Sketch aims to provides a way to write CSS-in-Gleam! This first release enables to style your application, and is focused on Lustre applications. In a first release, sketch is working only on the JavaScript target, and won't run on BEAM. This represents an other future step, and should be worked on. The API could be subject to change, mainly as append-only as much as possible.
Current features
- Write your CSS in Gleam
- Write your dynamic styles in Gleam
- Inject the CSS directly in the document, or in a
<style>node to easy debug - Apply the styles during the view in Lustre
- Create your own framework with sketch built-in
Next steps
- Add server-support
- Improve API
- Add a CLI to build CSS stylesheets for Gleam styles definitions