极简卡片

card · minimal · 灵感来源:去浮起、去模糊,靠排版和留白呼吸

极简卡片

Minimal style

极简风格 — 去玻璃感、去阴影、靠排版呼吸。

state: idle

Minimal→

复用卡

Flat Minimal Card · 极简卡片 · 卡片 / Minimal

规格 · 术语提示词(给 AI 用)

做一个 Flat Minimal Card(极简卡片):
- 无浮起、无模糊、无阴影
- 靠排版与留白分层,hover 只提亮边框
- 小圆角 + 直边
用这些 CSS 变量:--color-surface --color-text --color-text-muted --color-text-subtle --dur-fast --fw-semibold --text-2xs
灵感参考:去浮起、去模糊,靠排版和留白呼吸

参数(CSS 变量)

--color-surface --color-text --color-text-muted --color-text-subtle --dur-fast --fw-semibold --text-2xs

必缺状态

(无必缺状态)

整页场景

(尚未接进整页场景)

安装(一条链接)

参考(本站可核对)

调研笔记

极简卡片

  • 小圆角 6px + 直边,无阴影无 backdrop
  • 细线分隔标题/内容/底部
  • hover 仅边框提亮

变量:--color-surface #ffffff。

实现

card/minimal
import { type ReactNode } from 'react';

interface Props {
  title?: string;
  subtitle?: string;
  children?: ReactNode;
  onClick?: () => void;
  className?: string;
}

export function MinimalCard({
  title = '极简卡片',
  subtitle = 'Minimal · Subtitle',
  children,
  onClick,
  className = '',
}: Props) {
  return (
    <article
      onClick={onClick}
      className="
        relative
        p-6 rounded-md
        bg-[var(--color-surface)]
        border border-black/5
        transition-colors duration-[var(--dur-fast)]
        hover:border-black/15
        cursor-pointer
        ${className}
      "
    >
      <div className="flex items-center justify-between mb-4">
        <h3
          className="text-base"
          style={{ fontWeight: 'var(--fw-semibold)' }}
        >
          {title}
        </h3>
        <span className="
          size-1.5 rounded-full
          bg-[var(--color-text-subtle)]/50
        " />
      </div>

      <p className="text-xs text-[var(--color-text-muted)] mb-4">
        {subtitle}
      </p>

      <div className="
        py-4 min-h-[60px] flex items-center
        border-t border-black/5
      ">
        {children ?? (
          <div className="w-full space-y-2">
            <div className="h-1.5 rounded-full bg-black/10"></div>
            <div className="h-1.5 rounded-full bg-black/10 w-4/5"></div>
            <div className="h-1.5 rounded-full bg-black/10 w-3/5"></div>
          </div>
        )}
      </div>

      <div className="flex items-center justify-between pt-3 border-t border-black/5">
        <span className="text-[length:var(--text-2xs)] uppercase tracking-[0.18em] text-[var(--color-text-subtle)] font-mono">
          Minimal
        </span>
        <span className="text-xs text-[var(--color-text-muted)]">→</span>
      </div>
    </article>
  );
}

元信息

标识
card/minimal
状态
done
最后提交
2026-10-30
风格轴
minimal
依赖 token
--color-surface --color-text --color-text-muted --color-text-subtle --dur-fast --fw-semibold --text-2xs
在工作台打开 源码与 notes 都在 src/components/card/minimal/