Skip to content

Modern, responsive SaaS Pricing Table template with a Monthly/Yearly toggle switch. Built with pure HTML, CSS, and Vanilla JavaScript. No dependencies.

Notifications You must be signed in to change notification settings

hsr88/modern-pricing-table-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

7 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Modern Pricing Table with Toggle ๐Ÿ’ฐ

๐Ÿ‡ต๐Ÿ‡ฑ Wersja polska / Read in Polish

A clean, fully responsive, and modern Pricing Table template built with HTML, CSS, and Vanilla JavaScript. It features a toggle switch for Monthly/Yearly billing with automatic price updates and discount calculations.

Perfect for SaaS landing pages, service providers, and startup projects.

Live Demo ๐Ÿ‘€

๐Ÿ‘‰ Check out the Live Demo here

Pricing Table Preview

Features ๐Ÿš€

  • โšก Zero Dependencies: Built with pure HTML5, CSS3, and JS. No Bootstrap or jQuery required.
  • ๐Ÿ“ฑ Fully Responsive: Stacks cards vertically on mobile devices and uses a grid layout on desktops.
  • ๐Ÿ”„ Interactive Toggle: Switch between Monthly and Yearly billing instantly.
  • ๐Ÿงฎ Auto-Calculation: JavaScript logic handles price switching (e.g., 20% discount visualization).
  • โœจ Modern UI: Hover effects, smooth transitions, and "Best Value" highlighting.
  • ๐Ÿ“‚ Modular: Separated into index.html, style.css, and script.js for easy maintenance.

Project Structure ๐Ÿ“

/
โ”œโ”€โ”€ index.html   # Main HTML structure
โ”œโ”€โ”€ style.css    # All styling and responsive rules
โ”œโ”€โ”€ script.js    # Logic for the pricing toggle
โ””โ”€โ”€ README.md    # Documentation

How to Use โš™๏ธ Clone or Download this repository.

Link the style.css in your tag.

Add the HTML structure to your page.

Link the script.js at the end of your .

Configuration You don't need to touch the JavaScript code to change prices. Simply edit the data-attributes in the HTML file:

HTML

<div class="plan-price" 
     data-monthly="49"     data-yearly="39">     49 zล‚
</div>

Customization ๐ŸŽจ

Colors: Change the main accent color in style.css (look for #6c5ce7).

Currency: Just change the text inside the HTML tags (e.g., replace zล‚ with $).

License ๐Ÿ“„ This project is licensed under the MIT License - feel free to use it in your personal and commercial projects.

Made by [hsr88]

About

Modern, responsive SaaS Pricing Table template with a Monthly/Yearly toggle switch. Built with pure HTML, CSS, and Vanilla JavaScript. No dependencies.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published