Frames
Frames add an extra touch to your design and help highlight containers and sections.
You can apply them directly to your container—just place them inside, and the frame will automatically adapt to the container’s dimensions. Also, the container must have the relative class for it to work properly.
---// Importimport Frame from "../components/Frame.astro";---(...)<div class="relative + Type your container dimensions here"> (...) <-- You can add it anywhere you want, as long as it’s inside the container --> <Frame /> (...)</div>(...)1. Crossed Corners
Section titled “1. Crossed Corners” <div> <!-- Top --> <!-- ---Left --> <div class="absolute top-4 left-2 w-4 border-b border-white"></div> <div class="absolute top-2 left-4 h-4 border-r border-white"></div>
<!-- ---Right --> <div class="absolute top-4 right-2 w-4 border-b border-white"></div> <div class="absolute top-2 right-4 h-4 border-r border-white"></div>
<!-- Bottom --> <!-- ---Left --> <div class="absolute bottom-4 left-2 w-4 border-b border-white"></div> <div class="absolute bottom-2 left-4 h-4 border-r border-white"></div>
<!-- ---Right --> <div class="absolute bottom-4 right-2 w-4 border-b border-white"></div> <div class="absolute bottom-2 right-4 h-4 border-r border-white"></div></div>2. Half-Square
Section titled “2. Half-Square” <div> <!-- Top --> <!-- ---Left --> <div class="absolute top-4 left-4 size-4 border-t border-l border-white"> </div>
<!-- ---Right --> <div class="absolute top-4 right-4 size-4 border-t border-r border-white"> </div>
<!-- Bottom --> <!-- ---Left --> <div class="absolute bottom-4 left-4 size-4 border-b border-l border-white"> </div>
<!-- ---Right --> <div class="absolute bottom-4 right-4 size-4 border-b border-r border-white" > </div> </div>3. Dotted
Section titled “3. Dotted”<div> <!-- Top --> <!-- ---Left --> <div class="absolute top-2 left-2 size-1 rounded-full bg-white"></div> <div class="absolute top-2 left-6 size-1 rounded-full bg-white"></div> <div class="absolute top-6 left-2 size-1 rounded-full bg-white"></div>
<!-- ---Right --> <div class="absolute top-6 right-2 size-1 rounded-full bg-white"></div> <div class="absolute top-2 right-2 size-1 rounded-full bg-white"></div> <div class="absolute top-2 right-6 size-1 rounded-full bg-white"></div>
<!-- Bottom --> <!-- ---Left --> <div class="absolute bottom-6 right-2 size-1 rounded-full bg-white"></div> <div class="absolute bottom-2 right-2 size-1 rounded-full bg-white"></div> <div class="absolute bottom-2 right-6 size-1 rounded-full bg-white"></div>
<!-- ---Right --> <div class="absolute bottom-6 left-2 size-1 rounded-full bg-white"></div> <div class="absolute bottom-2 left-2 size-1 rounded-full bg-white"></div> <div class="absolute bottom-2 left-6 size-1 rounded-full bg-white"></div></div>4. Curved Corners
Section titled “4. Curved Corners”<div> <!-- Top --> <!-- ---Left --> <div class="absolute top-0 left-0 size-4 bg-white [clip-path:polygon(0%_0%,100%_0%,45%_25%,25%_45%,0%_100%)]" > </div>
<!-- ---Right --> <div class="absolute top-0 right-0 size-4 bg-white rotate-90 [clip-path:polygon(0%_0%,100%_0%,45%_25%,25%_45%,0%_100%)]" > </div>
<!-- Bottom --> <!-- ---Left --> <div class="absolute bottom-0 left-0 size-4 bg-white rotate-[270deg] [clip-path:polygon(0%_0%,100%_0%,45%_25%,25%_45%,0%_100%)]" > </div>
<!-- ---Right --> <div class="absolute bottom-0 right-0 size-4 bg-white rotate-180 [clip-path:polygon(0%_0%,100%_0%,45%_25%,25%_45%,0%_100%)]" > </div></div>