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

  • #F7FAFC   gray100
  • #EDF2F7   gray200
  • #E2E8F0   gray300
  • #CBD5E0   gray400
  • #A0AEC0   gray500
  • #718096   gray600
  • #4A5568   gray700
  • #2D3748   gray800
  • #1A202C   gray900

Red

  • #FFF5F5   red100
  • #FED7D7   red200
  • #FEB2B2   red300
  • #FC8181   red400
  • #F56565   red500
  • #E53E3E   red600
  • #C53030   red700
  • #9B2C2C   red800
  • #742A2A   red900

Pink

  • #FFF5F7   pink100
  • #FED7E2   pink200
  • #FBB6CE   pink300
  • #F687B3   pink400
  • #ED64A6   pink500
  • #D53F8C   pink600
  • #B83280   pink700
  • #97266D   pink800
  • #702459   pink900

Orange

  • #FFFAF0   orange100
  • #FEEBC8   orange200
  • #FBD38D   orange300
  • #F6AD55   orange400
  • #ED8936   orange500
  • #DD6B20   orange600
  • #C05621   orange700
  • #9C4221   orange800
  • #7B341E   orange900

Yellow

  • #FFFFF0   yellow100
  • #FEFCBF   yellow200
  • #FAF089   yellow300
  • #F6E05E   yellow400
  • #ECC94B   yellow500
  • #D69E2E   yellow600
  • #B7791F   yellow700
  • #975A16   yellow800
  • #744210   yellow900

Green

  • #F0FFF4   green100
  • #C6F6D5   green200
  • #9AE6B4   green300
  • #68D391   green400
  • #48BB78   green500
  • #38A169   green600
  • #2F855A   green700
  • #276749   green800
  • #22543D   green900

Teal

  • #E6FFFA   teal100
  • #B2F5EA   teal200
  • #81E6D9   teal300
  • #4FD1C5   teal400
  • #38B2AC   teal500
  • #319795   teal600
  • #2C7A7B   teal700
  • #285E61   teal800
  • #234E52   teal900

Blue

  • #EBF8FF   blue100
  • #BEE3F8   blue200
  • #90CDF4   blue300
  • #63B3ED   blue400
  • #4299E1   blue500
  • #3182CE   blue600
  • #2B6CB0   blue700
  • #2C5282   blue800
  • #2A4365   blue900

Indigo

  • #EBF4FF   indigo100
  • #C3DAFE   indigo200
  • #A3BFFA   indigo300
  • #7F9CF5   indigo400
  • #667EEA   indigo500
  • #5A67D8   indigo600
  • #4C51BF   indigo700
  • #434190   indigo800
  • #3C366B   indigo900

Purple

  • #FAF5FF   purple100
  • #E9D8FD   purple200
  • #D6BCFA   purple300
  • #B794F4   purple400
  • #9F7AEA   purple500
  • #805AD5   purple600
  • #6B46C1   purple700
  • #553C9A   purple800
  • #44337A   purple900

Checkout the Full Color Palette here

Source code for colors can be find here