Nested replies
A discussion three levels deep, with the thread lines and elbows drawn, so the shape of the conversation is clear before the words arrive.
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-skeleton-reply-tree">
<div class="tree" aria-busy="true">
<h3>Replies</h3>
<span class="sr" role="status">Loading replies</span>
<ul class="top" aria-hidden="true">
<li><div class="c"><span class="av"></span><div class="tx"><span class="b who"></span><span class="b" style="width:94%"></span><span class="b" style="width:58%"></span></div></div><ul><li><div class="c"><span class="av"></span><div class="tx"><span class="b who"></span><span class="b" style="width:88%"></span><span class="b" style="width:40%"></span></div></div><ul><li><div class="c"><span class="av"></span><div class="tx"><span class="b who"></span><span class="b" style="width:70%"></span></div></div></li></ul></li><li><div class="c"><span class="av"></span><div class="tx"><span class="b who"></span><span class="b" style="width:60%"></span></div></div></li></ul></li>
<li><div class="c"><span class="av"></span><div class="tx"><span class="b who"></span><span class="b" style="width:82%"></span><span class="b" style="width:66%"></span></div></div></li>
</ul>
</div>
</div>
.ukc-skeleton-reply-tree { 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-skeleton-reply-tree *, .ukc-skeleton-reply-tree *::before, .ukc-skeleton-reply-tree *::after { box-sizing: border-box; }
.ukc-skeleton-reply-tree :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-skeleton-reply-tree :where(ul, ol) { padding: 0; list-style: none; }
.ukc-skeleton-reply-tree :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-skeleton-reply-tree :where(a) { color: inherit; }
.ukc-skeleton-reply-tree svg { flex: none; }
.ukc-skeleton-reply-tree .sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ukc-skeleton-reply-tree .tree { --bar: color-mix(in srgb, var(--uk-ink) 10%, transparent); max-width: 440px; }
.ukc-skeleton-reply-tree h3 { font-size: 15px; font-weight: 600; padding-bottom: 10px; border-bottom: 1px solid var(--uk-line); }
.ukc-skeleton-reply-tree li { position: relative; padding-top: 14px; }
.ukc-skeleton-reply-tree ul ul { margin-left: 13px; padding-left: 22px; }
.ukc-skeleton-reply-tree ul ul > li::before { content: ""; position: absolute; left: -22px; top: 0; width: 16px; height: 28px; border-left: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); border-bottom-left-radius: min(var(--uk-radius-md), 8px); }
.ukc-skeleton-reply-tree ul ul > li:not(:last-child)::after { content: ""; position: absolute; left: -22px; top: 0; bottom: 0; border-left: 1px solid var(--line-strong); }
.ukc-skeleton-reply-tree .c { display: flex; gap: 10px; animation: ukc-skeleton-reply-tree-pulse 1.6s ease-in-out infinite alternate; }
.ukc-skeleton-reply-tree ul ul .c { animation-delay: 200ms; }
.ukc-skeleton-reply-tree ul ul ul .c { animation-delay: 400ms; }
.ukc-skeleton-reply-tree .av { width: 28px; height: 28px; flex: none; border-radius: 999px; background: color-mix(in srgb, var(--uk-ink) 16%, var(--uk-paper)); }
.ukc-skeleton-reply-tree .tx { flex: 1; min-width: 0; display: grid; gap: 7px; padding-top: 4px; }
.ukc-skeleton-reply-tree .b { display: block; height: 8px; background: var(--bar); border-radius: var(--uk-radius-sm); }
.ukc-skeleton-reply-tree .who { width: 84px; height: 10px; background: color-mix(in srgb, var(--uk-ink) 18%, transparent); }
@keyframes ukc-skeleton-reply-tree-pulse { from { opacity: 1; } to { opacity: 0.5; } }
@media (prefers-reduced-motion: reduce) { .ukc-skeleton-reply-tree .c { animation: none; } }
More skeletons
All 24- Loading jobs
Client details
Loading client details- Loading this month's figures
Writing the job summary
Crew on site
Loading crew- Read 3 job sheets
- Found 11 receipts
- Matching receipts to job 214…