Pricing Plan Emphasis
Price, recommendation badge and card border gain emphasis to guide comparisons between plans.
Price, recommendation badge and card border gain emphasis to guide comparisons between plans.
Live Demo
Hover over the element or use Tab to focus.
Source Code
Copy the HTML, CSS or JavaScript you need for your project.
<div class="tbx-1039" tabindex="0" aria-label="Standard plan, 4,900 yen per month">
<span class="tbx-1039__flag">POPULAR</span><span class="tbx-1039__plan">STANDARD</span>
<span class="tbx-1039__price">¥4,900 <small>/ mo.</small></span>
<span class="tbx-1039__benefits">3 projects · Email support</span>
<span class="tbx-1039__foot">Plan details <b aria-hidden="true">↗</b></span>
</div>
.tbx-1039{position:relative;width:min(242px,95%);padding:21px 20px 16px;border:1px solid #d3dfeb;border-radius:10px;background:#fff;box-shadow:0 6px 12px #15294208;color:#203348;display:flex;flex-direction:column;gap:10px;font-family:system-ui;transition:border .3s,box-shadow .3s,transform .3s;cursor:default}
.tbx-1039__flag{position:absolute;right:11px;top:10px;font-size:8px;font-weight:800;letter-spacing:.08em;color:#a56342;background:#fff2e6;padding:5px 7px;border-radius:50px}
.tbx-1039__plan{color:#58708a;font-size:10px;font-weight:800;letter-spacing:.13em}
.tbx-1039__price{font-size:25px;font-weight:800;letter-spacing:-.06em;transition:color .3s}.tbx-1039__price small{font-size:10px;letter-spacing:0;color:#8895a5;font-weight:500}
.tbx-1039__benefits{font-size:10px;color:#617287;border-bottom:1px solid #e6edf2;padding-bottom:11px}
.tbx-1039__foot{display:flex;justify-content:space-between;font-size:11px;font-weight:700;color:#456274}.tbx-1039__foot b{font-size:16px;transition:transform .25s}
.tbx-1039:is(:hover,:focus-visible){transform:translateY(-3px);border-color:#357781;box-shadow:0 13px 30px #0b475c19}
.tbx-1039:is(:hover,:focus-visible) .tbx-1039__price{color:#257e84}
.tbx-1039:is(:hover,:focus-visible) .tbx-1039__foot b{transform:translate(3px,-3px)}
.tbx-1039:focus-visible{outline:3px solid #db9b5e;outline-offset:3px}
@media(prefers-reduced-motion:reduce){.tbx-1039,.tbx-1039__price,.tbx-1039__foot b{transition:none}}
How to Use
Insert the HTML and add the CSS to your stylesheet. Adjust colors and sizes and avoid class conflicts.
Use Case
Useful for pricing pages and service pages.
Technical Notes
Keep controls usable on touch devices. Test keyboard focus and reduced-motion preferences.
Mobile: Ensure the interactive content remains accessible without hover on touch devices.
Browser: Uses modern CSS. Check behavior in the browsers you support.
Reduced Motion: Check that prefers-reduced-motion is respected.