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
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_strike__through 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.
arrow_upward