free UI sections and components / app UI
top bar
By Andrea Buttarelli, founder of Feega · Free · Svelte, React, Vue, Astro, HTML
App header with title, search and an account button.
code
<header class="fl-top-bar">
<div class="left">
<a class="mark" href="#" aria-label="Home"><svg class="fl-px" viewBox="0 0 5 5" aria-hidden="true"><path d="M2 0h1v1h-1zM1 1h1v1h-1zM2 1h1v1h-1zM3 1h1v1h-1zM0 2h1v1h-1zM1 2h1v1h-1zM2 2h1v1h-1zM3 2h1v1h-1zM4 2h1v1h-1zM1 3h1v1h-1zM2 3h1v1h-1zM3 3h1v1h-1zM2 4h1v1h-1z" /></svg></a>
<nav aria-label="Breadcrumb">
<ol>
<li><a href="#">Workspace</a></li>
<li><a href="#">Website</a></li>
<li><span aria-current="page">Home page</span></li>
</ol>
</nav>
</div>
<label class="search"><svg class="fl-px" viewBox="0 0 7 7" aria-hidden="true"><path d="M1 0h1v1h-1zM2 0h1v1h-1zM3 0h1v1h-1zM4 0h1v1h-1zM0 1h1v1h-1zM5 1h1v1h-1zM0 2h1v1h-1zM5 2h1v1h-1zM0 3h1v1h-1zM5 3h1v1h-1zM1 4h1v1h-1zM2 4h1v1h-1zM3 4h1v1h-1zM4 4h1v1h-1zM5 5h1v1h-1zM6 6h1v1h-1z" /></svg><input type="search" placeholder="Search or jump to" aria-label="Search" /><kbd>⌘K</kbd></label>
<div class="right">
<button class="icon" type="button" aria-label="Notifications"><svg class="fl-px" viewBox="0 0 8 8" aria-hidden="true"><path d="M3 0h1v1h-1zM4 0h1v1h-1zM2 1h1v1h-1zM3 1h1v1h-1zM4 1h1v1h-1zM5 1h1v1h-1zM1 2h1v1h-1zM2 2h1v1h-1zM3 2h1v1h-1zM4 2h1v1h-1zM5 2h1v1h-1zM6 2h1v1h-1zM1 3h1v1h-1zM2 3h1v1h-1zM3 3h1v1h-1zM4 3h1v1h-1zM5 3h1v1h-1zM6 3h1v1h-1zM1 4h1v1h-1zM2 4h1v1h-1zM3 4h1v1h-1zM4 4h1v1h-1zM5 4h1v1h-1zM6 4h1v1h-1zM0 5h1v1h-1zM1 5h1v1h-1zM2 5h1v1h-1zM3 5h1v1h-1zM4 5h1v1h-1zM5 5h1v1h-1zM6 5h1v1h-1zM7 5h1v1h-1zM3 7h1v1h-1zM4 7h1v1h-1z" /></svg><span class="dot"></span></button>
<span class="fl-avatar" aria-label="Name Surname">NS</span>
<button class="share" type="button">Share</button>
</div>
</header>
<style>
.fl-top-bar{font-family:var(--feega-font);font-size:var(--feega-text-body);line-height:1.5;letter-spacing:var(--feega-tracking);color:var(--feega-fg);background:var(--feega-bg);-webkit-font-smoothing:antialiased}
:where(.fl-top-bar) *,:where(.fl-top-bar) *::before,:where(.fl-top-bar) *::after{box-sizing:border-box}
:where(.fl-top-bar) :is(h1,h2,h3,h4,p,ul,ol,figure,blockquote,dl,dd){margin:0}
:where(.fl-top-bar) a{color:inherit;text-decoration:none}
:where(.fl-top-bar) :focus-visible{outline:2px solid var(--feega-focus);outline-offset:3px}
.fl-px{display:block;flex:none;width:1em;height:auto;fill:currentColor;shape-rendering:crispEdges}
.fl-avatar{display:inline-grid;flex:none;place-items:center;width:32px;height:32px;border-radius:var(--feega-radius-full);background:var(--feega-surface);color:var(--feega-fg-muted);font-size:var(--feega-text-xs);font-weight:600;letter-spacing:0}
.fl-top-bar{display:flex;align-items:center;gap:var(--feega-space-4);height:56px;padding:0 var(--feega-space-3);border-bottom:1px solid var(--feega-line)}
.fl-top-bar .left{display:flex;flex:1;align-items:center;gap:var(--feega-space-2);min-width:0}
.fl-top-bar .mark{display:grid;place-items:center;width:36px;height:36px;border-radius:var(--feega-radius-sm);color:var(--feega-accent);transition:background-color var(--feega-dur-fast) var(--feega-ease)}
.fl-top-bar .mark:hover{background:var(--feega-surface)}
.fl-top-bar .mark .fl-px{width:16px}
.fl-top-bar ol{display:flex;align-items:center;margin:0;padding:0;list-style:none;font-size:var(--feega-text-sm);white-space:nowrap}
.fl-top-bar li{display:flex;align-items:center;min-width:0}
.fl-top-bar li + li::before{content:"/";padding:0 8px;color:var(--feega-line-strong)}
.fl-top-bar li a{color:var(--feega-fg-muted)}
.fl-top-bar li a:hover{color:var(--feega-fg)}
.fl-top-bar li span{overflow:hidden;font-weight:500;text-overflow:ellipsis}
.fl-top-bar .search{display:flex;flex:0 1 320px;align-items:center;gap:8px;height:36px;padding:0 12px;border-radius:var(--feega-radius-full);background:var(--feega-surface);color:var(--feega-fg-subtle);transition:box-shadow var(--feega-dur-fast) var(--feega-ease)}
.fl-top-bar .search:focus-within{box-shadow:inset 0 0 0 1px var(--feega-accent),0 0 0 3px var(--feega-accent-soft)}
.fl-top-bar .search .fl-px{width:12px}
.fl-top-bar .search input{flex:1;min-width:0;border:0;background:transparent;color:var(--feega-fg);font:inherit;font-size:var(--feega-text-sm);outline:none}
.fl-top-bar kbd{font-family:var(--feega-font-mono);font-size:11px}
.fl-top-bar .right{display:flex;flex:1;align-items:center;justify-content:flex-end;gap:var(--feega-space-2)}
.fl-top-bar .icon{position:relative;display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:var(--feega-radius-full);background:transparent;color:var(--feega-fg-muted);cursor:pointer;transition:background-color var(--feega-dur-fast) var(--feega-ease)}
.fl-top-bar .icon:hover{background:var(--feega-surface);color:var(--feega-fg)}
.fl-top-bar .icon .fl-px{width:14px}
.fl-top-bar .dot{position:absolute;top:8px;right:9px;width:7px;height:7px;border-radius:var(--feega-radius-full);background:var(--feega-accent);box-shadow:0 0 0 2px var(--feega-bg)}
.fl-top-bar .share{height:32px;padding:0 14px;border:0;border-radius:var(--feega-radius-full);background:var(--feega-accent);color:var(--feega-accent-fg);font:inherit;font-size:var(--feega-text-sm);font-weight:500;cursor:pointer;transition:background-color var(--feega-dur-fast) var(--feega-ease),transform var(--feega-dur-fast) var(--feega-ease)}
.fl-top-bar .share:hover{background:var(--feega-accent-hover)}
.fl-top-bar .share:active{transform:scale(0.96)}
@media (max-width:760px){.fl-top-bar .search,.fl-top-bar li:not(:last-child){display:none}}
@media (prefers-reduced-motion:reduce){:where([class^="fl-"]) *,:where([class^="fl-"]) *::before,:where([class^="fl-"]) *::after{animation:none!important;transition:none!important}}
</style>
import './TopBar.css';
export function TopBar() {
return (
<header className="fl-top-bar">
<div className="left">
<a className="mark" href="#" aria-label="Home"><svg className="fl-px" viewBox="0 0 5 5" aria-hidden="true"><path d="M2 0h1v1h-1zM1 1h1v1h-1zM2 1h1v1h-1zM3 1h1v1h-1zM0 2h1v1h-1zM1 2h1v1h-1zM2 2h1v1h-1zM3 2h1v1h-1zM4 2h1v1h-1zM1 3h1v1h-1zM2 3h1v1h-1zM3 3h1v1h-1zM2 4h1v1h-1z" /></svg></a>
<nav aria-label="Breadcrumb">
<ol>
<li><a href="#">Workspace</a></li>
<li><a href="#">Website</a></li>
<li><span aria-current="page">Home page</span></li>
</ol>
</nav>
</div>
<label className="search"><svg className="fl-px" viewBox="0 0 7 7" aria-hidden="true"><path d="M1 0h1v1h-1zM2 0h1v1h-1zM3 0h1v1h-1zM4 0h1v1h-1zM0 1h1v1h-1zM5 1h1v1h-1zM0 2h1v1h-1zM5 2h1v1h-1zM0 3h1v1h-1zM5 3h1v1h-1zM1 4h1v1h-1zM2 4h1v1h-1zM3 4h1v1h-1zM4 4h1v1h-1zM5 5h1v1h-1zM6 6h1v1h-1z" /></svg><input type="search" placeholder="Search or jump to" aria-label="Search" /><kbd>⌘K</kbd></label>
<div className="right">
<button className="icon" type="button" aria-label="Notifications"><svg className="fl-px" viewBox="0 0 8 8" aria-hidden="true"><path d="M3 0h1v1h-1zM4 0h1v1h-1zM2 1h1v1h-1zM3 1h1v1h-1zM4 1h1v1h-1zM5 1h1v1h-1zM1 2h1v1h-1zM2 2h1v1h-1zM3 2h1v1h-1zM4 2h1v1h-1zM5 2h1v1h-1zM6 2h1v1h-1zM1 3h1v1h-1zM2 3h1v1h-1zM3 3h1v1h-1zM4 3h1v1h-1zM5 3h1v1h-1zM6 3h1v1h-1zM1 4h1v1h-1zM2 4h1v1h-1zM3 4h1v1h-1zM4 4h1v1h-1zM5 4h1v1h-1zM6 4h1v1h-1zM0 5h1v1h-1zM1 5h1v1h-1zM2 5h1v1h-1zM3 5h1v1h-1zM4 5h1v1h-1zM5 5h1v1h-1zM6 5h1v1h-1zM7 5h1v1h-1zM3 7h1v1h-1zM4 7h1v1h-1z" /></svg><span className="dot"></span></button>
<span className="fl-avatar" aria-label="Name Surname">NS</span>
<button className="share" type="button">Share</button>
</div>
</header>
);
}
.fl-top-bar{font-family:var(--feega-font);font-size:var(--feega-text-body);line-height:1.5;letter-spacing:var(--feega-tracking);color:var(--feega-fg);background:var(--feega-bg);-webkit-font-smoothing:antialiased}
:where(.fl-top-bar) *,:where(.fl-top-bar) *::before,:where(.fl-top-bar) *::after{box-sizing:border-box}
:where(.fl-top-bar) :is(h1,h2,h3,h4,p,ul,ol,figure,blockquote,dl,dd){margin:0}
:where(.fl-top-bar) a{color:inherit;text-decoration:none}
:where(.fl-top-bar) :focus-visible{outline:2px solid var(--feega-focus);outline-offset:3px}
.fl-px{display:block;flex:none;width:1em;height:auto;fill:currentColor;shape-rendering:crispEdges}
.fl-avatar{display:inline-grid;flex:none;place-items:center;width:32px;height:32px;border-radius:var(--feega-radius-full);background:var(--feega-surface);color:var(--feega-fg-muted);font-size:var(--feega-text-xs);font-weight:600;letter-spacing:0}
.fl-top-bar{display:flex;align-items:center;gap:var(--feega-space-4);height:56px;padding:0 var(--feega-space-3);border-bottom:1px solid var(--feega-line)}
.fl-top-bar .left{display:flex;flex:1;align-items:center;gap:var(--feega-space-2);min-width:0}
.fl-top-bar .mark{display:grid;place-items:center;width:36px;height:36px;border-radius:var(--feega-radius-sm);color:var(--feega-accent);transition:background-color var(--feega-dur-fast) var(--feega-ease)}
.fl-top-bar .mark:hover{background:var(--feega-surface)}
.fl-top-bar .mark .fl-px{width:16px}
.fl-top-bar ol{display:flex;align-items:center;margin:0;padding:0;list-style:none;font-size:var(--feega-text-sm);white-space:nowrap}
.fl-top-bar li{display:flex;align-items:center;min-width:0}
.fl-top-bar li + li::before{content:"/";padding:0 8px;color:var(--feega-line-strong)}
.fl-top-bar li a{color:var(--feega-fg-muted)}
.fl-top-bar li a:hover{color:var(--feega-fg)}
.fl-top-bar li span{overflow:hidden;font-weight:500;text-overflow:ellipsis}
.fl-top-bar .search{display:flex;flex:0 1 320px;align-items:center;gap:8px;height:36px;padding:0 12px;border-radius:var(--feega-radius-full);background:var(--feega-surface);color:var(--feega-fg-subtle);transition:box-shadow var(--feega-dur-fast) var(--feega-ease)}
.fl-top-bar .search:focus-within{box-shadow:inset 0 0 0 1px var(--feega-accent),0 0 0 3px var(--feega-accent-soft)}
.fl-top-bar .search .fl-px{width:12px}
.fl-top-bar .search input{flex:1;min-width:0;border:0;background:transparent;color:var(--feega-fg);font:inherit;font-size:var(--feega-text-sm);outline:none}
.fl-top-bar kbd{font-family:var(--feega-font-mono);font-size:11px}
.fl-top-bar .right{display:flex;flex:1;align-items:center;justify-content:flex-end;gap:var(--feega-space-2)}
.fl-top-bar .icon{position:relative;display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:var(--feega-radius-full);background:transparent;color:var(--feega-fg-muted);cursor:pointer;transition:background-color var(--feega-dur-fast) var(--feega-ease)}
.fl-top-bar .icon:hover{background:var(--feega-surface);color:var(--feega-fg)}
.fl-top-bar .icon .fl-px{width:14px}
.fl-top-bar .dot{position:absolute;top:8px;right:9px;width:7px;height:7px;border-radius:var(--feega-radius-full);background:var(--feega-accent);box-shadow:0 0 0 2px var(--feega-bg)}
.fl-top-bar .share{height:32px;padding:0 14px;border:0;border-radius:var(--feega-radius-full);background:var(--feega-accent);color:var(--feega-accent-fg);font:inherit;font-size:var(--feega-text-sm);font-weight:500;cursor:pointer;transition:background-color var(--feega-dur-fast) var(--feega-ease),transform var(--feega-dur-fast) var(--feega-ease)}
.fl-top-bar .share:hover{background:var(--feega-accent-hover)}
.fl-top-bar .share:active{transform:scale(0.96)}
@media (max-width:760px){.fl-top-bar .search,.fl-top-bar li:not(:last-child){display:none}}
@media (prefers-reduced-motion:reduce){:where([class^="fl-"]) *,:where([class^="fl-"]) *::before,:where([class^="fl-"]) *::after{animation:none!important;transition:none!important}}
<template>
<header class="fl-top-bar">
<div class="left">
<a class="mark" href="#" aria-label="Home"><svg class="fl-px" viewBox="0 0 5 5" aria-hidden="true"><path d="M2 0h1v1h-1zM1 1h1v1h-1zM2 1h1v1h-1zM3 1h1v1h-1zM0 2h1v1h-1zM1 2h1v1h-1zM2 2h1v1h-1zM3 2h1v1h-1zM4 2h1v1h-1zM1 3h1v1h-1zM2 3h1v1h-1zM3 3h1v1h-1zM2 4h1v1h-1z" /></svg></a>
<nav aria-label="Breadcrumb">
<ol>
<li><a href="#">Workspace</a></li>
<li><a href="#">Website</a></li>
<li><span aria-current="page">Home page</span></li>
</ol>
</nav>
</div>
<label class="search"><svg class="fl-px" viewBox="0 0 7 7" aria-hidden="true"><path d="M1 0h1v1h-1zM2 0h1v1h-1zM3 0h1v1h-1zM4 0h1v1h-1zM0 1h1v1h-1zM5 1h1v1h-1zM0 2h1v1h-1zM5 2h1v1h-1zM0 3h1v1h-1zM5 3h1v1h-1zM1 4h1v1h-1zM2 4h1v1h-1zM3 4h1v1h-1zM4 4h1v1h-1zM5 5h1v1h-1zM6 6h1v1h-1z" /></svg><input type="search" placeholder="Search or jump to" aria-label="Search" /><kbd>⌘K</kbd></label>
<div class="right">
<button class="icon" type="button" aria-label="Notifications"><svg class="fl-px" viewBox="0 0 8 8" aria-hidden="true"><path d="M3 0h1v1h-1zM4 0h1v1h-1zM2 1h1v1h-1zM3 1h1v1h-1zM4 1h1v1h-1zM5 1h1v1h-1zM1 2h1v1h-1zM2 2h1v1h-1zM3 2h1v1h-1zM4 2h1v1h-1zM5 2h1v1h-1zM6 2h1v1h-1zM1 3h1v1h-1zM2 3h1v1h-1zM3 3h1v1h-1zM4 3h1v1h-1zM5 3h1v1h-1zM6 3h1v1h-1zM1 4h1v1h-1zM2 4h1v1h-1zM3 4h1v1h-1zM4 4h1v1h-1zM5 4h1v1h-1zM6 4h1v1h-1zM0 5h1v1h-1zM1 5h1v1h-1zM2 5h1v1h-1zM3 5h1v1h-1zM4 5h1v1h-1zM5 5h1v1h-1zM6 5h1v1h-1zM7 5h1v1h-1zM3 7h1v1h-1zM4 7h1v1h-1z" /></svg><span class="dot"></span></button>
<span class="fl-avatar" aria-label="Name Surname">NS</span>
<button class="share" type="button">Share</button>
</div>
</header>
</template>
<style scoped>
.fl-top-bar{font-family:var(--feega-font);font-size:var(--feega-text-body);line-height:1.5;letter-spacing:var(--feega-tracking);color:var(--feega-fg);background:var(--feega-bg);-webkit-font-smoothing:antialiased}
:where(.fl-top-bar) *,:where(.fl-top-bar) *::before,:where(.fl-top-bar) *::after{box-sizing:border-box}
:where(.fl-top-bar) :is(h1,h2,h3,h4,p,ul,ol,figure,blockquote,dl,dd){margin:0}
:where(.fl-top-bar) a{color:inherit;text-decoration:none}
:where(.fl-top-bar) :focus-visible{outline:2px solid var(--feega-focus);outline-offset:3px}
.fl-px{display:block;flex:none;width:1em;height:auto;fill:currentColor;shape-rendering:crispEdges}
.fl-avatar{display:inline-grid;flex:none;place-items:center;width:32px;height:32px;border-radius:var(--feega-radius-full);background:var(--feega-surface);color:var(--feega-fg-muted);font-size:var(--feega-text-xs);font-weight:600;letter-spacing:0}
.fl-top-bar{display:flex;align-items:center;gap:var(--feega-space-4);height:56px;padding:0 var(--feega-space-3);border-bottom:1px solid var(--feega-line)}
.fl-top-bar .left{display:flex;flex:1;align-items:center;gap:var(--feega-space-2);min-width:0}
.fl-top-bar .mark{display:grid;place-items:center;width:36px;height:36px;border-radius:var(--feega-radius-sm);color:var(--feega-accent);transition:background-color var(--feega-dur-fast) var(--feega-ease)}
.fl-top-bar .mark:hover{background:var(--feega-surface)}
.fl-top-bar .mark .fl-px{width:16px}
.fl-top-bar ol{display:flex;align-items:center;margin:0;padding:0;list-style:none;font-size:var(--feega-text-sm);white-space:nowrap}
.fl-top-bar li{display:flex;align-items:center;min-width:0}
.fl-top-bar li + li::before{content:"/";padding:0 8px;color:var(--feega-line-strong)}
.fl-top-bar li a{color:var(--feega-fg-muted)}
.fl-top-bar li a:hover{color:var(--feega-fg)}
.fl-top-bar li span{overflow:hidden;font-weight:500;text-overflow:ellipsis}
.fl-top-bar .search{display:flex;flex:0 1 320px;align-items:center;gap:8px;height:36px;padding:0 12px;border-radius:var(--feega-radius-full);background:var(--feega-surface);color:var(--feega-fg-subtle);transition:box-shadow var(--feega-dur-fast) var(--feega-ease)}
.fl-top-bar .search:focus-within{box-shadow:inset 0 0 0 1px var(--feega-accent),0 0 0 3px var(--feega-accent-soft)}
.fl-top-bar .search .fl-px{width:12px}
.fl-top-bar .search input{flex:1;min-width:0;border:0;background:transparent;color:var(--feega-fg);font:inherit;font-size:var(--feega-text-sm);outline:none}
.fl-top-bar kbd{font-family:var(--feega-font-mono);font-size:11px}
.fl-top-bar .right{display:flex;flex:1;align-items:center;justify-content:flex-end;gap:var(--feega-space-2)}
.fl-top-bar .icon{position:relative;display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:var(--feega-radius-full);background:transparent;color:var(--feega-fg-muted);cursor:pointer;transition:background-color var(--feega-dur-fast) var(--feega-ease)}
.fl-top-bar .icon:hover{background:var(--feega-surface);color:var(--feega-fg)}
.fl-top-bar .icon .fl-px{width:14px}
.fl-top-bar .dot{position:absolute;top:8px;right:9px;width:7px;height:7px;border-radius:var(--feega-radius-full);background:var(--feega-accent);box-shadow:0 0 0 2px var(--feega-bg)}
.fl-top-bar .share{height:32px;padding:0 14px;border:0;border-radius:var(--feega-radius-full);background:var(--feega-accent);color:var(--feega-accent-fg);font:inherit;font-size:var(--feega-text-sm);font-weight:500;cursor:pointer;transition:background-color var(--feega-dur-fast) var(--feega-ease),transform var(--feega-dur-fast) var(--feega-ease)}
.fl-top-bar .share:hover{background:var(--feega-accent-hover)}
.fl-top-bar .share:active{transform:scale(0.96)}
@media (max-width:760px){.fl-top-bar .search,.fl-top-bar li:not(:last-child){display:none}}
@media (prefers-reduced-motion:reduce){:where([class^="fl-"]) *,:where([class^="fl-"]) *::before,:where([class^="fl-"]) *::after{animation:none!important;transition:none!important}}
</style>
---
---
<header class="fl-top-bar">
<div class="left">
<a class="mark" href="#" aria-label="Home"><svg class="fl-px" viewBox="0 0 5 5" aria-hidden="true"><path d="M2 0h1v1h-1zM1 1h1v1h-1zM2 1h1v1h-1zM3 1h1v1h-1zM0 2h1v1h-1zM1 2h1v1h-1zM2 2h1v1h-1zM3 2h1v1h-1zM4 2h1v1h-1zM1 3h1v1h-1zM2 3h1v1h-1zM3 3h1v1h-1zM2 4h1v1h-1z" /></svg></a>
<nav aria-label="Breadcrumb">
<ol>
<li><a href="#">Workspace</a></li>
<li><a href="#">Website</a></li>
<li><span aria-current="page">Home page</span></li>
</ol>
</nav>
</div>
<label class="search"><svg class="fl-px" viewBox="0 0 7 7" aria-hidden="true"><path d="M1 0h1v1h-1zM2 0h1v1h-1zM3 0h1v1h-1zM4 0h1v1h-1zM0 1h1v1h-1zM5 1h1v1h-1zM0 2h1v1h-1zM5 2h1v1h-1zM0 3h1v1h-1zM5 3h1v1h-1zM1 4h1v1h-1zM2 4h1v1h-1zM3 4h1v1h-1zM4 4h1v1h-1zM5 5h1v1h-1zM6 6h1v1h-1z" /></svg><input type="search" placeholder="Search or jump to" aria-label="Search" /><kbd>⌘K</kbd></label>
<div class="right">
<button class="icon" type="button" aria-label="Notifications"><svg class="fl-px" viewBox="0 0 8 8" aria-hidden="true"><path d="M3 0h1v1h-1zM4 0h1v1h-1zM2 1h1v1h-1zM3 1h1v1h-1zM4 1h1v1h-1zM5 1h1v1h-1zM1 2h1v1h-1zM2 2h1v1h-1zM3 2h1v1h-1zM4 2h1v1h-1zM5 2h1v1h-1zM6 2h1v1h-1zM1 3h1v1h-1zM2 3h1v1h-1zM3 3h1v1h-1zM4 3h1v1h-1zM5 3h1v1h-1zM6 3h1v1h-1zM1 4h1v1h-1zM2 4h1v1h-1zM3 4h1v1h-1zM4 4h1v1h-1zM5 4h1v1h-1zM6 4h1v1h-1zM0 5h1v1h-1zM1 5h1v1h-1zM2 5h1v1h-1zM3 5h1v1h-1zM4 5h1v1h-1zM5 5h1v1h-1zM6 5h1v1h-1zM7 5h1v1h-1zM3 7h1v1h-1zM4 7h1v1h-1z" /></svg><span class="dot"></span></button>
<span class="fl-avatar" aria-label="Name Surname">NS</span>
<button class="share" type="button">Share</button>
</div>
</header>
<style>
.fl-top-bar{font-family:var(--feega-font);font-size:var(--feega-text-body);line-height:1.5;letter-spacing:var(--feega-tracking);color:var(--feega-fg);background:var(--feega-bg);-webkit-font-smoothing:antialiased}
:where(.fl-top-bar) *,:where(.fl-top-bar) *::before,:where(.fl-top-bar) *::after{box-sizing:border-box}
:where(.fl-top-bar) :is(h1,h2,h3,h4,p,ul,ol,figure,blockquote,dl,dd){margin:0}
:where(.fl-top-bar) a{color:inherit;text-decoration:none}
:where(.fl-top-bar) :focus-visible{outline:2px solid var(--feega-focus);outline-offset:3px}
.fl-px{display:block;flex:none;width:1em;height:auto;fill:currentColor;shape-rendering:crispEdges}
.fl-avatar{display:inline-grid;flex:none;place-items:center;width:32px;height:32px;border-radius:var(--feega-radius-full);background:var(--feega-surface);color:var(--feega-fg-muted);font-size:var(--feega-text-xs);font-weight:600;letter-spacing:0}
.fl-top-bar{display:flex;align-items:center;gap:var(--feega-space-4);height:56px;padding:0 var(--feega-space-3);border-bottom:1px solid var(--feega-line)}
.fl-top-bar .left{display:flex;flex:1;align-items:center;gap:var(--feega-space-2);min-width:0}
.fl-top-bar .mark{display:grid;place-items:center;width:36px;height:36px;border-radius:var(--feega-radius-sm);color:var(--feega-accent);transition:background-color var(--feega-dur-fast) var(--feega-ease)}
.fl-top-bar .mark:hover{background:var(--feega-surface)}
.fl-top-bar .mark .fl-px{width:16px}
.fl-top-bar ol{display:flex;align-items:center;margin:0;padding:0;list-style:none;font-size:var(--feega-text-sm);white-space:nowrap}
.fl-top-bar li{display:flex;align-items:center;min-width:0}
.fl-top-bar li + li::before{content:"/";padding:0 8px;color:var(--feega-line-strong)}
.fl-top-bar li a{color:var(--feega-fg-muted)}
.fl-top-bar li a:hover{color:var(--feega-fg)}
.fl-top-bar li span{overflow:hidden;font-weight:500;text-overflow:ellipsis}
.fl-top-bar .search{display:flex;flex:0 1 320px;align-items:center;gap:8px;height:36px;padding:0 12px;border-radius:var(--feega-radius-full);background:var(--feega-surface);color:var(--feega-fg-subtle);transition:box-shadow var(--feega-dur-fast) var(--feega-ease)}
.fl-top-bar .search:focus-within{box-shadow:inset 0 0 0 1px var(--feega-accent),0 0 0 3px var(--feega-accent-soft)}
.fl-top-bar .search .fl-px{width:12px}
.fl-top-bar .search input{flex:1;min-width:0;border:0;background:transparent;color:var(--feega-fg);font:inherit;font-size:var(--feega-text-sm);outline:none}
.fl-top-bar kbd{font-family:var(--feega-font-mono);font-size:11px}
.fl-top-bar .right{display:flex;flex:1;align-items:center;justify-content:flex-end;gap:var(--feega-space-2)}
.fl-top-bar .icon{position:relative;display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:var(--feega-radius-full);background:transparent;color:var(--feega-fg-muted);cursor:pointer;transition:background-color var(--feega-dur-fast) var(--feega-ease)}
.fl-top-bar .icon:hover{background:var(--feega-surface);color:var(--feega-fg)}
.fl-top-bar .icon .fl-px{width:14px}
.fl-top-bar .dot{position:absolute;top:8px;right:9px;width:7px;height:7px;border-radius:var(--feega-radius-full);background:var(--feega-accent);box-shadow:0 0 0 2px var(--feega-bg)}
.fl-top-bar .share{height:32px;padding:0 14px;border:0;border-radius:var(--feega-radius-full);background:var(--feega-accent);color:var(--feega-accent-fg);font:inherit;font-size:var(--feega-text-sm);font-weight:500;cursor:pointer;transition:background-color var(--feega-dur-fast) var(--feega-ease),transform var(--feega-dur-fast) var(--feega-ease)}
.fl-top-bar .share:hover{background:var(--feega-accent-hover)}
.fl-top-bar .share:active{transform:scale(0.96)}
@media (max-width:760px){.fl-top-bar .search,.fl-top-bar li:not(:last-child){display:none}}
@media (prefers-reduced-motion:reduce){:where([class^="fl-"]) *,:where([class^="fl-"]) *::before,:where([class^="fl-"]) *::after{animation:none!important;transition:none!important}}
</style>
<header class="fl-top-bar">
<div class="left">
<a class="mark" href="#" aria-label="Home"><svg class="fl-px" viewBox="0 0 5 5" aria-hidden="true"><path d="M2 0h1v1h-1zM1 1h1v1h-1zM2 1h1v1h-1zM3 1h1v1h-1zM0 2h1v1h-1zM1 2h1v1h-1zM2 2h1v1h-1zM3 2h1v1h-1zM4 2h1v1h-1zM1 3h1v1h-1zM2 3h1v1h-1zM3 3h1v1h-1zM2 4h1v1h-1z" /></svg></a>
<nav aria-label="Breadcrumb">
<ol>
<li><a href="#">Workspace</a></li>
<li><a href="#">Website</a></li>
<li><span aria-current="page">Home page</span></li>
</ol>
</nav>
</div>
<label class="search"><svg class="fl-px" viewBox="0 0 7 7" aria-hidden="true"><path d="M1 0h1v1h-1zM2 0h1v1h-1zM3 0h1v1h-1zM4 0h1v1h-1zM0 1h1v1h-1zM5 1h1v1h-1zM0 2h1v1h-1zM5 2h1v1h-1zM0 3h1v1h-1zM5 3h1v1h-1zM1 4h1v1h-1zM2 4h1v1h-1zM3 4h1v1h-1zM4 4h1v1h-1zM5 5h1v1h-1zM6 6h1v1h-1z" /></svg><input type="search" placeholder="Search or jump to" aria-label="Search" /><kbd>⌘K</kbd></label>
<div class="right">
<button class="icon" type="button" aria-label="Notifications"><svg class="fl-px" viewBox="0 0 8 8" aria-hidden="true"><path d="M3 0h1v1h-1zM4 0h1v1h-1zM2 1h1v1h-1zM3 1h1v1h-1zM4 1h1v1h-1zM5 1h1v1h-1zM1 2h1v1h-1zM2 2h1v1h-1zM3 2h1v1h-1zM4 2h1v1h-1zM5 2h1v1h-1zM6 2h1v1h-1zM1 3h1v1h-1zM2 3h1v1h-1zM3 3h1v1h-1zM4 3h1v1h-1zM5 3h1v1h-1zM6 3h1v1h-1zM1 4h1v1h-1zM2 4h1v1h-1zM3 4h1v1h-1zM4 4h1v1h-1zM5 4h1v1h-1zM6 4h1v1h-1zM0 5h1v1h-1zM1 5h1v1h-1zM2 5h1v1h-1zM3 5h1v1h-1zM4 5h1v1h-1zM5 5h1v1h-1zM6 5h1v1h-1zM7 5h1v1h-1zM3 7h1v1h-1zM4 7h1v1h-1z" /></svg><span class="dot"></span></button>
<span class="fl-avatar" aria-label="Name Surname">NS</span>
<button class="share" type="button">Share</button>
</div>
</header>
.fl-top-bar{font-family:var(--feega-font);font-size:var(--feega-text-body);line-height:1.5;letter-spacing:var(--feega-tracking);color:var(--feega-fg);background:var(--feega-bg);-webkit-font-smoothing:antialiased}
:where(.fl-top-bar) *,:where(.fl-top-bar) *::before,:where(.fl-top-bar) *::after{box-sizing:border-box}
:where(.fl-top-bar) :is(h1,h2,h3,h4,p,ul,ol,figure,blockquote,dl,dd){margin:0}
:where(.fl-top-bar) a{color:inherit;text-decoration:none}
:where(.fl-top-bar) :focus-visible{outline:2px solid var(--feega-focus);outline-offset:3px}
.fl-px{display:block;flex:none;width:1em;height:auto;fill:currentColor;shape-rendering:crispEdges}
.fl-avatar{display:inline-grid;flex:none;place-items:center;width:32px;height:32px;border-radius:var(--feega-radius-full);background:var(--feega-surface);color:var(--feega-fg-muted);font-size:var(--feega-text-xs);font-weight:600;letter-spacing:0}
.fl-top-bar{display:flex;align-items:center;gap:var(--feega-space-4);height:56px;padding:0 var(--feega-space-3);border-bottom:1px solid var(--feega-line)}
.fl-top-bar .left{display:flex;flex:1;align-items:center;gap:var(--feega-space-2);min-width:0}
.fl-top-bar .mark{display:grid;place-items:center;width:36px;height:36px;border-radius:var(--feega-radius-sm);color:var(--feega-accent);transition:background-color var(--feega-dur-fast) var(--feega-ease)}
.fl-top-bar .mark:hover{background:var(--feega-surface)}
.fl-top-bar .mark .fl-px{width:16px}
.fl-top-bar ol{display:flex;align-items:center;margin:0;padding:0;list-style:none;font-size:var(--feega-text-sm);white-space:nowrap}
.fl-top-bar li{display:flex;align-items:center;min-width:0}
.fl-top-bar li + li::before{content:"/";padding:0 8px;color:var(--feega-line-strong)}
.fl-top-bar li a{color:var(--feega-fg-muted)}
.fl-top-bar li a:hover{color:var(--feega-fg)}
.fl-top-bar li span{overflow:hidden;font-weight:500;text-overflow:ellipsis}
.fl-top-bar .search{display:flex;flex:0 1 320px;align-items:center;gap:8px;height:36px;padding:0 12px;border-radius:var(--feega-radius-full);background:var(--feega-surface);color:var(--feega-fg-subtle);transition:box-shadow var(--feega-dur-fast) var(--feega-ease)}
.fl-top-bar .search:focus-within{box-shadow:inset 0 0 0 1px var(--feega-accent),0 0 0 3px var(--feega-accent-soft)}
.fl-top-bar .search .fl-px{width:12px}
.fl-top-bar .search input{flex:1;min-width:0;border:0;background:transparent;color:var(--feega-fg);font:inherit;font-size:var(--feega-text-sm);outline:none}
.fl-top-bar kbd{font-family:var(--feega-font-mono);font-size:11px}
.fl-top-bar .right{display:flex;flex:1;align-items:center;justify-content:flex-end;gap:var(--feega-space-2)}
.fl-top-bar .icon{position:relative;display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:var(--feega-radius-full);background:transparent;color:var(--feega-fg-muted);cursor:pointer;transition:background-color var(--feega-dur-fast) var(--feega-ease)}
.fl-top-bar .icon:hover{background:var(--feega-surface);color:var(--feega-fg)}
.fl-top-bar .icon .fl-px{width:14px}
.fl-top-bar .dot{position:absolute;top:8px;right:9px;width:7px;height:7px;border-radius:var(--feega-radius-full);background:var(--feega-accent);box-shadow:0 0 0 2px var(--feega-bg)}
.fl-top-bar .share{height:32px;padding:0 14px;border:0;border-radius:var(--feega-radius-full);background:var(--feega-accent);color:var(--feega-accent-fg);font:inherit;font-size:var(--feega-text-sm);font-weight:500;cursor:pointer;transition:background-color var(--feega-dur-fast) var(--feega-ease),transform var(--feega-dur-fast) var(--feega-ease)}
.fl-top-bar .share:hover{background:var(--feega-accent-hover)}
.fl-top-bar .share:active{transform:scale(0.96)}
@media (max-width:760px){.fl-top-bar .search,.fl-top-bar li:not(:last-child){display:none}}
@media (prefers-reduced-motion:reduce){:where([class^="fl-"]) *,:where([class^="fl-"]) *::before,:where([class^="fl-"]) *::after{animation:none!important;transition:none!important}}
tokens.css, the shared file every template reads
:root,
[data-theme="light"] {
color-scheme: light;
--feega-bg: #f7f6f2;
--feega-surface: #efede7;
--feega-raised: #ffffff;
--feega-input: #ffffff;
--feega-fg: #121212;
--feega-fg-muted: #5c5a55;
--feega-fg-subtle: #6d6a63;
--feega-line: #e2dfd7;
--feega-line-strong: #cdc9bf;
--feega-dot: #d3cfc5;
--feega-accent: #ff4f00;
--feega-accent-hover: #ff6a26;
--feega-accent-fg: #121212;
--feega-accent-soft: #ffe8dc;
--feega-accent-text: #b83800;
--feega-danger: #c0231a;
--feega-danger-fg: #ffffff;
--feega-danger-soft: #fde6e3;
--feega-success: #12703a;
--feega-success-soft: #e0f3e6;
--feega-focus: #ff4f00;
--feega-overlay: rgb(18 18 18 / 0.4);
--feega-shadow: 0 1px 2px rgb(18 18 18 / 0.05), 0 8px 24px -8px rgb(18 18 18 / 0.12);
--feega-shadow-float: 0 2px 4px rgb(18 18 18 / 0.06), 0 24px 48px -12px rgb(18 18 18 / 0.22);
--feega-radius-xs: 2px;
--feega-radius-sm: 6px;
--feega-radius-md: 10px;
--feega-radius-lg: 16px;
--feega-radius-full: 999px;
--feega-font: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
--feega-font-display: var(--feega-font);
--feega-font-mono: "Fragment Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
--feega-tracking: -0.02em;
--feega-tracking-tight: -0.05em;
--feega-text-xs: 0.75rem;
--feega-text-sm: 0.875rem;
--feega-text-body: 1rem;
--feega-text-lg: clamp(1.0625rem, 1.6vw, 1.25rem);
--feega-text-xl: 1.5rem;
--feega-text-title: clamp(2.5rem, 6vw, 4.5rem);
--feega-text-display: clamp(3rem, 9.5vw, 7rem);
--feega-ease: cubic-bezier(0.16, 1, 0.3, 1);
--feega-dur-fast: 160ms;
--feega-dur: 420ms;
--feega-space-1: 0.25rem;
--feega-space-2: 0.5rem;
--feega-space-3: 0.75rem;
--feega-space-4: 1rem;
--feega-space-6: 1.5rem;
--feega-space-8: 2rem;
--feega-space-12: 3rem;
--feega-space-16: 4rem;
--feega-space-section: clamp(4.5rem, 11vw, 9rem);
--feega-gutter: clamp(1rem, 4vw, 2rem);
--feega-max-width: 76rem;
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) {
color-scheme: dark;
--feega-bg: #050505;
--feega-surface: #121212;
--feega-raised: #1a1a1a;
--feega-input: #0d0d0d;
--feega-fg: #f0eee9;
--feega-fg-muted: #a3a09a;
--feega-fg-subtle: #8a877f;
--feega-line: #232323;
--feega-line-strong: #363636;
--feega-dot: #2c2c2c;
--feega-accent: #ff5a14;
--feega-accent-hover: #ff7333;
--feega-accent-fg: #121212;
--feega-accent-soft: #2b1206;
--feega-accent-text: #ff7a3d;
--feega-danger: #ff6b5e;
--feega-danger-fg: #121212;
--feega-danger-soft: #2e0f0c;
--feega-success: #4cc47a;
--feega-success-soft: #0d2617;
--feega-focus: #ff5a14;
--feega-overlay: rgb(0 0 0 / 0.7);
--feega-shadow: 0 1px 2px rgb(0 0 0 / 0.5), 0 8px 24px -8px rgb(0 0 0 / 0.6);
--feega-shadow-float: 0 2px 4px rgb(0 0 0 / 0.5), 0 24px 48px -12px rgb(0 0 0 / 0.8);
}
}
[data-theme="dark"] {
color-scheme: dark;
--feega-bg: #050505;
--feega-surface: #121212;
--feega-raised: #1a1a1a;
--feega-input: #0d0d0d;
--feega-fg: #f0eee9;
--feega-fg-muted: #a3a09a;
--feega-fg-subtle: #8a877f;
--feega-line: #232323;
--feega-line-strong: #363636;
--feega-dot: #2c2c2c;
--feega-accent: #ff5a14;
--feega-accent-hover: #ff7333;
--feega-accent-fg: #121212;
--feega-accent-soft: #2b1206;
--feega-accent-text: #ff7a3d;
--feega-danger: #ff6b5e;
--feega-danger-fg: #121212;
--feega-danger-soft: #2e0f0c;
--feega-success: #4cc47a;
--feega-success-soft: #0d2617;
--feega-focus: #ff5a14;
--feega-overlay: rgb(0 0 0 / 0.7);
--feega-shadow: 0 1px 2px rgb(0 0 0 / 0.5), 0 8px 24px -8px rgb(0 0 0 / 0.6);
--feega-shadow-float: 0 2px 4px rgb(0 0 0 / 0.5), 0 24px 48px -12px rgb(0 0 0 / 0.8);
}
what it is
Top bar is a free app UI piece. App header with title, search and an account button. It is tagged navigation, header and search.
It is markup and CSS only, with no script in any version.
Size per version: Svelte 1 file, 55 lines; React 2 files, 59 lines; Vue 1 file, 57 lines; Astro 1 file, 58 lines; HTML 2 files, 53 lines.
tokens this template reads
| Token | Controls | Uses |
|---|---|---|
| --feega-dur-fast | the short animation duration | 5 |
| --feega-ease | the animation curve | 5 |
| --feega-radius-full | fully round pills and buttons | 5 |
| --feega-accent | the brand colour on primary actions | 4 |
| --feega-fg | main text | 4 |
| --feega-surface | quiet panels and chips | 4 |
| --feega-fg-muted | secondary text | 3 |
| --feega-text-sm | small text size | 3 |
| --feega-bg | the page background | 2 |
| --feega-space-2 | spacing step 2 | 2 |
| --feega-accent-fg | text on top of the accent | 1 |
| --feega-accent-hover | the accent on hover | 1 |
To restyle it, set any of these custom properties on :root, or on an ancestor of the template to change it in one place only. For example, --feega-accent changes the brand colour in light and dark alike. Add the shared tokens.css once per project.
fonts
It uses Inter Tight (400, 500, 600) and Fragment Mono (400) from Google Fonts. Without them the font tokens fall back to a system stack.
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600&family=Fragment+Mono:wght@400&display=swap" />insert with Feega
Open Add, then Library, and click Insert or drag it into your running app. Feega writes the component, tokens and fonts for your framework. One undo. how it works
Free VS Code extension. No account, no AI.
get feega →