MeDo

KI-Card-Generator.

Beschreiben Sie, was die Card enthält, und MeDo generiert den vollständigen Container — Media-, Header-, Body- und Footer-Slots, Hover-Elevation, per aspect-ratio fixierte Bilder, gleiche Höhen im Grid und einen passenden Skeleton-Zustand.

Card
Card

Eine Card ist ein Layout-Vertrag, keine Box mit Rahmen

Abgerundete Ecken und ein Schatten sind in einer Minute geschrieben, deshalb gelten Cards als trivial. Kaputt geht alles rundherum. Eine Card hat einen zweizeiligen Titel, die daneben vier Zeilen, und schon liegen die Footer nicht mehr auf einer Linie. Ein Bild kommt in einem unerwarteten Seitenverhältnis und das Grid umbricht nach dem Paint. Jemand macht die ganze Card klickbar und schließt einen „Speichern"-Button im Anchor ein, was ungültiges HTML und ein unerreichbares Steuerelement erzeugt. Das sind Eigenschaften der Card im Set, nicht der Card allein — genau deshalb ist es nützlicher, Container, Media-Beschränkung, Footer-Ausrichtung und Ladezustand als eine Einheit zu generieren, als ein einzelnes div gut zu stylen.

6 Vorlagen

Card-Vorlagen, die Sie generieren können

Jede Vorlage ist ein echter Prompt, kein Screenshot. Kopieren Sie ihn in einen KI-Editor oder führen Sie ihn in MeDo aus und erhalten Sie React- und Tailwind-Code zurück.

BasicSlots + Skeleton

Four-Slot Card With a Matching Skeleton

The container everything else extends. Generating the skeleton in the same pass is what keeps the two the same size six months later.

Create a card component with four optional slots: media at the top, a header with title and subtitle, a body for description text, and a footer for actions or metadata. White surface, 12px radius, 1px light grey border, 20px internal padding. Make the card a flex column with the body allowed to grow so the footer sits at the bottom and cards in a row stay equal height regardless of title wrapping. Lock the media to a 16:9 ratio with object-fit cover and explicit dimensions. Include a skeleton variant whose grey blocks match the real layout exactly — same media ratio, same line count, same footer height — so nothing shifts when data arrives.

In MeDo testen
CommerceProduct Card

Image, Price and Add to Cart

The hardest card to get right because it needs a whole-card link and a nested button. Wrap the card in an anchor and the button becomes invalid markup and unreachable.

Create a product card: a 1:1 image with object-fit cover and a reserved box, an optional discount badge in the top-left, the product name over two lines with a line clamp, a price row with the current price and a struck-through original, a star rating with a review count, and an Add to cart button in the footer. Make the whole card navigate to the product page by putting the anchor on the product name and stretching it over the card with an absolutely positioned pseudo-element, then raise the cart button above it with a higher z-index so both targets work. Add an out-of-stock state that dims the image and swaps the button for a Notify me control.

In MeDo testen
EditorialArticle Card

Cover Image, Headline and Byline

One headline wraps to two lines and its neighbor to four. Without a growing body the bylines end up on different baselines and the whole index looks unfinished.

Create an article card: a 16:9 cover image with a reserved aspect box, a category badge, a headline clamped to two lines, an excerpt clamped to three, and a footer row with an author avatar, author name, publish date and read time. Make it a flex column with the excerpt allowed to grow so bylines align across a row of cards with different headline lengths. Put the anchor on the headline and stretch it across the card so the accessible name is the headline rather than "read more". Add a featured variant that spans two grid columns with the media on the left and the text on the right.

In MeDo testen
DashboardMetric Card

Stat Card With Delta and Sparkline

No media, all typography. The number is the component, so lock its width with tabular figures or the whole row twitches on every poll.

Create a metric card for a dashboard: a small uppercase label, a large numeric value using tabular figures so the width does not jitter as the number updates, a change indicator showing the delta with an arrow and a green or red tint, and an optional sparkline across the bottom. Never rely on color alone for direction — pair the tint with an arrow glyph and a visually hidden "up" or "down". Reserve the sparkline height even before data arrives. Include a loading variant that shows a shimmering block at the exact value height, and an empty state reading "No data yet" rather than a zero that looks like a real measurement.

In MeDo testen
ConversionPricing Card

Plan Card With a Highlighted Tier

Three cards that must end on one line. If the highlighted tier gets a thicker border, compensate with padding or it will sit one pixel taller than its neighbors.

