The Open Standard for Generative UI
.featuredGrid,
.grid {
display: grid;
gap: 1rem;
margin: 1.25rem 0 0;
}
/* Image and text cards share one grid: three columns on wide screens, fewer as it narrows. */
.featuredGrid,
.grid {
grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
}
.featuredCard,
.card {
display: flex;
min-width: 0;
flex-direction: column;
border: 1px solid var(--docs-card-border);
border-radius: 0.875rem;
background: var(--color-fd-card);
transition: border-color 150ms ease;
}
.featuredCard:hover,
.card:hover {
border-color: var(--docs-card-border-hover);
}
.featuredCard {
overflow: hidden;
}
.featuredMedia {
aspect-ratio: 7 / 4;
border-bottom: 1px solid var(--docs-card-border);
background: var(--docs-hover-bg);
}
.featuredMedia img {
display: block;
width: 100%;
height: 100%;
margin: 0;
border-radius: 0;
object-fit: cover;
}
.imageDark {
display: none !important;
}
:global(.dark) .imageLight {
display: none !important;
}
:global(.dark) .imageDark {
display: block !important;
}
.featuredBody {
display: flex;
flex: 1;
flex-direction: column;
padding: 1.125rem 1.25rem 1.25rem;
}
.eyebrow {
margin-bottom: 0.25rem;
color: var(--docs-text-muted);
font-size: 0.75rem;
font-weight: 500;
letter-spacing: 0.02em;
text-transform: uppercase;
}
.card {
padding: 1rem 1.125rem 1.125rem;
}
.cardHeader {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 0.75rem;
}
.cardTitle {
margin: 0 !important;
color: var(--docs-text-heading);
font-size: 0.975rem !important;
font-weight: 600;
line-height: 1.4;
}
.featuredCard .cardTitle {
font-size: 1.125rem !important;
}
.cardIdentity {
display: flex;
align-items: center;
gap: 0.5rem;
}
.cardLogo,
.cardLogoDark {
width: 1.25rem;
height: 1.25rem;
flex-shrink: 0;
margin: 0 !important;
object-fit: contain;
}
:global(.dark) .cardLogoDark {
filter: invert(1);
}
/* Integration cards share the grid's rows through subgrid, so the logo row, description, and
links line up across every card in a row. */
.exampleCard {
display: grid;
grid-row: span 3;
grid-template-rows: subgrid;
row-gap: 0.75rem;
}
.exampleCard .cardDescription,
.exampleCard .cardLinks {
margin-top: 0 !important;
}
.cardDescription {
flex: 1;
margin: 0.375rem 0 0 !important;
color: var(--docs-text-secondary);
font-size: 0.875rem;
line-height: 1.55;
}
.tag {
flex-shrink: 0;
border: 1px solid var(--docs-card-border);
border-radius: 999px;
padding: 0.0625rem 0.5rem;
color: var(--docs-text-muted);
font-size: 0.6875rem;
font-weight: 500;
}
.cardLinks {
display: flex;
flex-wrap: wrap;
gap: 1rem;
margin-top: 0.875rem;
}
.cardLink,
.runButton {
display: inline-flex;
align-items: center;
gap: 0.25rem;
color: var(--docs-text-heading) !important;
font-size: 0.8125rem;
font-weight: 500;
text-decoration: none !important;
}
.cardLink:hover,
.runButton:hover {
text-decoration: underline !important;
text-underline-offset: 3px;
}
.runButton {
cursor: pointer;
}
/* The popover renders in a portal outside the docs layout, so it uses Fumadocs tokens. */
.runPopover {
width: min(30rem, calc(100vw - 2rem));
padding: 0.875rem !important;
background: var(--color-fd-popover) !important;
}
.runTitle {
margin: 0;
color: var(--color-fd-foreground);
font-weight: 600;
}
.runCommand {
display: flex;
align-items: flex-start;
gap: 0.5rem;
margin-top: 0.625rem;
border: 1px solid var(--color-fd-border);
border-radius: 0.5rem;
padding: 0.5rem 0.5rem 0.5rem 0.75rem;
background: var(--color-fd-muted);
}
.runCommand code {
flex: 1;
color: var(--color-fd-foreground);
font-family: var(--font-geist-mono), ui-monospace, monospace;
font-size: 0.75rem;
font-variant-ligatures: none;
line-height: 1.6;
}
.runWord {
white-space: nowrap;
}
.runCopy {
display: inline-flex;
flex-shrink: 0;
align-items: center;
justify-content: center;
width: 1.5rem;
height: 1.5rem;
border-radius: 0.375rem;
color: var(--color-fd-muted-foreground);
cursor: pointer;
}
.runCopy:hover {
background: var(--color-fd-accent);
color: var(--color-fd-foreground);
}
.runCopy svg {
width: 0.875rem;
height: 0.875rem;
}
.runNote {
margin: 0.625rem 0 0;
color: var(--color-fd-muted-foreground);
font-size: 0.8125rem;
line-height: 1.5;
}
.runNote code {
font-family: var(--font-geist-mono), ui-monospace, monospace;
font-size: 0.75rem;
color: var(--color-fd-foreground);
}
.cardLinkIcon {
width: 0.875rem;
height: 0.875rem;
color: var(--docs-text-muted);
}
.categoryDescription {
margin: 0.25rem 0 0 !important;
color: var(--docs-text-secondary);
font-size: 0.9375rem;
}
/* Whole-card links (the /demos page): the card's main link stretches over the
card, and its other links sit above that layer so they stay clickable. */
.cardClickable {
position: relative;
cursor: pointer;
transition:
border-color 150ms ease,
background-color 150ms ease;
}
.cardClickable:hover {
background: var(--docs-hover-bg);
}
.cardClickable .cardLink {
position: relative;
z-index: 2;
}
.cardClickable .cardStretch {
position: static;
}
.cardClickable .cardStretch::after {
content: "";
position: absolute;
inset: 0;
z-index: 1;
border-radius: inherit;
}