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 -->
98 lines
5.1 KiB
TypeScript
98 lines
5.1 KiB
TypeScript
import { Auth, Database, Realtime } from 'icons'
|
|
import { Paintbrush } from 'lucide-react'
|
|
import Link from 'next/link'
|
|
|
|
import { HomepageSvgHandler } from '@/components/homepage-svg-handler'
|
|
|
|
export default function Home() {
|
|
return (
|
|
<div className="relative gap-4 px-6 py-6 lg:py-8">
|
|
<div className="mx-auto w-full min-w-0 max-w-4xl flex-1">
|
|
<div className="flex flex-col gap-2 justify-start my-8 w-full">
|
|
<h1 className="text-2xl lg:text-4xl text-foreground">Supabase Design System</h1>
|
|
<h2 className="md:text-xl text-base text-foreground-light font-light">
|
|
Design resources for building consistent user experiences
|
|
</h2>
|
|
</div>
|
|
|
|
<div className="grid md:grid-cols-2 grid-cols-1 gap-4 w-full">
|
|
<Link href="/docs/color-usage" className="h-full flex">
|
|
<div className="p-6 gap-4 flex flex-col justify-between h-full w-full bg-surface-75 hover:bg-overlay/50 hover:border-foreground-muted cursor-pointer transition-all border rounded-md">
|
|
<div className="flex flex-col gap-2 min-h-[24px]">
|
|
<HomepageSvgHandler name="colours" className="w-6 h-6" />
|
|
</div>
|
|
<div>
|
|
<h3 className="font-medium text-foreground">Colors</h3>
|
|
<p className="text-sm text-foreground-light">Custom color palette for Supabase</p>
|
|
</div>
|
|
</div>
|
|
</Link>
|
|
|
|
<Link href="/docs/icons" className="h-full flex">
|
|
<div className="p-6 gap-4 flex flex-col justify-between h-full w-full bg-surface-75 hover:bg-overlay/50 hover:border-foreground-muted cursor-pointer transition-all border rounded-md">
|
|
<div className="flex items-center justify-start min-h-[24px] gap-3 text-primary">
|
|
<Realtime className="w-5 h-5" strokeWidth={1.5} stroke="currentColor" />
|
|
<Database className="w-5 h-5 opacity-60" strokeWidth={1.5} stroke="currentColor" />
|
|
<Auth className="w-5 h-5 opacity-30" strokeWidth={1.5} stroke="currentColor" />
|
|
</div>
|
|
<div>
|
|
<h3 className="font-medium text-foreground">Icons</h3>
|
|
<p className="text-sm text-foreground-light">Custom icons for Supabase</p>
|
|
</div>
|
|
</div>
|
|
</Link>
|
|
|
|
<Link href="/docs/theming" className="h-full flex">
|
|
<div className="p-6 gap-4 flex flex-col justify-between h-full w-full bg-surface-75 hover:bg-overlay/50 hover:border-foreground-muted cursor-pointer transition-all border rounded-md">
|
|
<div className="flex items-center justify-start min-h-[24px] text-primary">
|
|
<Paintbrush className="w-6 h-6" strokeWidth={1.5} stroke="currentColor" />
|
|
</div>
|
|
<div>
|
|
<h3 className="font-medium text-foreground">Theming</h3>
|
|
<p className="text-sm text-foreground-light">Simple extensible theming system</p>
|
|
</div>
|
|
</div>
|
|
</Link>
|
|
<Link href="/docs/ui-patterns/introduction" className="h-full flex">
|
|
<div className="p-6 gap-4 flex flex-col justify-between h-full w-full bg-surface-75 hover:bg-overlay/50 hover:border-foreground-muted cursor-pointer transition-all border rounded-md">
|
|
<div className="flex items-center justify-start min-h-[24px]">
|
|
<HomepageSvgHandler name="ui-patterns" className="w-6 h-6" />
|
|
</div>
|
|
<div>
|
|
<h3 className="font-medium text-foreground">UI patterns</h3>
|
|
<p className="text-sm text-foreground-light">
|
|
Design guidelines for common interface patterns
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</Link>
|
|
|
|
<Link href="/docs/fragments/introduction" className="h-full flex">
|
|
<div className="p-6 gap-4 flex flex-col justify-between h-full w-full bg-surface-75 hover:bg-overlay/50 hover:border-foreground-muted cursor-pointer transition-all border rounded-md">
|
|
<div className="flex items-center justify-start min-h-[24px]">
|
|
<HomepageSvgHandler name="fragments" className="w-6 h-6" />
|
|
</div>
|
|
<div>
|
|
<h3 className="font-medium text-foreground">Fragment components</h3>
|
|
<p className="text-sm text-foreground-light">Components assembled from atoms</p>
|
|
</div>
|
|
</div>
|
|
</Link>
|
|
|
|
<Link href="/docs/components/introduction" className="h-full flex">
|
|
<div className="p-6 gap-4 flex flex-col justify-between h-full w-full bg-surface-75 hover:bg-overlay/50 hover:border-foreground-muted cursor-pointer transition-all border rounded-md">
|
|
<div className="flex items-center justify-start min-h-[24px]">
|
|
<HomepageSvgHandler name="atoms" className="w-6 h-6" />
|
|
</div>
|
|
<div>
|
|
<h3 className="font-medium text-foreground">Atom components</h3>
|
|
<p className="text-sm text-foreground-light">Building blocks of user interfaces</p>
|
|
</div>
|
|
</div>
|
|
</Link>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|