Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 17 additions & 10 deletions src/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -1538,21 +1538,28 @@ pre code,
linear-gradient(to bottom, transparent 45%, rgb(0 0 0 / 0.24));
}

/* ── Plan tag ────────────────────────────────────────────────────────────────
A small flat tag in `--chip` (a colour): a faint tint and a hairline ring,
nothing more. It sits beside a name or a setting label, so it stays at the
text's own height and never reads as a button. Used for plan badges (Pro,
Trial, Free). */
/* ── Plan key ────────────────────────────────────────────────────────────────
A small dark keycap: a body a shade off the page, a hairline ring, a lit top
edge and a shade at the foot, bold light text. Plan badges (Pro, Trial,
Free); `--chip` only tints the text, so Pro reads plain and Trial amber. */
.chip-gloss {
--chip: var(--success);
--chip: var(--foreground);
display: inline-flex;
align-items: center;
border-radius: 0.3125rem;
letter-spacing: 0.01em;
line-height: 1;
color: color-mix(in oklch, var(--chip) 85%, var(--foreground));
background: color-mix(in oklch, var(--chip) 12%, transparent);
box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--chip) 24%, transparent);
letter-spacing: 0.01em;
color: color-mix(in oklch, var(--chip) 92%, var(--foreground));
background: linear-gradient(
to bottom,
color-mix(in oklch, var(--foreground) 11%, var(--background)),
color-mix(in oklch, var(--foreground) 4%, var(--background))
);
box-shadow:
inset 0 0 0 1px color-mix(in oklch, var(--foreground) 26%, transparent),
inset 0 1px 0 color-mix(in oklch, white 20%, transparent),
inset 0 -1px 0 rgb(0 0 0 / 0.22),
0 1px 2px rgb(0 0 0 / 0.3);
}
.chip-gloss.chip-warning { --chip: var(--warning); }
/* ── Glossy key ──────────────────────────────────────────────────────────────
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/AccountCard.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
{#snippet planPill()}
<span
class={cn(
'chip-gloss h-[1.125rem] shrink-0 px-1.5 text-ui-3xs font-medium',
'chip-gloss h-5 shrink-0 px-1.5 text-ui-3xs font-semibold',
plan.tone === 'trial' && 'chip-warning',
plan.tone === 'free' && 'chip-muted',
)}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/SettingsDialog.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -841,7 +841,7 @@
<div class="min-w-0">
<p class="flex items-center gap-2 text-ui-sm font-medium text-foreground">
{label}
{#if badge}<span class="h-[1.125rem] px-1.5 text-ui-3xs font-medium {badge.class}">{badge.label}</span>{/if}
{#if badge}<span class="h-5 px-1.5 text-ui-3xs font-semibold {badge.class}">{badge.label}</span>{/if}
</p>
<p class="mt-0.5 text-ui-xs leading-relaxed text-muted-foreground">{desc}</p>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/SharesPage.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@
</span>
</span>
{:else}
<span class="chip-gloss h-[1.125rem] px-1.5 text-ui-3xs font-medium">Pro</span>
<span class="chip-gloss h-5 px-1.5 text-ui-3xs font-semibold">Pro</span>
{/if}
</div>
{/if}
Expand Down
Loading