Skip to content

Commit

Permalink
Updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
tib committed Nov 21, 2021
1 parent 5ed92bd commit 1616699
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
An awesome Swift CSS DSL library using result builders.

```swift
@MediaBuilder func buildCSS() -> [Media] {
let css = Stylesheet {
Media {
All {
Background("#222")
Expand Down Expand Up @@ -35,7 +35,8 @@ An awesome Swift CSS DSL library using result builders.
.pseudo(.hover)
}
}


print(StylesheetRenderer().render(css))
```

## Credits & references
Expand Down

0 comments on commit 1616699

Please sign in to comment.