Liveweave: Generative AI Web Editor & HTML/CSS/JS Playground
Initializing
Liveweave
Web
expand_more
home
Home
Palette
Color Explorer
arrow_outward
Polyline
Graphics Editor
arrow_outward
frame_source
Python Playground
arrow_outward
build
Tools
expand_more
restart_alt
Load "Hello Weaver!"
post_add
Generate Lorem ipsum...
code
Format HTML
code_blocks
Format CSS
data_object
Format JavaScript
library_add
Library
expand_more
A
Algolia JS
Animate CSS
Apex Charts JS
B
Bulma CSS
Bootstrap
C
Chart JS
Chartist
Create JS
D
D3
Dojo
F
Foundation
Fullpage JS
G
Granim JS
Google Charts
H
Halfmoon
J
jQuery
M
Materialize
Moment JS
Masonry JS
Milligram CSS
P
Pure CSS
Primer CSS
Popper JS
Pattern CSS
Picnic CSS
R
React JS
Raphael JS
Raisin CSS
S
Semantic UI
Skeleton CSS
Spectre CSS
Tachyons CSS
T
Tailwind
Three JS
U
UI Kit
Vis JS
W
Water CSS
download
Download
expand_more
developer_mode
Download as HTML
folder_zip
Download as .ZIP
cloud_upload
Fork
account_circle
Login
settings
Settings
expand_more
Editor font
14
px
A
A
Night mode
Line number
Mini map
Word wrap
sync_alt
Reset Settings
smart_display
Run
left_panel_close
AI Assistant
dashboard
All
HTML
CSS
JS
visibility
Preview
bolt
Live Preview
terminal
JS Console
<!DOCTYPE html> <html> <head> <title>Pricing Plan Layout</title> </head> <body> <!-- Start your code here --> <div class="pricing-app"> <header class="pricing-header"> <div class="eyebrow">SIMPLE, TRANSPARENT PRICING</div> <h1>Plans that grow <span>with you.</span></h1> <p>Everything you need to build something extraordinary.</p> <div class="billing-switch"> <span class="billing-label active" id="monthlyLabel">Monthly</span> <button class="billing-toggle" id="billingToggle" aria-label="Switch billing period" aria-pressed="false"> <span class="toggle-knob"></span> </button> <span class="billing-label" id="annualLabel">Yearly</span> <span class="save-badge">SAVE 20%</span> </div> </header> <main class="pricing-grid"> <!-- STARTER --> <article class="pricing-card"> <div class="plan-icon starter-icon">✳</div> <h2>Starter</h2> <p class="plan-description">Everything you need to get started.</p> <div class="price-area"> <div class="price"> <span class="currency">$</span> <span class="amount" data-monthly="0" data-yearly="0">0</span> <span class="period">/ month</span> </div> <div class="billing-note">Free forever</div> </div> <button class="plan-button starter-button">Get started</button> <div class="feature-divider"></div> <h3>What's included</h3> <ul class="features"> <li><span class="check">✓</span> 3 projects</li> <li><span class="check">✓</span> Basic analytics</li> <li><span class="check">✓</span> 1 GB storage</li> <li><span class="check">✓</span> Community support</li> <li class="disabled"><span>–</span> Advanced insights</li> <li class="disabled"><span>–</span> Team collaboration</li> </ul> </article> <!-- PRO --> <article class="pricing-card featured"> <div class="popular-badge">MOST POPULAR</div> <div class="plan-icon pro-icon">✦</div> <h2>Professional</h2> <p class="plan-description">More power for ambitious creators.</p> <div class="price-area"> <div class="price"> <span class="currency">$</span> <span class="amount" data-monthly="19" data-yearly="15.20">19</span> <span class="period">/ month</span> </div> <div class="billing-note">Billed monthly</div> </div> <button class="plan-button pro-button">Start free trial <span>→</span></button> <div class="feature-divider"></div> <h3>Everything in Starter, plus</h3> <ul class="features"> <li><span class="check">✓</span> Unlimited projects</li> <li><span class="check">✓</span> Advanced analytics</li> <li><span class="check">✓</span> 100 GB storage</li> <li><span class="check">✓</span> Priority support</li> <li><span class="check">✓</span> Custom integrations</li> <li><span class="check">✓</span> Team collaboration</li> </ul> </article> <!-- BUSINESS --> <article class="pricing-card"> <div class="plan-icon business-icon">⬡</div> <h2>Business</h2> <p class="plan-description">Advanced tools for growing teams.</p> <div class="price-area"> <div class="price"> <span class="currency">$</span> <span class="amount" data-monthly="49" data-yearly="39.20">49</span> <span class="period">/ month</span> </div> <div class="billing-note">Billed monthly</div> </div> <button class="plan-button business-button">Contact sales <span>→</span></button> <div class="feature-divider"></div> <h3>Everything in Pro, plus</h3> <ul class="features"> <li><span class="check">✓</span> Unlimited storage</li> <li><span class="check">✓</span> Advanced security</li> <li><span class="check">✓</span> Dedicated manager</li> <li><span class="check">✓</span> API access</li> <li><span class="check">✓</span> SSO & SAML</li> <li><span class="check">✓</span> Custom onboarding</li> </ul> </article> </main> <footer class="pricing-footer"> <span>🔒</span> Secure payments · Cancel anytime · No hidden fees </footer> </div> <!-- End your code here --> </body> </html>
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap'); * { box-sizing: border-box; } body { margin: 0; background: #f7f8fc; color: #172033; font-family: 'DM Sans', sans-serif; } .pricing-app { max-width: 1160px; margin: 0 auto; padding: 65px 25px 40px; } .pricing-header { text-align: center; margin-bottom: 48px; } .eyebrow { color: #7563e8; font-size: 11px; font-weight: 800; letter-spacing: 2px; margin-bottom: 16px; } .pricing-header h1 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(32px, 5vw, 46px); line-height: 1.15; letter-spacing: -2px; margin: 0; font-weight: 800; } .pricing-header h1 span { color: #7563e8; } .pricing-header > p { color: #858b9c; font-size: 15px; margin-top: 15px; } .billing-switch { display: flex; align-items: center; justify-content: center; gap: 13px; margin-top: 32px; } .billing-label { color: #a0a5b2; font-size: 13px; font-weight: 600; transition: color .2s; } .billing-label.active { color: #252b3b; } .billing-toggle { width: 48px; height: 27px; padding: 3px; border: 0; border-radius: 30px; background: #7563e8; cursor: pointer; } .toggle-knob { display: block; width: 21px; height: 21px; border-radius: 50%; background: white; transition: transform .25s ease; } .billing-toggle.yearly .toggle-knob { transform: translateX(21px); } .save-badge { background: #e8f8ef; color: #26965b; border-radius: 20px; padding: 5px 9px; font-size: 10px; font-weight: 800; } .pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; } .pricing-card { position: relative; background: #fff; border: 1px solid #e9eaf0; border-radius: 17px; padding: 30px 27px; box-shadow: 0 5px 20px rgba(29, 38, 70, .035); transition: transform .25s, box-shadow .25s, border-color .25s; } .pricing-card:hover { transform: translateY(-6px); box-shadow: 0 17px 38px rgba(29, 38, 70, .10); border-color: #d7d1ff; } .featured { border: 2px solid #7867ed; box-shadow: 0 12px 35px rgba(117, 99, 232, .12); } .featured:hover { border-color: #7867ed; } .popular-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: #7563e8; color: #fff; border-radius: 20px; padding: 7px 16px; font-size: 9px; letter-spacing: 1px; font-weight: 800; white-space: nowrap; } .plan-icon { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; font-size: 23px; margin-bottom: 20px; } .starter-icon { color: #5089dd; background: #edf4ff; } .pro-icon { color: #7563e8; background: #f0edff; } .business-icon { color: #219b83; background: #e9f8f4; } .pricing-card h2 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 20px; margin: 0 0 8px; letter-spacing: -.5px; } .plan-description { color: #9298a7; font-size: 12px; min-height: 20px; margin: 0; } .price-area { margin: 27px 0 23px; } .price { display: flex; align-items: baseline; min-height: 53px; } .currency { font-size: 19px; font-weight: 700; margin-right: 3px; } .amount { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 43px; letter-spacing: -2px; font-weight: 800; transition: opacity .2s; } .amount.changing { opacity: .15; } .period { color: #989dac; font-size: 12px; margin-left: 5px; } .billing-note { font-size: 11px; color: #a0a5b2; margin-top: 5px; } .plan-button { width: 100%; height: 46px; border-radius: 9px; font-family: inherit; font-size: 12px; font-weight: 700; cursor: pointer; transition: all .2s; } .starter-button { background: #fff; border: 1px solid #dfe2eb; color: #32394a; } .starter-button:hover { background: #f5f6fa; border-color: #b7bbc9; } .pro-button { background: #7563e8; border: 1px solid #7563e8; color: #fff; box-shadow: 0 5px 14px rgba(117, 99, 232, .2); } .pro-button:hover { background: #6250d5; box-shadow: 0 7px 20px rgba(117, 99, 232, .3); } .business-button { background: #fff; border: 1px solid #dfe2eb; color: #32394a; } .business-button:hover { background: #eff9f6; border-color: #219b83; color: #16836d; } .plan-button span { margin-left: 5px; font-size: 15px; } .feature-divider { height: 1px; background: #eff0f4; margin: 26px 0 21px; } .pricing-card h3 { color: #73798b; font-size: 11px; font-weight: 700; margin: 0 0 18px; } .features { list-style: none; padding: 0; margin: 0; } .features li { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #555d70; margin-bottom: 15px; } .check { display: flex; align-items: center; justify-content: center; width: 17px; height: 17px; border-radius: 50%; background: #eaf8f0; color: #36a66d; font-size: 10px; font-weight: 800; flex-shrink: 0; } .features .disabled { color: #b7bac4; } .disabled span { width: 17px; text-align: center; color: #c5c8d0; } .pricing-footer { text-align: center; color: #a1a6b3; font-size: 11px; margin-top: 37px; } .pricing-footer span { margin-right: 5px; } @media (max-width: 850px) { .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .featured { grid-column: auto; } } @media (max-width: 580px) { .pricing-app { padding: 48px 17px 30px; } .pricing-header { margin-bottom: 38px; } .pricing-grid { grid-template-columns: 1fr; gap: 25px; } .pricing-card { padding: 27px 24px; } .pricing-header > p { font-size: 13px; } }
const toggle = document.getElementById('billingToggle'); const monthlyLabel = document.getElementById('monthlyLabel'); const annualLabel = document.getElementById('annualLabel'); let yearly = false; function updateBilling() { yearly = !yearly; toggle.classList.toggle('yearly', yearly); toggle.setAttribute('aria-pressed', String(yearly)); monthlyLabel.classList.toggle('active', !yearly); annualLabel.classList.toggle('active', yearly); document.querySelectorAll('.amount').forEach(amount => { amount.classList.add('changing'); setTimeout(() => { const value = yearly ? amount.dataset.yearly : amount.dataset.monthly; amount.textContent = Number(value).toLocaleString('en-US', { maximumFractionDigits: 2 }); amount.classList.remove('changing'); }, 150); }); document.querySelectorAll('.billing-note').forEach(note => { const card = note.closest('.pricing-card'); if (card.classList.contains('starter-icon')) { return; } if (card.querySelector('.starter-icon')) { note.textContent = 'Free forever'; } else { note.textContent = yearly ? 'Billed annually' : 'Billed monthly'; } }); } toggle.addEventListener('click', updateBilling); // Demo button interactions document.querySelectorAll('.plan-button').forEach(button => { button.addEventListener('click', () => { const plan = button.closest('.pricing-card') .querySelector('h2').textContent; button.textContent = '✓ ' + plan + ' selected'; setTimeout(() => { button.innerHTML = plan === 'Professional' ? 'Start free trial <span>→</span>' : plan === 'Business' ? 'Contact sales <span>→</span>' : 'Get started'; }, 1600); }); });
terminal
JavaScript Console
Preview
Clear
close
›
Run