Skip to content

Latest commit

 

History

History

android

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Castor Tokens

This provides Castor design tokens (XML configuration) for Android.

Get started

Initiate Maven central repositories:

repositories {
  mavenCentral()
}

Add as a dependency (replacing x.y.z to a version required):

dependencies {
  compile 'com.onfido.castor.tokens:x.y.z'
}

Then sync and perform a Gradle build.

Use tokens (example)

Color:

android:background="@color/ods_color_background_main"

Dimen:

android:radius="@dimen/ods_border_radius_medium"