25% offComponents
Every building block of the template, ready to copy. All of them use css/theme.css; the ones that move use js/theme.js.
Colors
Change them once in :root at the top of css/theme.css.
- --deep
#0b3a38Headings, top bar, footer - --teal
#12a89fAccents, active states - --teal-dark
#0b7670Links and small teal text - --teal-light
#7fe3daAccents on dark - --mint
#e7f6f5Soft panels - --red
#d32a33Book and search buttons - --sun
#fff799Highlights on dark - --bg
#f6f9f9Page background
Typography
Outfit 700, page titles
Outfit 700, section titles
Outfit 700, card titles
Onest 400, body text at 16px with comfortable line height for reading.
Onest 600, kicker labelButtons
Show the HTML
<div class="demo-row">
<a class="btn-pill btn-red" href="checkout.html">Book now</a>
<a class="btn-pill btn-deep" href="trip.html">View trip</a>
<a class="btn-pill btn-outline" href="deals.html">See all deals</a>
<a class="btn-pill btn-red btn-sm" href="hotel.html">Reserve</a>
<button class="link-btn" type="button">Text button</button>
</div>Badges, tiers and ratings
$22 off
Member price
Free cancellation
Best value
Blue
Silver
Gold
Show the HTML
<div class="demo-row">
<span class="badge badge--red">$22 off</span>
<span class="badge badge--member"><i class="fa-solid fa-tag" aria-hidden="true"></i>Member price</span>
<span class="badge badge--mint">Free cancellation</span>
<span class="badge badge--sun">Best value</span>
<span class="tier tier--blue">Blue</span>
<span class="tier tier--silver">Silver</span>
<span class="tier tier--gold">Gold</span>
<p class="rating m-0"><b>9.2</b><span>Wonderful</span><small>1,284 reviews</small></p>
</div>Form fields
Show the HTML
<div class="form-grid">
<label class="field"><span>First name</span><input type="text" name="demo-first" placeholder="Maya"></label>
<label class="field"><span>Country</span><select name="demo-country"><option>Portugal</option><option>Spain</option><option>Italy</option></select></label>
<label class="field span-2"><span>Message</span><textarea name="demo-message" rows="3"></textarea></label>
</div>Choices
Show the HTML
<div class="demo-grid">
<ul class="fchecks">
<li><label class="chk chk--dark"><input type="checkbox" checked>Free cancellation<small>6</small></label></li>
<li><label class="chk chk--dark"><input type="radio" name="demo-r" checked>Any rating</label></li>
<li><label class="chk chk--dark"><input type="radio" name="demo-r">Wonderful 9+</label></li>
</ul>
<label class="switch-row"><span><b>Price alerts</b><small>When prices drop</small></span><span class="switch"><input type="checkbox" checked><span class="switch__track" aria-hidden="true"></span></span></label>
<label class="choice"><input type="radio" name="demo-c" checked><span><b>Yes, protect my trip for $96</b>Covers cancellation, delays and lost bags.</span></label>
<div class="time-tiles">
<label class="time-tile"><input type="checkbox" checked><i class="fa-solid fa-sun" aria-hidden="true"></i><b>Morning</b><small>5:00–11:59</small></label>
<label class="time-tile"><input type="checkbox"><i class="fa-solid fa-moon" aria-hidden="true"></i><b>Evening</b><small>18:00–23:59</small></label>
</div>
</div>Chips, segments and tabs
First tab panel.
Second tab panel.
Show the HTML
<div class="demo-stack">
<div class="filter-chips m-0" role="group" aria-label="Example chips"><button type="button" aria-pressed="true">All</button><button type="button" aria-pressed="false">Beaches</button><button type="button" aria-pressed="false">Cities</button></div>
<div class="seg" role="group" aria-label="Example segments"><button type="button" aria-pressed="true">All</button><button type="button" aria-pressed="false">Hotels</button><button type="button" aria-pressed="false">Homes</button></div>
<div class="style-tabs m-0" role="tablist" aria-label="Example tabs">
<button class="style-tab" type="button" role="tab" id="demo-t1" aria-controls="demo-p1" aria-selected="true">Itinerary</button>
<button class="style-tab" type="button" role="tab" id="demo-t2" aria-controls="demo-p2" aria-selected="false" tabindex="-1">Bookings</button>
</div>
<div id="demo-p1" class="tab-panel" role="tabpanel" aria-labelledby="demo-t1"><p class="m-0">First tab panel.</p></div>
<div id="demo-p2" class="tab-panel" role="tabpanel" aria-labelledby="demo-t2" hidden><p class="m-0">Second tab panel.</p></div>
</div>Slider
Up to
Show the HTML
<div class="demo-narrow">
<p class="range-value" id="demo-range-label">Up to <output for="demo-range">12 hours</output></p>
<input class="range" type="range" id="demo-range" aria-labelledby="demo-range-label" min="7" max="15" value="12">
<div class="range-ends" aria-hidden="true"><span>7h</span><span>15h+</span></div>
</div>Cards
Show the HTML
<div class="demo-grid demo-grid--3">
<a class="place" href="destination.html"><span class="place__photo"><img src="images/city-lisbon.jpg" width="1200" height="900" alt="Yellow tram in Lisbon" loading="lazy"><span class="place__tag">Hills and trams</span></span><strong>Lisbon</strong><span class="place__where">Portugal</span><span class="place__price">Stays from <b>$118</b></span></a>
<a class="tile" href="search-flights.html"><span class="icon-tile" aria-hidden="true"><i class="fa-solid fa-plane"></i></span><h3>Flights</h3><p>500 airlines and fare alerts.</p><span class="tile__go">Find flights <i class="fa-solid fa-arrow-right" aria-hidden="true"></i></span></a>
<article class="deal"><a class="deal__photo" href="hotel.html"><img src="images/hotel-04.jpg" width="1200" height="900" alt="Modern hotel lobby" loading="lazy"><span class="deal__tag">25% off</span></a><div class="deal__body"><span class="stay__type">Stays</span><h3><a href="hotel.html">Hotel Avenida Lumen</a></h3><p>Lisbon · 5-star hotel</p><p class="deal__price"><s>$289</s> <b>$216</b> <small>per night</small></p></div></article>
</div>Alerts and messages
Good news: the price went down by $18.
Your message has been sent. Thank you!
One thing to fix before you book:
Add a stay and save up to $240
See staysBook flight and stay together.
Show the HTML
<div class="demo-stack">
<div class="alert-good"><span class="icon-tile" aria-hidden="true"><i class="fa-solid fa-arrow-trend-down"></i></span><p><b>Good news: the price went down by $18.</b></p></div>
<div class="notification_ok">Your message has been sent. Thank you!</div>
<div class="form-errors"><p>One thing to fix before you book:</p><ul><li><a href="checkout.html">Accept the terms to book</a></li></ul></div>
<div class="inline-promo"><span class="icon-tile" aria-hidden="true"><i class="fa-solid fa-bed"></i></span><div><b>Add a stay and save up to $240</b><p>Book flight and stay together.</p></div><a class="btn-pill btn-deep btn-sm" href="search-hotel.html">See stays</a></div>
</div>Empty state
No stays match your filters
Try removing a filter or two.
Show the HTML
<div class="empty">
<span class="status__icon" aria-hidden="true"><i class="fa-solid fa-magnifying-glass"></i></span>
<h3>No stays match your filters</h3>
<p>Try removing a filter or two.</p>
<button class="btn-pill btn-deep" type="button">Clear all filters</button>
</div>Steps and progress
- Choose flights
- 2Review your trip
- 3Checkout
Show the HTML
<div class="demo-stack">
<ol class="trip-steps m-0"><li class="is-done"><span><i class="fa-solid fa-check" aria-hidden="true"></i></span>Choose flights</li><li class="is-current" aria-current="step"><span>2</span>Review your trip</li><li><span>3</span>Checkout</li></ol>
<div class="bars bars--light"><div class="bar"><span class="bar__label">Cleanliness<b>9.5</b></span><span class="bar__track"><span class="bar__fill" data-value="95"></span></span></div><div class="bar"><span class="bar__label">Location<b>9.6</b></span><span class="bar__track"><span class="bar__fill" data-value="96"></span></span></div></div>
<nav aria-label="Example pages"><ul class="pager m-0 justify-content-start"><li><span aria-current="page">1</span></li><li><a href="blog.html">2</a></li><li><a href="blog.html">3</a></li></ul></nav>
</div>Avatars and lists
- Maya CollinsGold member
- Daniel CollinsAdult · Born 1988
Show the HTML
<ul class="people-list">
<li><span class="avatar" aria-hidden="true">MC</span><span><b>Maya Collins</b><small>Gold member</small></span></li>
<li><span class="avatar" aria-hidden="true">DC</span><span><b>Daniel Collins</b><small>Adult · Born 1988</small></span></li>
</ul>Questions (accordion)
How do I change or cancel my booking?
Open Trips, choose the booking and select Change or Cancel.
Show the HTML
<details class="faq" open><summary>How do I change or cancel my booking?</summary><div class="faq__a"><p>Open Trips, choose the booking and select Change or Cancel.</p></div></details>