Designing a Retro Terminal

20 Nov 2026 | Peter Cornelis

Introduction

Today, I was given the fun task of designing a monitoring dashboard to track our production environments in the office. The idea was to go with a retro terminal theme displayed on an old monitor. Since we already have an application for this, I could solely focus on the design.

The styling

I started off by making a radial gradient background using a soft green at the center that gradually darkens towards the edges. For the text, a monospace font was the ideal fit.

.terminal-theme {
background-color: black;
background-image: radial-gradient(
rgba(0, 140, 80, 0.75), black 120%
);
color: white;
font: 1.3rem monospace;
}

To add to the retro theme, I also implemented a scanline roll (soft darker lines that scroll over the screen) and a glow to text and icons. The scanline was implemented by nesting a ::after pseudo-element in the class. If there is one thing I absolutely love to use in modern CSS, it's nesting! :)

.terminal-theme {
...
&::after {
content: "";
position: fixed;
inset: -4px 0 0;
background: repeating-linear-gradient(
0deg,
rgba(0, 0, 0, 0.15),
rgba(0, 0, 0, 0.4) 1px,
transparent 2px
);
background-size: 100% 4px;
}
}

First, to actually make sure the ::after element is displayed an empty content property was added. Setting the position to fixed makes sure the content stays in place when we would scroll the page. Although in this case, that wouldn't happen too often. The inset was added to extend the overlay. So we don't have a gap as the animation moves. Now, let's go to the fun part, the animation!

.terminal-theme {
...
&::after {
...
animation: scanline-roll 1s linear infinite;
}
}

@keyframes scanline-roll {
to {
transform: translateY(4px);
}
}

This is done quite simply by adding a keyframe that moves the element downwards from its original position. Since we set the pattern to repeat every 4 pixels the same size is used here. After that we just need to add the animation to the element and put it in an infinite loop.

.terminal-theme {
...
&::after {
...
pointer-events: none;
will-change: transform;
}
}

To finish things off, pointer-events: none; was added to make sure the scanline overlay doesn't interfere with any buttons or other interactive elements. Not really needed in this case since it will be used as a wall display, but at least it's future-proof. The will-change property hints the browser about how it is expected to change, allowing performance optimization. Since this animation will constantly be running, it seemed a wise thing to do.

With the scanline effect in place, the text and icons could still use the subtle glow of an old CRT screen to make the look complete.

.terminal-theme {
...
text-shadow: 0 0 4px currentColor;

.glow,
svg {
filter: drop-shadow(0 0 4px currentColor);
}
}

For the text, I used a text-shadow, while SVGs and other elements that needed a glow received a drop-shadow filter. Since currentColor automatically follows the element's text color which the SVGs also use, it allows the glow to follow the color automatically. It wasn't really necessary to set currentColor since this is the default, but for clarity I did this anyway. The downside was that I had to put two components in an extra span element and let it follow the text color using Tailwind's bg-current class.Scherm-afbeelding 2026-11-22 om 13.50.47

Signing off

To finish things of, I also included a typewriter effect, which retypes the page whenever a monitoring change happens and really completed the retro terminal look and feel. I definitely enjoyed designing this terminal themed view, and I hope Ben and my colleagues enjoy it too.



Peter Cornelis

Peter Cornelis

Software Engineer