Glass Pure CSS

Glass pricing

Three glass pricing cards over gradient blobs; the middle one stands out with a breathing luminous rim and the popular badge, and every button throws a shimmer across its face on hover.

Documentation

Real scenarios

The component as it is used in a product — not a specimen grid.

Three plans, one pane of glass

The Growth card lifts off the field: its rim is a gradient that breathes light, the badge rides its crown, and every button throws a sheen across its face when you hover.

Starter

For the first dashboard

$ 0 forever

No card, no clock

  • 1 workspace, 3 seats
  • 7-day trace retention
  • Community support
Start free
Popular

Growth

For teams shipping weekly

$ 24 per seat / month
  • Unlimited workspaces
  • 30-day trace retention
  • Slack + webhook alerts
  • Error budgets & SLOs
Start 14-day trial

Scale

For platform teams

$ 79 per seat / month
  • SSO / SAML & SCIM
  • 1-year retention, EU or Singapore
  • Audit log & dedicated support
Talk to sales

Prices in USD, VAT aside; seats flex mid-cycle and the invoice follows the Frankfurt or Singapore entity you pick at signup.

Important props

Important props
Prop Type Default What it does
highlight boolean false Lifts the card and turns its rim into a three-colour gradient that slowly brightens and dims.
badge string 'Popular' The label on the highlighted card’s crown; star icon on a gold ground.
shimmer boolean true Hovering the button sweeps a slanted gleam across it; prefers-reduced-motion switches it off entirely.
layout auto-fit grid '15rem · 1fr' Three cards in a row that goes single-column on narrow screens; no horizontal overflow down to 375px.

Snippet

<div class="gpc-grid">
<article class="gpc-card gpc-card--hot">
    <span class="gpc-badge">★ Popular</span>
    <h4>Growth</h4>
    <div class="gpc-figure"><span>$</span><b>24</b><small>per seat / month</small></div>
    <ul class="gpc-feats"><li>✓ Unlimited workspaces</li></ul>
    <button class="gpc-go gpc-go--primary" wire:click="trial">Start 14-day trial</button>
</article>
</div>

