You Don't Need JavaScript

A practical guide for building modern components with CSS

You Don’t Need JavaScript is a complete, 125-page book packed with modern CSS techniques, real-world examples, and step-by-step tutorials. Learn how to replace unnecessary JavaScript with lightweight CSS components that are faster, easier to maintain, and future-proof.

Buy now

Do you want to see a preview first? Download a preview.

You don't need JavaScript ebook cover

What you will learn

Create a popover menu with pure CSS

Thanks to the Popover API, you can build an accessible drawer menu that works seamlessly across almost all devices. This technique can be extended to create a variety of interactive components.

Create accessible accordions easily in CSS

Using semantic HTML and modern CSS, you can build accordions that are fully accessible and work seamlessly across devices. Perfect for FAQs, content toggles, and more.

Create stunning scroll-driven animations 100% CSS

Discover how to use CSS and a sprinkle of modern APIs to animate elements on scroll, adding interactivity and depth to your pages while keeping performance in mind.

And a lot more...

Explore advanced components you never thought possible with pure CSS. Like dark mode toggles, comparison sliders, anchor navigation, and powerful effects using :has()...

COMPLETE TABLE OF CONTENTS

PART 1 - Everyday Features

8 chapters
  1. Conditionally Styling with :has() 5

  2. Dark Mode in CSS 12

  3. Smooth Scrolling to Sections 18

  4. Native Modals with <dialog> 22

  5. Accordions with Pure CSS 27

  6. Pure-CSS Automatic Slider 32

  7. Auto-Numbered Headings 39

  8. Other Use-Case of Counter 43

PART 2 - Modern CSS Power Moves

5 chapters
  1. Custom Border Animations48

  2. View Transitions55

  3. CSS Motion Path59

  4. CSS Mask Effects68

  5. CSS-Only Form Validation77

PART 3 - A Glimpse of the Future

6 chapters
  1. Scroll-Driven Animations83

  2. Native Popovers90

  3. Customized Selects97

  4. Anchor Positioning106

  5. Native CSS Carousels112

  6. And more to come...118

What makes this guide unique

Loved by the community

30-Day Money-Back Guarantee

If you buy the ebook, but you are not completely satisfied, no worries!
Just send me an email at hey@theosoti.com within 30 days and you’ll get a full refund.

About the author

Theo Soti profile

Theo Soti

Webdesigner & Front-end Developer

For the last eight years, I’ve worked with teams to design and build fast, responsive interfaces using modern CSS.
Along the way, I started sharing what I learned online. That small habit grew into a community of:

  • 16,000+ developers on LinkedIn
  • 9 million impressions in a year
  • 1,500 newsletter subscribers

You Don’t Need JavaScript collects my best CSS techniques and patterns for building fast, modern interfaces with less code and more joy.

START LEARNING TODAY

Limited Time Offer: Special discount ends this Saturday!

25% off

Basic

$39

$29


  • 125-page PDF with 27 practical examples
  • Lifetime access & Free updates
  • A library of 27 ready-to-use components
  • A cheat sheet with every property from the book
Get the ebook

30 day money back guaranteed

Frequently asked questions