Corner Brackets
A copy-paste borders & outlines component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Borders & OutlinesHTMLCSSany framework
Corner Brackets
Copy into your project
HTML
<div class="nuda-bdx-brackets">
<span class="nuda-bdx-brackets__tl"></span>
<span class="nuda-bdx-brackets__tr"></span>
<span class="nuda-bdx-brackets__bl"></span>
<span class="nuda-bdx-brackets__br"></span>
<p class="nuda-bdx-brackets__content">Corner Brackets</p>
</div>CSS
.nuda-bdx-brackets {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
background: #1a1a1a;
padding: 22px 36px;
min-width: 160px;
}
.nuda-bdx-brackets__tl,.nuda-bdx-brackets__tr,.nuda-bdx-brackets__bl,.nuda-bdx-brackets__br {
position: absolute;
width: 14px;
height: 14px;
border-color: #e4ff54;
border-style: solid;
}
.nuda-bdx-brackets__tl {
top: 0;
left: 0;
border-width: 2px 0 0 2px;
}
.nuda-bdx-brackets__tr {
top: 0;
right: 0;
border-width: 2px 2px 0 0;
}
.nuda-bdx-brackets__bl {
bottom: 0;
left: 0;
border-width: 0 0 2px 2px;
}
.nuda-bdx-brackets__br {
bottom: 0;
right: 0;
border-width: 0 2px 2px 0;
}
.nuda-bdx-brackets__content {
color: #cfcfcf;
font-size: .85rem;
margin: 0;
font-family: monospace;
letter-spacing: .04em;
}
How to use Corner Brackets
Paste the HTML where you need it and the CSS into a global stylesheet (or a <style> tag). Every class is prefixed nuda- so it never collides with Tailwind or your own styles. Tweak the CSS custom properties to match your design system.
Works in React, Vue, Svelte, Astro, Next.js, Nuxt, Laravel Blade, Django, Rails — or a single .html file. No npm install, no build step.