Skip to content

Releases: ghivert/sketch

v2.2.2

10 Jul 10:11
f8b1915

Choose a tag to compare

What's Changed

  • Fix another bug with the class name generation.

Full Changelog: v2.2.1...v2.2.2

v2.2.1

10 Jul 10:10
f2543de

Choose a tag to compare

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

01 May 20:55
9d95fdf

Choose a tag to compare

What's Changed

  • A tiny release, including the missing property float!

Full Changelog: v2.1.0...v2.2.0

v2.1.0

19 Apr 16:04
771d414

Choose a tag to compare

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

  • class does not memo by default anymore. memo should 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

15 Apr 16:14
8ee467d

Choose a tag to compare

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

15 Apr 16:10
89dba52

Choose a tag to compare

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

15 Apr 16:09
b34fa2e

Choose a tag to compare

What's Changed

  • Add cursor
  • Add font_size_

Full Changelog: v1.1.0...v1.1.0

v1.0.1

06 Apr 15:21
7944d5b

Choose a tag to compare

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

Capture d’écran 2024-04-06 à 17 20 21

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

05 Apr 17:47
e7fe295

Choose a tag to compare

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