Skip to content
← back to projects

Case study · 2026 · Personal

tejaverse.org

The hub for the tools — a single page where the blog opens in place, the theme never flashes, and the whole thing is built out of Markdown files.

Stack
Next.js 16 · React 19 · TypeScript · Tailwind · Markdown
Live
tejaverse.org ↗
Source
sangisapusaiteja/tejaverse ↗
Posts
24
Components
7
Projects
3
Lines, largest file
265

The problem

Three tools lived on three subdomains with nothing tying them together, and I wanted somewhere to write about building them without standing up a CMS. The constraints were the useful part: the writing should be plain files in the repository, reading a post should not cost a navigation, and the theme should be correct on the first paint rather than a frame later.

Decisions

  1. 01

    Markdown files are the CMS

    Posts are read from the filesystem at request time and parsed for frontmatter, then sorted newest-first. There is no database and no admin surface — writing a post means adding a file, which is the whole editing experience. The trade is that editing is only accessible to someone with the repository, which for a personal site is the right side of that bargain.

  2. 02

    Posts open in place instead of navigating

    A post expands into an overlay on the same page, rendered from Markdown. That keeps the home page as the only route, and it needed the details done properly rather than a bare modal: focus is trapped while it is open, Escape closes it, and the body scroll is locked so the page behind doesn't move.

  3. 03

    The theme is set before the first paint

    A small blocking script runs in the document head, reads the stored preference (falling back to the system setting), and applies the class before anything renders. The alternative — deciding the theme in an effect after hydration — shows the wrong theme for one frame, which is exactly the frame people notice.

  4. 04

    Semantic tokens instead of colour literals

    Theme values are CSS variables — background, surface, edge, muted, accent — and the Tailwind config maps names onto them, so components refer to a role rather than a hex value. Changing the palette is a change in one place.

Where it stands