<style>
.gpc-card { display: grid; gap: 1rem; justify-items: center; padding: 1.75rem 1.35rem;
            border-radius: 1.25rem; background: rgba(255,255,255,.15);
            border: 1px solid rgba(255,255,255,.44); backdrop-filter: blur(18px) saturate(1.4);
            box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 16px 38px #0d103029; }
.gpc-card--hot { border: 1.5px solid transparent;
            background: linear-gradient(125deg, rgba(255,255,255,.15), rgba(255,255,255,.06)) padding-box,
                        linear-gradient(160deg, #5470ff, #58e0d0 55%, #9a6cff) border-box; }
.gpc-go { position: relative; overflow: clip; inline-size: 100%; block-size: 2.85rem;
          border: none; border-radius: 999px; background: linear-gradient(120deg, #5470ff, #9a6cff); color: #fff; }
.gpc-go::after { content: ''; position: absolute; inset-block: -60%; inset-inline-start: -75%;
          inline-size: 45%; background: linear-gradient(105deg, transparent, #ffffff80, transparent);
          transform: skewX(-18deg); transition: inset-inline-start .6s ease; }
.gpc-go:hover::after { inset-inline-start: 135%; }
</style>
// app/Pages/Pricing.jsx — Inertia (React) page; renders the React
// snippet below unchanged, with Inertia's Link wired into the provider.
import { Link } from '@inertiajs/react';
import { NabuXUIProvider } from '@nabuxai/ui-react';
import PricingCards from '@/components/PricingCards';

export default function Pricing() {
  return (
    <NabuXUIProvider locale="en" linkComponent={Link}>
      <main className="nx-page">
        <PricingCards />
      </main>
    </NabuXUIProvider>
  );
}
// PricingCards.jsx — glass pricing over gradient blobs, hover shimmer
import '@nabuxai/ui-core/css';

const PLANS = [
  { name: 'Starter', price: 0, per: 'forever', hot: false, cta: 'Start free',
    feats: ['1 workspace, 3 seats', '7-day trace retention', 'Community support'] },
  { name: 'Growth', price: 24, per: 'per seat / month', hot: true, cta: 'Start 14-day trial',
    feats: ['Unlimited workspaces', '30-day trace retention', 'Slack + webhook alerts', 'Error budgets & SLOs'] },
  { name: 'Scale', price: 79, per: 'per seat / month', hot: false, cta: 'Talk to sales',
    feats: ['SSO / SAML & SCIM', '1-year retention, EU or Singapore', 'Audit log & dedicated support'] },
];

export default function PricingCards() {
  return (
    <>
      <style>{`
        .gpc-stage { position: relative; overflow: clip; display: grid; place-items: center;
                     padding: 4rem 1.25rem; border-radius: 1.5rem; background: #eef0fb; }
        .gpc-stage::before { content: ''; position: absolute; inset: 0;
                     background: radial-gradient(42% 55% at 15% 20%, #5470ff88, transparent 60%),
                                 radial-gradient(40% 50% at 85% 15%, #58e0d077, transparent 60%),
                                 radial-gradient(45% 55% at 70% 90%, #9a6cff88, transparent 60%);
                     filter: blur(30px) saturate(1.25); }
        .gpc-grid { position: relative; display: grid; gap: 1.4rem; align-items: end;
                     grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
                     inline-size: min(100%, 63rem); }
        .gpc-card { display: grid; gap: 1rem; justify-items: center; text-align: center;
                     padding: 1.75rem 1.35rem; border-radius: 1.25rem;
                     background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.44);
                     backdrop-filter: blur(18px) saturate(1.4); color: #10142e;
                     box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 16px 38px #0d103029;
                     transition: translate .25s ease; }
        .gpc-card:hover { translate: 0 -.35rem; }
        .gpc-card--hot { position: relative; border: 1.5px solid transparent; translate: 0 -.55rem;
                     background: linear-gradient(125deg, rgba(255,255,255,.15), rgba(255,255,255,.06)) padding-box,
                                 linear-gradient(160deg, #5470ff, #58e0d0 55%, #9a6cff) border-box; }
        .gpc-badge { position: absolute; inset-block-start: -.8rem; margin-inline: auto;
                     padding: .32rem .8rem; border-radius: 999px;
                     background: linear-gradient(120deg, #ffc94d, #e8a013); color: #241a02;
                     font: 700 .72rem/1 system-ui; }
        .gpc-amount { font: 800 3rem/1 system-ui; }
        .gpc-feats { display: grid; gap: .55rem; justify-items: start; inline-size: 100%;
                     margin: 0; padding: 0; list-style: none; }
        .gpc-go { position: relative; overflow: clip; display: inline-flex; align-items: center;
                     justify-content: center; gap: .45rem; inline-size: 100%; block-size: 2.85rem;
                     border-radius: 999px; border: 1px solid rgba(255,255,255,.44);
                     background: rgba(255,255,255,.15); color: #10142e; cursor: pointer;
                     font: 600 .88rem/1 system-ui; transition: translate .2s ease; }
        .gpc-go--primary { border: none; color: #fff;
                     background: linear-gradient(120deg, #5470ff, #9a6cff); }
        .gpc-go:hover { translate: 0 -2px; }
        .gpc-go::after { content: ''; position: absolute; inset-block: -60%; inset-inline-start: -75%;
                     inline-size: 45%; background: linear-gradient(105deg, transparent, #ffffff80, transparent);
                     transform: skewX(-18deg); transition: inset-inline-start .6s ease; }
        .gpc-go:hover::after { inset-inline-start: 135%; }
        @media (prefers-reduced-motion: reduce) { .gpc-go::after { display: none; } }
      `}</style>
      <div className="gpc-stage">
        <div className="gpc-grid">
          {PLANS.map((p) => (
            <article key={p.name} className={`gpc-card${p.hot ? ' gpc-card--hot' : ''}`}>
              {p.hot && <span className="gpc-badge">★ Popular</span>}
              <h4>{p.name}</h4>
              <div className="gpc-figure">
                <span>$</span><span className="gpc-amount">{p.price}</span><small>{p.per}</small>
              </div>
              <ul className="gpc-feats">
                {p.feats.map((f) => <li key={f}>✓ {f}</li>)}
              </ul>
              <button type="button" className={`gpc-go${p.hot ? ' gpc-go--primary' : ''}`}>{p.cta}</button>
            </article>
          ))}
        </div>
      </div>
    </>
  );
}
<!-- PricingCards.vue — glass pricing over gradient blobs, hover shimmer -->
<script setup lang="ts">
import '@nabuxai/ui-core/css';

const plans = [
  { name: 'Starter', price: 0, per: 'forever', hot: false, cta: 'Start free',
    feats: ['1 workspace, 3 seats', '7-day trace retention', 'Community support'] },
  { name: 'Growth', price: 24, per: 'per seat / month', hot: true, cta: 'Start 14-day trial',
    feats: ['Unlimited workspaces', '30-day trace retention', 'Slack + webhook alerts', 'Error budgets & SLOs'] },
  { name: 'Scale', price: 79, per: 'per seat / month', hot: false, cta: 'Talk to sales',
    feats: ['SSO / SAML & SCIM', '1-year retention, EU or Singapore', 'Audit log & dedicated support'] },
];
</script>

<template>
  <div class="gpc-stage">
    <div class="gpc-grid">
      <article v-for="p in plans" :key="p.name" class="gpc-card" :class="{ 'gpc-card--hot': p.hot }">
        <span v-if="p.hot" class="gpc-badge">★ Popular</span>
        <h4>{{ p.name }}</h4>
        <div class="gpc-figure">
          <span>$</span><span class="gpc-amount">{{ p.price }}</span><small>{{ p.per }}</small>
        </div>
        <ul class="gpc-feats">
          <li v-for="f in p.feats" :key="f">✓ {{ f }}</li>
        </ul>
        <button type="button" class="gpc-go" :class="{ 'gpc-go--primary': p.hot }">{{ p.cta }}</button>
      </article>
    </div>
  </div>
</template>

<style scoped>
.gpc-stage { position: relative; overflow: clip; display: grid; place-items: center;
             padding: 4rem 1.25rem; border-radius: 1.5rem; background: #eef0fb; }
.gpc-stage::before { content: ''; position: absolute; inset: 0;
             background: radial-gradient(42% 55% at 15% 20%, #5470ff88, transparent 60%),
                         radial-gradient(40% 50% at 85% 15%, #58e0d077, transparent 60%),
                         radial-gradient(45% 55% at 70% 90%, #9a6cff88, transparent 60%);
             filter: blur(30px) saturate(1.25); }
.gpc-grid { position: relative; display: grid; gap: 1.4rem; align-items: end;
             grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); inline-size: min(100%, 63rem); }
.gpc-card { display: grid; gap: 1rem; justify-items: center; text-align: center;
             padding: 1.75rem 1.35rem; border-radius: 1.25rem;
             background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.44);
             backdrop-filter: blur(18px) saturate(1.4); color: #10142e;
             box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 16px 38px #0d103029;
             transition: translate .25s ease; }
.gpc-card:hover { translate: 0 -.35rem; }
.gpc-card--hot { position: relative; border: 1.5px solid transparent; translate: 0 -.55rem;
             background: linear-gradient(125deg, rgba(255,255,255,.15), rgba(255,255,255,.06)) padding-box,
                         linear-gradient(160deg, #5470ff, #58e0d0 55%, #9a6cff) border-box; }
.gpc-badge { position: absolute; inset-block-start: -.8rem; margin-inline: auto;
             padding: .32rem .8rem; border-radius: 999px;
             background: linear-gradient(120deg, #ffc94d, #e8a013); color: #241a02;
             font: 700 .72rem/1 system-ui; }
.gpc-amount { font: 800 3rem/1 system-ui; }
.gpc-feats { display: grid; gap: .55rem; justify-items: start; inline-size: 100%;
             margin: 0; padding: 0; list-style: none; }
.gpc-go { position: relative; overflow: clip; display: inline-flex; align-items: center;
             justify-content: center; gap: .45rem; inline-size: 100%; block-size: 2.85rem;
             border-radius: 999px; border: 1px solid rgba(255,255,255,.44);
             background: rgba(255,255,255,.15); color: #10142e; cursor: pointer;
             font: 600 .88rem/1 system-ui; transition: translate .2s ease; }
.gpc-go--primary { border: none; color: #fff; background: linear-gradient(120deg, #5470ff, #9a6cff); }
.gpc-go:hover { translate: 0 -2px; }
.gpc-go::after { content: ''; position: absolute; inset-block: -60%; inset-inline-start: -75%;
             inline-size: 45%; background: linear-gradient(105deg, transparent, #ffffff80, transparent);
             transform: skewX(-18deg); transition: inset-inline-start .6s ease; }
.gpc-go:hover::after { inset-inline-start: 135%; }
@media (prefers-reduced-motion: reduce) { .gpc-go::after { display: none; } }
</style>
<!-- PricingCards.svelte — glass pricing over gradient blobs, hover shimmer -->
<script lang="ts">
  import '@nabuxai/ui-core/css';

  const plans = [
    { name: 'Starter', price: 0, per: 'forever', hot: false, cta: 'Start free',
      feats: ['1 workspace, 3 seats', '7-day trace retention', 'Community support'] },
    { name: 'Growth', price: 24, per: 'per seat / month', hot: true, cta: 'Start 14-day trial',
      feats: ['Unlimited workspaces', '30-day trace retention', 'Slack + webhook alerts', 'Error budgets & SLOs'] },
    { name: 'Scale', price: 79, per: 'per seat / month', hot: false, cta: 'Talk to sales',
      feats: ['SSO / SAML & SCIM', '1-year retention, EU or Singapore', 'Audit log & dedicated support'] },
  ];
</script>

<div class="gpc-stage">
  <div class="gpc-grid">
    {#each plans as p (p.name)}
      <article class="gpc-card" class:gpc-card--hot={p.hot}>
        {#if p.hot}<span class="gpc-badge">★ Popular</span>{/if}
        <h4>{p.name}</h4>
        <div class="gpc-figure">
          <span>$</span><span class="gpc-amount">{p.price}</span><small>{p.per}</small>
        </div>
        <ul class="gpc-feats">
          {#each p.feats as f (f)}<li>✓ {f}</li>{/each}
        </ul>
        <button type="button" class="gpc-go" class:gpc-go--primary={p.hot}>{p.cta}</button>
      </article>
    {/each}
  </div>
</div>

<style>
.gpc-stage { position: relative; overflow: clip; display: grid; place-items: center;
             padding: 4rem 1.25rem; border-radius: 1.5rem; background: #eef0fb; }
.gpc-stage::before { content: ''; position: absolute; inset: 0;
             background: radial-gradient(42% 55% at 15% 20%, #5470ff88, transparent 60%),
                         radial-gradient(40% 50% at 85% 15%, #58e0d077, transparent 60%),
                         radial-gradient(45% 55% at 70% 90%, #9a6cff88, transparent 60%);
             filter: blur(30px) saturate(1.25); }
.gpc-grid { position: relative; display: grid; gap: 1.4rem; align-items: end;
             grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); inline-size: min(100%, 63rem); }
.gpc-card { display: grid; gap: 1rem; justify-items: center; text-align: center;
             padding: 1.75rem 1.35rem; border-radius: 1.25rem;
             background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.44);
             backdrop-filter: blur(18px) saturate(1.4); color: #10142e;
             box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 16px 38px #0d103029;
             transition: translate .25s ease; }
.gpc-card:hover { translate: 0 -.35rem; }
.gpc-card--hot { position: relative; border: 1.5px solid transparent; translate: 0 -.55rem;
             background: linear-gradient(125deg, rgba(255,255,255,.15), rgba(255,255,255,.06)) padding-box,
                         linear-gradient(160deg, #5470ff, #58e0d0 55%, #9a6cff) border-box; }
.gpc-badge { position: absolute; inset-block-start: -.8rem; margin-inline: auto;
             padding: .32rem .8rem; border-radius: 999px;
             background: linear-gradient(120deg, #ffc94d, #e8a013); color: #241a02;
             font: 700 .72rem/1 system-ui; }
.gpc-amount { font: 800 3rem/1 system-ui; }
.gpc-feats { display: grid; gap: .55rem; justify-items: start; inline-size: 100%;
             margin: 0; padding: 0; list-style: none; }
.gpc-go { position: relative; overflow: clip; display: inline-flex; align-items: center;
             justify-content: center; gap: .45rem; inline-size: 100%; block-size: 2.85rem;
             border-radius: 999px; border: 1px solid rgba(255,255,255,.44);
             background: rgba(255,255,255,.15); color: #10142e; cursor: pointer;
             font: 600 .88rem/1 system-ui; transition: translate .2s ease; }
.gpc-go--primary { border: none; color: #fff; background: linear-gradient(120deg, #5470ff, #9a6cff); }
.gpc-go:hover { translate: 0 -2px; }
.gpc-go::after { content: ''; position: absolute; inset-block: -60%; inset-inline-start: -75%;
             inline-size: 45%; background: linear-gradient(105deg, transparent, #ffffff80, transparent);
             transform: skewX(-18deg); transition: inset-inline-start .6s ease; }
.gpc-go:hover::after { inset-inline-start: 135%; }
@media (prefers-reduced-motion: reduce) { .gpc-go::after { display: none; } }
</style>