Skip to content

Pricing Table with Highlighted Plan

Bootstrap 6 pricing cards with a raised dark green Most popular plan, gold accents and a team-size Range slider that recalculates every plan's monthly total.

Also known as: pricing cards highlighted plan, per seat pricing, most popular pricing plan, pricing slider calculator

Pricing Table with Highlighted Plan live demo

Open in new tab

Bootstrap 6 code (HTML, CSS, JS)

A per-seat pricing table built with Bootstrap 6. The "Pro" plan is the obvious choice: it sits in the middle, is taller than its neighbours, uses a dark green surface with gold prices and wears a "Most popular" flag. A team-size slider built with the new Bootstrap 6 Range component recalculates every plan's monthly total. It suits SaaS, agency and studio tool pricing pages.

How it works

The root .php-root has a header with the serif title and a .php-seats box. That box holds a .form-range.theme-success wrapper around input.form-range-input.php-range (1 to 50 seats). A <datalist> connected with the list attribute gives Bootstrap's auto-initialised Range four labelled ticks. An <output class="php-seat-count"> shows the current seat count.

The plans live in .php-plans, a single column on phones. From 768px it becomes a three-column grid, where the outer cards join the middle one into one band. The featured article.php-plan--featured carries data-bs-theme="dark", so Bootstrap's own components inside it, like the btn-solid btn-styled theme-warning button, render in dark mode. Its extra padding makes it overhang the band, and the absolutely positioned .php-flag sits on its top edge.

script.js listens to the slider's input event. For each plan it reads data-seat-price from .php-amount, multiplies it by the seat count, formats it with Intl.NumberFormat and writes it into .php-total. It also updates the output and the slider's aria-valuetext. The featured total gets a short .php-bump pulse.

Customization

  • data-seat-price on each .php-amount: sets the per-seat price used for the totals (keep the visible text in sync).
  • min, max and value on .php-range, plus the <option> values in #php-seat-ticks: change the seat range and tick labels.
  • --php-feature and --php-feature-2 on .php-root: set the two greens of the highlighted card gradient. These also color the slider and the check icons.
  • --php-gold on .php-root: changes the flag, the featured price and its check icons.
  • --php-serif on .php-root: swap Fraunces for another display font (and update the Google Fonts link).
  • Move php-plan--featured, data-bs-theme="dark" and the .php-flag span to another article to highlight a different plan.
  • Change currency in the Intl.NumberFormat call in script.js to show euros or pounds.

Use cases

  • SaaS tools: the Pro plan is raised, dark green and flagged as Most popular
  • Agency and studio pricing: a team-size slider recalculates every plan's monthly total
  • Per-seat products: visitors see the real cost for their own team size
  • Pricing pages: gold prices on the highlighted card draw attention to the best value

Accessibility

The slider has a real <label>, and aria-valuetext reads "10 seats" instead of a bare number. The <output> is linked with for. Each plan is an article labelled by its heading, and the featured plan is also described by its "Most popular" flag. Icons are aria-hidden. Contrast is kept high on the dark card (gold and off-white on deep green). The total pulse is turned off under prefers-reduced-motion.

Bootstrap 6 notes

Bootstrap 5's <input class="form-range"> is now a .form-range wrapper with an input.form-range-input. It auto-initialises, fills the track through --bs-range-fill and renders datalist ticks. btn-outline-secondary becomes btn-outline theme-secondary, and btn-styled adds the gradient finish to the featured button. Dark mode is scoped per element with data-bs-theme. Built on Bootstrap 6.0.0-alpha.1, so APIs may still change. Icons come from Bootstrap Icons, and the headline font is Fraunces from Google Fonts.

Pricing Table with Highlighted Plan at a glance

Framework
Bootstrap 6
Code
HTML, CSS, JavaScript
JavaScript
Vanilla JavaScript, no jQuery
Dependencies
Bootstrap 6, Bootstrap Icons, fonts.googleapis.com
Layout
Responsive, works on mobile
Category
Pricing Tables
License
Free for personal and commercial use

Questions about this template

Can I use the Pricing Table with Highlighted Plan 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 Bootstrap 6 and Bootstrap Icons and fonts.googleapis.com 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.

Does it work on mobile?

Yes. The layout adapts to small screens. Use the Mobile and Tablet buttons above the live demo to check it at phone and tablet width.

Requirements

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

  • <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@6.0.0-alpha.1/dist/css/bootstrap.min.css">
  • <script type="module" src="https://cdn.jsdelivr.net/npm/bootstrap@6.0.0-alpha.1/dist/js/bootstrap.bundle.min.js"></script>
  • <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
  • <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&display=swap">

Built for Bootstrap 6.0.0-alpha.1. Bootstrap 6 ships as an ES module, so its script and this component's JavaScript load with type="module". Alpha releases can still change before the stable version.

Pricing Table with Highlighted Plan – Bootstrap 6 pricing tables component screenshot
Pricing Table with Highlighted Plan · Bootstrap 6 Pricing Tables

More Pricing Tables

Pricing Cards with Billing Toggle – Bootstrap 5 pricing tables preview

Pricing Cards with Billing Toggle

Bootstrap 5 pricing cards with a Monthly / Annual segmented switch that updates prices, savings and yearly totals, plus a highlighted featured plan.

Dark Pricing Section – Bootstrap 6 pricing tables preview

Dark Pricing Section

Dark Bootstrap 6 pricing section with three glass cards, a gradient-bordered recommended plan, a currency Menu and an FAQ link that opens a Drawer with an accordion.

Pricing Comparison Table – Bootstrap 6 pricing tables preview

Pricing Comparison Table

Bootstrap 6 feature comparison table across four plans with check icons, a highlighted Pro column, tooltips, a sticky feature column and an Only differences filter.

Pricing Table with Monthly Yearly Toggle – Bootstrap 6 pricing tables preview

Pricing Table with Monthly Yearly Toggle

Bootstrap 6 three-tier pricing table with a monthly/yearly billing switch that updates every price and billing note, plus a save badge and a popular plan.

Pricing Plan Comparison Table – WordPress pricing tables preview

Pricing Plan Comparison Table

A pricing plan comparison table for the block editor that compares three plans across eight features in a striped table, with prices in the header and plan buttons below.

Three-Tier Pricing Table with Highlighted Plan – WordPress pricing tables preview

Three-Tier Pricing Table with Highlighted Plan

A three-tier pricing table for the block editor with Starter, Pro and Business plans, a highlighted dark Pro plan card, feature lists and full-width buttons.