Skip to content

News App Topic Picker Onboarding

News app topic picker onboarding screen: follow topics as chips with follower counts, search them and continue once three interests are selected.

Also known as: choose your interests screen, follow topics onboarding, interest picker chips, news app onboarding ui, select categories screen mobile

News App Topic Picker Onboarding live demo

Open in new tab

Tailwind CSS code (HTML, CSS, JS)

A news app topic picker onboarding screen built with Tailwind CSS: readers follow topics as chips with follower counts, search the list and continue once three interests are picked. It is an HTML mobile template for mobile news sites and PWAs and can be packaged as an app with Capacitor. Use it as the "choose your interests" step of a news, magazine or podcast app.

How it works

The root .ntp-app is a phone-width column with a sticky top app bar (back, step progress, Skip), the picker in [data-ntp-picker] and a sticky footer in [data-ntp-foot]. Topics are grouped in .ntp-group sections. Every .ntp-chip is a real <button> with aria-pressed; style.css swaps the plus icon for a check and fills the chip when it is pressed.

script.js counts the pressed chips on every click and updates [data-ntp-count] and the hint ("Pick 1 more to continue"). The Continue button uses aria-disabled instead of disabled, so it stays focusable; while too few topics are chosen a click only re-announces the hint. Typing in [data-ntp-search] filters chips by their .ntp-chip-label, hides empty groups and shows [data-ntp-empty] with a Clear search button when nothing matches. Escape clears the field.

When enough topics are chosen, Continue shows the [data-ntp-done] state. The script builds one .ntp-alert row per topic with an alert .ntp-switch (role="switch"). Edit topics and the back button return to the picker with the selection kept.

Customization

  • data-ntp-min on .ntp-app: the number of topics required before Continue unlocks (default 3).
  • --ntp-accent in style.css: red used for chip icons, chip focus outlines and the alert switches; match it to the bg-red-600 classes on .ntp-continue.
  • --ntp-chip-on in style.css: background of a followed chip (near black by default).
  • Add a topic by copying an .ntp-chip button; set aria-pressed="true" to preselect it.
  • Add a new .ntp-group section with its own h2; search and empty-group hiding pick it up automatically.
  • font-family on .ntp-app: replace Source Sans 3 and update the Google Fonts URL.

Use cases

  • News and magazine apps: personalise the home feed on first launch.
  • Podcast and newsletter apps: choose categories before recommendations load.
  • Community and forum PWAs: follow channels or tags during sign-up.
  • Learning apps: pick subjects of interest before the first lesson.

Accessibility

Chips are toggle buttons with aria-pressed, at least 44 px tall, and the follower count has a visually hidden "followers" suffix so it is read in context. The search field has a label, and the number of matching topics is announced through a polite live region. The selection hint is also a live region. Focus moves to the success heading on Continue and back to the Continue button on Edit topics. All controls show a visible focus outline, and colour transitions are removed under prefers-reduced-motion.

Usage notes

Send the selected labels to your API in the Continue click handler in script.js before showing the done state.

News App Topic Picker Onboarding at a glance

Framework
Tailwind CSS
Code
HTML, CSS, JavaScript
JavaScript
Vanilla JavaScript, no jQuery
Dependencies
Tailwind CSS, fonts.googleapis.com, Bootstrap Icons
Layout
Mobile-first app screen, centred on wider screens
Category
Onboarding Screens
License
Free for personal and commercial use

Questions about this template

Can I use the News App Topic Picker Onboarding code for free?

Yes. You can copy or download the code and use it in personal and commercial projects, including client work. No sign-up is needed. Reselling it as part of a component library or template collection is not allowed; see the license.

How do I add it to my website?

Load Tailwind CSS and fonts.googleapis.com and Bootstrap Icons from a CDN (the links are under Requirements). Paste the HTML where the component should appear, add the CSS to your stylesheet and load the JavaScript before the closing </body> tag. Download HTML gives you a complete page with everything already linked.

Does it need jQuery or a JavaScript framework?

No. The script is plain vanilla JavaScript, so it works without jQuery, React or Vue. You can still use the markup inside those frameworks.

Can I turn this screen into an iOS or Android app?

Yes. It is plain HTML, CSS and JavaScript, so it works in a mobile website or progressive web app as it is. To ship it as a store app, put it in the web folder of a Capacitor or Cordova project and build it for iOS and Android; replace the sample data with calls to your own API.

How does it look on a desktop screen?

The screen is designed for phones. On wider screens it stays at phone width in the middle of the page, so it still looks like an app. The live demo opens at mobile width; use the Tablet and Desktop buttons to check other sizes.

Requirements

Add these to your page (already included in the download):

  • <script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script>
  • <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;600;700&display=swap">
  • <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">

The Tailwind browser build is for prototyping. In production, compile Tailwind with its CLI or your bundler.

News App Topic Picker Onboarding – free Tailwind CSS onboarding screen template
News App Topic Picker Onboarding · free Tailwind CSS onboarding screen template

More Onboarding Screens

Podcast App Onboarding with Show Picker – free Bootstrap 6 onboarding screen template

Podcast App Onboarding with Show Picker

Dark podcast app onboarding screen where users pick at least three shows from a cover grid, with genre filter chips, a live counter and a continue button that unlocks at three.

Recipe App Onboarding with Diet Preferences – free Tailwind CSS onboarding screen template

Recipe App Onboarding with Diet Preferences

Recipe app onboarding screen with diet preference chips, allergy toggles and a cooking skill slider that update a live recipe count and a personalised summary sheet.

Travel App Onboarding with Interests – free Bootstrap 5 onboarding screen template

Travel App Onboarding with Interests

Travel app onboarding screen with swipeable photo intro cards, an interests picker grid and a travel style step that ends in a personalised summary.

Pet Care App Onboarding with Pet Profile – free Tailwind CSS onboarding screen template

Pet Care App Onboarding with Pet Profile

Pet care app onboarding screen: add a dog or cat with name and breed, set age and weight with steppers, opt in to care reminders and watch a live pet profile card update.

Budget App Onboarding with Spending Goals – free Bootstrap 6 onboarding screen template

Budget App Onboarding with Spending Goals

Budget app onboarding screen with a welcome step, spending goal chips, a savings target stepper and an optional bank connect sheet: a mobile finance app setup flow.

Sleep Tracker Onboarding with Bedtime Picker – free Pure CSS onboarding screen template

Sleep Tracker Onboarding with Bedtime Picker

Sleep tracker onboarding screen with a bedtime and wake time picker, a 24-hour sleep dial that computes sleep duration, and a notification opt-in step.