Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

chore: update ui

Isaiah Hamiltonbd46c17a13a5
diff --git a/apps/temp-docs/components/AuthProviders.tsx b/apps/temp-docs/components/AuthProviders.tsx
index 660f2c2e1f3..a2f7ad7b719 100644
--- a/apps/temp-docs/components/AuthProviders.tsx
+++ b/apps/temp-docs/components/AuthProviders.tsx
@@ -11,11 +11,11 @@ export default function AuthProviders() {
<Card>
<div className="flex justify-between gap-10">
<p>{x.name}</p>
- <p className="text-tiny flex items-center font-normal uppercase text-white">
+ <p className="text-xs flex items-center font-normal uppercase text-white">
{x.official ? (
- <span className="rounded bg-green-600 py-1 px-2">Official</span>
+ <span className="rounded bg-brand-800 py-1 px-2">Official</span>
) : (
- <span className="rounded bg-gray-500 p-1">Unofficial</span>
+ <span className="rounded bg-scale-500 p-1">Unofficial</span>
)}
</p>
</div>
diff --git a/apps/temp-docs/components/Footer.tsx b/apps/temp-docs/components/Footer.tsx
index bc398116b64..6d698bbb139 100644
--- a/apps/temp-docs/components/Footer.tsx
+++ b/apps/temp-docs/components/Footer.tsx
@@ -8,7 +8,7 @@ const Footer = () => {
return (
<footer
- className="border-t border-gray-100 bg-white p-10 dark:border-gray-600 dark:bg-gray-800"
+ className="border-t border-scale-400 bg-white p-10 dark:bg-scale-200"
aria-labelledby="footerHeading"
>
<h2 id="footerHeading" className="sr-only">
@@ -20,20 +20,20 @@ const Footer = () => {
<a>
<img
className="w-40"
- src={isDarkMode ? `/docs/supabase-dark.svg` : `/docs/supabase-light.svg`}
+ src={isDarkMode ? `/supabase-dark.svg` : `/supabase-light.svg`}
alt="Supabase"
/>
</a>
</Link>
<div className="flex space-x-5">
- <a href="https://twitter.com/supabase" className="text-gray-300 hover:text-gray-400">
+ <a href="https://twitter.com/supabase" className="text-scale-900 hover:text-scale-1100">
<span className="sr-only">Twitter</span>
<svg className="h-6 w-6" fill="currentColor" viewBox="0 0 24 24" aria-hidden="true">
<path d="M8.29 20.251c7.547 0 11.675-6.253 11.675-11.675 0-.178 0-.355-.012-.53A8.348 8.348 0 0022 5.92a8.19 8.19 0 01-2.357.646 4.118 4.118 0 001.804-2.27 8.224 8.224 0 01-2.605.996 4.107 4.107 0 00-6.993 3.743 11.65 11.65 0 01-8.457-4.287 4.106 4.106 0 001.27 5.477A4.072 4.072 0 012.8 9.713v.052a4.105 4.105 0 003.292 4.022 4.095 4.095 0 01-1.853.07 4.108 4.108 0 003.834 2.85A8.233 8.233 0 012 18.407a11.616 11.616 0 006.29 1.84" />
</svg>
</a>
- <a href="https://github.com/supabase" className="text-gray-300 hover:text-gray-400">
+ <a href="https://github.com/supabase" className="text-scale-900 hover:text-scale-1100">
<span className="sr-only">GitHub</span>
<svg className="h-6 w-6" fill="currentColor" viewBox="0 0 24 24" aria-hidden="true">
<path
@@ -44,7 +44,7 @@ const Footer = () => {
</svg>
</a>
- <a href="https://discord.supabase.com/" className="text-gray-300 hover:text-gray-400">
+ <a href="https://discord.supabase.com/" className="text-scale-900 hover:text-scale-1100">
<span className="sr-only">Discord</span>
<svg className="h-6 w-6" fill="currentColor" viewBox="0 0 71 55" aria-hidden="true">
<path
@@ -55,7 +55,7 @@ const Footer = () => {
</svg>
</a>
- <a href="https://youtube.com/c/supabase" className="text-gray-300 hover:text-gray-400">
+ <a href="https://youtube.com/c/supabase" className="text-scale-900 hover:text-scale-1100">
<span className="sr-only">Youtube</span>
<svg className="h-6 w-6" fill="currentColor" viewBox="0 0 576 512" aria-hidden="true">
<path d="M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z" />
@@ -68,7 +68,7 @@ const Footer = () => {
{footer.map((segment: any) => {
return (
<div key={`footer_${segment.title}`}>
- <h3 className="text-sm text-gray-600 dark:text-gray-200">{segment.title}</h3>
+ <h3 className="text-sm text-scale-900 dark:text-scale-800">{segment.title}</h3>
<ul className="mt-4 space-y-2">
{segment.links.map((link: any, idx: number) => (
<li key={`${segment.title}_link_${idx}`}>
@@ -76,9 +76,9 @@ const Footer = () => {
href={link.url}
className={`text-sm ${
link.url
- ? 'text-gray-400 dark:text-gray-400'
- : 'text-gray-300 dark:text-gray-300'
- } hover:text-gray-900 dark:hover:text-gray-300`}
+ ? 'text-scale-1000 dark:text-scale-1000'
+ : 'text-scale-300 dark:text-scale-300'
+ } hover:text-scale-900 dark:hover:text-scale-500`}
>
{link.text}
{!link.url && (
@@ -96,8 +96,8 @@ const Footer = () => {
</div>
</div>
</div>
- <div className="dark:border-dark mt-32 flex justify-between border-t pt-8">
- <p className="dark:text-dark-400 mb-0 self-center text-base text-gray-400">
+ <div className="dark:border-scale-400 mt-32 flex justify-between border-t pt-8">
+ <p className="dark:text-dark-400 mb-0 self-center text-sm text-scale-800">
&copy; {new Date().getFullYear()} Supabase.
</p>
</div>
diff --git a/apps/temp-docs/components/LinkCard.tsx b/apps/temp-docs/components/LinkCard.tsx
index cdcbe476b8a..42a3abdd8f1 100644
--- a/apps/temp-docs/components/LinkCard.tsx
+++ b/apps/temp-docs/components/LinkCard.tsx
@@ -10,7 +10,7 @@ export default function LinkCard({
icon: ReactElement
}) {
return (
- <div className="hover:border-brand-600 m-4 w-full cursor-pointer rounded-md border border-black px-4 shadow-sm hover:border-2 hover:shadow-2xl dark:bg-gray-900 lg:w-2/5">
+ <div className="m-4 w-full cursor-pointer rounded-md border border-scale-200 hover:border-brand-900 px-4 shadow-sm hover:shadow-2xl dark:bg-scale-400 lg:w-2/5">
{description ? (
<>
<h4 className="my-0 p-0">{title}</h4>
diff --git a/apps/temp-docs/components/layouts/Layout.tsx b/apps/temp-docs/components/layouts/Layout.tsx
index 4a60d6ab71d..4ff31541aac 100644
--- a/apps/temp-docs/components/layouts/Layout.tsx
+++ b/apps/temp-docs/components/layouts/Layout.tsx
@@ -43,10 +43,10 @@ const DocsLayout = ({
<div className="flex flex-row">
<SideBar menuItems={menuItems} />
<div className="mx-auto grid w-full max-w-7xl grid-cols-12">
- <article className="prose dark:prose-dark col-span-8 max-w-none p-8">
+ <article className="prose dark:prose-dark dark:bg-scale-200 col-span-8 max-w-none p-8">
{children}
</article>
- <div className="prose dark:prose-dark col-span-4 max-w-none p-8">
+ <div className="prose dark:bg-scale-200 col-span-4 max-w-none p-8">
<h5>On this page</h5>
{toc
? toc.json.map((item: any) => {
diff --git a/apps/temp-docs/components/nav/NavBar.tsx b/apps/temp-docs/components/nav/NavBar.tsx
index d6354a613bc..30788a65b49 100644
--- a/apps/temp-docs/components/nav/NavBar.tsx
+++ b/apps/temp-docs/components/nav/NavBar.tsx
@@ -33,7 +33,7 @@ const NavBar = ({ currentPage }: { currentPage: string }) => {
return (
<nav
- className={`dark:border-dark sticky top-0 z-10 flex h-[72px] justify-between border-b bg-white p-4 backdrop-blur backdrop-filter dark:bg-gray-800`}
+ className={`dark:border-scale-400 sticky top-0 z-10 flex h-[72px] justify-between border-b bg-white p-4 backdrop-blur backdrop-filter dark:bg-scale-200`}
>
<div className="flex items-center">
<button className="mr-2 block lg:hidden">
@@ -44,7 +44,7 @@ const NavBar = ({ currentPage }: { currentPage: string }) => {
<a>
<Image
className="cursor-pointer"
- src={isDarkMode ? `/docs/supabase-dark.svg` : `/docs/supabase-light.svg`}
+ src={isDarkMode ? `/supabase-dark.svg` : `/supabase-light.svg`}
width={200}
height={32}
alt="Supabase Logo"
@@ -58,7 +58,7 @@ const NavBar = ({ currentPage }: { currentPage: string }) => {
<li key={`${p.text}-${p.link}`}>
<Link href={p.link}>
<a
- className={`${p.active ? 'text-gray-800 dark:text-gray-200' : 'text-brand-600'}`}
+ className={`text-sm ${p.active ? 'text-brand-900' : 'text-scale-1100'}`}
>
{p.text}
</a>
@@ -67,7 +67,7 @@ const NavBar = ({ currentPage }: { currentPage: string }) => {
))}
<li>
<Link href="https://app.supabase.io">
- <a className={`text-brand-600`}>Login</a>
+ <a className={`text-sm text-scale-1100`}>Login</a>
</Link>
</li>
</ul>
@@ -75,12 +75,12 @@ const NavBar = ({ currentPage }: { currentPage: string }) => {
<div className={`${styles.navRight} flex items-center`}>
<Link href="https://github.com/supabase/supabase">
<a>
- <IconGitHub className="text-brand-600" />
+ <IconGitHub className="text-scale-1100" />
</a>
</Link>
<Link href="https://twitter.com/supabase">
<a>
- <IconTwitter className="text-brand-600" />
+ <IconTwitter className="text-scale-1100" />
</a>
</Link>
<Input
diff --git a/apps/temp-docs/components/nav/SideBar.tsx b/apps/temp-docs/components/nav/SideBar.tsx
index ab86f68bfb5..34dc80fe2e9 100644
--- a/apps/temp-docs/components/nav/SideBar.tsx
+++ b/apps/temp-docs/components/nav/SideBar.tsx
@@ -7,7 +7,7 @@ import ThemeToggle from '../ThemeToggle'
const SideBar = ({ menuItems }: { menuItems: any }) => {
const { asPath } = useRouter()
return (
- <div className={`${styles.sidebar} dark:border-dark fixed relative h-full border-r py-4`}>
+ <div className={`${styles.sidebar} dark:bg-scale-200 dark:border-scale-400 relative h-full border-r py-4`}>
<Menu>
<div>
{Object.keys(menuItems).map((key) => {
diff --git a/apps/temp-docs/package.json b/apps/temp-docs/package.json
index 2002b8360a5..c32a7ff8879 100644
--- a/apps/temp-docs/package.json
+++ b/apps/temp-docs/package.json
@@ -12,7 +12,7 @@
"@mdx-js/loader": "^1.6.22",
"@mdx-js/react": "^1.6.22",
"@next/mdx": "^12.0.4",
- "@supabase/ui": "^0.36.2",
+ "@supabase/ui": "v0.37.0-alpha.50",
"@tailwindcss/typography": "^0.4.1",
"common": "*",
"gray-matter": "^4.0.3",
diff --git a/apps/temp-docs/styles/tailwind.css b/apps/temp-docs/styles/tailwind.css
index b5c61c95671..63b2c2e100a 100644
--- a/apps/temp-docs/styles/tailwind.css
+++ b/apps/temp-docs/styles/tailwind.css
@@ -1,3 +1,12 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
+
+body {
+ @apply bg-white dark:bg-[#1c1c1c] !important;
+}
+
+::selection {
+ background-color: #6ee7b7;
+ color: #333 !important;
+}
\ No newline at end of file