Files
anthony lio 22ea45a3ba feat: getting started v2 (#52511)
## Problem

* the getting started page is a stack of content listings: an overview,
use cases, framework quickstarts and tutorials
* a new reader must find a path in that list, and the page gives no
commands or agent prompt for their setup

## Solution

* adds a stepper to the getting started page, so a reader gets the steps
and an agent prompt for their setup
* adds the `docs-getting-started-v2` posthog flag, so the stepper and
the current page can run as an a/b test
* adds events for stepper choices, link clicks and prompt copies, so the
test can compare the two pages
* adds a markdown export of the stepper, so the `.md` page lists every
path for agents
* moves the iso shapes from kb into `ui-patterns`, so the docs feature
cards use the same shapes as the kb heroes
* changes the edge functions shape to a flat puzzle piece, because the
old shape had too many parts

<!-- linear:table-colwidths:397,397 -->
<table>
<thead>
<tr>
<th>state</th>
<th>preview</th>
</tr>
</thead>
<tbody>
<tr>
<td>after</td>
<td>


https://github.com/user-attachments/assets/7127d817-4240-4d08-a1c9-6ada1b1b2563

</td>
</tr>
</tbody>
</table>

## Review instructions

1. open
[/docs/guides/getting-started?docs-getting-started-v2=stepper](<https://docs-git-docs-getting-started-explorations-supabase.vercel.app/docs/guides/getting-started?docs-getting-started-v2=stepper>)
and make sure that the stepper shows with agent selected
2. select next.js and the auth card, then make sure that the setup
prompt names next.js and has a step for auth
3. open
[/docs/guides/getting-started?docs-getting-started-v2=stepper&start=cli&fw=nextjs](<https://docs-git-docs-getting-started-explorations-supabase.vercel.app/docs/guides/getting-started?docs-getting-started-v2=stepper&start=cli&fw=nextjs>)
and make sure that connect your app shows the install command and the
quickstart button

## Checklist

Check all before review:

- [X] I have read
[CONTRIBUTING.md](<https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md>)
- [ ] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](<https://github.com/supabase/supabase/tree/master/apps/docs/style-guide>)
2026-11-13 17:46:38 +02:00

328 lines
6.2 KiB
CSS

/*
* Tailwind v4 animation tokens + the @keyframes they reference.
*
* Each --animate-* token in @theme generates an `animate-{name}` utility.
* Keyframes live outside @theme since they're @-rules, not design tokens.
*
* Migrated from packages/config/ui.config.js (theme.extend.keyframes /
* theme.extend.animation) and packages/config/tailwind.config.js
* (theme.extend.keyframes / theme.extend.animation).
*/
@theme {
--ease-enter: cubic-bezier(0.16, 1, 0.3, 1);
--ease-move: cubic-bezier(0.87, 0, 0.13, 1);
--ease-crossfade: cubic-bezier(0.2, 0, 0, 1);
--animate-fade-in: fadeIn 300ms both;
--animate-fade-out: fadeOut 300ms both;
--animate-draw-line-fast: drawLine 850ms cubic-bezier(0.65, 0, 0.35, 1) both;
/* may be unused — verify before pruning */
--animate-dropdown-content-show: overlayContentShow 100ms var(--ease-enter);
/* may be unused — verify before pruning */
--animate-dropdown-content-hide: overlayContentHide 100ms var(--ease-enter);
--animate-overlay-show: overlayContentShow 300ms var(--ease-enter);
--animate-overlay-hide: overlayContentHide 300ms var(--ease-enter);
/* may be unused — verify before pruning */
--animate-fade-in-overlay-bg: fadeInOverlayBg 300ms;
/* may be unused — verify before pruning */
--animate-fade-out-overlay-bg: fadeOutOverlayBg 300ms;
--animate-slide-down: slideDown 300ms var(--ease-move);
--animate-slide-up: slideUp 300ms var(--ease-move);
--animate-slide-down-normal: slideDownNormal 300ms var(--ease-move);
--animate-slide-up-normal: slideUpNormal 300ms var(--ease-move);
/* may be unused — verify before pruning */
--animate-panel-slide-left-out: panelSlideLeftOut 200ms var(--ease-move);
/* may be unused — verify before pruning */
--animate-panel-slide-left-in: panelSlideLeftIn 250ms var(--ease-move);
/* may be unused — verify before pruning */
--animate-panel-slide-right-out: panelSlideRightOut 200ms var(--ease-move);
/* may be unused — verify before pruning */
--animate-panel-slide-right-in: panelSlideRightIn 250ms var(--ease-move);
--animate-line-loading: lineLoading 1.8s infinite;
--animate-line-loading-slower: lineLoading 2.3s infinite;
/* may be unused — verify before pruning */
--animate-dropdownFadeIn: dropdownFadeIn 0.1s ease-out;
/* may be unused — verify before pruning */
--animate-dropdownFadeOut: dropdownFadeOut 0.1s ease-out;
--animate-flash-code: flash-code 1s forwards;
--animate-flash-code-slow: flash-code 2s forwards;
--animate-accordion-down: accordion-down 0.15s ease-out;
--animate-accordion-up: accordion-up 0.15s ease-out;
--animate-collapsible-down: collapsible-down 0.1s ease-out;
--animate-collapsible-up: collapsible-up 0.1s ease-out;
--animate-collapsible-down-clipped: collapsible-down 0.1s ease-out, clip-overflow-y 0.1s;
--animate-collapsible-up-clipped: collapsible-up 0.1s ease-out, clip-overflow-y 0.1s;
}
@keyframes drawLine {
from {
stroke-dashoffset: 1;
}
}
@keyframes fadeIn {
0% {
transform: scale(0.95);
opacity: 0;
}
100% {
transform: scale(1);
opacity: 1;
}
}
@keyframes fadeOut {
0% {
transform: scale(1);
opacity: 1;
}
100% {
transform: scale(0.95);
opacity: 0;
}
}
@keyframes overlayContentShow {
0% {
opacity: 0;
transform: translate(0%, -2%) scale(1);
}
100% {
opacity: 1;
transform: translate(0%, 0%) scale(1);
}
}
@keyframes overlayContentHide {
0% {
opacity: 1;
transform: translate(0%, 0%) scale(1);
}
100% {
opacity: 0;
transform: translate(0%, -2%) scale(1);
}
}
@keyframes dropdownFadeIn {
0% {
transform: scale(0.95);
opacity: 0;
}
100% {
transform: scale(1);
opacity: 1;
}
}
@keyframes dropdownFadeOut {
0% {
transform: scale(1);
opacity: 1;
}
100% {
transform: scale(0.95);
opacity: 0;
}
}
@keyframes fadeInOverlayBg {
0% {
opacity: 0;
}
100% {
opacity: 0.75;
}
}
@keyframes fadeOutOverlayBg {
0% {
opacity: 0.75;
}
100% {
opacity: 0;
}
}
@keyframes slideDown {
0% {
height: 0;
opacity: 0;
}
100% {
height: var(--radix-accordion-content-height, var(--radix-collapsible-content-height));
opacity: 1;
}
}
@keyframes slideUp {
0% {
height: var(--radix-accordion-content-height, var(--radix-collapsible-content-height));
opacity: 1;
}
100% {
height: 0;
opacity: 0;
}
}
@keyframes slideDownNormal {
0% {
height: 0;
opacity: 0;
}
100% {
height: inherit;
opacity: 1;
}
}
@keyframes slideUpNormal {
0% {
height: inherit;
opacity: 1;
}
100% {
height: 0;
opacity: 0;
}
}
@keyframes panelSlideLeftOut {
0% {
transform: translateX(-100%);
opacity: 0;
}
100% {
transform: translateX(0);
opacity: 1;
}
}
@keyframes panelSlideLeftIn {
0% {
transform: translateX(0);
opacity: 1;
}
100% {
transform: translateX(-100%);
opacity: 0;
}
}
@keyframes panelSlideRightOut {
0% {
transform: translateX(100%);
opacity: 0;
}
100% {
transform: translateX(0);
opacity: 1;
}
}
@keyframes panelSlideRightIn {
0% {
transform: translateX(0);
opacity: 1;
}
100% {
transform: translateX(100%);
opacity: 0;
}
}
@keyframes lineLoading {
0% {
margin-left: -10%;
width: 80px;
}
25% {
width: 240px;
}
50% {
margin-left: 100%;
width: 80px;
}
75% {
width: 240px;
}
100% {
margin-left: -10%;
width: 80px;
}
}
@keyframes flash-code {
0% {
background-color: rgba(63, 207, 142, 0.1);
}
100% {
background-color: transparent;
}
}
@keyframes accordion-down {
from {
height: 0;
}
to {
height: var(--radix-accordion-content-height);
}
}
@keyframes accordion-up {
from {
height: var(--radix-accordion-content-height);
}
to {
height: 0;
}
}
@keyframes collapsible-down {
from {
height: 0;
}
to {
height: var(--radix-collapsible-content-height);
}
}
@keyframes collapsible-up {
from {
height: var(--radix-collapsible-content-height);
}
to {
height: 0;
}
}
@keyframes clip-overflow-y {
from,
to {
overflow-y: clip;
}
}
@keyframes tw-shimmer {
from {
background-position: 100% 0;
}
to {
background-position: 0 0;
}
}