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
- Host: GitHub
- URL: https://github.com/catppuccin/java
- Owner: catppuccin
- License: mit
- Created: 2023-01-08T15:00:35.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-07-21T11:29:50.000Z (7 months ago)
- Last Synced: 2025-07-21T13:21:07.368Z (7 months ago)
- Topics: catppuccin, hacktoberfest, java, java-library, library
- Language: Java
- Homepage: https://search.maven.org/artifact/com.catppuccin/catppuccin-palette
- Size: 122 KB
- Stars: 19
- Watchers: 3
- Forks: 1
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README

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