Releases: nguyenyou/scalawind
Releases · nguyenyou/scalawind
[email protected]
Patch Changes
- 9b90689: add support for camelCase
[email protected]
Patch Changes
- 96c7c7d: add try-catch for transform scala source
[email protected]
Patch Changes
- 5f72dfe: refactor code to use pipe pattern for transform source
[email protected]
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]
Patch Changes
- 0f2ec98: remove unused code
[email protected]
Patch Changes
- c3d6e75: minor update macro
[email protected]
Patch Changes
- c3e11ec: fix commander flag name
[email protected]
Patch Changes
- 9cf591d: fix correct command flag value type
[email protected]
Minor Changes
- 56551b5: allow turn off arbitrary, opacity color, negative color supports
[email protected]
Patch Changes
- 38d32c6: prefer curly brace syntax