Create a pricing card: plan name, price with a billing period suffix, a one-line positioning sentence, a feature list with check icons, and a call-to-action button pinned to the bottom. Add a highlighted variant with a thicker border, a "Most popular" badge overlapping the top edge, and reduced internal padding so the extra border width does not make it taller than the adjacent cards. Make the card a flex column with the feature list growing, so buttons across three plans of different feature counts land on the same line. Keep the price in tabular figures and mark the currency and period as separate spans for annual and monthly toggling.

In MeDo testen
InteractiveClickable Card

Whole-Card Link With Nested Controls

The pattern that fixes the most common card bug. One stretched anchor, real controls layered above it, no interactive element nested inside another.

Create a fully clickable card that stays valid HTML: put a single anchor on the card title and expand it over the whole card with an absolutely positioned ::after pseudo-element covering the container, rather than wrapping the card in an anchor. Give the container position relative and any nested control — a bookmark toggle, an overflow menu, a secondary link — a higher z-index plus position relative so it remains clickable. Drive the hover elevation from the container so hovering anywhere raises the card, and mirror it on focus-within so keyboard users see the same state. Skip the translate transform when prefers-reduced-motion is set and keep the shadow change.

In MeDo testen

So passen Sie Ihre Card an

Das Media-Seitenverhältnis fixieren

Fordern Sie ein explizites aspect-ratio für den Bildbereich mit object-fit cover. Ohne reservierte Box skalieren Bilder unterschiedlicher Abmessungen die Card nach dem Laden neu — ein direkter Treffer für Cumulative Layout Shift und der sichtbarste Fehler in einem Card-Grid.

Den Footer am unteren Rand verankern

Sagen Sie, dass die Card eine Flex-Spalte ist und der Body wachsen darf, damit Footer über eine Reihe hinweg ausgerichtet bleiben, auch wenn Titel unterschiedlich oft umbrechen. Ungleiche Aktionsreihen lassen ein sonst sauberes Grid am schnellsten unfertig wirken.

Eine einzige Klick-Strategie wählen

Entweder ist die ganze Card ein Link oder die Elemente darin — niemals beides. Für eine vollständig klickbare Card verlangen Sie einen einzelnen Anchor auf dem Titel, der per absolut positioniertem Pseudo-Element über die Card gestreckt wird. Das hält den barrierefreien Namen aussagekräftig und lässt Raum für verschachtelte Steuerelemente darüber.

Das Skeleton zusammen mit der Card anfordern

Verlangen Sie eine Ladevariante, deren graue Blöcke den echten Abmessungen entsprechen, inklusive Media-Verhältnis und Zeilenanzahl. Ein Skeleton in anderer Größe verfehlt den Zweck, weil das Layout beim Eintreffen der Daten trotzdem springt.

Wer die Card-Komponente nutzt

E-Commerce-Produktgrid

Ein quadratisches Produktbild, Name, Preis und eine Bewertungszeile, mit einem „In den Warenkorb"-Button im Footer über einem Link, der die gesamte Card mit der Produktseite verbindet — beide Ziele funktionieren ohne Verschachtelung.

Blog- oder Ressourcenübersicht

Ein 16:9 Titelbild, ein Kategorie-Badge, eine Überschrift, die auf zwei Zeilen umbricht, ein Auszug und ein Footer mit Autor und Lesezeit, der über die Reihe hinweg ausgerichtet bleibt, egal wie lang die Überschriften laufen.

SaaS-Dashboard

Metrik-Cards ganz ohne Media: ein Label, ein großer Wert, ein Änderungsindikator und eine Sparkline, beim ersten Paint als Skeletons gerendert, während die Abfrage läuft.

Preis- oder Tarifvergleich

Drei gleich hohe Cards, eine davon durch dickeren Rahmen und Badge hervorgehoben, jede endet in einem Call-to-Action-Button am unteren Rand, sodass die Buttons auf einer Linie sitzen.

Card-Muster für verschiedene Websites

Dieselbe card-Komponente, abgestimmt auf die Art der Website, auf der sie läuft.

01 / 06

SaaS Dashboard Cards

Metric cards with no media at all, so the number carries the whole layout. Use tabular figures and reserve the value height, because a card grid fed by a polling query will otherwise reflow every few seconds. Borders beat shadows here — twelve elevated cards on one screen read as noise rather than hierarchy.

Card-Stile und -Varianten

Wählen Sie die Variante, die zum Rest der Seite passt, und generieren Sie sie.

01 / 06

Bordered Card

A 1px border, no shadow. The right default for dense interfaces — tables, dashboards, settings panels — where every card needs an edge but none of them should appear to float. Keep the border one step darker than the divider color or the card dissolves into the page.

