Avatars

Avatars are used for display pictures, images in cards, email signatures, etc.

You can use avatar of 4 different sizes. Use class avatar and avatar_circle with the <img> or circular avatars. For size, use avatar_xs , avatar_sm , avatar_md and avatar_lg .

girl girl girl girl

You can use avatars for texts too. Use classes avatar_text in addition to the previous classes. Use <div> here.

Text
Text
Text
Text

Alerts

Alerts are used to when we need to get user's attention immediately.

You can use several types of alerts you can use. Use class alert_primary , alert_secondary , and alert_success etc., as given in the code snippets below to use the colors of respective kind.

You can use alerts with a closing button too.

Javascript

Badges

Badges are used to show the active/inactive, online/offline status of users by using dots of some specific colors on their images.

You can these with the avatars. Use class badge_green and badge_red to change the color of dots.

Badges on Avatars

girl
girl
girl
girl

Badges on icons

Icons on the badges come with 2 sizes viz. small and medium. You don't need to do something for small icons, but to use medium ones, you need to use md class as shown in the code.

shopping_cart
8
notifications
8
shopping_cart
8
notifications
8

Buttons

Use Chroma's buttons for cards, call to actions, forms, dialogs, navigation, etc.

Buttons come in a variety ranging from primary and secondary to icon and disabled buttons. You can use both <button> and <a> .

Success Danger Warning Info
Disabled button
Button Sizes
Buttons come in 2 sizes in chroma. Use btn_sm class for small buttons and btn_lg class for large buttons.
Button Link and Button Icon
shopping_cart
Floating action button and Toggle button

Cards

Cards in chroma come in different sizes and orientation.

Card with badge
Badges are put on cards to show discount, stock status, etc.
A bored ape 4.5 star_rate
Sold out

Bored Ape

by Vee

Rs.5000

Rs.6000

Card with dismiss
Chroma provides you with dismissible cards so the users don't waste their time on the items they don't like.
highlight_off
A bored ape 4.5 star_rate

Bored Ape

by Vee

Rs.5000

Rs.6000

Javascript
Card with text overlay
Overlays are used on cards to showcase things like unavalability of items. You need to add the class card_overlay on the card and a container with a class overlay_div inside the card.

Out Of Stock

A bored ape 4.5 star_rate
Sold out

Bored Ape

by Vee

Rs.5000

Rs.6000

Card with text only

Card heading

Here you can put the subheadings that you want. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris venenatis, sapien lacinia tincidunt commodo, felis leo vehicula metus, et placerat mi velit et lacus
Horizontal Card
Use horizontal cards if you want to place your image and text side by side.
A bored ape

Bored Ape

by Vee

Responsive images

Responsive images in chroma come under 2 categories: normal responsive images and round reponsive images.

Responsive Image
Use class img_responsive to make the image reposive.
A girl.
Responsive round image
Add the class img_round for the image to be round.
A girl

Forms

Forms are used to take user data. Forms in chroma come under 2 categories viz. simple forms and forms with validation.

Simple Form
Use the class field_required if you want the field to be mandatory, with required attribute in the input tag.
Form with validation
Use form_valid class and id to check the validity of your forms.
Looks good
Enter the correct username
Looks good
Enter the correct email
Looks good
Please accept the terms of services.
Javascript

Typography

You can use classes h1 , h2 , h3 , h4 , h5 , h6 to use Chroma's font sizes.

Headings

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6
Paragraph Text
These are generally used with <p> tags. Use classes txt_rg , txt_lg , txt_md , and txt_sm for text of regular, large, medium and small sizes.

This is a large text.

This is a medium text.

This is a regular text.

This is a small text.

Text Weights
Chroma provide you with different font-weigths ranging from light to bolder. Use class txt_light for lighest and txt_boldest for boldest text of Chroma.

This is the boldest text.

This is a bold text.

This is a semi-bold text.

This is a regular text.

This is a light text.

Text alignment and gray text
Chroma comes with 2 types of gray text viz. gray_primary , for headings and gray_secondary , for the content. You can also use txt_right and txt_center to adjust the alignment of text accordingly. Use txt_strikethrough for using strike through text.

Primary gray text.

Seconday gray text.

A strike through center text.

A right aligned text.

Snackbars

Snackbars can be used to display notifications for a few time.

Simple snackbar
A simple snackbar includes all of it's content in a single line.
Try again in 5 minutes.
Stacked snackbar
For stacked notifications, add snackbar_stacked class.
Try again in 5 minutes.

Grids

CSS Grid Layout is a two-dimensional layout system for the web. It lets you lay content out in rows and columns.

Grid 50-50 layout
Use grid 50-50 layout when you want to split your content into 2 columns. Use grid class to set the display to grid, grid_50_50 to set the layout to 50:50, and gap_1 class to add a gap of 16px.
Column1
Column 2
Grid 3 column layout
Three column grid layouts are used when you want to split your content into 3 columns. Use grid_three_column class to make the grid display 3 columns layout, gap_y_1 to give a row gap of 16px, and gap_x_1 class to give a column gap of 16px.
Column 1
Column 2
Column 3
Grid 4 column layout
Four column grid layouts are used when you want to split your content into 4 columns. Use grid_four_column class to make the grid display 4 columns layout.
Column 1
Column 2
Column 3
Column 4
Grid 20-80 layout
20-80 layouts display the section into 2 parts, in the ratio of 1:5 and 4:5 respectively. Use grid_20_80 class to apply this layout.
Column1
Column 2
Grid 30-70 layout
30-70 layouts are just like 20-80 layouts, except that they divide the section into the ratio of 3:10 and 7:10 respectively. Use grid_30_70 class to apply this layout.
Column1
Column 2

Lists

Lists organise similar kind of data in the same place. They come handy in many places like nav bars, stacked notifications, etc.

Unordered bullet lists
Use list_style_square class to make the bullets square, and list_style_circle to make them circular. Please note that you need not to use list_container and styled_list class. These are used just to make things clear.
  • list item1
  • list item2
  • list item3
  • list item1
  • list item2
  • list item3
  • list item1
  • list item2
  • list item3
List without bullets
Use class list_style_none to remove the bullets from the lists.
  • list item1
  • list item2
  • list item3
Inline lists
Use class list_inline to make your list inline.
  • list item1
  • list item2
  • list item3
Stacked list
Use class stacked_list to make your components stacked one over another.
  • Something went wrong! Try again in 5 minutes.
  • Something went wrong! Try again in 5 minutes.
  • Something went wrong! Try again in 5 minutes.

Rating

Rating can be used in forms while applying filters, or it can also be used as static component to show the rating of an entity.

Example of Rating
Use class rating_star_input to make the stars colorful on click.
JavaScript

Slider

Sliders can be used to change the value of granular elements like volume, price, etc.

Slider with price
Below is an example for price slider. You can set the minimum and maximum price in the min and mix attribute respectively.
0
Volume slider
0
arrow_upward