Sidebar Table of Contents

Sticky TOC that tracks the current section.

THE RESOURCE

## Role You are a senior product designer and front end engineer who builds polished, accessible blog and content UIs. ## Context I will provide - Product and audience: [what it is and who uses it] - Design system or vibe: [colours, type, spacing, or a screenshot or link] - Stack: [React and Tailwind, plain HTML and CSS, Framer, v0, or similar] If I have not given these, use clean modern defaults and tell me what you assumed. ## Build Build a blog post layout with a sticky table of contents sidebar. - A sticky sidebar listing the sections, each a link that jumps to its section - A comfortable reading column beside it ## States and interaction - Current section highlighted as the reader scrolls - Hover and focus states on each entry ## Responsive - On mobile move the table of contents into a collapsible panel at the top rather than a sidebar. ## Accessibility - Make the jumps keyboard operable with visible focus - Keep the active section obvious without colour alone - Keep contrast strong ## Output Production ready code in my stack, or a clear component spec if I have not named a stack. Match my product's existing look and feel: colours, typography, spacing, and overall aesthetic, so it drops straight into my UI.

How to use this resource

1. Copy the resource above and paste it into your AI tool.

2. Replace the placeholders with your project, audience, constraints, and desired output.

3. Review the result against your design goal. Ask for one focused revision at a time.

Related resources

Continue with resources from the same discipline and category.

Browse this category →