Card in React, Next.js, Vue und Svelte

React, Next.js, Vue 3, SvelteKit, Astro oder reines HTML — dieselbe card, sechs Wege zur Einbindung.

01 / 06

React Card

Expose the slots as subcomponents — Card.Header, Card.Body, Card.Footer — rather than as props, so a metric card can omit the media without passing null. No state means no hooks, which is what lets you render sixty of them in a grid.

src/components/Card.tsx

export function Card({ className, ...props }) {
  return (
    <div
      className={cn(
        'flex flex-col rounded-xl border bg-white p-5',
        'transition-shadow hover:shadow-lg',
        className
      )}
      {...props}
    />
  )
}
Card.Footer = ({ children }) => <div className="mt-auto pt-4">{children}</div>

So fügen Sie Ihre Card einem Projekt hinzu

Vier Schritte, von der Auswahl einer card-Vorlage bis zum Einsatz in der Produktion.

01~30s

Pick a Card Template

Scan the six templates and start from the content you are displaying — product with a cart button, article with a byline, metric with a delta, or pricing tier.

02~10s

Copy the Prompt

Take the prompt into MeDo, Lovable, Bolt, v0 or Cursor. Say what grid the card lives in before you run it, because the column count is what determines the media ratio and the equal-height rules.

03~1min

Generate and Refine

You get React + Tailwind back with a live preview. Follow up in plain English — "clamp the title to two lines", "swap the shadow for a border", "add the skeleton" — instead of editing the flex utilities by hand.

04~2min

Drop It Into the Grid

Render it inside a CSS grid so rows stretch to match, then check a row where one title wraps and another does not. That is the case that reveals whether the footer is actually pinned.

Häufige Fragen zu Card

Wie generiere ich eine Card-Komponente mit KI?

Beschreiben Sie, was die Card enthält und wie sie eingesetzt wird, zum Beispiel „Produktkarte mit quadratischem Bild, Titel, Preis und Warenkorb-Footer in einem dreispaltigen Grid". MeDo generiert Slot-Struktur, Media-Beschränkung und Hover-Zustand zusammen. Das Grid zu erwähnen ist wichtig, denn es bestimmt die Regeln für gleiche Höhen und aspect-ratio.

Aus welchen Teilen besteht eine Card-Komponente?

Vier Bereiche decken fast jeden Fall ab: ein optionaler Media-Bereich, ein Header mit Titel und unterstützendem Label, ein Body für beschreibenden Inhalt und ein Footer für Aktionen oder Metadaten. Behandelt man sie als optionale Slots statt als Pflicht-Markup, bedient eine Komponente Produktkarte, Artikelkarte und Metrik-Karte ohne eigene Varianten.

Kann die gesamte Card klickbar sein?

Ja, aber umschließen Sie die Card nicht mit einem Anchor, wenn sie Buttons oder andere Links enthält — verschachtelte interaktive Elemente sind ungültiges HTML und Browser behandeln sie unvorhersehbar. Setzen Sie den Anchor auf den Titel und strecken Sie ihn mit einem absolut positionierten Pseudo-Element über die Card, und heben Sie verschachtelte Steuerelemente mit höherem z-index darüber.

Wie mache ich Cards in einem Grid gleich hoch?

Verwenden Sie ein CSS-Grid, das Elemente einer Reihe bereits auf gleiche Höhe streckt, und machen Sie die Card selbst zu einer Flex-Spalte, damit ihr Footer von einem wachsenden Body nach unten gedrückt wird. Feste Höhen sind der falsche Weg, weil sie Inhalt abschneiden, sobald ein Titel eine Zeile mehr braucht.

Sollten Cards einen Schatten oder einen Rahmen verwenden?

Ein Rahmen wirkt in dichten Oberflächen wie Dashboards und Tabellen besser, wo viele Schatten visuelles Rauschen erzeugen. Ein Schatten passt zu luftigen Marketing-Layouts, in denen Cards sich vom Hintergrund abheben sollen. Wählen Sie eines als Standard und reservieren Sie das andere für eine hervorgehobene Variante, statt beide auf derselben Ebene zu mischen.

Braucht eine Card ein Lade-Skeleton?

Jede Card, die von einer Netzwerkanfrage gespeist wird, profitiert davon, denn ein auf den echten Inhalt dimensioniertes Skeleton verhindert, dass die Seite beim Eintreffen der Daten umbricht. Fordern Sie das Skeleton im selben Prompt wie die Card an, dann teilen beide die Abmessungen von Konstruktion aus — was schwer zu pflegen ist, wenn sie getrennt geschrieben werden.