Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaaveh authored Aug 24, 2022
1 parent 1fdc35f commit ed856fe
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# SDP-Compose: a scalable size unit for Jetpack Compose

Did you miss [SDP](https://github.com/intuit/sdp) library from XML world? SDP-Compose bring to you SDP in your Jetpack Compose project.

Bonouce tip: You don't need [SSP](https://github.com/intuit/ssp) library, SDP-Compose have it too!

# Usage

```kotlin
@Preview(showBackground = true)
@Composable
fun Greeting(name: String = "Android") {
Text(
text = "Hello $name!",
color = Color.White,
fontSize = 16.ssp,
modifier = Modifier
.fillMaxWidth()
.padding(16.sdp)
.clip(RoundedCornerShape(16.sdp))
.background(Teal200)
.padding(16.sdp),
)
}
```

# Setup

0 comments on commit ed856fe

Please sign in to comment.