Skip to content

Java Material Design Colors (color/string)

License

Notifications You must be signed in to change notification settings

jmart1/material-colors

 
 

Repository files navigation

material-colors

Java Material Design Colors (color/string)

Dependence

Gradle

repositories {
    maven { url "https://jitpack.io" }
}

dependencies {
    compile 'com.github.fcannizzaro:material-colors:0.1.0'
}

Maven

<repositories>
    <repository>
        <id>jitpack.io</id>
        <url>https://jitpack.io</url>
    </repository>
</repositories>

<dependencies>
    <dependency>
        <groupId>com.github.fcannizzaro</groupId>
        <artifactId>material-colors</artifactId>
        <version>0.1.0</version>
    </dependency>
</dependencies>

Download JAR

Release 0.1.0

Usage

  // awt.Color
  Color primary = Colors.indigo_500.asColor();

  // String
  String primary_dark = Colors.indigo_700.asString();

Usage with Resourcer

Use color name in xml files!

<?xml version="1.0"?>
<resources>
    <color name="primary">@color/indigo_500</color>
    <color name="accent" >@color/pink_accent_400</color>
</resources>

Screenshot

some icons

About

Java Material Design Colors (color/string)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%