nord-java

A arctic, north-bluish color palette Java library.

License

License

Categories

Categories

Java Languages
GroupId

GroupId

com.arcticicestudio
ArtifactId

ArtifactId

nord-java
Last Version

Last Version

0.2.0
Release Date

Release Date

Type

Type

jar
Description

Description

nord-java
A arctic, north-bluish color palette Java library.
Project URL

Project URL

https://github.com/arcticicestudio/nord-java
Project Organization

Project Organization

Arctic Ice Studio
Source Code Management

Source Code Management

https://github.com/arcticicestudio/nord-java

Download nord-java

How to add to project

<!-- https://jarcasting.com/artifacts/com.arcticicestudio/nord-java/ -->
<dependency>
    <groupId>com.arcticicestudio</groupId>
    <artifactId>nord-java</artifactId>
    <version>0.2.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.arcticicestudio/nord-java/
implementation 'com.arcticicestudio:nord-java:0.2.0'
// https://jarcasting.com/artifacts/com.arcticicestudio/nord-java/
implementation ("com.arcticicestudio:nord-java:0.2.0")
'com.arcticicestudio:nord-java:jar:0.2.0'
<dependency org="com.arcticicestudio" name="nord-java" rev="0.2.0">
  <artifact name="nord-java" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.arcticicestudio', module='nord-java', version='0.2.0')
)
libraryDependencies += "com.arcticicestudio" % "nord-java" % "0.2.0"
[com.arcticicestudio/nord-java "0.2.0"]

Dependencies

test (4)

Group / Artifact Type Version
junit : junit jar 4.12
org.hamcrest : hamcrest-core jar 1.3
org.hamcrest : hamcrest-library jar 1.3
com.arcticicestudio : arcver-java jar 0.11.0-SNAPSHOT

Project Modules

There are no modules declared in this project.

A arctic, north-bluish color palette Java library.
Implementation of the Nord project.


Getting started

Setup

To use nord-java, it must be available on your classpath.
You can get it from the Central Repository as a dependency for your favorite build tool or download the latest version.

Apache Maven

<dependency>
  <groupId>com.arcticicestudio</groupId>
  <artifactId>nord-java</artifactId>
  <version>0.2.0</version>
</dependency>

Gradle

compile(group: 'com.arcticicestudio', name: 'nord-java', version: '0.2.0')

Apache Ivy

<dependency org="com.arcticicestudio" name="nord-java" rev="0.2.0" />

Development snapshots are available via OSS Sonatype and JFrog Artifactory.

Build

Build and install nord-java into your local repository without GPG signing:

mvn clean install

Signed artifacts may be build by using the sign-gpg profile with a provided gpg.keyname property:

mvn clean install -Dgpg.keyname=YourGPGKeyId

Continuous integration builds are running at Travis-CI and Circle CI.

Usage Guide

This is a basic guide to show the common usage of the nord-java API.
The API documentation can be found in the JavaDoc.

The class Nord is the entrypoint to the nord-java API, use it to generate the HEX and RGB color codes.

  1. Generate color code strings
  2. Obtaining the Public API version

Generate color code strings

Color code strings can be generated from all Nord enum constants by using the static methods hex(Color) and rgb(Color).
The Color object can be obtained from a Nord enum variable via the get() method.

String hex = Nord.hex(Nord.NORD0.get()); // "#2E3440"
String rgb = Nord.rgb(Nord.NORD8.get()); // "rgb(136, 192, 208)"

Obtaining the Public API version

The getVersion() method returns the ArcVer version of the public API.

String version = Nord.getVersion(); // "0.2.0"

Development

Contribution

Please report issues/bugs, feature requests and suggestions for improvements to the issue tracker.

Copyright © 2016-present Arctic Ice Studio

Versions

Version
0.2.0
0.1.0