gentleface

Gentleface › Layout & interface › cards

cards icon

Cards: card view, cards, card layout, gallery view. Drawn on the 16 px grid. Free SVG, PNG and code, MIT licensed.

Animated cards-swipe · line-round

The front card leans back and is swiped off the left edge, turning as it goes. The back card completes its outline, comes forward into the front place and gets its text, and a new back card slides out from under it.

Download SVG

Native SVG animation, with no CSS or script. It loops by itself. Inline it to take the text color: in an <img> it draws black. To play it once on hover or click, run 0.25 s to 2.15 s. Examples and helper.

Code line-round

SVG
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M13.736 3.14C13.993 3.242 14.219 3.391 14.414 3.586C14.609 3.781 14.758 4.007 14.86 4.264C14.953 4.5 15 4.746 15 5L15 10.5C15 10.641 14.952 10.759 14.856 10.856C14.759 10.952 14.641 11 14.5 11C14.359 11 14.241 10.952 14.144 10.856C14.048 10.759 14 10.641 14 10.5L14 5C14 4.724 13.902 4.488 13.707 4.293C13.512 4.098 13.276 4 13 4L3.5 4C3.359 4 3.241 3.952 3.144 3.856C3.048 3.759 3 3.641 3 3.5C3 3.359 3.048 3.241 3.144 3.144C3.241 3.048 3.359 3 3.5 3L13 3C13.254 3 13.5 3.047 13.736 3.14ZM12.414 12.414C12.219 12.609 11.993 12.758 11.736 12.86C11.5 12.953 11.254 13 11 13L3 13C2.746 13 2.5 12.953 2.264 12.86C2.007 12.758 1.781 12.609 1.586 12.414C1.391 12.219 1.242 11.993 1.14 11.736C1.047 11.5 1 11.254 1 11L1 7C1 6.746 1.047 6.5 1.14 6.264C1.242 6.007 1.391 5.781 1.586 5.586C1.781 5.391 2.007 5.242 2.264 5.14C2.5 5.047 2.746 5 3 5L11 5C11.254 5 11.5 5.047 11.736 5.14C11.993 5.242 12.219 5.391 12.414 5.586C12.609 5.781 12.758 6.007 12.86 6.264C12.953 6.5 13 6.746 13 7L13 11C13 11.254 12.953 11.5 12.86 11.736C12.758 11.993 12.609 12.219 12.414 12.414ZM2.293 11.707C2.488 11.902 2.724 12 3 12L11 12C11.276 12 11.512 11.902 11.707 11.707C11.902 11.512 12 11.276 12 11L12 7C12 6.724 11.902 6.488 11.707 6.293C11.512 6.098 11.276 6 11 6L3 6C2.724 6 2.488 6.098 2.293 6.293C2.098 6.488 2 6.724 2 7L2 11C2 11.276 2.098 11.512 2.293 11.707ZM4.144 8.856C4.048 8.759 4 8.641 4 8.5C4 8.359 4.048 8.241 4.144 8.144C4.241 8.048 4.359 8 4.5 8L9.5 8C9.641 8 9.759 8.048 9.856 8.144C9.952 8.241 10 8.359 10 8.5C10 8.641 9.952 8.759 9.856 8.856C9.759 8.952 9.641 9 9.5 9L4.5 9C4.359 9 4.241 8.952 4.144 8.856ZM4.144 10.856C4.048 10.759 4 10.641 4 10.5C4 10.359 4.048 10.241 4.144 10.144C4.241 10.048 4.359 10 4.5 10L7.5 10C7.641 10 7.759 10.048 7.856 10.144C7.952 10.241 8 10.359 8 10.5C8 10.641 7.952 10.759 7.856 10.856C7.759 10.952 7.641 11 7.5 11L4.5 11C4.359 11 4.241 10.952 4.144 10.856Z"/></svg>
React
// Gentleface "cards" (line-round), MIT. https://gentleface.com/icons/cards
import type { SVGProps } from 'react';

