Skip to content

Commit 85c36d7

Browse files
committed
Install instructions
1 parent a844dbd commit 85c36d7

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,28 @@ let css = Stylesheet {
3939
print(StylesheetRenderer(minify: false, indent: 4).render(css))
4040
```
4141

42+
## Install
43+
44+
You can simply use `SwiftCss` as a dependency via the Swift Package Manager:
45+
46+
```swift
47+
.package(url: "https://github.com/binarybirds/swift-css", from: "1.0.0"),
48+
```
49+
50+
Add the `SwiftCss` product from the `swift-css` package as a dependency to your target:
51+
52+
```swift
53+
.product(name: "SwiftCss", package: "swift-css"),
54+
```
55+
56+
Import the framework:
57+
58+
```swift
59+
import SwiftCss
60+
```
61+
62+
That's it.
63+
4264
## Credits & references
4365

4466
- [Cascading Style Sheets](https://www.w3.org/Style/CSS/)

0 commit comments

Comments
 (0)