Brutalist Style Navbar Template
The "Bold and Brutalist" navbar is a website navbar done in a brutalist style. It's mobile-responsive and accessible. Copy and paste the code straight into your own web projects.

Features
This navbar captures the brutalist aesthetic with its high-contrast, sharp-edged, and unrefined style. It's intentionally stark and functional, rejecting soft gradients and shadows in favor of raw, blocky elements.
- Aesthetic: Blocky elements and sharp corners. Pure black and white for maximum contrast, with a single, vibrant accent color (yellow) for interaction. No gradients or shadows.
- Typography: A monospace font stack is used to give it a raw, "code-like" feel.
- Design Elements: All
border-radius
is set to zero for sharp corners. Thick, solid borders are used to create a blocky, contained look. - Hover/Focus Effects: Instead of subtle fades, it uses a stark inversion effect (background and text colors swap) for immediate and clear feedback.
- Accessibility: Fully accessible with semantic HTML, ARIA attributes for the mobile toggle, high-contrast colors, and distinct
:focus-visible
states for keyboard users. - Structure: Uses a robust, mobile-first HTML, CSS, and JavaScript foundation.
Code
Here's the full code for the navbar template: