An open API service indexing awesome lists of open source software.

https://github.com/catppuccin/java

☕ Soothing pastel theme for Java
https://github.com/catppuccin/java

catppuccin hacktoberfest java java-library library

Last synced: 4 months ago
JSON representation

☕ Soothing pastel theme for Java

Awesome Lists containing this project

README

          


Logo


Catppuccin for Java






## Installation

Be sure to replace the **VERSION** key below with the version shown above!

### Maven

```xml

com.catppuccin
catppuccin-palette
VERSION

```

### Gradle

```gradle
repositories {
mavenCentral()
}

dependencies {
// https://mvnrepository.com/artifact/com.catppuccin/catppuccin-palette
implementation group: 'com.catppuccin', name: 'catppuccin-palette', version: 'VERSION'
}
```

### Binaries

If you choose not to use a build tool, pre-built `.jar` files are available with every
single [release](https://github.com/catppuccin/java/releases).

## Usage

```java
package com.catppuccin;

public class Main {
public static void main(String[] args) {
String mocha = Palette.MOCHA.name(); // mocha
String mochaBaseHex = Palette.MOCHA.base().hex(); // 1e1e2e
int[] mochaBaseRGB = Palette.MOCHA.base().components(); // [30, 30, 46]

// loop through just frappé
for (Pair colourPair : Palette.FRAPPE.toList()) {
String name = colourPair.key();
Color colour = colourPair.value();
System.out.println(name + ": " + colour.hex());
}

// loop through every colour
for (Flavour flavour : Palette.toList()) {
System.out.println("Flavour: " + flavour.name());
for (Pair colourPair : flavour.toList()) {
String name = colourPair.key();
Color colour = colourPair.value();
System.out.println(name + ": " + colour.hex());
}
}
}
}
```

## Contributing

If you are looking to contribute, please read through our
[CONTRIBUTING.md](https://github.com/catppuccin/.github/blob/main/CONTRIBUTING.md) first!

## 💝 Thanks to

- [Hamothy](https://github.com/sgoudham)
- [nullishamy](https://github.com/nullishamy)

 




Copyright © 2023-present Catppuccin Org