プレビュー
HTML
<ol>
<li>Collect tokens</li>
<li>Compose the layout</li>
<li>Ship the set</li>
</ol>
CSS
:root {
--ink: #241c16;
--paper: #fffaf1;
--accent: #d4552b;
--accent-2: #4338ca;
--on-accent: #fff;
--muted: #6a6156;
--line: #d7ccb8;
--chip: #efe6d6;
}
ol {
display: grid;
gap: 0.85rem;
margin: 0;
padding: 0 0 0 1.4rem;
color: var(--ink);
list-style: none;
}
li {
position: relative;
}
li::before {
content: counter(list-item);
position: absolute;
left: -1.4rem;
top: 0.05rem;
display: grid;
place-items: center;
width: 1.05rem;
height: 1.05rem;
border-radius: 50%;
background: var(--accent);
color: var(--on-accent);
font-size: 0.7rem;
font-weight: 800;
}
li:not(:last-child)::after {
content: "";
position: absolute;
left: calc(-1.4rem + 0.48rem);
top: 1.2rem;
width: 2px;
height: calc(100% - 0.1rem);
background: var(--line);
}
Tailwind
<style>
:root {
--ink: #241c16;
--paper: #fffaf1;
--accent: #d4552b;
--accent-2: #4338ca;
--on-accent: #fff;
--muted: #6a6156;
--line: #d7ccb8;
--chip: #efe6d6;
}
li::before {
content: counter(list-item);
position: absolute;
left: -1.4rem;
top: 0.05rem;
display: grid;
place-items: center;
width: 1.05rem;
height: 1.05rem;
border-radius: 50%;
background: var(--accent);
color: var(--on-accent);
font-size: 0.7rem;
font-weight: 800;
}
li:not(:last-child)::after {
content: "";
position: absolute;
left: calc(-1.4rem + 0.48rem);
top: 1.2rem;
width: 2px;
height: calc(100% - 0.1rem);
background: var(--line);
}
</style>
<ol class="grid gap-[0.85rem] m-0 p-[0_0_0_1.4rem] text-[var(--ink)] list-none">
<li class="relative">Collect tokens</li>
<li class="relative">Compose the layout</li>
<li class="relative">Ship the set</li>
</ol>