Back to library

Card

Group a project or a piece of content with its key details and actions.

Something good is growing.
Personal project

Recommended API

Property or elementTypeExample initial valueDescription
Heading and badgeTextSample projectName the project and show a short category label.
aria-pressedARIA BooleanfalseExpose whether the project is saved.

States

StateTriggerResult
savedActivate Save project.The star fills and the save state becomes pressed.

CSS variables

VariableTypeDefaultDescription
--q-textcolor #28302aMain text and foreground color.
--q-mutedcolor #70776fColor for secondary text.
--q-font-sizelength 13pxBase size for the component text.
--q-accentcolor #344e41Accent for active controls, indicators and focus.
--q-surfacecolor #ffffffSurface for controls and cards.
--q-bordercolor #dce0d8Color for outlines and dividers.
--q-border-widthlength 1pxThickness of the outline.
--q-radiuslength 10pxBase corner radius.
--q-gaplength calc(var(--q-space) * 2)Space between items, based on the spacing unit.
--q-panel-paddinglength calc(var(--q-space) * 5)Inner padding for panels.
--q-shadowshadow 0 4px 16px rgb(0 0 0 / 8%)Shadow behind raised elements.
--q-durationtime 175msDuration of visual state transitions.
--q-spacelength 4pxBase unit for gaps and padding.