mirror of
https://github.com/supabase/supabase.git
synced 2026-12-06 08:29:01 +00:00
## What kind of change does this PR introduce? Refactor. Follow-up to #49871. ## What is the current behavior? Branded (green) text still uses the `text-brand` classname while the colour comes from `--primary`. ## What is the new behavior? **Rename-only:** `text-brand` → `text-primary` across callsites and docs. Leftover `bg-brand` / `border-brand` alias to `brand-default`. No intentional colour changes in this PR. This better matches how we treat our green in other components and props, like `variant="primary"` for green buttons. ## To test On light mode: smoke-test that branded text still looks like #49871 (readable green, not the bright fill). - [Homepage](https://zone-www-dot-com-git-dnywh-depr-316-text-brand-de2380-supabase.vercel.app/): “Scale to millions” uses `text-primary` - [Docs homepage](https://docs-git-dnywh-depr-316-text-brand-to-primary-supabase.vercel.app/docs): branded links like “More on self-hosting” are still readable - [Typography docs](https://design-system-git-dnywh-depr-316-text-brand-to-primary-supabase.vercel.app/design-system/docs/typography): documents `text-primary` - [Colour usage](https://design-system-git-dnywh-depr-316-text-brand-to-primary-supabase.vercel.app/design-system/docs/color-usage): `text-primary` is visibly darker than `bg-brand-default` _on light mode_ - [Studio auth providers](https://studio-staging-git-dnywh-depr-316-text-brand-to-60fa6c-supabase.vercel.app/dashboard/project/_/auth/providers): enabled provider badge text readable; status dot stays bright green <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Style** * Updated branded text, link hover states, icons, badges, indicators, and highlighted content across the Design System, Docs, Studio, Learn, UI Library, and marketing experiences to use the primary theme color. * Updated syntax highlighting and table-of-contents styling for consistent primary-color presentation. * Refined brand color fallback behavior for bright fills and borders. * **Documentation** * Updated color-usage and typography guidance to recommend the primary text utility. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
51 lines
1.8 KiB
TypeScript
51 lines
1.8 KiB
TypeScript
import { SurveySectionBreak } from './SurveySectionBreak'
|
|
|
|
export interface PullQuoteGridItem {
|
|
quote: string
|
|
author: string
|
|
authorPosition?: string
|
|
theme?: string
|
|
}
|
|
|
|
export function SurveyPullQuoteGrid({ quotes }: { quotes: PullQuoteGridItem[] }) {
|
|
return (
|
|
<>
|
|
<aside className="relative border-b border-muted md:border-b-0">
|
|
<div
|
|
className="absolute inset-0 pointer-events-none bg-surface-400 dark:bg-surface-75"
|
|
style={{
|
|
maskImage: 'url("/images/state-of-startups/pattern-stipple.svg")',
|
|
maskSize: '4px',
|
|
maskRepeat: 'repeat',
|
|
maskPosition: 'top left',
|
|
}}
|
|
/>
|
|
<div className="relative max-w-240 mx-auto md:border-x border-muted bg-alternative grid grid-cols-1 md:grid-cols-2 divide-y md:divide-y-0 md:divide-x divide-muted [&>*:nth-child(1)]:md:border-b [&>*:nth-child(2)]:md:border-b [&>*]:md:border-muted">
|
|
{quotes.map((q, i) => (
|
|
<div key={i} className="flex flex-col gap-4 px-8 py-12">
|
|
{q.theme && (
|
|
<span className="text-primary text-xs font-mono uppercase tracking-widest">
|
|
{q.theme}
|
|
</span>
|
|
)}
|
|
<p className="text-foreground-lighter text-xl tracking-tight text-balance">
|
|
“{q.quote}”
|
|
</p>
|
|
<p className="mt-auto">
|
|
{q.author}
|
|
{q.authorPosition && (
|
|
<>
|
|
<br />
|
|
<span className="text-foreground-muted text-sm">{q.authorPosition}</span>
|
|
</>
|
|
)}
|
|
</p>
|
|
</div>
|
|
))}
|
|
</div>
|
|
</aside>
|
|
<SurveySectionBreak className="hidden md:block" />
|
|
</>
|
|
)
|
|
}
|