Folded edge ribbons
Ribbons that hang over a card's edge with a folded corner tucked behind: along the side, down from the top, and a notched bookmark.
New
Winter catalog
48 items
Featured
Crew plan
$24 a month
Paid
Invoice 1042
$2,140
The code
Plain HTML and CSS on your kit's variables. Put it next to tokens/variables.css from your kit's files and it draws in your look.
<div class="ukc-badge-tabler-ribbons">
<div class="cards">
<div class="c"><span class="rb side">New</span><p class="t">Winter catalog</p><p class="s">48 items</p></div>
<div class="c"><span class="rb top"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 3.5l2.6 5.5 6 .7-4.4 4.1 1.2 5.9L12 16.8 6.6 19.7l1.2-5.9L3.4 9.7l6-.7z"/></svg><span class="sr">Featured</span></span><p class="t">Crew plan</p><p class="s">$24 a month</p></div>
<div class="c"><span class="rb mark hi">Paid</span><p class="t">Invoice 1042</p><p class="s">$2,140</p></div>
</div>
</div>
.ukc-badge-tabler-ribbons { position: relative; font-family: var(--uk-font-body, system-ui, sans-serif); color: var(--uk-ink); font-size: 15px; line-height: 1.5;
--tint: color-mix(in srgb, var(--uk-accent) 12%, var(--uk-paper));
--tint-strong: color-mix(in srgb, var(--uk-accent) 22%, var(--uk-paper));
--accent-deep: color-mix(in srgb, var(--uk-accent) 72%, black);
--ink-soft: color-mix(in srgb, var(--uk-ink) 8%, var(--uk-paper));
--line-strong: color-mix(in srgb, var(--uk-ink) 32%, var(--uk-paper));
--danger-tint: color-mix(in srgb, var(--uk-danger) 12%, var(--uk-paper));
--high-tint: color-mix(in srgb, var(--uk-highlight) 28%, var(--uk-paper)); }
.ukc-badge-tabler-ribbons *, .ukc-badge-tabler-ribbons *::before, .ukc-badge-tabler-ribbons *::after { box-sizing: border-box; }
.ukc-badge-tabler-ribbons :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-badge-tabler-ribbons :where(ul, ol) { padding: 0; list-style: none; }
.ukc-badge-tabler-ribbons :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-badge-tabler-ribbons :where(a) { color: inherit; }
.ukc-badge-tabler-ribbons svg { flex: none; }
.ukc-badge-tabler-ribbons .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 18px; padding: 10px 8px 0 0; }
.ukc-badge-tabler-ribbons .c { position: relative; min-height: 108px; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; padding: 14px 12px; border: var(--uk-border-width) solid var(--uk-line); border-radius: min(var(--uk-radius-lg), 12px); background: var(--uk-surface); }
.ukc-badge-tabler-ribbons .t { font-size: 14px; font-weight: 600; }
.ukc-badge-tabler-ribbons .s { font-size: 13px; color: var(--uk-muted); }
.ukc-badge-tabler-ribbons .rb { position: absolute; z-index: 1; display: inline-flex; align-items: center; justify-content: center; min-width: 30px; min-height: 26px; padding: 4px 10px; background: var(--uk-accent); color: var(--uk-accent-ink); font-size: 11px; font-weight: 700; line-height: 1; letter-spacing: 0.06em; text-transform: uppercase; --fold: var(--accent-deep); }
.ukc-badge-tabler-ribbons .rb::before { content: ""; position: absolute; width: 0; height: 0; border: 3px solid transparent; }
.ukc-badge-tabler-ribbons .side, .ukc-badge-tabler-ribbons .mark { top: 12px; right: -6px; border-radius: var(--uk-radius-sm) 0 var(--uk-radius-sm) var(--uk-radius-sm); }
.ukc-badge-tabler-ribbons .side::before, .ukc-badge-tabler-ribbons .mark::before { right: 0; bottom: 100%; border-bottom-color: var(--fold); border-left-color: var(--fold); }
.ukc-badge-tabler-ribbons .top { top: -6px; right: 12px; width: 30px; padding: 9px 0 8px; border-radius: 0 var(--uk-radius-sm) var(--uk-radius-sm) var(--uk-radius-sm); }
.ukc-badge-tabler-ribbons .top::before { right: 100%; top: 0; border-bottom-color: var(--fold); border-right-color: var(--fold); }
.ukc-badge-tabler-ribbons .mark { padding-left: 4px; border-radius: 0 0 var(--uk-radius-sm) 0; }
.ukc-badge-tabler-ribbons .mark::after { content: ""; position: absolute; top: 0; right: 100%; width: 0; height: 0; border: 13px solid var(--rb-bg, var(--uk-accent)); border-left-color: transparent; border-left-width: 8px; border-right-width: 0; }
.ukc-badge-tabler-ribbons .rb.hi { --rb-bg: var(--uk-highlight); --fold: color-mix(in srgb, var(--uk-highlight) 62%, black); background: var(--uk-highlight); color: color-mix(in srgb, var(--uk-highlight) 18%, black); }
.ukc-badge-tabler-ribbons .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
More badges and chips
All 25- MR NewSpring price list Sold out DraftQuote 88
- Street tree planting
- Youth music room
- Allotment water tanks
- Towpath lights, final report2 days overdue
- Library roof repair
Hollow Oak Dairy
Raw milk cheese · farm visited 3 Nov
Marsh Lane Honey
Heather and borage honey · hives counted 12 Oct
Tiller & Sons Veg
Visit booked for 4 Dec
Verified growerCheck pending