Skip to content

Commit

Permalink
Version Packages
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Dec 18, 2024
1 parent 743cf89 commit 5d91f31
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 43 deletions.
42 changes: 0 additions & 42 deletions .changeset/tall-files-cheat.md

This file was deleted.

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

## 1.0.0

### 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.

```js
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]

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

### Boolean

```scala
div(
tw.flex.items_center := boolean
)
```

## 0.9.4

### 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.9.4",
"version": "1.0.0",
"description": "Zero-Runtime Typesafe TailwindCSS in Scala",
"license": "MIT",
"homepage": "https://github.com/nguyenyou/scalawind",
Expand Down

0 comments on commit 5d91f31

Please sign in to comment.