Components / Alerts and banners
Usage warning
A warning that shows the usage as a bar with the numbers, and the way out.
You have used 85% of your photo storage8.5 of 10 GB
Older photos can move to the archive, or add storage.
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-alert-quota">
<div class="q"><div class="top"><strong>You have used 85% of your photo storage</strong><span>8.5 of 10 GB</span></div><div class="bar"><i style="width: 85%"></i></div><p>Older photos can move to the archive, or <a href="#">add storage</a>.</p></div>
</div>
.ukc-alert-quota { 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-alert-quota *, .ukc-alert-quota *::before, .ukc-alert-quota *::after { box-sizing: border-box; }
.ukc-alert-quota :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-alert-quota :where(ul, ol) { padding: 0; list-style: none; }
.ukc-alert-quota :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-alert-quota :where(a) { color: inherit; }
.ukc-alert-quota svg { flex: none; }
.ukc-alert-quota .q { max-width: 560px; padding: 16px; border: 1px solid var(--uk-line); border-radius: var(--uk-radius-lg); background: var(--uk-surface); display: grid; gap: 10px; }
.ukc-alert-quota .top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.ukc-alert-quota .top span { font-family: var(--uk-font-mono, ui-monospace, monospace); font-size: 13px; color: var(--uk-muted); }
.ukc-alert-quota .bar { height: 8px; border-radius: 999px; background: var(--ink-soft); overflow: hidden; }
.ukc-alert-quota .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--uk-accent), var(--uk-danger)); }
.ukc-alert-quota p { font-size: 14px; color: var(--uk-muted); }
.ukc-alert-quota a { color: var(--uk-accent); }
More alerts and banners
All 26- A new version of Halden is ready.
3days left
Your Tapehouse trial ends on Friday
Day 11 of 14, todayEnds Fri 4 Dec, 6 PM
Your sessions and client list stay put. Online deposits and the public booking page switch off until you pick a plan.