export function CardsIcon(props: SVGProps<SVGSVGElement>) {
  return (
    <svg xmlns="http://www.w3.org/2000/svg" width={16} height={16} viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" {...props}>
      <path d="M13.736 3.14C13.993 3.242 14.219 3.391 14.414 3.586C14.609 3.781 14.758 4.007 14.86 4.264C14.953 4.5 15 4.746 15 5L15 10.5C15 10.641 14.952 10.759 14.856 10.856C14.759 10.952 14.641 11 14.5 11C14.359 11 14.241 10.952 14.144 10.856C14.048 10.759 14 10.641 14 10.5L14 5C14 4.724 13.902 4.488 13.707 4.293C13.512 4.098 13.276 4 13 4L3.5 4C3.359 4 3.241 3.952 3.144 3.856C3.048 3.759 3 3.641 3 3.5C3 3.359 3.048 3.241 3.144 3.144C3.241 3.048 3.359 3 3.5 3L13 3C13.254 3 13.5 3.047 13.736 3.14ZM12.414 12.414C12.219 12.609 11.993 12.758 11.736 12.86C11.5 12.953 11.254 13 11 13L3 13C2.746 13 2.5 12.953 2.264 12.86C2.007 12.758 1.781 12.609 1.586 12.414C1.391 12.219 1.242 11.993 1.14 11.736C1.047 11.5 1 11.254 1 11L1 7C1 6.746 1.047 6.5 1.14 6.264C1.242 6.007 1.391 5.781 1.586 5.586C1.781 5.391 2.007 5.242 2.264 5.14C2.5 5.047 2.746 5 3 5L11 5C11.254 5 11.5 5.047 11.736 5.14C11.993 5.242 12.219 5.391 12.414 5.586C12.609 5.781 12.758 6.007 12.86 6.264C12.953 6.5 13 6.746 13 7L13 11C13 11.254 12.953 11.5 12.86 11.736C12.758 11.993 12.609 12.219 12.414 12.414ZM2.293 11.707C2.488 11.902 2.724 12 3 12L11 12C11.276 12 11.512 11.902 11.707 11.707C11.902 11.512 12 11.276 12 11L12 7C12 6.724 11.902 6.488 11.707 6.293C11.512 6.098 11.276 6 11 6L3 6C2.724 6 2.488 6.098 2.293 6.293C2.098 6.488 2 6.724 2 7L2 11C2 11.276 2.098 11.512 2.293 11.707ZM4.144 8.856C4.048 8.759 4 8.641 4 8.5C4 8.359 4.048 8.241 4.144 8.144C4.241 8.048 4.359 8 4.5 8L9.5 8C9.641 8 9.759 8.048 9.856 8.144C9.952 8.241 10 8.359 10 8.5C10 8.641 9.952 8.759 9.856 8.856C9.759 8.952 9.641 9 9.5 9L4.5 9C4.359 9 4.241 8.952 4.144 8.856ZM4.144 10.856C4.048 10.759 4 10.641 4 10.5C4 10.359 4.048 10.241 4.144 10.144C4.241 10.048 4.359 10 4.5 10L7.5 10C7.641 10 7.759 10.048 7.856 10.144C7.952 10.241 8 10.359 8 10.5C8 10.641 7.952 10.759 7.856 10.856C7.759 10.952 7.641 11 7.5 11L4.5 11C4.359 11 4.241 10.952 4.144 10.856Z" />
    </svg>
  );
}
Vue
Vue: see /icons/cards.md
Svelte
Svelte: see /icons/cards.md
HTML img
HTML img: see /icons/cards.md
CSS
CSS: see /icons/cards.md
Data URL
Data URL: see /icons/cards.md
Sprite
Sprite: see /icons/cards.md
SwiftUI
SwiftUI: see /icons/cards.md
Compose
Compose: see /icons/cards.md
Android XML
Android XML: see /icons/cards.md
Flutter
Flutter: see /icons/cards.md

Each icon is drawn on the 16 px grid, and most also on the 20 and 24 px grids (at 24 in three weights: light 1 px, regular 1.5 px, bold 2 px). Show the drawing made for your size, or an exact multiple of it, on whole pixels: 16 for 16 and 32 px, 20 for 20 and 40, 24 for 24 and 48. A size in between or a fractional position blurs it. The code on each icon page is the 16 px drawing, an SVG with fill="currentColor"; the icon page's downloads follow its Grid switch, and npm has the 20 and 24 px drawings too. The snippets are decorative (aria-hidden). For an icon that carries meaning on its own, such as an icon-only button, label the button, or give the SVG role="img" and an aria-label. More in how to use.

With npm: import { CardsIcon } from '@gentleface/react'; (setup).

Meaning

Use it for
card view, cards, card layout, gallery view
Alternatives
  • grid: a grid of equal tiles or thumbnails (grid-view)
  • kanban: cards in status columns (board-view)
Don’t confuse with
Also fits
  • grid view: cards with a title and a body (card-view)
  • kanban: cards without status columns (card-view)
Not for
  • card game (use playing-cards): cards is the card view in a layout
Tags
cards, card-view, card, layout, stack, tiles, view
Category
Layout & interface
Component name
CardsIcon
History
  • added, released in 0.1.0
  • 20 px drawn, 24 px drawn
Since
version 0.1.0

Family 84

More layout & interface icons

For agents

Metadata: /icons/cards.json · Markdown: /icons/cards.md · SVG: https://gentleface.com/svg/{style}/16/cards.svg · PNG: https://gentleface.com/png/{style}/{16|32|48}/cards.png