Team
$29в месяц
Для тех, кто собирает интерфейсы каждую неделю.
- Весь каталог компонентов
- Copy for AI без ограничений
- Обновления блоков целый год
- Коммерческая лицензия
Отмена в один клик, деньги за неиспользованный месяц возвращаются.
Card
A pricing card with a recommended state: the highlight is a featured flag rather than a separate component, so neighbouring plans never drift apart.
put this in the header: https://vibeui.ru/c/card-018?lang=en
$29в месяц
Для тех, кто собирает интерфейсы каждую неделю.
Отмена в один клик, деньги за неиспользованный месяц возвращаются.
What the link says, spelled out. Use it when your agent cannot open links — paste this text instead.
# Install and place "card-018" (Featured Plan Card) from VibeUI
## 1. Install first — do not skip, do not recreate
Run this exact command before writing any code:
npx shadcn@latest add https://vibeui.ru/r/card-018.json
Registry item: https://vibeui.ru/r/card-018.json
Installs to: components/vibeui/card-018.tsx (the exact path follows this project's components.json aliases).
npm dependencies: none.
Registry dependencies: none.
Install it from the registry. Do not recreate it from the description,
do not substitute a similar component from another library, and do not
rewrite it to match the project's existing style.
## 2. What it is
A pricing card with a recommended state: the highlight is a featured flag rather than a separate component, so neighbouring plans never drift apart.
A pricing card: name, price with a period, a short line, a feature list, a button and a small terms line. The featured flag adds a ribbon, an accent border and a filled button. Zero dependencies, one file, no client JS.
## 3. How to use it
import { Card018 } from "@/components/vibeui/card-018"
<Card018
name="Team"
price="$29"
period="per month"
featured
ribbon="Most popular"
/>
Read the installed file for the full prop list.
## 4. Where to place it
This is a small inline component. Put it exactly where the user asked,
inside the existing markup. Do not create a new page, section or
wrapper for it. If a similar control already sits in that spot,
replace it instead of adding a second one.
Placement: ___
(The user fills this line in. If it is still blank, ask where to put it
instead of guessing.)
## 5. Keep exactly as installed
- the local --vibeui-card-018-* palette — do not swap it for your theme tokens
- the highlight as a flag inside one markup: a separate "recommended" component inevitably drifts from its neighbours in height and spacing
- all three highlight signals — border, backing and button: a border alone is easy to miss in a row of cards
- the light backing on the featured variant: a dark card among light ones reads as disabled, not as primary
- the price in tabular figures with the period as a separate word beside it
- the terms line under the button: a plan with no answer to "how do I cancel" breeds distrust
## 6. You may change
- the name through name, the price through price and the period through period
- the explanation through tagline and the features list
- the featured flag and the ribbon wording through ribbon
- the button text through actionLabel, the terms line through note and the accent through the accent prop
## 7. Rules
- Exactly one plan in a row should be featured: two "recommended" cancel each other out.
- Nobody compares more than five bullet points — push the rest into a table below the plans.
- The ribbon overhangs the top edge: a container with overflow:hidden will clip it.
- Do not lift the CSS variables into globals.css: the component has to stay a single file.
## 8. Verify
- it renders with no console errors;
- it looks like the preview on the VibeUI page you copied this from;
- if it does not, you changed something listed in section 5 — put it back.npx shadcn@latest add https://vibeui.ru/r/card-018.jsonhttps://vibeui.ru/r/card-018.jsonКомпонент самодостаточен: один файл, без зависимостей, собственная палитра в локальных переменных --vibeui-card-018-*. Серверный: хуков нет. Выделение включается атрибутом data-featured и меняет три вещи сразу: рамку, лёгкую подложку-градиент и заливку кнопки; лента лежит на absolute поверх верхней границы. Подложка выделенного варианта остаётся светлой намеренно — тёмная карточка в ряду светлых читается как отключённая, а не как главная. Список возможностей — ul с галочкой на inline-SVG.
The same file your agent installs. Here in case you would rather copy it by hand.
import type { ComponentPropsWithoutRef, CSSProperties } from "react"
export type Card018Props = Omit<
ComponentPropsWithoutRef<"article">,
"children" | "title"
> & {
name?: string
price?: string
/** Период после цены: «в месяц», «за место». */
period?: string
tagline?: string
/** Что входит. Три-пять пунктов: длинный список никто не сравнивает. */
features?: string[]
/** Выделенный вариант получает ленту, акцентную рамку и подложку. */
featured?: boolean
/** Надпись на ленте выделенного варианта. */
ribbon?: string
actionLabel?: string
/** Мелкая строка под кнопкой: условия, отмена, пробный период. */
note?: string
accent?: string
}
// Идея компонента: карточка тарифа, у которой есть рекомендованное
// состояние. Выделение сделано не отдельным компонентом, а флагом featured:
// одна разметка, разные акценты — иначе два тарифа неизбежно разъедутся
// по вёрстке. Подложка выделенного варианта остаётся светлой: тёмная
// карточка в ряду светлых читается как отключённая, а не как главная.
const STYLES = `
:where([data-vibeui-block="card-018"]){
--vibeui-card-018-bg:oklch(1 0 0);
--vibeui-card-018-fg:oklch(0.22 0.015 265);
--vibeui-card-018-muted:oklch(0.55 0.013 265);
--vibeui-card-018-border:oklch(0.91 0.006 265);
--vibeui-card-018-accent:oklch(0.55 0.19 275);
--vibeui-card-018-font:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}
[data-vibeui-block="card-018"]{
position:relative;display:flex;flex-direction:column;gap:0.75rem;
width:100%;max-width:19rem;box-sizing:border-box;padding:1.25rem 1.25rem 1.375rem;
background:var(--vibeui-card-018-bg);color:var(--vibeui-card-018-fg);
border:1px solid var(--vibeui-card-018-border);border-radius:1rem;
font-family:var(--vibeui-card-018-font);
}
/* Выделение: акцентная рамка, лёгкая подложка и лента. Три признака вместо
одного — рамку в ряду карточек легко не заметить. */
[data-vibeui-block="card-018"][data-featured="true"]{
border-color:color-mix(in oklab,var(--vibeui-card-018-accent) 55%,var(--vibeui-card-018-border));
background:linear-gradient(180deg,
color-mix(in oklab,var(--vibeui-card-018-accent) 7%,oklch(1 0 0)),
oklch(1 0 0) 55%);
box-shadow:0 14px 32px -22px color-mix(in oklab,var(--vibeui-card-018-accent) 70%,transparent);
}
[data-vibeui-block="card-018"] [data-part="ribbon"]{
position:absolute;inset-block-start:-0.6875rem;inset-inline-start:1.25rem;
display:inline-flex;align-items:center;height:1.375rem;padding:0 0.5625rem;
border-radius:9999px;background:var(--vibeui-card-018-accent);color:oklch(0.99 0 0);
font-size:0.6875rem;font-weight:700;letter-spacing:0.02em;
}
[data-vibeui-block="card-018"] [data-part="name"]{
margin:0;font-size:0.8125rem;font-weight:700;letter-spacing:0.06em;text-transform:uppercase;
color:var(--vibeui-card-018-muted);
}
[data-vibeui-block="card-018"][data-featured="true"] [data-part="name"]{
color:color-mix(in oklab,var(--vibeui-card-018-accent) 75%,oklch(0.2 0.02 265));
}
[data-vibeui-block="card-018"] [data-part="price"]{
display:flex;align-items:baseline;gap:0.3125rem;margin:0;
}
[data-vibeui-block="card-018"] [data-part="amount"]{
font-size:2rem;font-weight:700;line-height:1;letter-spacing:-0.03em;
font-variant-numeric:tabular-nums;
}
[data-vibeui-block="card-018"] [data-part="period"]{font-size:0.8125rem;color:var(--vibeui-card-018-muted)}
[data-vibeui-block="card-018"] [data-part="tagline"]{
margin:0;font-size:0.8125rem;line-height:1.45;color:var(--vibeui-card-018-muted);
}
[data-vibeui-block="card-018"] [data-part="list"]{
display:flex;flex-direction:column;gap:0.4375rem;
margin:0.125rem 0 0;padding:0.875rem 0 0;list-style:none;
border-top:1px solid var(--vibeui-card-018-border);
}
[data-vibeui-block="card-018"] [data-part="feature"]{
display:flex;align-items:flex-start;gap:0.4375rem;font-size:0.8125rem;line-height:1.4;
}
[data-vibeui-block="card-018"] [data-part="feature"] svg{
flex:none;width:0.875rem;height:0.875rem;margin-top:0.1875rem;
color:var(--vibeui-card-018-accent);
}
[data-vibeui-block="card-018"] [data-part="action"]{
appearance:none;cursor:pointer;margin-top:auto;
height:2.375rem;border-radius:0.625rem;border:1px solid var(--vibeui-card-018-border);
background:oklch(1 0 0);color:var(--vibeui-card-018-fg);
font:inherit;font-size:0.875rem;font-weight:650;
transition:background-color .16s ease,border-color .16s ease;
}
[data-vibeui-block="card-018"][data-featured="true"] [data-part="action"]{
border-color:transparent;background:var(--vibeui-card-018-accent);color:oklch(0.99 0 0);
}
[data-vibeui-block="card-018"] [data-part="action"]:hover{
border-color:color-mix(in oklab,var(--vibeui-card-018-accent) 45%,var(--vibeui-card-018-border));
}
[data-vibeui-block="card-018"][data-featured="true"] [data-part="action"]:hover{
background:color-mix(in oklab,var(--vibeui-card-018-accent) 85%,oklch(0.2 0.02 265));
}
[data-vibeui-block="card-018"] [data-part="action"]:focus-visible{
outline:2px solid var(--vibeui-card-018-accent);outline-offset:2px;
}
[data-vibeui-block="card-018"] [data-part="note"]{
margin:0;text-align:center;font-size:0.6875rem;line-height:1.4;
color:var(--vibeui-card-018-muted);
}
@media (prefers-reduced-motion:reduce){[data-vibeui-block="card-018"] *{animation:none!important;transition:none!important}}
`
const DEFAULT_FEATURES = [
"Весь каталог компонентов",
"Copy for AI без ограничений",
"Обновления блоков целый год",
"Коммерческая лицензия",
]
/**
* Карточка тарифа с выделенным рекомендованным состоянием.
* Один файл, ноль зависимостей, собственная палитра.
*/
export function Card018({
name = "Команда",
price = "1 900 ₽",
period = "в месяц",
tagline = "Для тех, кто собирает интерфейсы каждую неделю.",
features = DEFAULT_FEATURES,
featured = true,
ribbon = "Чаще всего берут",
actionLabel = "Выбрать тариф",
note = "Отмена в один клик, деньги за неиспользованный месяц возвращаются.",
accent,
className,
style,
...props
}: Card018Props) {
const palette = {
...(accent ? { "--vibeui-card-018-accent": accent } : null),
...style,
} as CSSProperties
return (
<>
<style href="vibeui-card-018" precedence="medium">
{STYLES}
</style>
<article
{...props}
data-vibeui-block="card-018"
data-featured={featured}
className={className}
style={palette}
>
{featured && ribbon ? <span data-part="ribbon">{ribbon}</span> : null}
<h3 data-part="name">{name}</h3>
<p data-part="price">
<span data-part="amount">{price}</span>
{period ? <span data-part="period">{period}</span> : null}
</p>
{tagline ? <p data-part="tagline">{tagline}</p> : null}
<ul data-part="list">
{features.map((feature) => (
<li key={feature} data-part="feature">
<svg viewBox="0 0 14 14" fill="none" aria-hidden="true">
<path
d="M2.5 7.4 5.4 10.3 11.5 4"
stroke="currentColor"
strokeWidth="1.8"
strokeLinecap="round"
strokeLinejoin="round"
/>
</svg>
{feature}
</li>
))}
</ul>
<button data-part="action" type="button">
{actionLabel}
</button>
{note ? <p data-part="note">{note}</p> : null}
</article>
</>
)
}