Skip to content

Commit

Permalink
docs(readme): fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
meodai committed Oct 28, 2024
1 parent a05eccb commit a1a16ea
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,13 @@ npm install && npm run build
See [package.json](package.json#L6) for more.

### Usage Java/Kotlin ⌨
Java/Kotlin usage is maintained through this library: [UwUAroze/Color-Names](https://github.com/UwUAroze/Color-Names). Additional info can be found there, but basic usage is outlined below:

Java/Kotlin usage is maintained through this library:
[UwUAroze/Color-Names](https://github.com/UwUAroze/Color-Names).
Additional info can be found there, but basic usage is outlined below:

#### Importing - Gradle.kts

```kts
repositories {
maven("https://jitpack.io")
Expand All @@ -191,6 +195,7 @@ dependencies {
```

#### Importing - Maven

```xml
<repository>
<id>jitpack.io</id>
Expand All @@ -205,6 +210,7 @@ dependencies {
```

#### Closest named color - Java

```java
public ColorNames colorNames = new ColorNameBuilder()
.loadDefaults()
Expand All @@ -216,6 +222,7 @@ String fromColor = colorNames.getName(new Color(255, 219, 240)); // "Silky Pink"
```

#### Closest named color - Kotlin

```kt
val colorNames = ColorNameBuilder()
.loadDefaults()
Expand Down

0 comments on commit a1a16ea

Please sign in to comment.