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