Colors
VelocityX includes a generous palette of great-looking, well-balanced colors that are perfect for prototyping or for kicking off a brand new project.
tip
You can either use the color directly or get the hex value
To get a color
Vx.{colorname}{number}
eg: Vx.blue900
To get a hexColor
Vx.{colorname}Hex{number}
eg: Vx.blueHex900
To use a text color
.{colorname}{number}
eg: text.blue900
To set a text color
.color({yourcolor})
eg: text.color(Colors.blue)
To use a box(container) color
.{colorname}{number}
eg: box.blue900
To set a box(container) color
.color({yourcolor})
eg: box.color(Colors.blue)
Available Utility Methods
Get color from the hex value
Color myColor = Vx.hexToColor(hexCode);
Get int color from the hex value
int myColor = Vx.getColorFromHex(hexCode);
Get Random Non-Primary Color
Color myColor = Vx.randomColor;
Get Random Non-Primary Color
Color myColor = Vx.randomPrimaryColor;
Get Random Non-Primary Opaque Color
Color myColor = Vx.randomOpaqueColor;
Some Color Samples
Gray
Â
gray100
Â
gray200
Â
gray300
Â
gray400
Â
gray500
Â
gray600
Â
gray700
Â
gray800
Â
gray900
Red
Â
red100
Â
red200
Â
red300
Â
red400
Â
red500
Â
red600
Â
red700
Â
red800
Â
red900
Pink
Â
pink100
Â
pink200
Â
pink300
Â
pink400
Â
pink500
Â
pink600
Â
pink700
Â
pink800
Â
pink900
Orange
Â
orange100
Â
orange200
Â
orange300
Â
orange400
Â
orange500
Â
orange600
Â
orange700
Â
orange800
Â
orange900
Yellow
Â
yellow100
Â
yellow200
Â
yellow300
Â
yellow400
Â
yellow500
Â
yellow600
Â
yellow700
Â
yellow800
Â
yellow900
Green
Â
green100
Â
green200
Â
green300
Â
green400
Â
green500
Â
green600
Â
green700
Â
green800
Â
green900
Teal
Â
teal100
Â
teal200
Â
teal300
Â
teal400
Â
teal500
Â
teal600
Â
teal700
Â
teal800
Â
teal900
Blue
Â
blue100
Â
blue200
Â
blue300
Â
blue400
Â
blue500
Â
blue600
Â
blue700
Â
blue800
Â
blue900
Indigo
Â
indigo100
Â
indigo200
Â
indigo300
Â
indigo400
Â
indigo500
Â
indigo600
Â
indigo700
Â
indigo800
Â
indigo900
Purple
Â
purple100
Â
purple200
Â
purple300
Â
purple400
Â
purple500
Â
purple600
Â
purple700
Â
purple800
Â
purple900