First

Syntax

Class
Properties
{...}first:{...}
{...}:first-child{...}
<div class="t1 w-full px-8 py-2 bg-c-white first:bg-c-gray-800 first:color-white">first</div> <div class="t1 w-full px-8 py-2 bg-c-white first:bg-c-gray-800 first:color-white">second</div> <div class="t1 w-full px-8 py-2 bg-c-white first:bg-c-gray-800 first:color-white">third</div> <div class="t1 w-full px-8 py-2 bg-c-white first:bg-c-gray-800 first:color-white">fourth</div>

Specification test cases

The test cases below are imported from the Turbo CSS specification. They have been executed upon loading this page.
First elements shall have a top border width of 2px.
t1 first:bt-2
.t1.first\:bt-2:first-child { border-top-width: 2px; }