Skip to content

Commit

Permalink
Version Packages (#138)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
nguyenyou and github-actions[bot] authored Jun 21, 2024
1 parent 5273f10 commit 922a09d
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 22 deletions.
21 changes: 0 additions & 21 deletions .changeset/wild-pandas-whisper.md

This file was deleted.

22 changes: 22 additions & 0 deletions packages/scalawind/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
# scalawind

## 0.8.3

### Patch Changes

- 5273f10: Added `css` method. This method is used in case the implicit conversion of the `sw` method doesn't work.

Previously, using scalawind in Laminar requires us the wrap our chaining tailwind classes inside the `sw` macro so that it can be compiled. With this `css` method, we have one more option for this, so:

```scala
div(
cls := sw(tw.flex.items_center.justify_center)
)

// ↓ ↓ ↓ ↓ ↓ ↓

div(
cls := tw.flex.items_center.justify_center.css
)
```

I believe the new syntax is better, because we can keep writing and editing the code without worry about the boundary of the open&close parentheses.

## 0.8.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/scalawind/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "scalawind",
"version": "0.8.2",
"version": "0.8.3",
"description": "Zero-Runtime Typesafe TailwindCSS in Scala",
"license": "MIT",
"homepage": "https://github.com/nguyenyou/scalawind",
Expand Down

0 comments on commit 922a09d

Please sign in to comment.