Skip to content

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

chore: update index page colors

Isaiah Hamilton240260978c61
diff --git a/www/components/CTABanner/index.tsx b/www/components/CTABanner/index.tsx
index 95e6a2044f8..132a0a2e6f7 100644
--- a/www/components/CTABanner/index.tsx
+++ b/www/components/CTABanner/index.tsx
@@ -17,7 +17,7 @@ const CTABanner = (props: any) => {
</div>
<div className="col-span-12 mt-4">
<a href="https://app.supabase.io/">
- <Button size="medium">Start your project</Button>
+ <Button size="medium" className="text-white">Start your project</Button>
</a>
</div>
</div>
diff --git a/www/components/CaseStudies/index.tsx b/www/components/CaseStudies/index.tsx
index f7dafc8cd88..4c8af2758d1 100644
--- a/www/components/CaseStudies/index.tsx
+++ b/www/components/CaseStudies/index.tsx
@@ -27,6 +27,7 @@ const CaseStudies = () => {
key={`caseStudy_${idx}`}
hoverable
cover={<img src={`${basePath}/${caseStudy.imgUrl}`} className="h-64 object-cover" />}
+ className="bg-scale-400"
>
<Space className="justify-between h-40" direction="vertical">
<div>
diff --git a/www/components/DarkModeToggle.tsx b/www/components/DarkModeToggle.tsx
index f7c16e87796..a36ab085c57 100644
--- a/www/components/DarkModeToggle.tsx
+++ b/www/components/DarkModeToggle.tsx
@@ -1,43 +1,5 @@
import { useTheme } from '~/components/Providers'
-
-const SunEmoji = () => (
- <svg width="32" height="32" fill="none">
- <path
- fillRule="evenodd"
- clipRule="evenodd"
- d="M16 2a1.4 1.4 0 011.4 1.4v1.4a1.4 1.4 0 11-2.8 0V3.4A1.4 1.4 0 0116 2zM6.1 6.1a1.4 1.4 0 011.98 0l.99.99a1.4 1.4 0 11-1.98 1.98l-.99-.99a1.4 1.4 0 010-1.98zm19.8 0a1.4 1.4 0 010 1.98l-.99.99a1.4 1.4 0 01-1.98-1.98l.99-.99a1.4 1.4 0 011.98 0zM9 16a7 7 0 1114 0 7 7 0 01-14 0zm-7 0a1.4 1.4 0 011.4-1.4h1.4a1.4 1.4 0 110 2.8H3.4A1.4 1.4 0 012 16zm23.8 0a1.4 1.4 0 011.4-1.4h1.4a1.4 1.4 0 110 2.8h-1.4a1.4 1.4 0 01-1.4-1.4zm-2.87 6.93a1.4 1.4 0 011.98 0l.99.99a1.4 1.4 0 01-1.98 1.98l-.99-.99a1.4 1.4 0 010-1.98zm-15.84 0a1.4 1.4 0 011.98 1.98l-.99.99a1.4 1.4 0 01-1.98-1.98l.99-.99zM16 25.8a1.4 1.4 0 011.4 1.4v1.4a1.4 1.4 0 11-2.8 0v-1.4a1.4 1.4 0 011.4-1.4z"
- fill="url(#paint0_linear)"
- />
- <defs>
- <linearGradient
- id="paint0_linear"
- x1="2"
- y1="2"
- x2="30"
- y2="30"
- gradientUnits="userSpaceOnUse"
- >
- <stop className="transition-all duration-200" stopColor="#bbbbbb" />
- <stop className="transition-all duration-200" offset="1" stopColor="#bbbbbb" />
- </linearGradient>
- </defs>
- </svg>
-)
-
-const MoonEmoji = () => (
- <svg
- width="24"
- height="24"
- fill="currentColor"
- className="transition-colors duration-200 text-gray-300"
- >
- <path
- fillRule="evenodd"
- clipRule="evenodd"
- d="M9.353 2.939a1 1 0 01.22 1.08 8 8 0 0010.408 10.408 1 1 0 011.301 1.3A10.003 10.003 0 0112 22C6.477 22 2 17.523 2 12c0-4.207 2.598-7.805 6.273-9.282a1 1 0 011.08.22z"
- />
- </svg>
-)
+import { IconSun, IconMoon } from '@supabase/ui'
function DarkModeToggle() {
const { isDarkMode, toggleTheme } = useTheme()
@@ -52,14 +14,14 @@ function DarkModeToggle() {
return (
<div className="flex items-center">
- <SunEmoji />
+ <IconSun className="text-scale-900" strokeWidth={2} />
<button
type="button"
aria-pressed="false"
className={`
relative inline-flex flex-shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer
transition-colors ease-in-out duration-200 focus:outline-none ${
- isDarkMode ? 'bg-dark-500' : 'bg-gray-200'
+ isDarkMode ? 'bg-scale-500' : 'bg-scale-900'
} mx-5
`}
onClick={() => toggleDarkMode()}
@@ -75,7 +37,7 @@ function DarkModeToggle() {
`}
/>
</button>
- <MoonEmoji />
+ <IconMoon className="text-scale-900" strokeWidth={2} />
</div>
)
}
diff --git a/www/components/Footer/index.tsx b/www/components/Footer/index.tsx
index 7cf281181e2..306029ec4d2 100644
--- a/www/components/Footer/index.tsx
+++ b/www/components/Footer/index.tsx
@@ -117,7 +117,7 @@ const Footer = () => {
</div>
</div>
</div>
- <div className="mt-32 border-t dark:border-dark pt-8 flex justify-between">
+ <div className="mt-32 border-t dark:border-scale-600 pt-8 flex justify-between">
<p className="mb-0 self-center text-base">&copy; Supabase Inc</p>
<DarkModeToggle />
</div>
diff --git a/www/components/Hero.tsx b/www/components/Hero.tsx
index 2d7a4c10d16..f04c7b2665b 100644
--- a/www/components/Hero.tsx
+++ b/www/components/Hero.tsx
@@ -39,7 +39,7 @@ const Hero = () => {
</div>
<div className="flex gap-2 items-center">
<Link href="https://app.supabase.io" as="https://app.supabase.io" passHref>
- <Button as="a" size="small">
+ <Button as="a" size="small" className="text-white">
Start your project
</Button>
</Link>
diff --git a/www/components/Nav/Announcement.tsx b/www/components/Nav/Announcement.tsx
index 468a8652b18..061e1cd1eaa 100644
--- a/www/components/Nav/Announcement.tsx
+++ b/www/components/Nav/Announcement.tsx
@@ -44,8 +44,8 @@ const Announcement = () => {
className="
relative
cursor-pointer
- bg-gradient-to-r from-green-400 to-green-600
- hover:from-green-500 hover:to-green-700
+ bg-gradient-to-r from-green-900 to-green-1000
+ hover:from-green-1000 hover:to-green-1100
text-white
flex flex-row space-x-3
"
@@ -53,7 +53,7 @@ const Announcement = () => {
<div
className="
flex items-center justify-center p-3 mx-auto text-sm lg:container lg:px-16 xl:px-20 font-medium
- lg:divide-x divide-green-400
+ lg:divide-x divide-white
"
>
<span className="px-3 hidden lg:block">{announcement.text}</span>
diff --git a/www/components/Nav/index.tsx b/www/components/Nav/index.tsx
index 9d061965438..d919ef86e1e 100644
--- a/www/components/Nav/index.tsx
+++ b/www/components/Nav/index.tsx
@@ -268,7 +268,7 @@ const Nav = () => {
</Button>
<a href="https://app.supabase.io/">
- <Button>Start your project</Button>
+ <Button className="text-white">Start your project</Button>
</a>
<a href="https://app.supabase.io/">
<Button type="text">Sign in</Button>