Skip to content

Releases: nguyenyou/scalawind

[email protected]

23 Dec 16:20
cd4ea69
Compare
Choose a tag to compare

Patch Changes

  • 9b90689: add support for camelCase

[email protected]

19 Dec 03:41
e3da07b
Compare
Choose a tag to compare

Patch Changes

  • 96c7c7d: add try-catch for transform scala source

[email protected]

18 Dec 16:09
961e885
Compare
Choose a tag to compare

Patch Changes

  • 5f72dfe: refactor code to use pipe pattern for transform source

[email protected]

18 Dec 05:32
fe75ca4
Compare
Choose a tag to compare

Major Changes

  • b08adb5: # Release 1.0

    Scala Source Transform

    Previously, we need to configure Tailwind to scan the compiled JS files for extracting Tailwind classes. We have to do that because Tailwind doesn't understand our syntax. In this major release, we provide a transform source method to transform our Scala code into Tailwind classes so that Tailwind can understand and generate corresponding CSS classes.

    const { scalaSourceTransform } = require("scalawind/dist/transform");
    
    /** @type {import('tailwindcss').Config} */
    module.exports = {
      content: {
        files: ["./index.html", "./src/**/*.scala"],
        transform: scalaSourceTransform,
      },
    };

    Laminar Supports

    We now have a more Laminar way for conditional styling.

    Signal[Boolean]

    div(
      tw.flex.items_center <-- booleanSignal
    )

    Boolean

    div(
      tw.flex.items_center := boolean
    )

[email protected]

16 Dec 09:37
7955900
Compare
Choose a tag to compare

Patch Changes

[email protected]

26 Nov 08:43
9ea45f9
Compare
Choose a tag to compare

Patch Changes

[email protected]

25 Nov 11:17
9893356
Compare
Choose a tag to compare

Patch Changes

[email protected]

25 Nov 11:06
ee1d86a
Compare
Choose a tag to compare

Patch Changes

  • 9cf591d: fix correct command flag value type

[email protected]

25 Nov 10:52
5e863ab
Compare
Choose a tag to compare

Minor Changes

  • 56551b5: allow turn off arbitrary, opacity color, negative color supports

[email protected]

25 Nov 09:51
04343a8
Compare
Choose a tag to compare

Patch Changes

  • 38d32c6: prefer curly brace syntax