Cards list

Lists are a collection of small amount of information that the user should see in a single page. Lists are a good alternative to the grids, as the most important information is clearly emphasize using different visual approaches. Read more about cards list in the UX Guidelines.

Use when

  • To display small amounts of data in a structured way and the need for filtering and sorting is low
  • To give the user an overview of a set of alternatives

Summary:

basic-card

The basic card list is a flexible content container, with a predefined inner space and where You can put any kind of content inside.

Content ...
Content ...

Can be integreated as a unorder list

  • Content ...
  • Content ...
  • Content ...

Also with buttons or anchor

Content ... Content ...

Design variants

In the Design System we have available 3 types/variant of cards list.

"Default" variant: .card-list-default

Add the .card-list-default class to the card list main wrapper (.card-list). The variant adds a green border on the left and a shadow to the card list item wrapper, and a half vertical inner space / padding.

  • Content ...
  • Content ...
  • Content ...

For the perfect arrangement (depending on how many columns you will have) you will need to play with the columns from the grid system and in some cases with the flex layout. Check the example below.

Dec 05
Extra work / Overtime

"Primary" variant: .card-list-primary

Add the .card-list-primary class to the card list main wrapper (.card-list). The variant adds a shadow to the card list item wrapper.

Content ...
Content ...

Example for primary variant with grid helper classes and predefined sections/classes (.title, .description, .icon, .price)

Client (KPMG)

19 June, 2019

Claim ID: 1223445

Awaiting approval

12
140 SEK

"Secondary" variant: .card-list-secondary

Add the .card-list-secondary class to the card list main wrapper (.card-list). The variant adds a light neutral background. This type of card list can be used only on a light background.

Content ...
Content ...

Example for secondary variant

Amanda Lundius has an expense that need approval
December 20

Grid list layout

To transform a card-list from a vertical list to a grid list layout add the .card-list-grid class to the card list main wrapper (.card-list) and the apropiate grid columns helper class (eg.: .grid-cols-3) for the correct number of desiar columns.

Content ...
Content ...
Content ...
Content ...
Content ...
Content ...
Content ...
Content ...

Hover on card list

For this style you need to add the .card-list-hover class to the card list main wrapper.

Content ...
Content ...
Content ...

Card list example

Example of a card list item / Product

Air balloon
Item x - 12 Pieces
Article number 101
Model type

Article number 101 Office use

Delivery time 1-7 Working days

390,00 SEK

Unit price 400,00 SEK

Apple waste
Item x - 12 Pieces
Article number 102
Model type

Article number 102 Office use

Delivery time 5-9 Working days

670,00 SEK

Unit price 800,00 SEK

Bicycle
Item x - 12 Pieces
Article number 103
Model type

Article number 103 Office use

Delivery time 1-3 Working days

170,00 SEK

Unit price 185,00 SEK