Tickd.ai
← The Tickd Guide

Inspiration

How to Build a Fictional 1980s Teletext News Terminal in the Browser Using Claude 3.5 Sonnet and SVG

Relive the golden age of broadcast data. Learn how to prompt Claude 3.5 Sonnet to build a fully interactive, retro-styled Ceefax or Oracle-inspired Teletext emulator using vanilla JS and SVG graphics.

Updated 11/2/2026

The Charm of the 8-Colour CRT Grid

Long before the modern web, high-speed fiber, and responsive design, there was Teletext. Known in the UK as Ceefax or ORACLE, and across Europe by various regional names, it was an incredibly basic, shockingly robust information service broadcast directly into cathode-ray tube (CRT) televisions. It offered news, sport, weather, and subtitles using nothing but a mosaic grid of blocky graphics, a strict eight-colour palette, and iconic three-digit page numbers.

Building a functional Teletext emulator in the browser is a brilliant weekend project. It forces you to work within charming, rigid design constraints.

With Claude 3.5 Sonnet, you can bypass the tedious process of manually mapping pixels and let the AI generate a fully interactive, self-contained HTML, CSS, and SVG-driven Teletext terminal. Let’s dive into how to prompt Claude to build this beautifully nostalgic retro component.

Which AI should I use for this?

Tickd is independent and not affiliated with any AI company.

Why Use SVG and Claude 3.5 Sonnet?

To build a true-to-life Teletext emulator, you need pixel-perfect grid rendering and a simulated CRT screen.

  • Why SVG? Teletext graphics are inherently grid-based. Standard web fonts and CSS grids can sometimes suffer from scaling issues across different screens. SVG allows us to define a fixed, vector-based grid (traditionally 40 characters wide by 24 rows high) where every single character and "mosaic pixel" occupies a precise coordinate.
  • Why Claude 3.5 Sonnet? Claude has a superb grasp of structured layout math. It excels at generating clean, semantic SVG code alongside the vanilla JavaScript required to handle keyboard inputs (like typing 100 or 300 to change pages) and updating the screen state dynamically.

To see live examples of how developers are using Claude to build interactive browser-based UI, check out the official Claude Artifacts gallery or explore our curated Claude articles hub.

The Architectural Blueprint: What We Are Building

Our fictional 1980s Teletext news terminal needs several core features to feel authentic:

  1. The Grid (40x24): A fixed SVG container acting as the screen.
  2. The Palette: Strictly limited to black, white, red, green, yellow, blue, magenta, and cyan.
  3. The Retro CRT Effect: CSS scanlines, a subtle screen curvature (using SVG displacement filters), and a slight flicker to mimic phosphor decay.
  4. Interactive Routing: A functional JavaScript routing engine. The user should be able to type three-digit codes (e.g., 100 for Index, 300 for Sport, 400 for Weather) using an on-screen remote control or their physical keyboard to switch "pages."
  5. Flashing Text: A key feature of original Teletext was the flashing attribute for breaking news alerts.

The Prompt: Coaxing the Terminal Out of Claude

To get Claude to build this in one clean go, you need to write a highly structured, descriptive system prompt. We want a single, copy-pasteable HTML file containing all the CSS and JavaScript, making it incredibly easy to run locally or host on GitHub Pages.

Here is the exact prompt to feed Claude 3.5 Sonnet:

`text Write a complete, single-file HTML application that emulates a fictional 1980s British Teletext terminal (inspired by Ceefax and ORACLE).

Use Tailwind CSS for the page layout (to style the desk background), but the actual Teletext terminal must be rendered entirely inside a responsive SVG element acting as a 40x24 character grid.

Key Technical Requirements: 1. Palette: Use only the authentic 8 Teletext colours: Black (#000000), Red (#FF0000), Green (#00FF00), Yellow (#FFFF00), Blue (#0000FF), Magenta (#FF00FF), Cyan (#00FFFF), White (#FFFFFF). 2. Typography: Use a monospaced retro font stack, or render custom blocky text. Characters should fit a strict grid. 3. Interactive Page Router: Implement a JS state manager. Users should be able to type a 3-digit page number on their physical keyboard, or click an on-screen vintage TV remote control to change pages. 4. Implement the following pages: - Page 100: Main Index (links to other pages, colorful welcome header, mock headlines) - Page 300: Sport (football scores, cricket updates, styled with blocky green headers) - Page 400: Weather (a simple pixelated map of the UK using SVG blocks, showing sun/rain icons over regions) - Page 888: Subtitles (a black screen with colored dialogue overlays) 5. Screen Effects: Include a toggle for "CRT Mode" which adds CSS scanlines, a subtle phosphor flicker, and a slight vignette/curving overlay. 6. Authentic UI elements: Include the iconic rolling page header at the top that spins rapidly through random numbers before settling on the selected page when loading, along with a live system clock showing the current time. 7. Ensure all JavaScript is clean, modern vanilla JS, and that the SVG elements update dynamically based on the active page state. `

Analyzing Claude's Implementation

When you run this prompt, Claude 3.5 Sonnet will typically generate a gorgeous, self-contained app. What makes this implementation work so well is how Claude handles the SVG-based characters.

Instead of loading heavy, external .ttf pixel fonts (which can fail to render correctly or lag on slow connections), Claude will often define a lightweight <defs> block in the SVG containing custom path metrics, or dynamically construct monospaced <text> elements with precise x and y coordinates using text-anchor="start" and exact letter-spacing.

For the pixelated UK weather map on page 400, Claude will construct a nested series of <rect> elements, effectively building a local mosaic grid. This is a brilliant demonstration of Claude's structural coding capabilities. It understands how to translate coordinate data into retro visual layouts seamlessly.

How to Customise Your Retro Terminal

Once Claude has output the code, save it as index.html and open it in your browser. You can immediately start customising the content to make it your own:

  • Add Your Own News: Search the HTML file for the page state object (usually const pages = { ... }) and add your own custom pages. How about a tech log on page 200, or a dynamic stock tracker on page 500?
  • Refine the CRT Glitch: You can adjust the CSS keyframes for the phosphor flicker to make it look even more unstable. Try adding a slight horizontal offset to the scanlines to simulate a bad television signal.
  • Physical Keyboard Event Listeners: Ensure that typing any number on your physical keyboard instantly targets the terminal routing, rather than needing to click input boxes. This keeps the user immersion intact.

If you want to integrate this retro terminal into a larger project or hook it up to a real-time API (like importing actual live weather or news feeds), head over to our Claude troubleshooting and development tips to learn how to securely handle external data streams in client-side applications.

claudejavascriptsvginspirationfrontend

Keep going

Build something with the prompt generator, decode the jargon in the glossary, or compare the tools on our platform deep-dives.