Skip to content

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

Migrate to styling tokens (#18314)

Francesco Sansalvadoreb91532f6c759
diff --git a/apps/docs/components/ButtonCard.tsx b/apps/docs/components/ButtonCard.tsx
index 8c5a9970710..5180cc90786 100644
--- a/apps/docs/components/ButtonCard.tsx
+++ b/apps/docs/components/ButtonCard.tsx
@@ -1,6 +1,6 @@
+import React, { FC } from 'react'
import Image from 'next/legacy/image'
import Link from 'next/link'
-import { FC } from 'react'
interface Props {
title: string
@@ -23,8 +23,8 @@ const ButtonCard: FC<Props> = ({
<Link
href={to}
className={[
- 'h-full block shadow-none bg-scale-300 rounded transition',
- 'border border-transparent hover:border-scale-600',
+ 'h-full block shadow-none bg-surface-100 rounded transition',
+ 'border border-transparent hover:border-overlay',
].join(' ')}
>
{children ? (
@@ -43,7 +43,7 @@ const ButtonCard: FC<Props> = ({
) : (
icon
)}
- <h3 className="my-0 text-base text-scale-1200">{title}</h3>
+ <h3 className="my-0 text-base text-foreground">{title}</h3>
<p className="my-0 text-sm">{description}</p>
</div>
)}
diff --git a/apps/docs/components/DocsCoverLogo.tsx b/apps/docs/components/DocsCoverLogo.tsx
index b7065feb555..5332c59c958 100644
--- a/apps/docs/components/DocsCoverLogo.tsx
+++ b/apps/docs/components/DocsCoverLogo.tsx
@@ -45,7 +45,7 @@ const DocsCoverLogo = () => {
animate={pathMotionConfig.animate}
transition={pathMotionConfig.transition as any}
d="M125.25 191.383C167.828 191.383 202.344 156.867 202.344 114.289C202.344 71.7115 167.828 37.1953 125.25 37.1953C82.6724 37.1953 48.1562 71.7115 48.1562 114.289C48.1562 156.867 82.6724 191.383 125.25 191.383Z"
- stroke="var(--colors-scale11)"
+ stroke="hsl(var(--foreground-light))"
strokeOpacity="0.1"
strokeWidth="0.7"
strokeMiterlimit="10"
@@ -213,7 +213,7 @@ const DocsCoverLogo = () => {
animate={pathMotionConfig.animate}
transition={pathMotionConfig.transition as any}
d="M218.024 169.846H32.498"
- stroke="var(--colors-scale11)"
+ stroke="hsl(var(--foreground-light))"
strokeOpacity="0.1"
strokeWidth="0.7"
strokeMiterlimit="10"
@@ -289,8 +289,8 @@ const DocsCoverLogo = () => {
gradientUnits="userSpaceOnUse"
gradientTransform="translate(125.451 114.82) rotate(90) scale(109.781 0.5)"
>
- <stop stopColor="var(--colors-scale11)" stopOpacity="0.5" />
- <stop offset="1" stopColor="var(--colors-scale10)" stopOpacity="0" />
+ <stop stopColor="hsl(var(--foreground-light))" stopOpacity="0.5" />
+ <stop offset="1" stopColor="hsl(var(--foreground-lighter))" stopOpacity="0" />
</radialGradient>
<linearGradient
id="paint1_linear_0_1"
@@ -300,8 +300,8 @@ const DocsCoverLogo = () => {
y2="11.9994"
gradientUnits="userSpaceOnUse"
>
- <stop stopColor="var(--colors-scale11)" stopOpacity="0.5" />
- <stop offset="1" stopColor="var(--colors-scale10)" stopOpacity="0" />
+ <stop stopColor="hsl(var(--foreground-light))" stopOpacity="0.5" />
+ <stop offset="1" stopColor="hsl(var(--foreground-lighter))" stopOpacity="0" />
</linearGradient>
<linearGradient
id="paint2_linear_0_1"
@@ -311,8 +311,8 @@ const DocsCoverLogo = () => {
y2="204.984"
gradientUnits="userSpaceOnUse"
>
- <stop stopColor="var(--colors-scale11)" stopOpacity="0.5" />
- <stop offset="1" stopColor="var(--colors-scale10)" stopOpacity="0" />
+ <stop stopColor="hsl(var(--foreground-light))" stopOpacity="0.5" />
+ <stop offset="1" stopColor="hsl(var(--foreground-lighter))" stopOpacity="0" />
</linearGradient>
<linearGradient
id="paint3_linear_0_1"
@@ -322,8 +322,8 @@ const DocsCoverLogo = () => {
y2="13.9993"
gradientUnits="userSpaceOnUse"
>
- <stop stopColor="var(--colors-scale11)" stopOpacity="0.5" />
- <stop offset="1" stopColor="var(--colors-scale10)" stopOpacity="0" />
+ <stop stopColor="hsl(var(--foreground-light))" stopOpacity="0.5" />
+ <stop offset="1" stopColor="hsl(var(--foreground-lighter))" stopOpacity="0" />
</linearGradient>
<linearGradient
id="paint4_linear_0_1"
@@ -333,8 +333,8 @@ const DocsCoverLogo = () => {
y2="204.984"
gradientUnits="userSpaceOnUse"
>
- <stop stopColor="var(--colors-scale11)" stopOpacity="0.5" />
- <stop offset="1" stopColor="var(--colors-scale10)" stopOpacity="0" />
+ <stop stopColor="hsl(var(--foreground-light))" stopOpacity="0.5" />
+ <stop offset="1" stopColor="hsl(var(--foreground-lighter))" stopOpacity="0" />
</linearGradient>
<linearGradient
id="paint5_linear_0_1"
@@ -344,9 +344,9 @@ const DocsCoverLogo = () => {
y2="-7.94661"
gradientUnits="userSpaceOnUse"
>
- <stop stopColor="var(--colors-scale10)" stopOpacity="0" />
- <stop offset="0.489583" stopColor="var(--colors-scale11)" stopOpacity="0.5" />
- <stop offset="1" stopColor="var(--colors-scale10)" stopOpacity="0" />
+ <stop stopColor="hsl(var(--foreground-lighter))" stopOpacity="0" />
+ <stop offset="0.489583" stopColor="hsl(var(--foreground-light))" stopOpacity="0.5" />
+ <stop offset="1" stopColor="hsl(var(--foreground-lighter))" stopOpacity="0" />
</linearGradient>
<linearGradient
id="paint6_linear_0_1"
@@ -356,9 +356,9 @@ const DocsCoverLogo = () => {
y2="-3.99932"
gradientUnits="userSpaceOnUse"
>
- <stop stopColor="var(--colors-scale10)" stopOpacity="0" />
- <stop offset="0.489583" stopColor="var(--colors-scale11)" stopOpacity="0.5" />
- <stop offset="1" stopColor="var(--colors-scale10)" stopOpacity="0" />
+ <stop stopColor="hsl(var(--foreground-lighter))" stopOpacity="0" />
+ <stop offset="0.489583" stopColor="hsl(var(--foreground-light))" stopOpacity="0.5" />
+ <stop offset="1" stopColor="hsl(var(--foreground-lighter))" stopOpacity="0" />
</linearGradient>
<linearGradient
id="paint7_linear_0_1"
@@ -368,9 +368,9 @@ const DocsCoverLogo = () => {
y2="199.061"
gradientUnits="userSpaceOnUse"
>
- <stop stopColor="var(--colors-scale10)" stopOpacity="0.1" />
- <stop offset="0.505208" stopColor="var(--colors-scale11)" stopOpacity="0.5" />
- <stop offset="1" stopColor="var(--colors-scale10)" stopOpacity="0.1" />
+ <stop stopColor="hsl(var(--foreground-lighter))" stopOpacity="0.1" />
+ <stop offset="0.505208" stopColor="hsl(var(--foreground-light))" stopOpacity="0.5" />
+ <stop offset="1" stopColor="hsl(var(--foreground-lighter))" stopOpacity="0.1" />
</linearGradient>
<radialGradient
id="paint8_radial_0_1"
@@ -380,8 +380,8 @@ const DocsCoverLogo = () => {
gradientUnits="userSpaceOnUse"
gradientTransform="translate(125.752 114.291) rotate(90) scale(109.271 0.5)"
>
- <stop stopColor="var(--colors-scale11)" stopOpacity="0.5" />
- <stop offset="1" stopColor="var(--colors-scale10)" stopOpacity="0" />
+ <stop stopColor="hsl(var(--foreground-light))" stopOpacity="0.5" />
+ <stop offset="1" stopColor="hsl(var(--foreground-lighter))" stopOpacity="0" />
</radialGradient>
<linearGradient
id="paint9_linear_0_1"
@@ -391,8 +391,8 @@ const DocsCoverLogo = () => {
y2="6.31757"
gradientUnits="userSpaceOnUse"
>
- <stop stopColor="var(--colors-scale11)" stopOpacity="0.3" />
- <stop offset="1" stopColor="var(--colors-scale10)" stopOpacity="0" />
+ <stop stopColor="hsl(var(--foreground-light))" stopOpacity="0.3" />
+ <stop offset="1" stopColor="hsl(var(--foreground-lighter))" stopOpacity="0" />
</linearGradient>
<linearGradient
id="paint10_linear_0_1"
@@ -402,8 +402,8 @@ const DocsCoverLogo = () => {
y2="200"
gradientUnits="userSpaceOnUse"
>
- <stop stopColor="var(--colors-scale11)" stopOpacity="0.3" />
- <stop offset="1" stopColor="var(--colors-scale10)" stopOpacity="0" />
+ <stop stopColor="hsl(var(--foreground-light))" stopOpacity="0.3" />
+ <stop offset="1" stopColor="hsl(var(--foreground-lighter))" stopOpacity="0" />
</linearGradient>
<linearGradient
id="paint11_linear_0_1"
@@ -413,9 +413,9 @@ const DocsCoverLogo = () => {
y2="199.061"
gradientUnits="userSpaceOnUse"
>
- <stop stopColor="var(--colors-scale10)" stopOpacity="0.1" />
- <stop offset="0.505208" stopColor="var(--colors-scale11)" stopOpacity="0.5" />
- <stop offset="1" stopColor="var(--colors-scale10)" stopOpacity="0.1" />
+ <stop stopColor="hsl(var(--foreground-lighter))" stopOpacity="0.1" />
+ <stop offset="0.505208" stopColor="hsl(var(--foreground-light))" stopOpacity="0.5" />
+ <stop offset="1" stopColor="hsl(var(--foreground-lighter))" stopOpacity="0.1" />
</linearGradient>
<radialGradient
id="paint12_radial_0_1"
@@ -425,8 +425,8 @@ const DocsCoverLogo = () => {
gradientUnits="userSpaceOnUse"
gradientTransform="translate(125.261 59.2344) rotate(90) scale(0.5 263.749)"
>
- <stop stopColor="var(--colors-scale11)" stopOpacity="0.5" />
- <stop offset="1" stopColor="var(--colors-scale10)" stopOpacity="0" />
+ <stop stopColor="hsl(var(--foreground-light))" stopOpacity="0.5" />
+ <stop offset="1" stopColor="hsl(var(--foreground-lighter))" stopOpacity="0" />
</radialGradient>
<linearGradient
id="paint13_linear_0_1"
@@ -436,9 +436,9 @@ const DocsCoverLogo = () => {
y2="94.9749"
gradientUnits="userSpaceOnUse"
>
- <stop stopColor="var(--colors-scale10)" stopOpacity="0.5" />
- <stop offset="0.505208" stopColor="var(--colors-scale11)" stopOpacity="0.5" />
- <stop offset="1" stopColor="var(--colors-scale10)" stopOpacity="0.5" />
+ <stop stopColor="hsl(var(--foreground-lighter))" stopOpacity="0.5" />
+ <stop offset="0.505208" stopColor="hsl(var(--foreground-light))" stopOpacity="0.5" />
+ <stop offset="1" stopColor="hsl(var(--foreground-lighter))" stopOpacity="0.5" />
</linearGradient>
<linearGradient
id="paint14_linear_0_1"
@@ -448,9 +448,9 @@ const DocsCoverLogo = () => {
y2="131.43"
gradientUnits="userSpaceOnUse"
>
- <stop stopColor="var(--colors-scale10)" stopOpacity="0.5" />
- <stop offset="0.505208" stopColor="var(--colors-scale11)" stopOpacity="0.5" />
- <stop offset="1" stopColor="var(--colors-scale10)" stopOpacity="0.5" />
+ <stop stopColor="hsl(var(--foreground-lighter))" stopOpacity="0.5" />
+ <stop offset="0.505208" stopColor="hsl(var(--foreground-light))" stopOpacity="0.5" />
+ <stop offset="1" stopColor="hsl(var(--foreground-lighter))" stopOpacity="0.5" />
</linearGradient>
<linearGradient
id="paint15_linear_0_1"
@@ -460,9 +460,9 @@ const DocsCoverLogo = () => {
y2="1.99785"
gradientUnits="userSpaceOnUse"
>
- <stop stopColor="var(--colors-scale10)" stopOpacity="0.1" />
- <stop offset="0.505208" stopColor="var(--colors-scale11)" stopOpacity="0.5" />
- <stop offset="1" stopColor="var(--colors-scale10)" stopOpacity="0.1" />
+ <stop stopColor="hsl(var(--foreground-lighter))" stopOpacity="0.1" />
+ <stop offset="0.505208" stopColor="hsl(var(--foreground-light))" stopOpacity="0.5" />
+ <stop offset="1" stopColor="hsl(var(--foreground-lighter))" stopOpacity="0.1" />
</linearGradient>
<linearGradient
id="paint16_linear_0_1"
diff --git a/apps/docs/components/Extensions.tsx b/apps/docs/components/Extensions.tsx
index 4c627b66888..d8ca49e3c69 100644
--- a/apps/docs/components/Extensions.tsx
+++ b/apps/docs/components/Extensions.tsx
@@ -48,7 +48,7 @@ export default function Extensions() {
return (
<>
<div className="mb-8 grid">
- <label className="mb-2 text-xs text-scale-1100">Search extensions</label>
+ <label className="mb-2 text-xs text-foreground-light">Search extensions</label>
<Input
type="text"
placeholder="Extension name"
@@ -58,14 +58,14 @@ export default function Extensions() {
<div className="lg:grid lg:grid-cols-12">
<div className="col-span-3 not-prose">
<div className="lg:sticky top-24">
- <h3 className="text-sm text-scale-1100">Filter</h3>
+ <h3 className="text-sm text-foreground-light">Filter</h3>
<ul className="mt-3 flex flex-wrap lg:grid gap-2 grow">
{tags.sort().map((tag) => (
<li key={tag}>
<label
htmlFor={tag}
- className={`text-sm text-scale-1000 py-0.5 px-2 capitalize inline-block rounded-lg hover:bg-slate-400 hover:border-slate-400 cursor-pointer border ${
- filters.includes(tag) ? 'bg-slate-400 ' : ''
+ className={`text-sm text-foreground-lighter py-0.5 px-2 capitalize inline-block rounded-lg hover:bg-surface-100 cursor-pointer border ${
+ filters.includes(tag) ? 'bg-surface-100 ' : ''
}`}
>
<span className="flex items-center gap-1">
diff --git a/apps/docs/components/FooterHelpCallout.tsx b/apps/docs/components/FooterHelpCallout.tsx
index 429ed15d4e6..82ee40b9a44 100644
--- a/apps/docs/components/FooterHelpCallout.tsx
+++ b/apps/docs/components/FooterHelpCallout.tsx
@@ -26,12 +26,12 @@ const FooterHelpCallout = ({
className="
min-w-full
px-8 py-6
- bg-scale-300 dark:bg-whiteA-200
+ bg-background
rounded
- text-sm text-scale-900
+ text-sm text-foreground-muted
"
>
- <h5 className="text-sm text-scale-1100 m-0">{content[footerHelpType].title}</h5>
+ <h5 className="text-sm text-foreground-light m-0">{content[footerHelpType].title}</h5>
<ReactMarkdown>{content[footerHelpType].description}</ReactMarkdown>
</div>
</div>
diff --git a/apps/docs/components/GuidesTableOfContents.tsx b/apps/docs/components/GuidesTableOfContents.tsx
index 553f3165452..c337d27c153 100644
--- a/apps/docs/components/GuidesTableOfContents.tsx
+++ b/apps/docs/components/GuidesTableOfContents.tsx
@@ -16,7 +16,7 @@ const formatTOCHeader = (content: string) => {
if (x === '`') {
if (!begin) {
begin = true
- res.push(`<code class="text-xs border rounded bg-scale-400 border-scale-500">`)
+ res.push(`<code class="text-xs border rounded bg-muted">`)
} else {
begin = false
res.push(`</code>`)
@@ -46,7 +46,7 @@ const GuidesTableOfContents: FC<Props> = ({ list }) => {
<li key={`${item.level}-${i}`} className={item.level === 3 ? 'ml-4' : ''}>
<a
href={`#${formatSlug(item.link)}`}
- className="text-scale-1000 hover:text-brand transition-colors"
+ className="text-foreground-lighter hover:text-brand transition-colors"
dangerouslySetInnerHTML={{ __html: formatTOCHeader(removeAnchor(item.text)) }}
/>
</li>
diff --git a/apps/docs/components/HomePageCover.tsx b/apps/docs/components/HomePageCover.tsx
index 9487e0fc52a..098e7dd4dd6 100644
--- a/apps/docs/components/HomePageCover.tsx
+++ b/apps/docs/components/HomePageCover.tsx
@@ -63,7 +63,7 @@ const HomePageCover = (props) => {
const GettingStarted = () => (
<div
className="
- border bg-scale-200
+ border bg-background
relative overflow-hidden
grid grid-cols-12
rounded-lg
@@ -74,11 +74,11 @@ const HomePageCover = (props) => {
<div className="md:max-w-xs shrink w-fit xl:max-w-none">
<div className="flex items-center gap-3 mb-3">
<IconBackground>
- <IconPlay className="text-brand-600 dark:text-brand w-4" strokeWidth={2} />
+ <IconPlay className="text-brand w-4" strokeWidth={2} />
</IconBackground>
<h3 className="text-2xl m-0">Getting Started</h3>
</div>
- <p className="text-scale-1100 text-sm">
+ <p className="text-foreground-light text-sm">
Discover how to set up a database to an app making queries in just a few minutes.
</p>
</div>
@@ -99,13 +99,13 @@ const HomePageCover = (props) => {
)
return (
- <div className="w-full bg-scale-100 border-b prose dark:prose-dar max-w-none mb-16 md:mb-12 xl:mb-0">
+ <div className="w-full bg-alternative border-b prose dark:prose-dar max-w-none mb-16 md:mb-12 xl:mb-0">
<div className="max-w-7xl px-5 mx-auto py-8 sm:pb-16 sm:pt-12 xl:pt-16 flex flex-col xl:flex-row justify-between gap-12 xl:gap-12">
<div className="flex flex-col sm:flex-row gap-4 sm:gap-8 items-start sm:items-center w-full max-w-xl xl:max-w-[33rem]">
<DocsCoverLogo />
<div className="flex flex-col">
<h1 className="m-0 mb-3 text-2xl sm:text-3xl">{props.meta?.title}</h1>
- <p className="m-0 text-scale-1100">
+ <p className="m-0 text-foreground-light">
Learn how to get up and running with Supabase through tutorials, APIs and platform
resources.
</p>
diff --git a/apps/docs/components/LinkCard.tsx b/apps/docs/components/LinkCard.tsx
index 3af179eb9ec..bb7ba40f7ef 100644
--- a/apps/docs/components/LinkCard.tsx
+++ b/apps/docs/components/LinkCard.tsx
@@ -14,17 +14,17 @@ export default function LinkCard({
return (
<Link
href={link || '#'}
- className="border-scale-200 hover:border-brand dark:bg-scale-400 m-4 w-full cursor-pointer rounded-md border p-4 shadow-sm hover:shadow-2xl lg:w-2/5"
+ className="border-background hover:border-brand bg-surface-200 m-4 w-full cursor-pointer rounded-md border p-4 shadow-sm hover:shadow-2xl lg:w-2/5"
>
{description ? (
<>
<h4 className="m-0 mb-4 p-0 text-base font-semibold">{title}</h4>
- <p className="text-scale-1100 m-0 p-0">{description}</p>
+ <p className="text-foreground-light m-0 p-0">{description}</p>
</>
) : (
<div className="flex">
{icon}
- <p className="text-scale-1200 m-0 p-0">{title}</p>
+ <p className="text-foreground m-0 p-0">{title}</p>
</div>
)}
</Link>
diff --git a/apps/docs/components/Navigation/Footer.tsx b/apps/docs/components/Navigation/Footer.tsx
index c5d89404ca6..389d7d85788 100644
--- a/apps/docs/components/Navigation/Footer.tsx
+++ b/apps/docs/components/Navigation/Footer.tsx
@@ -8,7 +8,7 @@ const Footer = () => (
<div className="mt-16">
<ul className="flex flex-col gap-2">
{primaryLinks.map(({ url, featherIcon: Icon, icon, text, ctaLabel }) => (
- <li key={url} className="flex items-center gap-1 text-xs text-lighter">
+ <li key={url} className="flex items-center gap-1 text-xs text-foreground-lighter">
{icon && (
<svg
width="16"
@@ -19,7 +19,7 @@ const Footer = () => (
>
<path
d={icon}
- stroke="var(--colors-scale9)"
+ stroke="hsl(var(--foreground-muted))"
strokeWidth={0.7}
strokeLinecap="round"
strokeLinejoin="round"
@@ -40,21 +40,27 @@ const Footer = () => (
))}
</ul>
</div>
- <hr className="border-border my-6"></hr>
+ <hr className="border-default my-6"></hr>
<div className="flex gap-4 items-center justify-between">
<div className="flex flex-col lg:flex-row gap-3 ">
- <Link href="https://supabase.com/" className="text-xs text-lighter">
+ <Link href="https://supabase.com/" className="text-xs text-foreground-lighter">
&copy; Supabase Inc
</Link>
- <span className="text-xs text-lighter">—</span>
+ <span className="text-xs text-foreground-lighter">—</span>
{secondaryLinks.map(({ component: Component, ...item }) =>
item.url ? (
- <Link href={item.url} key={item.url} className="text-xs text-lighter hover:underline">
+ <Link
+ href={item.url}
+ key={item.url}
+ className="text-xs text-foreground-lighter hover:underline"
+ >
{item.title}
</Link>
) : (
Component && (
- <Component className="text-xs text-lighter hover:underline">{item.title}</Component>
+ <Component className="text-xs text-foreground-lighter hover:underline">
+ {item.title}
+ </Component>
)
)
)}
@@ -73,7 +79,7 @@ const Footer = () => (
fillRule="evenodd"
clipRule="evenodd"
d="M8.66832 1.55469C4.98649 1.55469 2.00195 4.54402 2.00195 8.23269C2.00195 11.1827 3.91187 13.686 6.56108 14.5687C6.8944 14.63 7.01573 14.424 7.01573 14.2467C7.01573 14.0887 7.0104 13.668 7.00706 13.1114C5.15248 13.5147 4.76116 12.216 4.76116 12.216C4.45851 11.444 4.0212 11.2387 4.0212 11.2387C3.41589 10.8254 4.06719 10.8334 4.06719 10.8334C4.73583 10.88 5.08782 11.5214 5.08782 11.5214C5.68246 12.5414 6.64841 12.2467 7.02773 12.076C7.08906 11.6447 7.26105 11.3507 7.45171 11.184C5.97178 11.0154 4.41518 10.442 4.41518 7.88335C4.41518 7.15469 4.67517 6.55802 5.10115 6.09135C5.03248 5.92269 4.80383 5.24335 5.16648 4.32469C5.16648 4.32469 5.72645 4.14469 6.99973 5.00869C7.54355 4.86036 8.10464 4.78482 8.66832 4.78402C9.23496 4.78669 9.80494 4.86069 10.3376 5.00869C11.6102 4.14469 12.1688 4.32402 12.1688 4.32402C12.5328 5.24335 12.3035 5.92269 12.2355 6.09135C12.6621 6.55802 12.9208 7.15469 12.9208 7.88335C12.9208 10.4487 11.3615 11.0134 9.87694 11.1787C10.1163 11.3847 10.3289 11.792 10.3289 12.4154C10.3289 13.3074 10.3209 14.028 10.3209 14.2467C10.3209 14.4254 10.4409 14.6334 10.7796 14.568C12.107 14.1228 13.261 13.2716 14.0784 12.1347C14.8958 10.9979 15.3353 9.6329 15.3347 8.23269C15.3347 4.54402 12.3495 1.55469 8.66832 1.55469Z"
- fill="var(--colors-scale9)"
+ fill="hsl(var(--foreground-muted))"
/>
</svg>
</a>
@@ -89,7 +95,7 @@ const Footer = () => (
>
<path
d="M15.665 4.35595C15.481 3.66308 14.9388 3.11739 14.2505 2.93221C13.0028 2.5957 7.99964 2.5957 7.99964 2.5957C7.99964 2.5957 2.99655 2.5957 1.74883 2.93221C1.06047 3.11742 0.518326 3.66308 0.334321 4.35595C0 5.61181 0 8.23207 0 8.23207C0 8.23207 0 10.8523 0.334321 12.1082C0.518326 12.8011 1.06047 13.324 1.74883 13.5092C2.99655 13.8457 7.99964 13.8457 7.99964 13.8457C7.99964 13.8457 13.0027 13.8457 14.2505 13.5092C14.9388 13.324 15.481 12.8011 15.665 12.1082C15.9993 10.8523 15.9993 8.23207 15.9993 8.23207C15.9993 8.23207 15.9993 5.61181 15.665 4.35595ZM6.36334 10.6111V5.85307L10.545 8.23212L6.36334 10.6111Z"
- fill="var(--colors-scale9)"
+ fill="hsl(var(--foreground-muted))"
/>
</svg>
</a>
@@ -105,7 +111,7 @@ const Footer = () => (
>
<path
d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"
- fill="var(--colors-scale9)"
+ fill="hsl(var(--foreground-muted))"
/>
</svg>
</a>
@@ -124,7 +130,7 @@ const Footer = () => (
fillRule="evenodd"
clipRule="evenodd"
d="M13.8781 3.13594C12.8583 2.66802 11.7648 2.32328 10.6215 2.12583C10.6006 2.12202 10.5798 2.13154 10.5691 2.15059C10.4285 2.40073 10.2727 2.72706 10.1636 2.98356C8.93387 2.79945 7.71044 2.79945 6.50592 2.98356C6.39681 2.72136 6.23538 2.40073 6.09411 2.15059C6.08339 2.13218 6.06259 2.12265 6.04176 2.12583C4.89905 2.32265 3.80554 2.66739 2.78517 3.13594C2.77633 3.13975 2.76876 3.14611 2.76374 3.15435C0.689563 6.25326 0.12136 9.276 0.400102 12.2613C0.401363 12.2759 0.409561 12.2898 0.420913 12.2987C1.78939 13.3037 3.115 13.9139 4.41599 14.3183C4.43681 14.3247 4.45887 14.317 4.47212 14.2999C4.77987 13.8796 5.0542 13.4364 5.28941 12.9704C5.3033 12.9431 5.29005 12.9107 5.26167 12.9C4.82654 12.7349 4.4122 12.5336 4.01364 12.3051C3.98212 12.2867 3.97959 12.2416 4.00859 12.22C4.09247 12.1571 4.17636 12.0917 4.25645 12.0257C4.27094 12.0136 4.29113 12.0111 4.30816 12.0187C6.92655 13.2142 9.76126 13.2142 12.3488 12.0187C12.3658 12.0105 12.386 12.013 12.4011 12.0251C12.4812 12.0911 12.5651 12.1571 12.6496 12.22C12.6786 12.2416 12.6767 12.2867 12.6452 12.3051C12.2466 12.5381 11.8323 12.7349 11.3965 12.8993C11.3681 12.9101 11.3555 12.9431 11.3694 12.9704C11.6097 13.4358 11.884 13.879 12.1861 14.2993C12.1987 14.317 12.2214 14.3247 12.2422 14.3183C13.5495 13.9139 14.8751 13.3037 16.2436 12.2987C16.2556 12.2898 16.2631 12.2765 16.2644 12.2619C16.598 8.8106 15.7056 5.81265 13.8989 3.15498C13.8944 3.14611 13.8869 3.13975 13.8781 3.13594ZM5.68043 10.4435C4.89211 10.4435 4.24257 9.71978 4.24257 8.83093C4.24257 7.94207 4.87952 7.21831 5.68043 7.21831C6.48763 7.21831 7.13089 7.94843 7.11827 8.83093C7.11827 9.71978 6.48132 10.4435 5.68043 10.4435ZM10.9967 10.4435C10.2084 10.4435 9.55884 9.71978 9.55884 8.83093C9.55884 7.94207 10.1958 7.21831 10.9967 7.21831C11.8039 7.21831 12.4471 7.94843 12.4345 8.83093C12.4345 9.71978 11.8039 10.4435 10.9967 10.4435Z"
- fill="var(--colors-scale9)"
+ fill="hsl(var(--foreground-muted))"
/>
</g>
<defs>
diff --git a/apps/docs/components/Navigation/NavigationMenu/HomeMenu.tsx b/apps/docs/components/Navigation/NavigationMenu/HomeMenu.tsx
index 28fa29b18f0..d9de11a73ac 100644
--- a/apps/docs/components/Navigation/NavigationMenu/HomeMenu.tsx
+++ b/apps/docs/components/Navigation/NavigationMenu/HomeMenu.tsx
@@ -12,10 +12,7 @@ const NavigationMenuHome = () => {
return (
<Fragment key={`section-container-${sectionIndex}-border`}>
{sectionIndex !== 0 && (
- <div
- className="h-px w-full bg-blackA-300 dark:bg-whiteA-300"
- key={`section-${sectionIndex}-border`}
- ></div>
+ <div className="h-px w-full border-b" key={`section-${sectionIndex}-border`}></div>
)}
<div key={`section-${sectionIndex}`}>
<div className="flex flex-col gap-4">
@@ -25,7 +22,7 @@ const NavigationMenuHome = () => {
<div
key={link.label}
className={cn(
- 'font-mono uppercase text-xs text-scale-900 ',
+ 'font-mono uppercase text-xs text-foreground-lighter',
i !== 0 && 'mt-4'
)}
>
@@ -38,7 +35,7 @@ const NavigationMenuHome = () => {
<li
className={[
'group flex items-center gap-2',
- 'text-sm transition-all duration-150 text-scale-1100 hover:text-scale-1200 hover:cursor-pointer ',
+ 'text-sm transition-all duration-150 text-foreground-light hover:text-foreground hover:cursor-pointer ',
].join(' ')}
>
{link?.icon && <HomeMenuIconPicker icon={link.icon} />}
diff --git a/apps/docs/components/Navigation/NavigationMenu/NavigationMenuCliList.tsx b/apps/docs/components/Navigation/NavigationMenu/NavigationMenuCliList.tsx
index 7b30483e631..22dae5161c7 100644
--- a/apps/docs/components/Navigation/NavigationMenu/NavigationMenuCliList.tsx
+++ b/apps/docs/components/Navigation/NavigationMenu/NavigationMenuCliList.tsx
@@ -21,10 +21,10 @@ const NavigationMenuCliList = ({ currentLevel, setLevel, id }) => {
icon?: string
}) => {
return (
- <li key={id} className="function-link-item text-scale-1000 leading-3">
+ <li key={id} className="function-link-item text-foreground-lighter leading-3">
<Link
href={`#${id}`}
- className="cursor-pointer transition text-scale-1000 text-sm hover:text-brand flex gap-3"
+ className="cursor-pointer transition text-foreground-lighter text-sm hover:text-brand flex gap-3"
>
{icon && <img className="w-3" src={`${router.basePath}${icon}`} />}
{title}
@@ -38,7 +38,7 @@ const NavigationMenuCliList = ({ currentLevel, setLevel, id }) => {
<span
className="
font-mono text-xs uppercase
- text-scale-1200 font-medium
+ text-foreground font-medium
tracking-wider
mb-3
"
@@ -49,7 +49,7 @@ const NavigationMenuCliList = ({ currentLevel, setLevel, id }) => {
}
const Divider = () => {
- return <div className="h-px w-full bg-scale-500 my-3"></div>
+ return <div className="h-px w-full bg-border my-3"></div>
}
const MenuSections = [
@@ -117,7 +117,7 @@ const NavigationMenuCliList = ({ currentLevel, setLevel, id }) => {
className="w-5 rounded"
/>
- <h2 className={['text-scale-1200 ', !menu.title && 'capitalize'].join(' ')}>
+ <h2 className={['text-foreground ', !menu.title && 'capitalize'].join(' ')}>
{menu.title ?? currentLevel}
</h2>
</div>
diff --git a/apps/docs/components/Navigation/NavigationMenu/NavigationMenuGuideListItems.tsx b/apps/docs/components/Navigation/NavigationMenu/NavigationMenuGuideListItems.tsx
index 71c9b8ec4ec..0d908c7610b 100644
--- a/apps/docs/components/Navigation/NavigationMenu/NavigationMenuGuideListItems.tsx
+++ b/apps/docs/components/Navigation/NavigationMenu/NavigationMenuGuideListItems.tsx
@@ -19,7 +19,7 @@ const HeaderLink = React.memo(function HeaderLink(props: {
className={[
' ',
!props.title && 'capitalize',
- props.url === router.asPath ? 'text-brand' : 'hover:text-brand text-scale-1200',
+ props.url === router.asPath ? 'text-brand' : 'hover:text-brand text-foreground',
].join(' ')}
>
{props.title ?? props.id}
@@ -54,8 +54,8 @@ const ContentAccordionLink = React.memo(function ContentAccordionLink(props: any
<>
{props.subItemIndex === 0 && (
<>
- <div className="h-px w-full bg-scale-500 my-3"></div>
- <span className="font-mono text-xs uppercase text-scale-1200 font-medium tracking-wider">
+ <div className="h-px w-full bg-border my-3"></div>
+ <span className="font-mono text-xs uppercase text-foreground font-medium tracking-wider">
{props.parent.name}
</span>
</>
@@ -69,7 +69,7 @@ const ContentAccordionLink = React.memo(function ContentAccordionLink(props: any
'cursor-pointer transition text-sm',
activeItem
? 'text-brand font-medium'
- : 'hover:text-scale-1200 dark:hover:text-scale-1100 text-scale-1000',
+ : 'hover:text-foreground dark:hover:text-foreground-light text-foreground-lighter',
].join(' ')}
parent={props.subItem.parent}
>
@@ -99,7 +99,7 @@ const ContentAccordionLink = React.memo(function ContentAccordionLink(props: any
'cursor-pointer transition text-sm',
subSubItem.url === router.asPath
? 'text-brand'
- : 'hover:text-brand text-scale-1000',
+ : 'hover:text-brand text-foreground-lighter',
].join(' ')}
>
{subSubItem.name}
@@ -125,7 +125,7 @@ const ContentLink = React.memo(function ContentLink(props: any) {
'cursor-pointer transition text-sm',
props.url === router.asPath
? 'text-brand'
- : 'hover:text-scale-1200 dark:hover:text-scale-1100 text-scale-1000',
+ : 'hover:text-foreground dark:hover:text-foreground-light text-foreground-lighter',
].join(' ')}
>
{props.icon && (
diff --git a/apps/docs/components/Navigation/NavigationMenu/NavigationMenuRefListItems.tsx b/apps/docs/components/Navigation/NavigationMenu/NavigationMenuRefListItems.tsx
index b325efb3a91..a02309e0242 100644
--- a/apps/docs/components/Navigation/NavigationMenu/NavigationMenuRefListItems.tsx
+++ b/apps/docs/components/Navigation/NavigationMenu/NavigationMenuRefListItems.tsx
@@ -62,9 +62,9 @@ const FunctionLink = React.memo(function FunctionLink({
document.getElementById(slug)?.scrollIntoView()
}}
className={cn(
- 'cursor-pointer transition text-sm hover:text-scale-1200 gap-3 relative',
+ 'cursor-pointer transition text-sm hover:text-foreground gap-3 relative',
isParent ? 'flex justify-between' : 'leading-3',
- active ? 'text-brand' : 'text-scale-1000'
+ active ? 'text-brand' : 'text-foreground-lighter'
)}
>
{icon && <Image width={16} height={16} alt={icon} src={`${router.basePath}${icon}`} />}
@@ -122,7 +122,7 @@ const RenderLink = React.memo(function RenderLink({ section, basePath }: RenderL
isParent
isSubItem
/>
- <Accordion.Content className="transition data-open:animate-slide-down data-closed:animate-slide-up border-l border-scale-600 pl-3 ml-1 data-open:mt-2 grid gap-2.5">
+ <Accordion.Content className="transition data-open:animate-slide-down data-closed:animate-slide-up border-l border-control pl-3 ml-1 data-open:mt-2 grid gap-2.5">
{section.items.map((item) => {
return (
<FunctionLink
@@ -144,7 +144,7 @@ const RenderLink = React.memo(function RenderLink({ section, basePath }: RenderL
const SideMenuTitle = ({ title }: { title: string }) => {
return (
- <span className="font-mono text-xs uppercase text-scale-1200 font-medium tracking-wider">
+ <span className="font-mono text-xs uppercase text-foreground font-medium tracking-wider">
{title}
</span>
)
@@ -180,7 +180,7 @@ const NavigationMenuRefListItems = ({
href="/"
className={[
'flex items-center gap-1 text-xs group mb-3',
- 'text-base transition-all duration-200 text-scale-1100 hover:text-brand-600 hover:cursor-pointer ',
+ 'text-base transition-all duration-200 text-foreground-light hover:text-brand-600 hover:cursor-pointer',
].join(' ')}
>
<div className="relative w-2">
diff --git a/apps/docs/components/Navigation/NavigationMenu/TopNavBar.tsx b/apps/docs/components/Navigation/NavigationMenu/TopNavBar.tsx
index 1fd6ddb21c0..191832a2977 100644
--- a/apps/docs/components/Navigation/NavigationMenu/TopNavBar.tsx
+++ b/apps/docs/components/Navigation/NavigationMenu/TopNavBar.tsx
@@ -83,8 +83,8 @@ const TopNavBar: FC = () => {
hover:bg-opacity-100
border
transition
- border-scale-500 pl-1.5 md:pl-3 pr-1.5 w-full h-[32px] rounded
- text-lighter
+ pl-1.5 md:pl-3 pr-1.5 w-full h-[32px] rounded
+ text-foreground-lighter
"
>
<div className="flex items-center space-x-2">
@@ -117,7 +117,10 @@ const TopNavBar: FC = () => {
rel="noreferrer noopener"
className="px-2.5 py-1"
>
- <IconGitHub size={16} className="text-scale-1100 hover:text-scale-1200 transition" />
+ <IconGitHub
+ size={16}
+ className="text-foreground-light hover:text-foreground transition"
+ />
</Link>
<ThemeToggle />
</div>
diff --git a/apps/docs/components/Navigation/SideBar.tsx b/apps/docs/components/Navigation/SideBar.tsx
index 2bbea08e3f0..da98d7bf6b6 100644
--- a/apps/docs/components/Navigation/SideBar.tsx
+++ b/apps/docs/components/Navigation/SideBar.tsx
@@ -43,20 +43,20 @@ const SideBar = ({ menuItems = [] }: { menuItems: any }) => {
return (
<div
- className="dark:bg-scale-200 dark:border-scale-400 sidebar-width sticky top-16
+ className="bg-background border-muted sidebar-width sticky top-16
h-screen overflow-y-scroll border-r py-8 px-6 sidebar-menu-container hidden lg:block"
>
{isInReferencePages && (
<>
<Link href="/reference">
<div className="flex items-center space-x-4 opacity-75 hover:opacity-100 transition">
- <IconArrowLeft size={16} strokeWidth={2} className="text-scale-1200" />
- <span className="text-sm text-scale-1200">All Reference Docs</span>
+ <IconArrowLeft size={16} strokeWidth={2} className="text-foreground" />
+ <span className="text-sm text-foreground">All Reference Docs</span>
</div>
</Link>
{referenceMeta !== undefined && (
<div className="my-5 flex items-center space-x-4">
- <div className="h-10 w-10 rounded bg-scale-500 flex items-center justify-center">
+ <div className="h-10 w-10 rounded bg-surface-100 flex items-center justify-center">
<Image
className="rounded"
width={24}
@@ -65,7 +65,7 @@ const SideBar = ({ menuItems = [] }: { menuItems: any }) => {
src={referenceMeta.icon}
/>
</div>
- <p className="text-scale-1200 font-bold">{referenceMeta.name}</p>
+ <p className="text-foreground font-bold">{referenceMeta.name}</p>
</div>
)}
</>
@@ -80,8 +80,8 @@ const SideBar = ({ menuItems = [] }: { menuItems: any }) => {
'py-1.5 px-5 rounded text-sm transition',
`${
item.url === asPath
- ? 'bg-scale-200 text-brand'
- : 'text-scale-1100 hover:text-scale-1200'
+ ? 'bg-background text-brand'
+ : 'text-foreground-light hover:text-foreground'
}`,
].join(' ')}
>
@@ -101,11 +101,11 @@ const SideBar = ({ menuItems = [] }: { menuItems: any }) => {
<Accordion.Item key={group.label} value={group.label}>
<Accordion.Trigger className="w-full flex items-center space-x-2 py-1.5">
<IconChevronRight
- className="transition text-scale-1000 data-open-parent:rotate-90"
+ className="transition text-foreground-lighter data-open-parent:rotate-90"
size={14}
strokeWidth={2}
/>
- <span className="text-scale-1200 text-sm group-hover:text-brand transition">
+ <span className="text-foreground text-sm group-hover:text-brand transition">
{group.label}
</span>
</Accordion.Trigger>
@@ -119,8 +119,8 @@ const SideBar = ({ menuItems = [] }: { menuItems: any }) => {
'py-1.5 px-5 rounded text-sm transition',
`${
section.url === asPath
- ? 'bg-scale-200 text-brand'
- : 'text-scale-1100 hover:text-scale-1200'
+ ? 'bg-background text-brand'
+ : 'text-foreground-light hover:text-foreground'
}`,
].join(' ')}
>
@@ -140,11 +140,11 @@ const SideBar = ({ menuItems = [] }: { menuItems: any }) => {
<Accordion.Item value={section.name}>
<Accordion.Trigger className="flex items-center space-x-2 px-4 py-1.5">
<IconChevronRight
- className="transition text-scale-1000 data-open-parent:rotate-90"
+ className="transition text-foreground-lighter data-open-parent:rotate-90"
size={14}
strokeWidth={2}
/>
- <span className="text-scale-1200 text-sm group-hover:text-brand transition">
+ <span className="text-foreground text-sm group-hover:text-brand transition">
{section.name}
</span>
</Accordion.Trigger>
@@ -157,8 +157,8 @@ const SideBar = ({ menuItems = [] }: { menuItems: any }) => {
'py-1.5 ml-4 px-5 rounded text-sm transition',
`${
item.url === asPath
- ? 'bg-scale-200 text-brand'
- : 'text-scale-1100 hover:text-scale-1200'
+ ? 'bg-background text-brand'
+ : 'text-foreground-light hover:text-foreground'
}`,
].join(' ')}
>
diff --git a/apps/docs/components/Options.tsx b/apps/docs/components/Options.tsx
index 7f2b2c3baf2..5e4be00ea80 100644
--- a/apps/docs/components/Options.tsx
+++ b/apps/docs/components/Options.tsx
@@ -18,9 +18,9 @@ const Options: FC<PropsWithChildren<IOptions>> & OptionsSubComponents = (props)
<button
className={[
'px-5',
- 'border-t border-l border-r border-scale-500',
- 'text-left text-sm text-scale-1100',
- 'hover:bg-scale-300 transition-all',
+ 'border-t border-l border-r border-default',
+ 'text-left text-sm text-foreground-light',
+ 'hover:bg-surface-100 transition-all',
'flex items-center gap-2',
open ? 'w-full py-1.5 rounded-tl-lg rounded-tr-lg' : 'py-1 border-b rounded-full',
@@ -50,28 +50,32 @@ const Option: FC<IOption> = (props) => {
<div
className="
px-5 py-3 first:border-t border-b border-l border-r
- border-scale-500
+ border-default
last:rounded-bl-lg last:rounded-br-lg
flex flex-col gap-3
"
>
<div className="flex gap-3 items-center">
- <span className="text-sm text-scale-1200 font-mono font-medium">
+ <span className="text-sm text-foreground font-mono font-medium">
{props.name ?? 'no-name'}
</span>
<span>
{props.isOptional ? (
- <div className="text-[10px] px-3 tracking-wide font-mono text-scale-900">Optional</div>
+ <div className="text-[10px] px-3 tracking-wide font-mono text-foreground-lighter">
+ Optional
+ </div>
) : (
<div className="text-[10px] border border-amber-700 bg-amber-300 text-amber-900 px-2 tracking-wide font-mono py-0.25 rounded-full">
REQUIRED
</div>
)}
</span>
- <span className="text-scale-900 text-xs">{props.type ?? 'no type'}</span>
+ <span className="text-foreground-muted text-xs">{props.type ?? 'no type'}</span>
</div>
- {props.description && <p className="text-sm text-scale-1000 m-0">{props.description}</p>}
+ {props.description && (
+ <p className="text-sm text-foreground-lighter m-0">{props.description}</p>
+ )}
{props.children}
</div>
diff --git a/apps/docs/components/Pagination.tsx b/apps/docs/components/Pagination.tsx
index e8469da1f20..e9bc2d25d69 100644
--- a/apps/docs/components/Pagination.tsx
+++ b/apps/docs/components/Pagination.tsx
@@ -13,7 +13,7 @@ const Pagination = ({ currentPage, totalCount }: { currentPage: number; totalCou
<li>
<Link
href={`/discussions?page=${currentPage - 1}`}
- className="border-scale-600 bg-scale-300 inline-flex h-8 w-8 items-center justify-center rounded border"
+ className="border border-control bg-surface-100 inline-flex h-8 w-8 items-center justify-center rounded"
>
<IconArrowLeft className="stroke-2 transition group-hover:-translate-x-1" height={12.5} />
</Link>
@@ -25,7 +25,7 @@ const Pagination = ({ currentPage, totalCount }: { currentPage: number; totalCou
<Link
href={`/discussions?page=${page}`}
className={`border-scale-600 inline-flex h-8 w-8 items-center justify-center rounded border ${
- currentPage === page ? 'bg-brand' : 'bg-scale-300'
+ currentPage === page ? 'bg-brand' : 'bg-surface-100'
}`}
>
{page}
@@ -36,7 +36,7 @@ const Pagination = ({ currentPage, totalCount }: { currentPage: number; totalCou
<li>
<Link
href={`/discussions?page=${currentPage + 1}`}
- className="border-scale-600 bg-scale-300 inline-flex h-8 w-8 items-center justify-center rounded border"
+ className="border-control bg-surface-100 inline-flex h-8 w-8 items-center justify-center rounded border"
>
<IconArrowRight
className="stroke-2 transition group-hover:-translate-x-1"
diff --git a/apps/docs/components/Params.tsx b/apps/docs/components/Params.tsx
index 8ce1e288259..3c494f2cabe 100644
--- a/apps/docs/components/Params.tsx
+++ b/apps/docs/components/Params.tsx
@@ -4,19 +4,21 @@ const Param = ({ name, isOptional, type, description, children }: IParamProps) =
return (
<div className="border-t border-b py-5 flex flex-col gap-3 debugger">
<div className="flex gap-3 items-center">
- <span className="text-sm text-scale-1200 font-mono font-medium">{name ?? 'no-name'}</span>
+ <span className="text-sm text-foreground font-mono font-medium">{name ?? 'no-name'}</span>
<span>
{isOptional ? (
- <div className="text-[10px] px-3 tracking-wide font-mono text-scale-900">Optional</div>
+ <div className="text-[10px] px-3 tracking-wide font-mono text-foreground-lighter">
+ Optional
+ </div>
) : (
<div className="text-[10px] border border-amber-700 bg-amber-300 text-amber-900 px-2 tracking-wide font-mono py-0.25 rounded-full">
REQUIRED
</div>
)}
</span>
- <span className="text-scale-900 text-xs">{type ?? 'no type'}</span>
+ <span className="text-foreground-muted text-xs">{type ?? 'no type'}</span>
</div>
- {description && <p className="text-sm text-scale-1000 m-0">{description} </p>}
+ {description && <p className="text-sm text-foreground-lighter m-0">{description} </p>}
{children}
</div>
)
diff --git a/apps/docs/components/RefVersionDropdown.tsx b/apps/docs/components/RefVersionDropdown.tsx
index f7d750cba60..dbe99840640 100644
--- a/apps/docs/components/RefVersionDropdown.tsx
+++ b/apps/docs/components/RefVersionDropdown.tsx
@@ -42,17 +42,17 @@ const RevVersionDropdown = () => {
className="
group
justify-between
- bg-scaleA-200
+ bg-control
border
- hover:border-scale-600
- hover:bg-scaleA-300
- border-scale-500 px-2 h-[32px] rounded
+ hover:border-control
+ hover:bg-overlay-hover
+ border-control px-2 h-[32px] rounded
font-mono
- flex items-center gap-1 text-scale-900 text-xs group-hover:text-scale-1200 transition
+ flex items-center gap-1 text-foreground-muted text-xs group-hover:text-foreground transition
"
>
{/* <span>version</span> */}
- <span className="text-scale-1200 text-sm group-hover:text-scale-1200 transition">
+ <span className="text-foreground text-sm group-hover:text-foreground transition">
{currentVersion}.0
</span>
<IconChevronDown size={14} strokeWidth={2} />
diff --git a/apps/docs/components/StepHike/index.tsx b/apps/docs/components/StepHike/index.tsx
index cbb2731004f..a4e302f5389 100644
--- a/apps/docs/components/StepHike/index.tsx
+++ b/apps/docs/components/StepHike/index.tsx
@@ -23,73 +23,8 @@ const StepHike = ({ children, title }) => {
if (steps.length === 0 || !steps)
throw 'StepHike component needs at least 1 <StepHike.Step> child'
- // console.log('length of the steps filter', steps.length)
-
return (
<div className="">
- {/* <div
- className="
- sticky w-full top-[96px] z-50 p-5 rounded-lg
- flex gap-3 items-center
- bg-white-1200 dark:bg-scale-200
- border-t border-l border-r border-scale-600
- h-[60px]
- not-prose
- rounded-bl-none
- rounded-br-none
- shadow-md
- -mb-1.5
- "
- >
- <h3 className="text-scale-1200 text-xl">{title}</h3>
- <div className="justify-end grow flex gap-3">
- <Button type="default" onClick={() => handlePrev()} disabled={activeStep?.step === 0}>
- Prev
- </Button>
- <Button
- type="default"
- onClick={() => handleNext()}
- disabled={steps.length - 1 === activeStep?.step}
- >
- Next
- </Button>
- </div>
- </div> */}
-
- {/* <div
- className="sticky w-full top-[128px] bottom-[64px] z-10 p-5 rounded-lg
-
- flex gap-3 items-center
- backdrop-blur-lg backdrop-filter bg-white-1200 dark:bg-whiteA-300
-
- h-[60px]
- not-prose
- "
- >
- <div className="flex items-center gap-6">
- <div className="border bg-scale-600 border-scale-700 flex w-7 h-7 items-center justify-center rounded text-base text-scale-1200 font-semibold font-mono">
- {activeStep?.step + 1}
- </div>
- <h3 className="text-scale-1200 text-xl">
- {steps[activeStep?.step] && steps[activeStep?.step].props.title}
- </h3>
- <span className="font-mono uppercase text-xs">
- Step {activeStep?.step + 1} of {steps?.length}
- </span>
- </div>
- <div className="justify-end grow flex gap-3">
- <Button type="default" onClick={() => handlePrev()} disabled={activeStep?.step === 0}>
- Prev
- </Button>
- <Button
- type="default"
- onClick={() => handleNext()}
- disabled={steps.length - 1 === activeStep?.step}
- >
- Next
- </Button>
- </div>
- </div> */}
<StepHikeContext.Provider value={{ activeStep, steps }}>{children}</StepHikeContext.Provider>
</div>
)
@@ -104,27 +39,6 @@ const Step = ({ children, title, step }) => {
const ChildrenRender = ({ active }) => <div className="pl-[74px]">{children}</div>
- // const ref = useRef<HTMLDivElement | null>(null)
-
- // useEffect(() => {
- // const cachedRef = ref.current
- // const observer = new IntersectionObserver(
- // ([e]) =>
- // // setStuck(e.intersectionRatio < 1)
- // console.log('scroll', title),
- // {
- // threshold: [0],
- // rootMargin: '0px 0px 0px 0px',
- // }
- // )
-
- // // const cachedRef: HTMLDivElement | null
- // // Argument of type 'HTMLDivElement | null' is not assignable to parameter of type 'Element'.
- // // Type 'null' is not assignable to type 'Element'.ts(2345)
- // observer.observe(cachedRef)
- // return () => observer.unobserve(cachedRef)
- // }, [ref])
-
const { ref } = useInView({
rootMargin: '10px 20px 30px 40px',
threshold: 1,
@@ -138,24 +52,20 @@ const Step = ({ children, title, step }) => {
<>
<StepHikeContext.Consumer>
{({ activeStep, steps }) => {
- // console.log('activeStep', activeStep)
const cleanTitleId = title.replaceAll(' ', '-').toLowerCase()
const active = cleanTitleId === activeStep?.titleId
- // useEffect(() => {}, [])
-
return (
<div>
- {/* <div className="h-[2px] w-full bg-scale-500"></div> */}
<div
ref={ref}
className="sticky w-full top-[64px] z-10 p-5 rounded-lg
flex gap-3 items-center
- backdrop-blur-lg backdrop-filter bg-white-1200 dark:bg-whiteA-300
+ backdrop-blur-lg backdrop-filter bg-background
- border-b border-l border-r border-scale-600 border-t
+ border-b border-l border-r border-control border-t
h-[60px]
not-prose
@@ -163,10 +73,10 @@ const Step = ({ children, title, step }) => {
"
>
<div className="flex items-center gap-6">
- <div className="border bg-scale-600 border-scale-700 flex w-7 h-7 items-center justify-center rounded text-base text-scale-1200 font-semibold font-mono">
+ <div className="border bg-selection border-strong flex w-7 h-7 items-center justify-center rounded text-base text-foreground font-semibold font-mono">
{step}
</div>
- <h3 className="text-scale-1200 text-xl" id={cleanTitleId}>
+ <h3 className="text-foreground text-xl" id={cleanTitleId}>
{title}
</h3>
<span className="font-mono uppercase text-xs">
diff --git a/apps/docs/components/StepHikeCompact/index.tsx b/apps/docs/components/StepHikeCompact/index.tsx
index e248c53c0c0..8c65c2de00a 100644
--- a/apps/docs/components/StepHikeCompact/index.tsx
+++ b/apps/docs/components/StepHikeCompact/index.tsx
@@ -48,7 +48,7 @@ const Step: FC<PropsWithChildren<IStep>> = ({ children, title, step }) => {
w-full
h-full
py-1
- bg-scale-400
+ bg-overlay
"
></div>
</div>
@@ -62,9 +62,9 @@ const Step: FC<PropsWithChildren<IStep>> = ({ children, title, step }) => {
>
<div className="flex items-center gap-6">
<div
- className="border bg-white dark:bg-scale-400
- border-scale-600 flex items-center justify-center rounded-full
- w-6 h-6 text-xs text-scale-1200 font-normal font-mono
+ className="border bg-surface-100
+ border-control flex items-center justify-center rounded-full
+ w-6 h-6 text-xs text-foreground font-normal font-mono
dropshadow-sm
"
>
@@ -80,7 +80,7 @@ const Step: FC<PropsWithChildren<IStep>> = ({ children, title, step }) => {
const Details: FC<PropsWithChildren<IDetails>> = ({ children, title, fullWidth = false }) => {
return (
<div className={cn(fullWidth ? 'col-span-12' : 'col-span-5', 'ml-12', 'lg:ml-0')}>
- <h3 className="mt-0 text-scale-1200 text-base">{title}</h3>
+ <h3 className="mt-0 text-foreground text-base">{title}</h3>
{children}
</div>
)
diff --git a/apps/docs/components/TableOfContents.tsx b/apps/docs/components/TableOfContents.tsx
index 297ade47499..a9af7b2157d 100644
--- a/apps/docs/components/TableOfContents.tsx
+++ b/apps/docs/components/TableOfContents.tsx
@@ -33,7 +33,7 @@ const formatTOCHeader = (content: string) => {
if (x === '`') {
if (!begin) {
begin = true
- res.push(`<code class="text-xs border rounded bg-scale-400 border-scale-500">`)
+ res.push(`<code class="text-xs border rounded bg-surface-200 border-overlay">`)
} else {
begin = false
res.push(`</code>`)
@@ -69,7 +69,7 @@ const TableOfContents: FC<Props> = ({ toc, video }) => {
<li key={i} id={item.lvl} style={{ marginLeft: `${(item.lvl - 2) * 1}rem` }}>
<a
href={`#${formatSlug(item.slug)}`}
- className="text-scale-1000 hover:text-brand transition-colors"
+ className="text-foreground-lighter hover:text-brand transition-colors"
dangerouslySetInnerHTML={{ __html: formatTOCHeader(removeAnchor(item.content)) }}
/>
</li>
diff --git a/apps/docs/components/reference/ApiOperationSection.tsx b/apps/docs/components/reference/ApiOperationSection.tsx
index 46b58e37479..7bfd0013d54 100644
--- a/apps/docs/components/reference/ApiOperationSection.tsx
+++ b/apps/docs/components/reference/ApiOperationSection.tsx
@@ -19,12 +19,12 @@ const ApiOperationSection = (props) => {
>
<RefSubLayout.Details>
<div className="mt-4">
- <code className="text-md flex gap-4 text-md text-scale-900 break-all">
+ <code className="text-md flex gap-4 text-md text-foreground-lighter break-all">
<span
className="
uppercase
whitespace-nowrap
- bg-scale-1200 text-scale-100
+ bg-foreground text-background
flex items-center justify-center
rounded-full font-mono font-medium text-xs px-2 py-0.5"
>
@@ -40,7 +40,7 @@ const ApiOperationSection = (props) => {
{operation.parameters &&
operation.parameters.filter((parameter) => parameter.in === 'path').length > 0 && (
<div className="not-prose mt-12">
- <h5 className="mb-3 text-base text-scale-1200">Path Parameters</h5>
+ <h5 className="mb-3 text-base text-foreground">Path Parameters</h5>
<ul className="mt-4">
{operation.parameters &&
operation.parameters
@@ -56,7 +56,7 @@ const ApiOperationSection = (props) => {
{operation.parameters &&
operation.parameters.filter((parameter) => parameter.in === 'query').length > 0 && (
<div className="not-prose mt-12">
- <h5 className="mb-3 text-base text-scale-1200">Query Parameters</h5>
+ <h5 className="mb-3 text-base text-foreground">Query Parameters</h5>
<ul className="mt-4">
{operation.parameters &&
operation.parameters
@@ -72,7 +72,7 @@ const ApiOperationSection = (props) => {
{operation.parameters &&
operation.parameters.filter((parameter) => parameter.in === 'header').length > 0 && (
<div className="not-prose mt-12">
- <h5 className="mb-3 text-base text-scale-1200">Query Parameters</h5>
+ <h5 className="mb-3 text-base text-foreground">Query Parameters</h5>
<ul className="mt-4">
{operation.parameters &&
operation.parameters
@@ -86,7 +86,7 @@ const ApiOperationSection = (props) => {
</RefSubLayout.Details>
{operation.responseList && operation.responseList.length > 0 && (
<RefSubLayout.Examples>
- <h5 className="mb-3 text-base text-scale-1200">Responses</h5>
+ <h5 className="mb-3 text-base text-foreground">Responses</h5>
<Tabs
scrollable
size="small"
@@ -96,7 +96,7 @@ const ApiOperationSection = (props) => {
>
{operation.responseList.map((response: any) => (
<Tabs.Panel id={response.responseCode} label={response.responseCode}>
- <p className="text-scale-1000">{response.description}</p>
+ <p className="text-background">{response.description}</p>
{response?.content && response?.content['application/json'] && (
<div className="mt-8">
<CodeBlock language="bash" className="relative">
diff --git a/apps/docs/components/reference/CLICommandSection.tsx b/apps/docs/components/reference/CLICommandSection.tsx
index 32c96d3b731..2ba6b0fba56 100644
--- a/apps/docs/components/reference/CLICommandSection.tsx
+++ b/apps/docs/components/reference/CLICommandSection.tsx
@@ -79,7 +79,7 @@ const CliCommandSection = (props) => {
<ReactMarkdown>{command.description}</ReactMarkdown>
</div>
) : (
- <p className="capitalize mb-4 scroll-mt-16 mt-0 text-scale-1100 text-base">
+ <p className="capitalize mb-4 scroll-mt-16 mt-0 text-foreground-light text-base">
{command.summary}
</p>
)}
@@ -87,16 +87,16 @@ const CliCommandSection = (props) => {
{command.subcommands?.length > 0 && (
<div className="mb-3">
- <h3 className="text-lg text-scale-1200 mb-3">Available Commands</h3>
+ <h3 className="text-lg text-foreground mb-3">Available Commands</h3>
<ul>
{command.subcommands.map((subcommand) => (
<li key={subcommand} className="flex items-center gap-3">
- <div className="text-scale-900">
+ <div className="text-foreground-muted">
<IconChevronRight size={14} strokeWidth={2} />
</div>
<a
href={`#${subcommand}`}
- className="transition text-scale-1100 hover:text-brand"
+ className="transition text-foreground-light hover:text-brand"
>
$ {subcommand.replace(/-/g, ' ')}
</a>
@@ -107,7 +107,7 @@ const CliCommandSection = (props) => {
)}
{commandFlags.length > 0 && (
<>
- <h3 className="text-lg text-scale-1200 mb-3">Flags</h3>
+ <h3 className="text-lg text-foreground mb-3">Flags</h3>
<ul className="">
{commandFlags.map((flag: Flag) => (
<>
@@ -164,7 +164,7 @@ const CliCommandSection = (props) => {
defaultOpen={false}
>
<CodeBlock
- className="useless-code-block-class rounded !rounded-tl-none !rounded-tr-none border border-scale-500"
+ className="useless-code-block-class rounded !rounded-tl-none !rounded-tr-none border border-DEFAULT"
language="bash"
hideLineNumbers={true}
>
@@ -178,7 +178,7 @@ const CliCommandSection = (props) => {
label="Notes"
defaultOpen={false}
>
- <div className="bg-scale-300 border border-scale-500 rounded !rounded-tl-none !rounded-tr-none prose max-w-none px-5 py-2">
+ <div className="bg-overlay border border-overlay rounded !rounded-tl-none !rounded-tr-none prose max-w-none px-5 py-2">
<ReactMarkdown className="text-sm">{example.description}</ReactMarkdown>
</div>
</RefDetailCollapse>
diff --git a/apps/docs/components/reference/RefDetailCollapse.tsx b/apps/docs/components/reference/RefDetailCollapse.tsx
index 33a31fd06b9..4516ae73db6 100644
--- a/apps/docs/components/reference/RefDetailCollapse.tsx
+++ b/apps/docs/components/reference/RefDetailCollapse.tsx
@@ -18,15 +18,14 @@ const RefDetailCollapse: React.FC<
className={[
'transition-all ease-out',
'h-8',
- 'bg-scale-200 data-open:bg-scale-300',
- 'dark:bg-scale-300 dark:data-open:bg-scale-500',
- 'border border-scale-500 w-full flex items-center gap-3 px-5',
+ 'bg-surface-100 data-open:bg-surface-200',
+ 'border w-full flex items-center gap-3 px-5',
'rounded-tl rounded-tr',
'data-closed:rounded-bl data-closed:rounded-br',
- 'text-scale-1100 text-xs',
+ 'text-foreground-light text-xs',
].join(' ')}
>
- <div className="data-open-parent:rotate-90 text-scale-900">
+ <div className="data-open-parent:rotate-90 text-foreground-lighter">
<IconChevronRight size={12} strokeWidth={2} />
</div>
{props.label}
diff --git a/apps/docs/components/reference/RefFunctionSection.tsx b/apps/docs/components/reference/RefFunctionSection.tsx
index 90b2fc127f8..cbdf09e8a39 100644
--- a/apps/docs/components/reference/RefFunctionSection.tsx
+++ b/apps/docs/components/reference/RefFunctionSection.tsx
@@ -54,7 +54,7 @@ const RefFunctionSection: React.FC<IRefFunctionSection> = (props) => {
{/* // parameters */}
{parameters && (
<div className="not-prose mt-12">
- <h5 className="mb-3 text-base text-scale-1200">Parameters</h5>
+ <h5 className="mb-3 text-base text-foreground">Parameters</h5>
<ul className="">
{parameters.map((param) => {
// grab override params from yaml file
@@ -172,13 +172,13 @@ const RefFunctionSection: React.FC<IRefFunctionSection> = (props) => {
tables.length > 0 &&
tables.map((table) => {
return (
- <div className="bg-scale-300 border rounded prose max-w-none">
- <div className="bg-scale-200 px-5 py-2">
+ <div className="bg-surface-100 border rounded prose max-w-none">
+ <div className="bg-background px-5 py-2">
<div className="flex gap-2 items-center">
<div className="text-brand">
<IconDatabase size={16} />
</div>
- <h5 className="text-xs text-scale-1200">
+ <h5 className="text-xs text-foreground">
{table.name}
</h5>
</div>
@@ -188,7 +188,7 @@ const RefFunctionSection: React.FC<IRefFunctionSection> = (props) => {
})}
{sql && (
<CodeBlock
- className="useless-code-block-class my-0 border border-t-0 border-scale-500 !rounded-tl-none !rounded-tr-none"
+ className="useless-code-block-class my-0 border border-t-0 border-default !rounded-tl-none !rounded-tr-none"
language="sql"
hideLineNumbers={true}
>
@@ -206,7 +206,7 @@ const RefFunctionSection: React.FC<IRefFunctionSection> = (props) => {
defaultOpen={false}
>
<CodeBlock
- className="useless-code-block-class rounded !rounded-tl-none !rounded-tr-none border border-scale-500"
+ className="useless-code-block-class rounded !rounded-tl-none !rounded-tr-none border border-default"
language={codeBlockLang}
hideLineNumbers={true}
>
@@ -221,7 +221,7 @@ const RefFunctionSection: React.FC<IRefFunctionSection> = (props) => {
label="Notes"
defaultOpen={false}
>
- <div className="bg-scale-300 border border-scale-500 rounded !rounded-tl-none !rounded-tr-none prose max-w-none px-5 py-2">
+ <div className="bg-surface-100 border border-default rounded !rounded-tl-none !rounded-tr-none prose max-w-none px-5 py-2">
<ReactMarkdown className="text-sm">
{example.description}
</ReactMarkdown>
diff --git a/apps/docs/components/reference/enrichments/cli/CliGlobalFlagsHandler.tsx b/apps/docs/components/reference/enrichments/cli/CliGlobalFlagsHandler.tsx
index e108730f65a..a0af68c61c3 100644
--- a/apps/docs/components/reference/enrichments/cli/CliGlobalFlagsHandler.tsx
+++ b/apps/docs/components/reference/enrichments/cli/CliGlobalFlagsHandler.tsx
@@ -8,7 +8,7 @@ const CliGlobalFlagsHandler = () => {
return (
<RefSubLayout.EducationRow className="not-prose">
<RefSubLayout.Details>
- <h3 className="text-lg text-scale-1200 mb-3">Flags</h3>
+ <h3 className="text-lg text-foreground mb-3">Flags</h3>
<ul className="">
{spec.flags.map((flag) => {
return (
diff --git a/apps/docs/docs/ref/api/introduction.mdx b/apps/docs/docs/ref/api/introduction.mdx
index d372ac668da..025f209d040 100644
--- a/apps/docs/docs/ref/api/introduction.mdx
+++ b/apps/docs/docs/ref/api/introduction.mdx
@@ -7,7 +7,7 @@ hideTitle: true
<div className="flex items-start gap-6 not-prose" id="introduction">
<img src="/docs/img/icons/menu/reference-api.svg" className="w-8 h-8 rounded" />
<div className="flex flex-col gap-2">
- <h1 className="text-3xl text-scale-1200 m-0">Management API</h1>
+ <h1 className="text-3xl text-foreground m-0">Management API</h1>
</div>
</div>
diff --git a/apps/docs/docs/ref/cli/introduction.mdx b/apps/docs/docs/ref/cli/introduction.mdx
index 010c563ea35..e93dd0dfa5e 100644
--- a/apps/docs/docs/ref/cli/introduction.mdx
+++ b/apps/docs/docs/ref/cli/introduction.mdx
@@ -7,7 +7,7 @@ hideTitle: true
<div className="flex items-start gap-6 not-prose" id="introduction">
<img src="/docs/img/icons/menu/reference-cli.svg" className="w-8 h-8 rounded" />
<div className="flex flex-col gap-2">
- <h1 className="text-3xl text-scale-1200 m-0">Supabase CLI</h1>
+ <h1 className="text-3xl text-foreground m-0">Supabase CLI</h1>
</div>
</div>
diff --git a/apps/docs/docs/ref/csharp/introduction.mdx b/apps/docs/docs/ref/csharp/introduction.mdx
index 6846c43d03b..0a9549047bd 100644
--- a/apps/docs/docs/ref/csharp/introduction.mdx
+++ b/apps/docs/docs/ref/csharp/introduction.mdx
@@ -7,8 +7,10 @@ hideTitle: true
<div className="flex items-start gap-6 not-prose" id="introduction">
<IconMenuCsharp width={35} height={35} />
<div className="flex flex-col gap-2">
- <h1 className="text-3xl text-scale-1200 m-0">C# Client Library</h1>
- <h2 className="text-base font-mono text-scale-1100">@supabase-community/supabase-csharp</h2>
+ <h1 className="text-3xl text-foreground m-0">C# Client Library</h1>
+ <h2 className="text-base font-mono text-foreground-light">
+ @supabase-community/supabase-csharp
+ </h2>
</div>
</div>
diff --git a/apps/docs/docs/ref/dart/introduction.mdx b/apps/docs/docs/ref/dart/introduction.mdx
index 5e4b88648b3..c7c7f2f58fd 100644
--- a/apps/docs/docs/ref/dart/introduction.mdx
+++ b/apps/docs/docs/ref/dart/introduction.mdx
@@ -7,8 +7,8 @@ hideTitle: true
<div className="flex items-start gap-6 not-prose" id="introduction">
<IconMenuFlutter width={35} height={35} />
<div className="flex flex-col gap-2">
- <h1 className="text-3xl text-scale-1200 m-0">Flutter Client Library</h1>
- <h2 className="text-base font-mono text-scale-1100">supabase-flutter</h2>
+ <h1 className="text-3xl text-foreground m-0">Flutter Client Library</h1>
+ <h2 className="text-base font-mono text-foreground-light">supabase-flutter</h2>
</div>
</div>
diff --git a/apps/docs/docs/ref/dart/v0/introduction.mdx b/apps/docs/docs/ref/dart/v0/introduction.mdx
index 3fa17006e5c..9be35f2dab5 100644
--- a/apps/docs/docs/ref/dart/v0/introduction.mdx
+++ b/apps/docs/docs/ref/dart/v0/introduction.mdx
@@ -7,8 +7,8 @@ hideTitle: true
<div className="flex items-start gap-6 not-prose" id="introduction">
<IconMenuFlutter width={35} height={35} />
<div className="flex flex-col gap-2">
- <h1 className="text-3xl text-scale-1200 m-0">Flutter Client Library</h1>
- <h2 className="text-base font-mono text-scale-1100">supabase-flutter</h2>
+ <h1 className="text-3xl text-foreground m-0">Flutter Client Library</h1>
+ <h2 className="text-base font-mono text-foreground-light">supabase-flutter</h2>
</div>
</div>
diff --git a/apps/docs/docs/ref/javascript/introduction.mdx b/apps/docs/docs/ref/javascript/introduction.mdx
index 07c889bf1c7..37835c2498b 100644
--- a/apps/docs/docs/ref/javascript/introduction.mdx
+++ b/apps/docs/docs/ref/javascript/introduction.mdx
@@ -7,8 +7,8 @@ hideTitle: true
<div className="flex items-start gap-6 not-prose" id="introduction">
<IconMenuJavascript width={35} height={35} />
<div className="flex flex-col gap-2">
- <h1 className="text-3xl text-scale-1200 m-0">JavaScript Client Library</h1>
- <h2 className="text-base font-mono text-scale-1100">@supabase/supabase-js</h2>
+ <h1 className="text-3xl text-foreground m-0">JavaScript Client Library</h1>
+ <h2 className="text-base font-mono text-foreground-light">@supabase/supabase-js</h2>
</div>
</div>
diff --git a/apps/docs/docs/ref/javascript/v1/introduction.mdx b/apps/docs/docs/ref/javascript/v1/introduction.mdx
index beb4cd5879b..ded6df7a760 100644
--- a/apps/docs/docs/ref/javascript/v1/introduction.mdx
+++ b/apps/docs/docs/ref/javascript/v1/introduction.mdx
@@ -7,8 +7,8 @@ hideTitle: true
<div className="flex items-start gap-6 not-prose" id="introduction">
<IconMenuJavascript width={35} height={35} />
<div className="flex flex-col gap-2">
- <h1 className="text-3xl text-scale-1200 m-0">JavaScript Client Library</h1>
- <h2 className="text-base font-mono text-scale-1100">@supabase/supabase-js</h2>
+ <h1 className="text-3xl text-foreground m-0">JavaScript Client Library</h1>
+ <h2 className="text-base font-mono text-foreground-light">@supabase/supabase-js</h2>
</div>
</div>
diff --git a/apps/docs/docs/ref/kotlin/introduction.mdx b/apps/docs/docs/ref/kotlin/introduction.mdx
index ce6ae5db6e1..7160b61ce1f 100644
--- a/apps/docs/docs/ref/kotlin/introduction.mdx
+++ b/apps/docs/docs/ref/kotlin/introduction.mdx
@@ -7,8 +7,8 @@ hideTitle: true
<div className="flex items-start gap-6 not-prose" id="introduction">
<IconMenuKotlin width={35} height={35} />
<div className="flex flex-col gap-2">
- <h1 className="text-3xl text-scale-1200 m-0">Kotlin Client Library</h1>
- <h2 className="text-base font-mono text-scale-1100">@supabase-community/supabase-kt</h2>
+ <h1 className="text-3xl text-foreground m-0">Kotlin Client Library</h1>
+ <h2 className="text-base font-mono text-foreground-light">@supabase-community/supabase-kt</h2>
</div>
</div>
diff --git a/apps/docs/docs/ref/python/introduction.mdx b/apps/docs/docs/ref/python/introduction.mdx
index 6e7205cf132..1d7301f38b0 100644
--- a/apps/docs/docs/ref/python/introduction.mdx
+++ b/apps/docs/docs/ref/python/introduction.mdx
@@ -7,8 +7,8 @@ hideTitle: true
<div className="flex items-start gap-6 not-prose" id="introduction">
<IconMenuPython width={35} height={35} />
<div className="flex flex-col gap-2">
- <h1 className="text-3xl text-scale-1200 m-0">Python Client Library</h1>
- <h2 className="text-base font-mono text-scale-1100">@supabase-community/supabase-py</h2>
+ <h1 className="text-3xl text-foreground m-0">Python Client Library</h1>
+ <h2 className="text-base font-mono text-foreground-light">@supabase-community/supabase-py</h2>
</div>
</div>
diff --git a/apps/docs/docs/ref/self-hosting-analytics/introduction.mdx b/apps/docs/docs/ref/self-hosting-analytics/introduction.mdx
index b020dd6110b..73005d3edfc 100644
--- a/apps/docs/docs/ref/self-hosting-analytics/introduction.mdx
+++ b/apps/docs/docs/ref/self-hosting-analytics/introduction.mdx
@@ -7,7 +7,7 @@ hideTitle: true
<div className="flex items-start gap-6 not-prose" id="introduction">
<img src="/docs/img/icons/menu/reference-analytics.svg" className="w-8 h-8 rounded" />
<div className="flex flex-col gap-2">
- <h1 className="text-3xl text-scale-1200 m-0">Self-Hosting Analytics</h1>
+ <h1 className="text-3xl text-foreground m-0">Self-Hosting Analytics</h1>
</div>
</div>
diff --git a/apps/docs/docs/ref/self-hosting-auth/introduction.mdx b/apps/docs/docs/ref/self-hosting-auth/introduction.mdx
index 0fe820ce9b3..8dc95aefa9d 100644
--- a/apps/docs/docs/ref/self-hosting-auth/introduction.mdx
+++ b/apps/docs/docs/ref/self-hosting-auth/introduction.mdx
@@ -7,7 +7,7 @@ hideTitle: true
<div className="flex items-start gap-6 not-prose" id="introduction">
<img src="/docs/img/icons/menu/reference-auth.svg" className="w-8 h-8 rounded" />
<div className="flex flex-col gap-2">
- <h1 className="text-3xl text-scale-1200 m-0">Self-Hosting Auth</h1>
+ <h1 className="text-3xl text-foreground m-0">Self-Hosting Auth</h1>
</div>
</div>
diff --git a/apps/docs/docs/ref/self-hosting-functions/introduction.mdx b/apps/docs/docs/ref/self-hosting-functions/introduction.mdx
index 1fe32995336..80975270f02 100644
--- a/apps/docs/docs/ref/self-hosting-functions/introduction.mdx
+++ b/apps/docs/docs/ref/self-hosting-functions/introduction.mdx
@@ -7,7 +7,7 @@ hideTitle: true
<div className="flex items-start gap-6 not-prose" id="introduction">
<img src="/docs/img/icons/menu/reference-analytics.svg" className="w-8 h-8 rounded" />
<div className="flex flex-col gap-2">
- <h1 className="text-3xl text-scale-1200 m-0">Self-Hosting Functions</h1>
+ <h1 className="text-3xl text-foreground m-0">Self-Hosting Functions</h1>
</div>
</div>
diff --git a/apps/docs/docs/ref/self-hosting-realtime/introduction.mdx b/apps/docs/docs/ref/self-hosting-realtime/introduction.mdx
index 310e0c96192..78cb0163ab6 100644
--- a/apps/docs/docs/ref/self-hosting-realtime/introduction.mdx
+++ b/apps/docs/docs/ref/self-hosting-realtime/introduction.mdx
@@ -7,7 +7,7 @@ hideTitle: true
<div className="flex items-start gap-6 not-prose" id="introduction">
<img src="/docs/img/icons/menu/reference-realtime.svg" className="w-8 h-8 rounded" />
<div className="flex flex-col gap-2">
- <h1 className="text-3xl text-scale-1200 m-0">Self-Hosting Realtime</h1>
+ <h1 className="text-3xl text-foreground m-0">Self-Hosting Realtime</h1>
</div>
</div>
diff --git a/apps/docs/docs/ref/self-hosting-storage/introduction.mdx b/apps/docs/docs/ref/self-hosting-storage/introduction.mdx
index 150820d09b2..ea815abe908 100644
--- a/apps/docs/docs/ref/self-hosting-storage/introduction.mdx
+++ b/apps/docs/docs/ref/self-hosting-storage/introduction.mdx
@@ -7,7 +7,7 @@ hideTitle: true
<div className="flex items-start gap-6 not-prose" id="introduction">
<img src="/docs/img/icons/menu/reference-storage.svg" className="w-8 h-8 rounded" />
<div className="flex flex-col gap-2">
- <h1 className="text-3xl text-scale-1200 m-0">Self-Hosting Storage</h1>
+ <h1 className="text-3xl text-foreground m-0">Self-Hosting Storage</h1>
</div>
</div>
diff --git a/apps/docs/docs/ref/swift/introduction.mdx b/apps/docs/docs/ref/swift/introduction.mdx
index 61e48ef9038..70a0a7541ec 100644
--- a/apps/docs/docs/ref/swift/introduction.mdx
+++ b/apps/docs/docs/ref/swift/introduction.mdx
@@ -7,8 +7,10 @@ hideTitle: true
<div className="flex items-start gap-6 not-prose" id="introduction">
<IconMenuSwift width={35} height={35} />
<div className="flex flex-col gap-2">
- <h1 className="text-3xl text-scale-1200 m-0">Swift Client Library</h1>
- <h2 className="text-base font-mono text-scale-1100">@supabase-community/supabase-swift</h2>
+ <h1 className="text-3xl text-foreground m-0">Swift Client Library</h1>
+ <h2 className="text-base font-mono text-foreground-light">
+ @supabase-community/supabase-swift
+ </h2>
</div>
</div>
diff --git a/apps/docs/docs/reference/csharp/introduction.mdx b/apps/docs/docs/reference/csharp/introduction.mdx
index a65afeeb294..4e6d46ea94a 100644
--- a/apps/docs/docs/reference/csharp/introduction.mdx
+++ b/apps/docs/docs/reference/csharp/introduction.mdx
@@ -7,8 +7,8 @@ hideTitle: true
<div className="flex items-start gap-6 not-prose" id="introduction">
<IconMenuCsharp width={35} height={35} />
<div className="flex flex-col gap-2">
- <h1 className="text-3xl text-scale-1200 m-0">C# Client Library</h1>
- <h2 className="text-base font-mono text-scale-1100">supabase-csharp</h2>
+ <h1 className="text-3xl text-foreground m-0">C# Client Library</h1>
+ <h2 className="text-base font-mono text-foreground-light">supabase-csharp</h2>
</div>
</div>
diff --git a/apps/docs/layouts/DefaultLayout.tsx b/apps/docs/layouts/DefaultLayout.tsx
index 1cd66210dc9..84e0d959285 100644
--- a/apps/docs/layouts/DefaultLayout.tsx
+++ b/apps/docs/layouts/DefaultLayout.tsx
@@ -70,7 +70,7 @@ const Layout: FC<Props> = (props: Props) => {
{hasTableOfContents && !props.meta?.hide_table_of_contents && (
<div
className={[
- 'border-scale-400 dark:bg-scale-200 table-of-contents-height border-l',
+ 'border-default bg-background table-of-contents-height border-l',
'thin-scrollbar overflow-y-auto sticky hidden md:block md:col-span-3 px-2',
].join(' ')}
>
diff --git a/apps/docs/layouts/HomeLayout.tsx b/apps/docs/layouts/HomeLayout.tsx
index e6c4fe66e4d..84c04a531cc 100644
--- a/apps/docs/layouts/HomeLayout.tsx
+++ b/apps/docs/layouts/HomeLayout.tsx
@@ -71,7 +71,7 @@ const HomeLayout: FC<Props> = (props: Props) => {
{hasTableOfContents && !props.meta?.hide_table_of_contents && (
<div
className={[
- 'border-scale-400 dark:bg-scale-200 table-of-contents-height border-l',
+ 'border-default bg-background table-of-contents-height border-l',
'thin-scrollbar overflow-y-auto sticky hidden md:block md:col-span-3 px-2',
].join(' ')}
>
diff --git a/apps/docs/layouts/SiteLayout.tsx b/apps/docs/layouts/SiteLayout.tsx
index b866673663f..be61af6b531 100644
--- a/apps/docs/layouts/SiteLayout.tsx
+++ b/apps/docs/layouts/SiteLayout.tsx
@@ -162,13 +162,13 @@ const MobileHeader = memo(function MobileHeader() {
>
<span
className={[
- 'transition-all ease-out block w-4 h-px bg-scale-900 group-hover:bg-scale-1200',
+ 'transition-all ease-out block w-4 h-px bg-foreground-muted group-hover:bg-foreground',
!mobileMenuOpen ? 'w-4' : 'absolute rotate-45 top-[6px]',
].join(' ')}
></span>
<span
className={[
- 'transition-all ease-out block h-px bg-scale-900 group-hover:bg-scale-1200',
+ 'transition-all ease-out block h-px bg-foreground-muted group-hover:bg-foreground',
!mobileMenuOpen ? 'w-3 group-hover:w-4' : 'absolute w-4 -rotate-45 top-[2px]',
].join(' ')}
></span>
@@ -186,7 +186,7 @@ const MobileHeader = memo(function MobileHeader() {
<span
className={[
'transition-all duration-200',
- 'text-scale-1200',
+ 'text-foreground',
mobileMenuOpen ? 'text-xs' : 'text-sm',
].join(' ')}
>
@@ -222,7 +222,7 @@ const MobileMenuBackdrop = memo(function MobileMenuBackdrop() {
'left-0',
'right-0',
'z-10',
- 'backdrop-blur-sm backdrop-filter bg-white-1200 dark:bg-scale-200/90',
+ 'backdrop-blur-sm backdrop-filter bg-alternative/90',
mobileMenuOpen ? 'absolute h-full w-full top-0 left-0' : 'hidden h-0',
// always hide on desktop
'lg:hidden',
@@ -295,7 +295,7 @@ const NavContainer = memo(function NavContainer() {
'relative',
'w-auto',
'border-r overflow-auto h-screen',
- 'backdrop-blur backdrop-filter bg-white-1200 dark:bg-scale-200',
+ 'backdrop-blur backdrop-filter bg-background',
'flex flex-col',
].join(' ')}
>
@@ -305,13 +305,13 @@ const NavContainer = memo(function NavContainer() {
<div
className={[
'hidden lg:flex lg:height-auto',
- 'pt-8 bg-scale-200 flex-col gap-8',
+ 'pt-8 bg-background flex-col gap-8',
].join(' ')}
>
<HeaderLogo />
</div>
- <div className="h-4 bg-scale-200 w-full"></div>
- <div className="bg-gradient-to-b from-scale-200 to-transparent h-4 w-full"></div>
+ <div className="h-4 bg-background w-full"></div>
+ <div className="bg-gradient-to-b from-background to-transparent h-4 w-full"></div>
</div>
</div>
</div>
@@ -321,7 +321,7 @@ const NavContainer = memo(function NavContainer() {
'absolute left-0 right-0 h-screen',
'px-5 pl-5 py-16',
'top-[0px]',
- 'bg-scale-200',
+ 'bg-background',
// desktop styles
'lg:relative lg:top-0 lg:left-0 lg:pb-10 lg:px-10 lg:pt-0 lg:flex',
'lg:opacity-100 lg:visible',
@@ -351,7 +351,7 @@ const SiteLayout = ({ children }: PropsWithChildren<{}>) => {
className={[
'sticky transition-all top-0',
'z-10',
- 'backdrop-blur backdrop-filter bg-white-1200 dark:bg-scale-200',
+ 'backdrop-blur backdrop-filter bg-background',
].join(' ')}
>
<div className={['lg:hidden', 'px-5 ', 'border-b z-10'].join(' ')}>
diff --git a/apps/docs/layouts/guides/index.tsx b/apps/docs/layouts/guides/index.tsx
index 16111871418..d89e3733866 100644
--- a/apps/docs/layouts/guides/index.tsx
+++ b/apps/docs/layouts/guides/index.tsx
@@ -125,9 +125,9 @@ const Layout: FC<Props> = (props) => {
>
<h1 className="mb-0">{props.meta.title}</h1>
{props.meta.subtitle && (
- <h2 className="mt-3 text-xl text-scale-1100">{props.meta.subtitle}</h2>
+ <h2 className="mt-3 text-xl text-foreground-light">{props.meta.subtitle}</h2>
)}
- <div className="w-full h-[1px] bg-scale-500 my-8"></div>
+ <div className="w-full border-b my-8"></div>
<MDXProvider components={components}>{props.children}</MDXProvider>
{EDIT_BUTTON_EXCLUDE_LIST.includes(router.route) ? (
@@ -137,7 +137,7 @@ const Layout: FC<Props> = (props) => {
<div>
<a
href={`https://github.com/supabase/supabase/edit/master/apps/docs/pages${router.asPath}.mdx`}
- className="text-sm transition flex items-center gap-1 text-scale-1000 hover:text-scale-1200 w-fit"
+ className="text-sm transition flex items-center gap-1 text-foreground-lighter hover:text-foreground w-fit"
>
Edit this page on GitHub <IconExternalLink size={14} strokeWidth={1.5} />
</a>
@@ -150,7 +150,7 @@ const Layout: FC<Props> = (props) => {
<div
className={[
'col-span-3',
- 'border-scale-400 dark:bg-scale-200 table-of-contents-height',
+ 'border-overlay bg-background table-of-contents-height',
'thin-scrollbar overflow-y-auto sticky hidden md:block md:col-span-3 px-2',
'transition-all ease-out',
'duration-100',
@@ -162,7 +162,7 @@ const Layout: FC<Props> = (props) => {
<ExpandableVideo imgUrl={tocVideoPreview} videoId={props.meta.tocVideo} />
</div>
)}
- <span className="block font-mono text-xs uppercase text-scale-1200 px-5 mb-6">
+ <span className="block font-mono text-xs uppercase text-foreground px-5 mb-6">
On this page
</span>
<GuidesTableOfContents list={tocList} />
diff --git a/apps/docs/layouts/ref/RefSubLayout.tsx b/apps/docs/layouts/ref/RefSubLayout.tsx
index 67dccde02c9..a70f12c4a3d 100644
--- a/apps/docs/layouts/ref/RefSubLayout.tsx
+++ b/apps/docs/layouts/ref/RefSubLayout.tsx
@@ -121,7 +121,7 @@ const StickyHeader: FC<StickyHeader> = ({ icon, ...props }) => {
id={props.slug}
data-ref-id={props.id}
className={[
- 'text-2xl font-medium text-scale-1200 scroll-mt-24',
+ 'text-2xl font-medium text-foreground scroll-mt-24',
!icon && 'mb-8',
props.monoFont && 'font-mono',
].join(' ')}
diff --git a/apps/docs/layouts/ref/RefSubLayoutNonFunc.tsx b/apps/docs/layouts/ref/RefSubLayoutNonFunc.tsx
index b1362705dcc..9a5ace6404d 100644
--- a/apps/docs/layouts/ref/RefSubLayoutNonFunc.tsx
+++ b/apps/docs/layouts/ref/RefSubLayoutNonFunc.tsx
@@ -81,7 +81,7 @@ const StickyHeader: FC<StickyHeader> = (props) => {
id={props.slug}
data-ref-id={props.id}
className={[
- 'text-xl font-medium text-scale-1200 mb-8 scroll-mt-24',
+ 'text-xl font-medium text-foreground mb-8 scroll-mt-24',
props.monoFont && 'font-mono',
].join(' ')}
>
diff --git a/apps/docs/layouts/tutorials/TutorialLayout.tsx b/apps/docs/layouts/tutorials/TutorialLayout.tsx
index 65ded8cf428..e8961ed4e5f 100644
--- a/apps/docs/layouts/tutorials/TutorialLayout.tsx
+++ b/apps/docs/layouts/tutorials/TutorialLayout.tsx
@@ -72,7 +72,7 @@ const Layout: FC<Props> = (props: Props) => {
{hasTableOfContents && !props.meta?.hide_table_of_contents && (
<div
className={[
- 'border-scale-400 dark:bg-scale-200 table-of-contents-height border-l',
+ 'border-overlay bg-background table-of-contents-height border-l',
'thin-scrollbar overflow-y-auto sticky hidden md:block md:col-span-3 px-2',
].join(' ')}
>
diff --git a/apps/docs/lib/mdx/getComponents.tsx b/apps/docs/lib/mdx/getComponents.tsx
index 44df8e77a20..07d9695f712 100644
--- a/apps/docs/lib/mdx/getComponents.tsx
+++ b/apps/docs/lib/mdx/getComponents.tsx
@@ -14,7 +14,7 @@ function getComponents(type: any) {
<div
className={[
'next-image--dynamic-fill',
- type === 'blog' && 'to-scale-400 from-scale-500 rounded-lg border bg-gradient-to-r',
+ type === 'blog' && 'to-border-overlay from-border rounded-lg border bg-gradient-to-r',
].join(' ')}
>
<Image
diff --git a/apps/docs/package.json b/apps/docs/package.json
index 3890e74f690..f46d37dc2d3 100644
--- a/apps/docs/package.json
+++ b/apps/docs/package.json
@@ -57,6 +57,7 @@
"@supabase/supabase-js": "^2.38.2",
"common": "*",
"config": "*",
+ "dat.gui": "^0.7.9",
"framer-motion": "^6.5.1",
"github-slugger": "^2.0.0",
"gray-matter": "^4.0.3",
diff --git a/apps/docs/pages/_app.tsx b/apps/docs/pages/_app.tsx
index a75a38c7eec..ebd187658ff 100644
--- a/apps/docs/pages/_app.tsx
+++ b/apps/docs/pages/_app.tsx
@@ -9,7 +9,7 @@ import '../styles/prism-okaidia.scss'
import { SessionContextProvider } from '@supabase/auth-helpers-react'
import { createClient } from '@supabase/supabase-js'
-import { AuthProvider, ThemeProvider, useTelemetryProps } from 'common'
+import { AuthProvider, ThemeProvider, useTelemetryProps, useThemeSandbox } from 'common'
import { useRouter } from 'next/router'
import { useCallback, useEffect, useState } from 'react'
import { AppPropsWithLayout } from 'types'
@@ -26,6 +26,8 @@ function MyApp({ Component, pageProps }: AppPropsWithLayout) {
const telemetryProps = useTelemetryProps()
const { consentValue, hasAcceptedConsent } = useConsent()
+ useThemeSandbox()
+
const [supabase] = useState(() =>
IS_PLATFORM
? createClient(
diff --git a/apps/docs/pages/guides/auth/server-side-rendering.mdx b/apps/docs/pages/guides/auth/server-side-rendering.mdx
index 4ec0547391f..566cbfedffb 100644
--- a/apps/docs/pages/guides/auth/server-side-rendering.mdx
+++ b/apps/docs/pages/guides/auth/server-side-rendering.mdx
@@ -48,11 +48,11 @@ Supabase Auth supports two authentication flows: **Implicit** and **PKCE**. The
chevronAlign="right"
justified
size="medium"
- className="text-scale-900 dark:text-white"
+ className="text-foreground-light"
>
<div className="border-b pb-3">
<Accordion.Item
- header={<span className="text-scale-1200 font-bold">Implicit</span>}
+ header={<span className="text-foreground font-bold">Implicit</span>}
id={`ssr-implicit-flow`}
>
@@ -77,7 +77,7 @@ Supabase Auth supports two authentication flows: **Implicit** and **PKCE**. The
</div>
<div className="border-b pb-3">
<Accordion.Item
- header={<span className="text-scale-1200 font-bold">PKCE</span>}
+ header={<span className="text-foreground font-bold">PKCE</span>}
id={`ssr-pkce-flow`}
>
diff --git a/apps/docs/pages/guides/cli/config.tsx b/apps/docs/pages/guides/cli/config.tsx
index febc8fe69d5..6734ca93053 100644
--- a/apps/docs/pages/guides/cli/config.tsx
+++ b/apps/docs/pages/guides/cli/config.tsx
@@ -40,7 +40,7 @@ export default function Config() {
</div>
<div className="md:col-span-3">
<div className="sticky top-20 border-l">
- <span className="block font-mono text-xs uppercase text-scale-1200 pl-5 mb-4">
+ <span className="block font-mono text-xs uppercase text-foreground pl-5 mb-4">
On this page
</span>
<GuidesTableOfContents list={tocList} />
diff --git a/apps/docs/pages/guides/self-hosting/analytics/config.mdx b/apps/docs/pages/guides/self-hosting/analytics/config.mdx
index 97dc3bf3a97..9f67a39181e 100644
--- a/apps/docs/pages/guides/self-hosting/analytics/config.mdx
+++ b/apps/docs/pages/guides/self-hosting/analytics/config.mdx
@@ -16,10 +16,10 @@ export const meta = {
{props.spec.info.tags.map(tag => {
return (
<>
- <h2 className="text-scale-1200">{tag.title}</h2>
- <p className="text-scale-1000">{tag.description}</p>
+ <h2 className="text-foreground">{tag.title}</h2>
+ <p className="text-foreground-lighter">{tag.description}</p>
<div className="not-prose">
- <h5 className="text-base text-scale-1200 mb-3">Parameters</h5>
+ <h5 className="text-base text-foreground mb-3">Parameters</h5>
<ul>
{props.spec.parameters.filter(param => param.tags.includes(tag.id)).map((param) => {
return <Param name={param.title} type={param.type} description={param.description} required={param.required} />
diff --git a/apps/docs/pages/guides/self-hosting/auth/config.mdx b/apps/docs/pages/guides/self-hosting/auth/config.mdx
index e62b9746ad9..f7f3062dec4 100644
--- a/apps/docs/pages/guides/self-hosting/auth/config.mdx
+++ b/apps/docs/pages/guides/self-hosting/auth/config.mdx
@@ -16,10 +16,10 @@ export const meta = {
{props.spec.info.tags.map(tag => {
return (
<>
- <h2 className="text-scale-1200">{tag.title}</h2>
- <p className="text-scale-1000">{tag.description}</p>
+ <h2 className="text-foreground">{tag.title}</h2>
+ <p className="text-foreground-lighter">{tag.description}</p>
<div className="not-prose">
- <h5 className="text-base text-scale-1200 mb-3">Parameters</h5>
+ <h5 className="text-base text-foreground mb-3">Parameters</h5>
<ul>
{props.spec.parameters.filter(param => param.tags.includes(tag.id)).map((param) => {
return <Param name={param.title} type={param.type} description={param.description} required={param.required} />
diff --git a/apps/docs/pages/guides/self-hosting/realtime/config.mdx b/apps/docs/pages/guides/self-hosting/realtime/config.mdx
index d960852fe5d..5708ca1cbfa 100644
--- a/apps/docs/pages/guides/self-hosting/realtime/config.mdx
+++ b/apps/docs/pages/guides/self-hosting/realtime/config.mdx
@@ -18,10 +18,10 @@ See [this guide](/docs/guides/realtime/bring-your-own-database) if you want to c
{props.spec.info.tags.map(tag => {
return (
<>
- <h2 className="text-scale-1200">{tag.title}</h2>
- <p className="text-scale-1000">{tag.description}</p>
+ <h2 className="text-foreground">{tag.title}</h2>
+ <p className="text-foreground-lighter">{tag.description}</p>
<div className="not-prose">
- <h5 className="text-base text-scale-1200 mb-3">Parameters</h5>
+ <h5 className="text-base text-foreground mb-3">Parameters</h5>
<ul>
{props.spec.parameters.filter(param => param.tags.includes(tag.id)).map((param) => {
return <Param name={param.title} type={param.type} description={param.description} required={param.required} />
diff --git a/apps/docs/pages/guides/self-hosting/storage/config.mdx b/apps/docs/pages/guides/self-hosting/storage/config.mdx
index 76f04369ad5..80d9cdbf920 100644
--- a/apps/docs/pages/guides/self-hosting/storage/config.mdx
+++ b/apps/docs/pages/guides/self-hosting/storage/config.mdx
@@ -16,10 +16,10 @@ export const meta = {
{props.spec.info.tags.map(tag => {
return (
<>
- <h2 className="text-scale-1200">{tag.title}</h2>
- <p className="text-scale-1000">{tag.description}</p>
+ <h2 className="text-foreground">{tag.title}</h2>
+ <p className="text-foreground-lighter">{tag.description}</p>
<div className="not-prose">
- <h5 className="text-base text-scale-1200 mb-3">Parameters</h5>
+ <h5 className="text-base text-foreground mb-3">Parameters</h5>
<ul>
{props.spec.parameters.filter(param => param.tags.includes(tag.id)).map((param) => {
return <Param name={param.title} type={param.type} description={param.description} required={param.required} />
diff --git a/apps/docs/pages/index.mdx b/apps/docs/pages/index.mdx
index 64e0f0d26f5..20c5a10dfe8 100644
--- a/apps/docs/pages/index.mdx
+++ b/apps/docs/pages/index.mdx
@@ -78,7 +78,7 @@ export const meta = {
## Migrate to Supabase
- <p className="text-scale-1100 text-sm p-0 m-0">Bring your existing data, auth and storage to Supabase following our migration guides.</p>
+ <p className="text-foreground-light text-sm p-0 m-0">Bring your existing data, auth and storage to Supabase following our migration guides.</p>
<TextLink
label="Explore more resources"
@@ -147,7 +147,7 @@ export const meta = {
</IconBackground>
### Self-Hosting
</div>
- <p className="text-scale-1100 text-sm">Get started with self-hosting Supabase.</p>
+ <p className="text-foreground-light text-sm">Get started with self-hosting Supabase.</p>
<TextLink
label="More on Self-Hosting"
url="/guides/self-hosting"
diff --git a/apps/docs/pages/reference/analytics/[...slug].tsx b/apps/docs/pages/reference/analytics/[...slug].tsx
index 54d04153c0d..8e5a158c735 100644
--- a/apps/docs/pages/reference/analytics/[...slug].tsx
+++ b/apps/docs/pages/reference/analytics/[...slug].tsx
@@ -53,7 +53,7 @@ export default function Config() {
>
<RefSubLayout.Details>
<div className="mt-4">
- <code className="text-md flex gap-4 text-md text-scale-900 break-all">
+ <code className="text-md flex gap-4 text-md text-foreground-lighter break-all">
<span className="uppercase whitespace-nowrap ">{operation.operation}</span>
{operation.fullPath}
</code>
diff --git a/apps/docs/pages/reference/analytics/config.tsx b/apps/docs/pages/reference/analytics/config.tsx
index ed0c0dc07a6..42d8df125bb 100644
--- a/apps/docs/pages/reference/analytics/config.tsx
+++ b/apps/docs/pages/reference/analytics/config.tsx
@@ -35,14 +35,14 @@ export default function Config(props) {
{index === 0 && <h2 className="text-xl capitalize">{tag} Settings</h2>}
<div className="mt-8">
<div>
- <h2 className="text-xl font-medium text-scale-1200 font-mono">
+ <h2 className="text-xl font-medium text-foreground font-mono">
<span className="mr-2">$</span>
{parameter.title}
</h2>
<div className="grid" id={parameter.id}>
<div className="border-b pb-8" key={parameter.id}>
<div className=" mb-16">
- <p className="mb-4 scroll-mt-16 mt-0 text-scale-1100 text-base">
+ <p className="mb-4 scroll-mt-16 mt-0 text-foreground-light text-base">
<ReactMarkdown>{parameter.description}</ReactMarkdown>
</p>
<div className="grid gap-2">
diff --git a/apps/docs/pages/reference/auth/[...slug].tsx b/apps/docs/pages/reference/auth/[...slug].tsx
index 00ac30b2994..9dbd8857705 100644
--- a/apps/docs/pages/reference/auth/[...slug].tsx
+++ b/apps/docs/pages/reference/auth/[...slug].tsx
@@ -53,7 +53,7 @@ export default function Config() {
>
<RefSubLayout.Details>
<div className="mt-4">
- <code className="text-md flex gap-4 text-md text-scale-900 break-all">
+ <code className="text-md flex gap-4 text-md text-foreground-lighter break-all">
<span className="uppercase whitespace-nowrap ">{operation.operation}</span>
{operation.fullPath}
</code>
diff --git a/apps/docs/pages/reference/auth/config.tsx b/apps/docs/pages/reference/auth/config.tsx
index 41b9437f148..255b5f6284f 100644
--- a/apps/docs/pages/reference/auth/config.tsx
+++ b/apps/docs/pages/reference/auth/config.tsx
@@ -26,14 +26,14 @@ export default function Config() {
{index === 0 && <h2 className="text-xl capitalize">{tag}</h2>}
<div className="mt-8">
<div>
- <h2 className="text-xl font-medium text-scale-1200 font-mono">
+ <h2 className="text-xl font-medium text-foreground font-mono">
<span className="mr-2">$</span>
{parameter.title}
</h2>
<div className="grid" id={parameter.id}>
<div className="border-b pb-8" key={parameter.id}>
<div className=" mb-16">
- <p className="mb-4 scroll-mt-16 mt-0 text-scale-1100 text-base">
+ <p className="mb-4 scroll-mt-16 mt-0 text-foreground-light text-base">
<ReactMarkdown>{parameter.description}</ReactMarkdown>
</p>
<div className="grid gap-2">
diff --git a/apps/docs/pages/reference/realtime/config.tsx b/apps/docs/pages/reference/realtime/config.tsx
index aab317af44d..ae7b675a4c6 100644
--- a/apps/docs/pages/reference/realtime/config.tsx
+++ b/apps/docs/pages/reference/realtime/config.tsx
@@ -35,14 +35,14 @@ export default function Config(props) {
{index === 0 && <h2 className="text-xl capitalize">{tag} Settings</h2>}
<div className="mt-8">
<div>
- <h2 className="text-xl font-medium text-scale-1200 font-mono">
+ <h2 className="text-xl font-medium text-foreground font-mono">
<span className="mr-2">$</span>
{parameter.title}
</h2>
<div className="grid" id={parameter.id}>
<div className="border-b pb-8" key={parameter.id}>
<div className=" mb-16">
- <p className="mb-4 scroll-mt-16 mt-0 text-scale-1100 text-base">
+ <p className="mb-4 scroll-mt-16 mt-0 text-foreground-light text-base">
<ReactMarkdown>{parameter.description}</ReactMarkdown>
</p>
<div className="grid gap-2">
diff --git a/apps/docs/pages/reference/storage/[...slug].tsx b/apps/docs/pages/reference/storage/[...slug].tsx
index 35d0eaf3576..64e4661f776 100644
--- a/apps/docs/pages/reference/storage/[...slug].tsx
+++ b/apps/docs/pages/reference/storage/[...slug].tsx
@@ -57,7 +57,7 @@ export default function Config() {
>
<RefSubLayout.Details>
<div className="mt-4">
- <code className="text-md flex gap-4 text-md text-scale-900 break-all">
+ <code className="text-md flex gap-4 text-md text-foreground-lighter break-all">
<span className="uppercase">{operation.operation}</span>
{operation.fullPath}
</code>
diff --git a/apps/docs/pages/reference/storage/config.tsx b/apps/docs/pages/reference/storage/config.tsx
index 94dee5d9e55..807699544ec 100644
--- a/apps/docs/pages/reference/storage/config.tsx
+++ b/apps/docs/pages/reference/storage/config.tsx
@@ -22,14 +22,14 @@ export default function Config() {
{index === 0 && <h2 className="text-xl capitalize">{tag} Settings</h2>}
<div className="mt-8">
<div>
- <h2 className="text-xl font-medium text-scale-1200 font-mono">
+ <h2 className="text-xl font-medium text-foreground font-mono">
<span className="mr-2">$</span>
{parameter.title}
</h2>
<div className="grid" id={parameter.id}>
<div className="border-b pb-8" key={parameter.id}>
<div className=" mb-16">
- <p className="mb-4 scroll-mt-16 mt-0 text-scale-1100 text-base">
+ <p className="mb-4 scroll-mt-16 mt-0 text-foreground-light text-base">
<ReactMarkdown>{parameter.description}</ReactMarkdown>
</p>
<div className="grid gap-2">
diff --git a/apps/docs/styles/main.scss b/apps/docs/styles/main.scss
index ece45d88688..bb372ac62aa 100644
--- a/apps/docs/styles/main.scss
+++ b/apps/docs/styles/main.scss
@@ -29,7 +29,7 @@
}
body {
- @apply bg-scale-200;
+ @apply bg-background;
scroll-behavior: smooth;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
@@ -76,12 +76,12 @@ article h1 {
}
.p:not(.prose *):not(.overwrite) {
- @apply text-scale-1100;
+ @apply text-foreground-light;
margin-bottom: 16px;
}
.small:not(.prose *):not(.overwrite) {
- @apply text-scale-900 text-xs;
+ @apply text-foreground-muted text-xs;
}
.prose :where(p):not(:where([class~='not-prose'] *)) {
@@ -125,7 +125,7 @@ pre[class*='language-'] {
.method-list-item-validation {
code {
- @apply text-xs bg-scale-300 rounded;
+ @apply text-xs bg-control rounded;
padding: 1px 6px;
}
}
@@ -135,7 +135,7 @@ pre[class*='language-'] {
}
.method-list-group .method-list-group {
- @apply border border-scale-400 rounded-md;
+ @apply border border-overlay rounded-md;
margin-bottom: 20px;
max-width: 600px;
}
@@ -209,7 +209,7 @@ h4 code {
// code inside admonitions
.admonition-content p code {
- @apply bg-scale-300;
+ @apply bg-control;
word-break: keep-all !important;
white-space: nowrap !important;
}
@@ -282,3 +282,9 @@ div[role='tablist'] {
position: relative !important;
height: unset !important;
}
+
+/* dat.GUI */
+
+.dg.ac {
+ z-index: 9999 !important;
+}
diff --git a/apps/www/components/AdminAccess/index.tsx b/apps/www/components/AdminAccess/index.tsx
index 8660577c92e..f71b81f1792 100644
--- a/apps/www/components/AdminAccess/index.tsx
+++ b/apps/www/components/AdminAccess/index.tsx
@@ -1,6 +1,6 @@
import React from 'react'
-import SectionContainer from '../Layouts/SectionContainer'
-import ImageCarousel from '../Carousels/ImageCarousel'
+import ImageCarousel from '~/components/Carousels/ImageCarousel'
+import SectionContainer from '~/components/Layouts/SectionContainer'
import AdminAccessData from 'data/home/admin-access.json'
diff --git a/apps/www/components/AuthWidget/AuthWidgetSection.tsx b/apps/www/components/AuthWidget/AuthWidgetSection.tsx
index 665950d5b9b..95f2d6aaefd 100644
--- a/apps/www/components/AuthWidget/AuthWidgetSection.tsx
+++ b/apps/www/components/AuthWidget/AuthWidgetSection.tsx
@@ -75,7 +75,9 @@ function AuthWidgetSection() {
</div>
<h1 className="text-foreground text-2xl">Acme Industries</h1>
</div>
- <p className="text-light text-auth-widget-test">Sign in today for Supa stuff</p>
+ <p className="text-foreground-light text-auth-widget-test">
+ Sign in today for Supa stuff
+ </p>
</div>
<Auth.UserContextProvider supabaseClient={supabase}>
<AuthContainer supabaseClient={supabase}>
@@ -111,7 +113,7 @@ function AuthWidgetSection() {
<div className="prose !max-w-md">
<h3 className="text-2xl">Auth UI</h3>
<p className="!mb-0">Pre-built auth widgets to get started in minutes.</p>
- <p className="text-lighter mt-0">
+ <p className="text-foreground-lighter mt-0">
Customizable authentication UI component with custom themes and extensible styles to
match your brand and aesthetic
</p>
@@ -201,7 +203,7 @@ function AuthWidgetSection() {
<button
onClick={() => setRadius('4px')}
className={[
- 'bg-surface-100 ring-foreground-muted border-border flex h-10 w-10 items-center justify-center rounded-full border hover:scale-105',
+ 'bg-surface-100 ring-foreground-muted border-default flex h-10 w-10 items-center justify-center rounded-full border hover:scale-105',
radius === '4px'
? 'ring-foreground-muted border-foreground-lighter border-2 ring-2'
: '',
@@ -227,7 +229,7 @@ function AuthWidgetSection() {
<button
onClick={() => setRadius('10px')}
className={[
- 'bg-surface-100 border-border flex h-10 w-10 items-center justify-center rounded-full border transition hover:scale-105',
+ 'bg-surface-100 border-default flex h-10 w-10 items-center justify-center rounded-full border transition hover:scale-105',
radius === '10px'
? 'ring-foreground-muted border-foreground-lighter border-2 ring-2'
: '',
@@ -253,7 +255,7 @@ function AuthWidgetSection() {
<button
onClick={() => setRadius('32px')}
className={[
- 'bg-surface-100 border-border flex h-10 w-10 items-center justify-center rounded-full border transition hover:scale-105',
+ 'bg-surface-100 border-default flex h-10 w-10 items-center justify-center rounded-full border transition hover:scale-105',
radius === '32px'
? 'ring-foreground-muted border-foreground-lighter border-2 ring-2'
: '',
diff --git a/apps/www/components/Avatar.tsx b/apps/www/components/Avatar.tsx
index bc9a07ab511..6dfe513469a 100644
--- a/apps/www/components/Avatar.tsx
+++ b/apps/www/components/Avatar.tsx
@@ -14,7 +14,7 @@ export default function Avatar(props: Props) {
style={{ margin: 0 }}
alt={`${caption} avatar`}
/>
- <figcaption style={{ marginTop: 0 }} className="text-lighter">
+ <figcaption style={{ marginTop: 0 }} className="text-foreground-lighter">
<p>{caption}</p>
</figcaption>
</div>
diff --git a/apps/www/components/Blog/BlogFilters.tsx b/apps/www/components/Blog/BlogFilters.tsx
index 8440084b48b..a926990c3a2 100644
--- a/apps/www/components/Blog/BlogFilters.tsx
+++ b/apps/www/components/Blog/BlogFilters.tsx
@@ -167,7 +167,7 @@ const BlogFilters = ({ posts, setPosts, setCategory, allCategories, handlePosts
setSearchKey('')
setShowSearchInput(false)
}}
- className="text-light hover:text-foreground"
+ className="text-foreground-light hover:text-foreground"
>
<IconX size="tiny" />
</Button>
diff --git a/apps/www/components/Blog/BlogListItem.tsx b/apps/www/components/Blog/BlogListItem.tsx
index 7bc4c6a811b..8d9ce5db68e 100644
--- a/apps/www/components/Blog/BlogListItem.tsx
+++ b/apps/www/components/Blog/BlogListItem.tsx
@@ -28,9 +28,11 @@ const BlogListItem = ({ post }: Props) => {
<Link href={post.path} className="group inline-block min-w-full">
<div className="flex flex-col space-y-6">
<div className="flex flex-col space-y-3">
- <div className="border-scale-300 relative mb-4 h-60 w-full overflow-hidden rounded-lg border shadow-sm">
+ <div
+ className={`border-default relative mb-4 h-60 w-full overflow-auto rounded-lg border shadow-sm`}
+ >
<Image
- fill
+ layout="fill"
src={
!post.thumb
? `/images/blog/blog-placeholder.png`
@@ -38,15 +40,16 @@ const BlogListItem = ({ post }: Props) => {
? post.thumb
: `/images/blog/${post.thumb}`
}
- className="object-cover scale-100 transform duration-100 ease-in group-hover:scale-105"
- alt={post.title}
+ objectFit="cover"
+ className="scale-100 transform duration-100 ease-in group-hover:scale-105"
+ alt="case study thumbnail"
/>
</div>
<h3 className="text-foreground max-w-sm text-xl">{post.title}</h3>
- <p className="text-light max-w-sm text-base">{post.description}</p>
+ <p className="text-foreground-light max-w-sm text-base">{post.description}</p>
{post.date && (
- <div className="text-muted flex items-center space-x-1.5 text-sm">
+ <div className="text-foreground-light flex items-center space-x-1.5 text-sm">
<p>{post.date}</p>
{post.readingTime && (
<>
diff --git a/apps/www/components/Blog/ShareArticleActions.tsx b/apps/www/components/Blog/ShareArticleActions.tsx
index 1ec460a9bcc..b2dff074b14 100644
--- a/apps/www/components/Blog/ShareArticleActions.tsx
+++ b/apps/www/components/Blog/ShareArticleActions.tsx
@@ -6,7 +6,7 @@ const ShareArticleActions = ({ title, slug }: { title: string; slug: string }) =
<Link
href={`https://twitter.com/share?text=${title}&url=https://supabase.com/blog/${slug}`}
target="_blank"
- className="text-lighter hover:text-foreground"
+ className="text-foreground-lighter hover:text-foreground"
>
<IconTwitterX size={24} />
</Link>
@@ -14,14 +14,14 @@ const ShareArticleActions = ({ title, slug }: { title: string; slug: string }) =
<Link
href={`https://www.linkedin.com/shareArticle?url=https://supabase.com/blog/${slug}&title=${title}`}
target="_blank"
- className="text-lighter hover:text-foreground"
+ className="text-foreground-lighter hover:text-foreground"
>
<IconLinkedinSolid size={24} />
</Link>
<Link
href={`https://news.ycombinator.com/submitlink?u=https://supabase.com/blog/${slug}&t=${title}`}
target="_blank"
- className="text-lighter hover:text-foreground"
+ className="text-foreground-lighter hover:text-foreground"
>
<IconYCombinator size={24} />
</Link>
diff --git a/apps/www/components/Card.tsx b/apps/www/components/Card.tsx
index cb5605c1f6d..6ceba793bb6 100644
--- a/apps/www/components/Card.tsx
+++ b/apps/www/components/Card.tsx
@@ -56,21 +56,21 @@ const Card = (props: Props) => {
target="_blank"
className="relative flex transform flex-col overflow-hidden rounded-md shadow-lg transition hover:-translate-y-1 hover:shadow-2xl"
>
- <div className="dark:bg-dark-800 flex-shrink-0">
- <img className="h-64 w-full object-cover" src={imgUrl} alt={title} />
+ <div className="flex-shrink-0">
+ <img className="h-64 w-full text-foreground-light object-cover" src={imgUrl} alt={title} />
</div>
- <div className="dark:bg-scale-300 flex flex-1 flex-col justify-between bg-white p-8">
+ <div className="bg-surface-100 flex flex-1 flex-col justify-between p-8">
<div className="flex-1">
{/* {icons && (
<div className="-mt-12 mb-6 flex -space-x-3">
{iconMarkup}
</div>
)} */}
- <p className="font-base dark:text-dark-300 text-sm capitalize text-gray-600">{type}</p>
+ <p className="font-base text-foreground-lighter text-sm capitalize">{type}</p>
<div className="mt-2 flex h-32 flex-col justify-between">
{/* {logoUrl && <img src={logoUrl} className="h-9 my-4" />} */}
- {title && <p className="text-xl text-gray-900 dark:text-white">{title}</p>}
- <p className="dark:text-dark-400 mt-3 text-base text-gray-500">
+ {title && <p className="text-xl text-foreground">{title}</p>}
+ <p className="text-foreground-lighter mt-3 text-base">
{type !== 'Project Example' ? postMeta.publishDate : description}
</p>
</div>
@@ -82,8 +82,8 @@ const Card = (props: Props) => {
<img className="h-10 w-10 rounded-full" src={postMeta.avatarUrl} alt="" />
</div>
<div className="ml-3">
- <p className="text-sm font-medium text-gray-900 dark:text-white">{postMeta.name}</p>
- <div className="dark:text-dark-100 flex space-x-1 text-sm text-gray-500">
+ <p className="text-sm font-medium text-foreground">{postMeta.name}</p>
+ <div className="text-foreground-lighter flex space-x-1 text-sm">
<time dateTime="2020-03-16">{postMeta.publishDate}</time>
<span aria-hidden="true">&middot;</span>
<span>{postMeta.readLength} min read</span>
diff --git a/apps/www/components/Carousels/SplitCodeBlockCarousel.tsx b/apps/www/components/Carousels/SplitCodeBlockCarousel.tsx
index bd3c0ca0465..db357ce1bc3 100644
--- a/apps/www/components/Carousels/SplitCodeBlockCarousel.tsx
+++ b/apps/www/components/Carousels/SplitCodeBlockCarousel.tsx
@@ -100,7 +100,7 @@ function SplitCodeBlockCarousel(props: SplitCodeBlockCarousel) {
})}
</Swiper>
- <div className="bg-scale-100 dark:bg-scale-300 border-scale-500 overflow-hidden rounded-md border p-8">
+ <div className="bg-surface-100 border-default overflow-hidden rounded-md border p-8">
<Swiper
// @ts-ignore
onSwiper={setSwiperDetails}
diff --git a/apps/www/components/Charts/PGCharts.tsx b/apps/www/components/Charts/PGCharts.tsx
index 982c1097fc9..9b1740b7180 100644
--- a/apps/www/components/Charts/PGCharts.tsx
+++ b/apps/www/components/Charts/PGCharts.tsx
@@ -37,7 +37,7 @@ const CustomizedAxisTick = (props: any) => {
y={-12}
dy={16}
textAnchor="end"
- fill="var(--colors-scale10)"
+ fill="hsl(var(--foreground-lighter))"
transform="rotate(-35)"
className="text-xs"
>
@@ -70,11 +70,15 @@ const Chart = () => {
@ts-ignore */}
<BarChart data={data[selection]} layout="vertical">
<XAxis
- axisLine={{ stroke: 'var(--colors-scale7)' }}
- tickLine={{ stroke: 'var(--colors-scale7)' }}
+ axisLine={{ stroke: 'hsl(var(--border-default))' }}
+ tickLine={{ stroke: 'hsl(var(--border-default))' }}
type="number"
tickMargin={8}
- style={{ fontSize: '14px', marginBottom: '32px', color: 'var(--colors-scale12)' }}
+ style={{
+ fontSize: '14px',
+ marginBottom: '32px',
+ color: 'hsl(var(--foreground-default))',
+ }}
tick={<CustomizedAxisTick />}
label={{
value:
@@ -85,17 +89,21 @@ const Chart = () => {
: 'Number of results',
position: 'insideBottom',
offset: -32,
- fill: 'var(--colors-scale12)',
+ fill: 'hsl(var(--foreground-default))',
}}
/>
<YAxis
dataKey={'query'}
type="category"
- style={{ fontSize: '14px', marginBottom: '32px', color: 'var(--colors-scale10)' }}
+ style={{
+ fontSize: '14px',
+ marginBottom: '32px',
+ color: 'hsl(var(--foreground-lighter))',
+ }}
minTickGap={16}
tickMargin={8}
- axisLine={{ stroke: 'var(--colors-scale7)' }}
- tickLine={{ stroke: 'var(--colors-scale7)' }}
+ axisLine={{ stroke: 'hsl(var(--border-default))' }}
+ tickLine={{ stroke: 'hsl(var(--border-default))' }}
tick={<CustomizedAxisTick />}
/>
{dimensions.map((dimension: string, index: number) => {
diff --git a/apps/www/components/ExampleCard.tsx b/apps/www/components/ExampleCard.tsx
index 8862adc809a..0c6fd444066 100644
--- a/apps/www/components/ExampleCard.tsx
+++ b/apps/www/components/ExampleCard.tsx
@@ -7,7 +7,7 @@ function ExampleCard(props: any) {
<>
<div
className="bg-surface-100
- border-border
+ border-default
flex
h-40
flex-col
@@ -20,7 +20,7 @@ function ExampleCard(props: any) {
<h4 className="h6">{props.title}</h4>
<p className="p text-sm">{props.description}</p>
<div className="flex items-center">
- <div className="relative border border-border inline !w-6 !h-6 rounded-full overflow-hidden">
+ <div className="relative border border-default inline !w-6 !h-6 rounded-full overflow-hidden">
<Image
src={props.author_img}
alt={props.author + ' GitHub profile picture'}
@@ -37,7 +37,7 @@ function ExampleCard(props: any) {
<div
className="
bg-surface-200
- border-border flex
+ border-default flex
flex-col justify-between rounded rounded-t-none
border
border-b border-r border-l
@@ -46,7 +46,7 @@ function ExampleCard(props: any) {
<Link
href={props.repo_url}
as={props.repo_url}
- className="text-light hover:text-foreground flex flex-row items-center text-sm"
+ className="text-foreground-light hover:text-foreground flex flex-row items-center text-sm"
target="_blank"
>
<span>{props.repo_name}</span>
diff --git a/apps/www/components/Footer/index.tsx b/apps/www/components/Footer/index.tsx
index dd39cd8f150..afd443a4fbd 100644
--- a/apps/www/components/Footer/index.tsx
+++ b/apps/www/components/Footer/index.tsx
@@ -37,11 +37,11 @@ const Footer = (props: Props) => {
<ul className="flex flex-col md:flex-row gap-2 md:gap-8 justify-center md:items-center">
<li className="flex items-center gap-2 whitespace-nowrap flex-nowrap">
<CheckIcon className="w-4 h-4" /> SOC2 Type 2{' '}
- <span className="text-lighter hidden sm:inline">Certified</span>
+ <span className="text-foreground-lighter hidden sm:inline">Certified</span>
</li>
<li className="flex items-center gap-2 whitespace-nowrap flex-nowrap">
<CheckIcon className="w-4 h-4" /> HIPAA{' '}
- <span className="text-lighter hidden sm:inline">Compliant</span>
+ <span className="text-foreground-lighter hidden sm:inline">Compliant</span>
</li>
</ul>
</SectionContainer>
@@ -67,7 +67,7 @@ const Footer = (props: Props) => {
<div className="flex space-x-5">
<a
href="https://twitter.com/supabase"
- className="text-lighter hover:text-foreground transition"
+ className="text-foreground-lighter hover:text-foreground transition"
>
<span className="sr-only">Twitter</span>
<IconTwitterX size={22} />
@@ -75,7 +75,7 @@ const Footer = (props: Props) => {
<a
href="https://github.com/supabase"
- className="text-lighter hover:text-foreground transition"
+ className="text-foreground-lighter hover:text-foreground transition"
>
<span className="sr-only">GitHub</span>
<IconGitHubSolid size={22} />
@@ -83,7 +83,7 @@ const Footer = (props: Props) => {
<a
href="https://discord.supabase.com/"
- className="text-lighter hover:text-foreground transition"
+ className="text-foreground-lighter hover:text-foreground transition"
>
<span className="sr-only">Discord</span>
<IconDiscord size={22} />
@@ -91,7 +91,7 @@ const Footer = (props: Props) => {
<a
href="https://youtube.com/c/supabase"
- className="text-lighter hover:text-foreground transition"
+ className="text-foreground-lighter hover:text-foreground transition"
>
<span className="sr-only">Youtube</span>
<IconYoutubeSolid size={22} />
@@ -110,8 +110,8 @@ const Footer = (props: Props) => {
<div
className={`text-sm transition-colors ${
link.url || Component
- ? 'text-lighter hover:text-foreground'
- : 'text-muted hover:text-lighter'
+ ? 'text-foreground-lighter hover:text-foreground'
+ : 'text-muted hover:text-foreground-lighter'
} `}
>
{link.text}
@@ -148,7 +148,7 @@ const Footer = (props: Props) => {
</div>
</div>
</div>
- <div className="border-border mt-32 flex justify-between border-t pt-8">
+ <div className="border-default mt-32 flex justify-between border-t pt-8">
<small className="small">&copy; Supabase Inc</small>
<ThemeToggle forceDark={isLaunchWeekPage} />
</div>
diff --git a/apps/www/components/Hero/Hero.tsx b/apps/www/components/Hero/Hero.tsx
index cc8101cb2eb..363b6aed6f5 100644
--- a/apps/www/components/Hero/Hero.tsx
+++ b/apps/www/components/Hero/Hero.tsx
@@ -34,7 +34,7 @@ const Hero = () => {
<AnnouncementBadge />
</div> */}
<h1 className="text-foreground text-4xl sm:text-5xl sm:leading-none lg:text-7xl">
- <span className="block text-[#F4FFFA00] bg-clip-text bg-gradient-to-b from-scale-1200 to-scale-1200 dark:to-scale-1100">
+ <span className="block text-[#F4FFFA00] bg-clip-text bg-gradient-to-b from-foreground to-foreground-light">
Build in a weekend
</span>
<span className="text-transparent bg-clip-text bg-gradient-to-br from-[#3ECF8E] via-[#3ECF8E] to-[#3ecfb2] block md:ml-0">
@@ -54,7 +54,6 @@ const Hero = () => {
href="https://supabase.com/dashboard"
as="https://supabase.com/dashboard"
onClick={() => sendTelemetryEvent(gaEvents['www_hp_hero_startProject'])}
- tabIndex={-1}
>
Start your project
</Link>
@@ -64,7 +63,6 @@ const Hero = () => {
href="/docs"
as="/docs"
onClick={() => sendTelemetryEvent(gaEvents['www_hp_hero_documentation'])}
- tabIndex={-1}
>
Documentation
</Link>
diff --git a/apps/www/components/Hero/HeroFrameworks.tsx b/apps/www/components/Hero/HeroFrameworks.tsx
index d35172e11f1..1e59ced0741 100644
--- a/apps/www/components/Hero/HeroFrameworks.tsx
+++ b/apps/www/components/Hero/HeroFrameworks.tsx
@@ -64,7 +64,7 @@ const HeroFrameworks = ({ className }: { className?: string }) => {
return (
<div className={['flex text-center flex-col items-center', className].join(' ')}>
- <small className="small !text-light">Works seamlessly with 20+ frameworks</small>
+ <small className="small !text-foreground-light">Works seamlessly with 20+ frameworks</small>
<div className="w-full sm:max-w-lg mt-4 md:mt-3 lg:ml-0 flex flex-wrap items-center justify-center gap-1 xs:gap-2 sm:flex-nowrap">
{frameworks.map((framework) => (
<Link
diff --git a/apps/www/components/ImageFadeStack.tsx b/apps/www/components/ImageFadeStack.tsx
index b8f7236d408..0fd259bb228 100644
--- a/apps/www/components/ImageFadeStack.tsx
+++ b/apps/www/components/ImageFadeStack.tsx
@@ -60,15 +60,15 @@ const ImageFadeStack = ({
<button className="text-white" onClick={() => handleNavClick(index)}>
<div
className={cn(
- 'w-2 h-2 rounded-full bg-scale-900 hover:bg-gray-300 transition-colors',
- currentImageIndex === index && 'bg-scale-700'
+ 'w-2 h-2 rounded-full bg-foreground-muted hover:bg-surface-100 transition-colors',
+ currentImageIndex === index && 'bg-border-strong'
)}
/>
</button>
))}
<button
onClick={() => setIsPlaying(!isPlaying)}
- className="text-white bg-scale-1100 hover:bg-gray-1100 dark:hover:bg-gray-500 rounded-full p-0.5 transition-colors"
+ className="text-white bg-foreground-light hover:bg-overlay rounded-full p-0.5 transition-colors"
>
{isPlaying ? <IconPauseCircle w={12} /> : <IconPlayCircle w={12} />}
</button>
diff --git a/apps/www/components/ImageGrid.tsx b/apps/www/components/ImageGrid.tsx
index 49e6c28217f..89cb20be8fa 100644
--- a/apps/www/components/ImageGrid.tsx
+++ b/apps/www/components/ImageGrid.tsx
@@ -100,10 +100,8 @@ const ImageGrid = ({
<MaybeAnimatedDiv
key={`${x.name}-${i}`}
className={`
- dark:bg-scale-400 col-span-1 flex items-center
- justify-center
- bg-gray-50
- ${x.link && 'dark:hover:bg-scale-600 hover:bg-gray-100'}
+ bg-surface-200 col-span-1 flex items-center justify-center
+ ${x.link && 'hover:bg-overlay-hover'}
p-8 ${className}`}
>
<div className={`relative h-8 w-full overflow-auto ${imgPadding[padding]}`}>
diff --git a/apps/www/components/LaunchWeek/5/ScheduleInfo.tsx b/apps/www/components/LaunchWeek/5/ScheduleInfo.tsx
index 5109790faf8..37d1ba60f05 100644
--- a/apps/www/components/LaunchWeek/5/ScheduleInfo.tsx
+++ b/apps/www/components/LaunchWeek/5/ScheduleInfo.tsx
@@ -9,14 +9,14 @@ export function ScheduleInfo() {
<p className="md:max-w-lg">
Each day of the week we will announce a new item, every day, from Monday to Friday.
</p>
- <p className="text-light text-base md:max-w-lg">
+ <p className="text-foreground-light text-base md:max-w-lg">
The first launch will be on Monday 08:00 PT | 11:00 ET.
</p>
</div>
- <div className="dark:bg-scale-300 flex flex-col gap-4 overflow-hidden rounded-md border bg-white shadow-sm md:max-w-lg">
+ <div className="flex flex-col gap-4 overflow-hidden rounded-md border bg-white shadow-sm md:max-w-lg">
<div className="flex flex-col gap-3 p-10 pb-0">
<h3 className="text-foreground text-lg">You can still win a lucky gold ticket</h3>
- <p className="text-light text-sm">
+ <p className="text-foreground-light text-sm">
A few of the lucky attendees for Launch Week will get a limited edition Supabase goodie
bag.
</p>
diff --git a/apps/www/components/LaunchWeek/6/HackathonSection.tsx b/apps/www/components/LaunchWeek/6/HackathonSection.tsx
index 4751cc97451..78c4b80e0ae 100644
--- a/apps/www/components/LaunchWeek/6/HackathonSection.tsx
+++ b/apps/www/components/LaunchWeek/6/HackathonSection.tsx
@@ -13,7 +13,9 @@ export default function LaunchHero() {
<div>
<Badge color="red">Closed</Badge>
</div>
- <h4 className="text-light text-xl">Submissions close Sunday 21st Aug 23:59 (PT).</h4>
+ <h4 className="text-foreground-light text-xl">
+ Submissions close Sunday 21st Aug 23:59 (PT).
+ </h4>
</div>
<div className="flex gap-3">
@@ -31,21 +33,21 @@ export default function LaunchHero() {
<div className="grid grid-cols-2 gap-16">
<div className="flex flex-col gap-3">
<h3 className="text-foreground text-lg">Prizes</h3>
- <p className="text-light text-sm">
+ <p className="text-foreground-light text-sm">
There are 5 categories to win. There will be a prize for the winner and a runner-up
prize in each category.
</p>
</div>
<div className="flex flex-col gap-3">
<h3 className="text-foreground text-lg">Submission</h3>
- <p className="text-light text-sm">
+ <p className="text-foreground-light text-sm">
Submit your project through{' '}
<a className="text-brand" href="https://madewithsupabase.com">
madewithsupabase.com
</a>
.
</p>
- <p className="text-light text-sm">
+ <p className="text-foreground-light text-sm">
All submissions must be open source and publically available.
</p>
</div>
diff --git a/apps/www/components/LaunchWeek/6/LaunchHero.tsx b/apps/www/components/LaunchWeek/6/LaunchHero.tsx
index 4da7b51e2b8..a669beedaeb 100644
--- a/apps/www/components/LaunchWeek/6/LaunchHero.tsx
+++ b/apps/www/components/LaunchWeek/6/LaunchHero.tsx
@@ -9,7 +9,7 @@ export default function LaunchHero() {
<h1 className="text-foreground text-4xl font-semibold tracking-tight md:text-5xl lg:text-7xl">
{Controller.hero_header}
</h1>
- <h2 className="text-light text-sm lg:text-xl">
+ <h2 className="text-foreground-light text-sm lg:text-xl">
Stay tuned all week for daily announcements
</h2>
</div>
diff --git a/apps/www/components/LaunchWeek/6/PreLaunchTeaser.tsx b/apps/www/components/LaunchWeek/6/PreLaunchTeaser.tsx
index fdc43f7bec1..96ffd7eec31 100644
--- a/apps/www/components/LaunchWeek/6/PreLaunchTeaser.tsx
+++ b/apps/www/components/LaunchWeek/6/PreLaunchTeaser.tsx
@@ -70,7 +70,7 @@ export function PreLaunchTeaser() {
</div>
<div className="flex flex-col">
<h4 className="text-foreground text-base">Founders Fireside Chat</h4>
- <p className="text-light text-sm">
+ <p className="text-foreground-light text-sm">
Our two co-founders, Copple and Ant, discuss open source development and the future
of Supabase.
</p>
@@ -78,12 +78,12 @@ export function PreLaunchTeaser() {
</div>
<div className="flex flex-col gap-3">
- <div className="text-light w-8">
+ <div className="text-foreground-light w-8">
<NewspaperIcon strokeWidth={1} />
</div>
<div>
<h3 className="text-foreground text-base">Supabase Series B</h3>
- <p className="text-light text-sm">
+ <p className="text-foreground-light text-sm">
Supabase raised $80M in May, bringing our total funding to $116M.
</p>
</div>
diff --git a/apps/www/components/LaunchWeek/7/BlogLinks.tsx b/apps/www/components/LaunchWeek/7/BlogLinks.tsx
index ee6e5b2d1b8..099aa36d702 100644
--- a/apps/www/components/LaunchWeek/7/BlogLinks.tsx
+++ b/apps/www/components/LaunchWeek/7/BlogLinks.tsx
@@ -10,7 +10,7 @@ const BlogLinks = () => {
if (!activeDays.length) return null
return (
- <div className="flex flex-col gap-3 lg:gap-4 border-t border-scale-400 py-4 lg:py-8 mt-4 lg:mt-8">
+ <div className="flex flex-col gap-3 lg:gap-4 border-t border-muted py-4 lg:py-8 mt-4 lg:mt-8">
<h3 className="text-black dark:text-white text-xl mb-4">More Launch Week 7</h3>
{activeDays.map((day) =>
day.steps?.map((step, i) => {
diff --git a/apps/www/components/LaunchWeek/7/LaunchSection/ArticleButton.tsx b/apps/www/components/LaunchWeek/7/LaunchSection/ArticleButton.tsx
index a3db8d3879e..bc6b567d814 100644
--- a/apps/www/components/LaunchWeek/7/LaunchSection/ArticleButton.tsx
+++ b/apps/www/components/LaunchWeek/7/LaunchSection/ArticleButton.tsx
@@ -8,7 +8,7 @@ const ArticleButton = (props: Article) => {
className="
bg-background text-foreground
hover:bg-background-overlay
- dark:hover:bg-border-default border-border
+ dark:hover:bg-border-default border-default
flex items-start gap-3 rounded-md
border p-3
px-6 drop-shadow-sm transition"
@@ -18,7 +18,7 @@ const ArticleButton = (props: Article) => {
</div>
<div className="flex flex-col items-start gap-0">
<span className="text-base">{props.title}</span>
- <span className="text-light text-sm">{props.description}</span>
+ <span className="text-foreground-light text-sm">{props.description}</span>
</div>
</button>
</div>
diff --git a/apps/www/components/LaunchWeek/7/LaunchSection/ArticleButtonListItem.tsx b/apps/www/components/LaunchWeek/7/LaunchSection/ArticleButtonListItem.tsx
index be003602459..546fe4f16d0 100644
--- a/apps/www/components/LaunchWeek/7/LaunchSection/ArticleButtonListItem.tsx
+++ b/apps/www/components/LaunchWeek/7/LaunchSection/ArticleButtonListItem.tsx
@@ -1,4 +1,3 @@
-import { NewspaperIcon } from '@heroicons/react/outline'
import Link from 'next/link'
import { Article } from '../../types'
@@ -9,7 +8,7 @@ const ArticleButtonListItem = (props: Article) => {
<span className="text-foreground group-hover:text-brand text-left text-base transition">
{props.title}
</span>
- <p className="text-light text-left text-sm transition">{props.description}</p>
+ <p className="text-foreground-light text-left text-sm transition">{props.description}</p>
</div>
</Link>
)
diff --git a/apps/www/components/LaunchWeek/7/LaunchSection/LaunchWeekLogoHeader.tsx b/apps/www/components/LaunchWeek/7/LaunchSection/LaunchWeekLogoHeader.tsx
index 2e2805d90ec..7c16bd8b40e 100644
--- a/apps/www/components/LaunchWeek/7/LaunchSection/LaunchWeekLogoHeader.tsx
+++ b/apps/www/components/LaunchWeek/7/LaunchSection/LaunchWeekLogoHeader.tsx
@@ -25,7 +25,7 @@ export function LaunchWeekLogoHeader() {
/>
</span>
</h1>
- <p className="text-white radial-gradient-text-scale-600 text-md sm:text-lg text-center">
+ <p className="text-white radial-gradient-text-600 text-md sm:text-lg text-center">
April 10th – 14th at 7AM PT | 10AM ET
</p>
</motion.div>
diff --git a/apps/www/components/LaunchWeek/7/LaunchSection/ProductButton.tsx b/apps/www/components/LaunchWeek/7/LaunchSection/ProductButton.tsx
index 9b9c200fbd7..eff79aedc21 100644
--- a/apps/www/components/LaunchWeek/7/LaunchSection/ProductButton.tsx
+++ b/apps/www/components/LaunchWeek/7/LaunchSection/ProductButton.tsx
@@ -7,7 +7,7 @@ const ProductButton = (props: Article) => {
<button
className="
text-brand-600
- hover:bg-scale-300 border-scale-500 flex items-start gap-3 rounded-md border bg-transparent p-3
+ hover:bg-surface-100 flex items-start gap-3 rounded-md border bg-transparent p-3
px-6 transition
dark:drop-shadow-sm"
>
diff --git a/apps/www/components/LaunchWeek/7/LaunchSection/ProductButtonListItem.tsx b/apps/www/components/LaunchWeek/7/LaunchSection/ProductButtonListItem.tsx
index f33913806e5..f9f029f7401 100644
--- a/apps/www/components/LaunchWeek/7/LaunchSection/ProductButtonListItem.tsx
+++ b/apps/www/components/LaunchWeek/7/LaunchSection/ProductButtonListItem.tsx
@@ -19,7 +19,7 @@ export const ProductButtonListItem = (props: Article) => {
</div>
<div className="flex flex-col items-start gap-0">
<span className="group-hover:text-brand text-sm">{props.title}</span>
- <p className="text-light text-left text-sm">{props.description}</p>
+ <p className="text-foreground-light text-left text-sm">{props.description}</p>
</div>
</button>
</div>
diff --git a/apps/www/components/LaunchWeek/7/LaunchSection/TicketBrick.tsx b/apps/www/components/LaunchWeek/7/LaunchSection/TicketBrick.tsx
index 3fb9102fee5..c78c22b03ab 100644
--- a/apps/www/components/LaunchWeek/7/LaunchSection/TicketBrick.tsx
+++ b/apps/www/components/LaunchWeek/7/LaunchSection/TicketBrick.tsx
@@ -49,10 +49,8 @@ export function TicketBrick({ user }: Props) {
className="w-20 h-20 rounded-full mx-auto"
/>
<div className="text-center">
- <h3 className="gradient-text-scale-100 text-xl">
- {user.name ? user.name : user.username}
- </h3>
- {user.name && <p className="gradient-text-scale-100 text-sm">@{user.username}</p>}
+ <h3 className="gradient-text-100 text-xl">{user.name ? user.name : user.username}</h3>
+ {user.name && <p className="gradient-text-100 text-sm">@{user.username}</p>}
</div>
</div>
<TicketNumber number={user.ticketNumber} size="small" />
diff --git a/apps/www/components/LaunchWeek/7/LaunchSection/TicketBrickWall.tsx b/apps/www/components/LaunchWeek/7/LaunchSection/TicketBrickWall.tsx
index 57040addb71..e5d2e6836f2 100644
--- a/apps/www/components/LaunchWeek/7/LaunchSection/TicketBrickWall.tsx
+++ b/apps/www/components/LaunchWeek/7/LaunchSection/TicketBrickWall.tsx
@@ -17,7 +17,7 @@ export default function TicketBrickWall({ users }: Props) {
<div className="relative pb-20 pt-28 md:pt-40">
<div className="mx-auto bg-[#1C1C1C]">
<div className="max-w-[38rem] mb-8 mx-auto">
- <h2 className="text-center radial-gradient-text-scale-500">
+ <h2 className="text-center radial-gradient-text-500">
Explore the unique tickets generated by our community
</h2>
</div>
diff --git a/apps/www/components/LaunchWeek/7/LaunchSection/index.tsx b/apps/www/components/LaunchWeek/7/LaunchSection/index.tsx
index c26c4f716c6..10a4f348c7b 100644
--- a/apps/www/components/LaunchWeek/7/LaunchSection/index.tsx
+++ b/apps/www/components/LaunchWeek/7/LaunchSection/index.tsx
@@ -30,7 +30,7 @@ export const LaunchSection = (props: WeekDayProps) => {
></div>
{/* END timeline dot */}
<div className="flex items-center gap-3">
- <span className="text-light text-sm">{props.date}</span>
+ <span className="text-foreground-light text-sm">{props.date}</span>
{props.shipped ? (
<Badge>
<div className="flex items-center gap-2">
@@ -48,7 +48,7 @@ export const LaunchSection = (props: WeekDayProps) => {
{props.shipped ? props.title : props.dd + ' 08:00 PT | 11:00 ET'}
</h4>
- {props.shipped && <p className="text-light text-base">{props.description}</p>}
+ {props.shipped && <p className="text-foreground-light text-base">{props.description}</p>}
</div>
)
@@ -163,12 +163,7 @@ export const LaunchSection = (props: WeekDayProps) => {
<div className="flex flex-col gap-12">
{props.articles &&
props.articles.map((article: Article, index) => (
- <div
- key={article.url + index}
- className="
- dark:bg-scale-300 rounded border bg-white
- "
- >
+ <div key={article.url + index} className="bg-surface-100 rounded border">
<div className="p-6 px-10">
<ArticleButtonListItem {...article} />
</div>
@@ -176,10 +171,10 @@ export const LaunchSection = (props: WeekDayProps) => {
{article.products && (
<>
{/* border */}
- <div className="bg-scale-300 dark:bg-scale-400 h-px w-full"></div>
+ <div className="bg-surface-200 h-px w-full"></div>
<div className="flex flex-col gap-6 p-6 px-10 pb-10">
- <h3 className="text-light text-sm">New releases</h3>
+ <h3 className="text-foreground-light text-sm">New releases</h3>
{article.products &&
article.products.map((product: Product, index) => (
<ProductButtonListItem key={product.url + index} {...product} />
diff --git a/apps/www/components/LaunchWeek/7/Ticket/TicketActions.tsx b/apps/www/components/LaunchWeek/7/Ticket/TicketActions.tsx
index 07364a9f639..53119c90bce 100644
--- a/apps/www/components/LaunchWeek/7/Ticket/TicketActions.tsx
+++ b/apps/www/components/LaunchWeek/7/Ticket/TicketActions.tsx
@@ -57,7 +57,7 @@ export default function TicketActions({
<div className="grid gap-1 grid-cols-1 sm:grid-cols-3 lg:grid-cols-1">
{!sharePage ? (
<>
- <div className="rounded-full bg-[#E6E8EB] text-scale-500 py-1 px-3 border border-[#dfe1e3] text-xs mb-1">
+ <div className="rounded-full bg-[#E6E8EB] text-background-surface-300 py-1 px-3 border border-[#dfe1e3] text-xs mb-1">
<div className="flex items-center justify-center gap-2">
<div className="text-muted">
<IconCheckCircle size={10} strokeWidth={1} />
@@ -67,15 +67,17 @@ export default function TicketActions({
</div>
<div
className={`rounded-full ${
- userData.sharedOnTwitter ? 'bg-[#E6E8EB] text-scale-500' : 'text-white'
- } text-scale-500 py-1 px-3 border border-[#dfe1e3] text-xs mb-1 transition-all ease-out hover:bg-[#dfe1e3]`}
+ userData.sharedOnTwitter ? 'bg-[#E6E8EB] text-background-surface-300' : 'text-white'
+ } text-background-surface-300 py-1 px-3 border border-[#dfe1e3] text-xs mb-1 transition-all ease-out hover:bg-[#dfe1e3]`}
>
<a
href={tweetUrl}
rel="noopener noreferrer prefetch"
target="_blank"
className={`flex items-center justify-center gap-2 ${
- userData.sharedOnTwitter ? 'text-scale-500' : 'text-white hover:text-scale-500'
+ userData.sharedOnTwitter
+ ? 'text-background-surface-300'
+ : 'text-white hover:text-background-surface-300'
}`}
>
{userData.sharedOnTwitter && (
@@ -88,15 +90,17 @@ export default function TicketActions({
</div>
<div
className={`rounded-full ${
- userData.sharedOnLinkedIn ? 'bg-[#E6E8EB] text-scale-500' : 'text-white'
- } text-scale-500 py-1 px-3 border border-[#dfe1e3] text-xs mb-1 transition-all ease-out hover:bg-[#dfe1e3]`}
+ userData.sharedOnLinkedIn ? 'bg-[#E6E8EB] text-background-surface-300' : 'text-white'
+ } text-background-surface-300 py-1 px-3 border border-[#dfe1e3] text-xs mb-1 transition-all ease-out hover:bg-[#dfe1e3]`}
>
<a
href={linkedInUrl}
rel="noopener noreferrer prefetch"
target="_blank"
className={`flex items-center justify-center gap-2 ${
- userData.sharedOnLinkedIn ? 'text-scale-500' : 'text-white hover:text-scale-500'
+ userData.sharedOnLinkedIn
+ ? 'text-background-surface-300'
+ : 'text-white hover:text-background-surface-300'
}`}
>
{userData.sharedOnLinkedIn && (
diff --git a/apps/www/components/LaunchWeek/7/Ticket/TicketProfile.tsx b/apps/www/components/LaunchWeek/7/Ticket/TicketProfile.tsx
index 965171407f5..a8d5c32abf8 100644
--- a/apps/www/components/LaunchWeek/7/Ticket/TicketProfile.tsx
+++ b/apps/www/components/LaunchWeek/7/Ticket/TicketProfile.tsx
@@ -71,7 +71,7 @@ export default function TicketProfile({
})} text-3xl sm:text-4xl bg-gradient-to-r from-[#F8F9FA] via-[#F8F9FA] to-[#F8F9FA60] bg-clip-text text-transparent text-center`}
>
{name || username || 'Your Name'}
- <p>{name && <p className="gradient-text-scale-100 text-sm">@{username}</p>}</p>
+ <p>{name && <p className="gradient-text-100 text-sm">@{username}</p>}</p>
</div>
</p>
) : (
diff --git a/apps/www/components/LaunchWeek/7/Ticket/form.tsx b/apps/www/components/LaunchWeek/7/Ticket/form.tsx
index 3e0000bf795..c501884c2bb 100644
--- a/apps/www/components/LaunchWeek/7/Ticket/form.tsx
+++ b/apps/www/components/LaunchWeek/7/Ticket/form.tsx
@@ -129,7 +129,7 @@ export default function Form({ sharePage, align = 'Center' }: Props) {
align === 'Left' ? 'text-center xl:text-left' : 'text-center'
)}
>
- <p className="text-lighter text-base max-w-[420px]">
+ <p className="text-foreground-lighter text-base max-w-[420px]">
Register to get your ticket and stay tuned all week for daily announcements
</p>
</div>
@@ -160,8 +160,8 @@ export default function Form({ sharePage, align = 'Center' }: Props) {
<input
className={`
transition-all
- border border-scale-300 bg-scaleA-200 h-10
- focus:border-scale-500 focus:ring-scaleA-300
+ border border-background-surface-100 bg-background h-10
+ focus:border-default focus:ring-background-surface-100
text-foreground text-base rounded-full w-full px-5
`}
type="email"
@@ -179,9 +179,9 @@ export default function Form({ sharePage, align = 'Center' }: Props) {
type="submit"
className={[
'transition-all',
- 'absolute bg-scale-300 text-foreground border border-scale-600 text-sm hover:bg-scale-400',
+ 'absolute bg-surface-100 text-foreground border border-control text-sm hover:bg-overlay-hover',
'rounded-full px-4',
- 'focus:invalid:border-scale-500 focus:invalid:ring-scaleA-300',
+ 'focus:invalid:border-default focus:invalid:ring-background-surface-100',
'absolute right-1 my-auto h-8 top-0 bottom-0',
].join(' ')}
disabled={formState === 'loading'}
diff --git a/apps/www/components/LaunchWeek/7/Ticket/ticket-copy.tsx b/apps/www/components/LaunchWeek/7/Ticket/ticket-copy.tsx
index 2286aae4293..13d44501443 100644
--- a/apps/www/components/LaunchWeek/7/Ticket/ticket-copy.tsx
+++ b/apps/www/components/LaunchWeek/7/Ticket/ticket-copy.tsx
@@ -57,7 +57,7 @@ export default function TicketCopy({ username, isGolden }: Props) {
className={cn(
styleUtils.appear,
styleUtils['appear-third'],
- 'bg-scaleA-200 h-8 rounded-full border border-[#E3E3E370] w-full overflow-hidden'
+ 'bg-background h-8 rounded-full border border-[#E3E3E370] w-full overflow-hidden'
)}
id="wayfinding--ticket-copy"
>
diff --git a/apps/www/components/LaunchWeek/8/LW8CalloutsSection.tsx b/apps/www/components/LaunchWeek/8/LW8CalloutsSection.tsx
index bfb2f663965..21d017c48fc 100644
--- a/apps/www/components/LaunchWeek/8/LW8CalloutsSection.tsx
+++ b/apps/www/components/LaunchWeek/8/LW8CalloutsSection.tsx
@@ -8,7 +8,7 @@ const LW8CalloutsSection = () => {
return (
<SectionContainer className="!py-0 w-full !px-0 !max-w-none">
<div className="grid grid-cols-1 lg:grid-cols-2 gap-4 scroll-mt-[105px]" id="hackathon">
- <SmallCard className="hover:from-scale-900 hover:to-scale-900">
+ <SmallCard className="hover:from-foreground-muted hover:to-foreground-muted">
<Link
href="https://twitter.com/supabase/status/1688544202643111936"
target="_blank"
@@ -30,7 +30,7 @@ const LW8CalloutsSection = () => {
</div>
</Link>
</SmallCard>
- <SmallCard className="hover:from-scale-900 hover:to-scale-900">
+ <SmallCard className="hover:from-foreground-muted hover:to-foreground-muted">
<Link
href="/blog/supabase-lw8-hackathon"
className="flex flex-row justify-between items-center w-full h-full gap-2"
diff --git a/apps/www/components/LaunchWeek/8/LW8Meetups.tsx b/apps/www/components/LaunchWeek/8/LW8Meetups.tsx
index 23c43d33f63..f61f07110c7 100644
--- a/apps/www/components/LaunchWeek/8/LW8Meetups.tsx
+++ b/apps/www/components/LaunchWeek/8/LW8Meetups.tsx
@@ -65,7 +65,7 @@ const LW8Meetups = ({ meetups }: { meetups?: Meetup[] }) => {
className={[
'w-full group py-0 flex items-center gap-2 md:gap-4 text-lg sm:text-2xl xl:text-4xl border-b border-[#111718]',
'hover:text-foreground',
- isLive ? 'text-light' : 'text-[#56646B]',
+ isLive ? 'text-foreground-light' : 'text-[#56646B]',
!link && 'pointer-events-none',
].join(' ')}
>
diff --git a/apps/www/components/LaunchWeek/8/LWArchive.tsx b/apps/www/components/LaunchWeek/8/LWArchive.tsx
index ba4aa6eb336..7d710dead6e 100644
--- a/apps/www/components/LaunchWeek/8/LWArchive.tsx
+++ b/apps/www/components/LaunchWeek/8/LWArchive.tsx
@@ -17,7 +17,7 @@ const LWArchive = () => {
href="/launch-week/6"
className="relative h-[160px] group w-full rounded-md md:rounded-lg transition-transform bg-[#030A0C] flex items-center justify-center border border-[#111618] hover:border-brand-800 overflow-hidden"
>
- <span className="relative z-10 stroke-text inline-block text-transparent bg-clip-text bg-gradient-to-b from-scale-1200 to-scale-1000 text-7xl drop-shadow-lg">
+ <span className="relative z-10 stroke-text inline-block text-transparent bg-clip-text bg-gradient-to-b from-foreground to-foreground-lighter text-7xl drop-shadow-lg">
6
</span>
<div className="absolute inset-0 grayscale group-hover:grayscale-0">
@@ -33,7 +33,7 @@ const LWArchive = () => {
href="/launch-week/7"
className="relative h-[160px] group w-full rounded-md md:rounded-lg transition-transform bg-[#030A0C] flex items-center justify-center border border-[#111718] hover:border-brand-1200 overflow-hidden"
>
- <span className="relative z-10 stroke-text inline-block text-transparent bg-clip-text bg-gradient-to-b from-scale-1200 to-scale-1000 text-7xl drop-shadow-lg">
+ <span className="relative z-10 stroke-text inline-block text-transparent bg-clip-text bg-gradient-to-b from-foreground to-foreground-lighter text-7xl drop-shadow-lg">
7
</span>
<div className="absolute inset-0 grayscale group-hover:grayscale-0">
diff --git a/apps/www/components/LaunchWeek/8/LabelBadge.tsx b/apps/www/components/LaunchWeek/8/LabelBadge.tsx
index d50b1013227..a4e954ee581 100644
--- a/apps/www/components/LaunchWeek/8/LabelBadge.tsx
+++ b/apps/www/components/LaunchWeek/8/LabelBadge.tsx
@@ -8,7 +8,7 @@ interface Props {
export default function LabelBadge({ text, className }: Props) {
return (
<span className={['bg-[#222428] rounded px-1 py-[1px] text-xs', className].join(' ')}>
- <span className="text-lighter">{text}</span>
+ <span className="text-foreground-lighter">{text}</span>
</span>
)
}
diff --git a/apps/www/components/LaunchWeek/8/LaunchWeekLogoHeader.tsx b/apps/www/components/LaunchWeek/8/LaunchWeekLogoHeader.tsx
index df14b669215..24dac3579cd 100644
--- a/apps/www/components/LaunchWeek/8/LaunchWeekLogoHeader.tsx
+++ b/apps/www/components/LaunchWeek/8/LaunchWeekLogoHeader.tsx
@@ -3,7 +3,7 @@ export function LaunchWeekLogoHeader() {
<div className="flex flex-col gap-1 md:gap-2 items-center justify-end">
<div className="opacity-0 !animate-[fadeIn_0.5s_cubic-bezier(0.25,0.25,0,1)_0.5s_both] px-2 flex flex-col items-center text-center gap-3">
<h1 className="sr-only font-normal uppercase text-[28px] sm:text-[32px]">Launch week 8</h1>
- <p className="text-white radial-gradient-text-scale-600 text-lg sm:text-2xl">
+ <p className="text-white radial-gradient-text-600 text-lg sm:text-2xl">
<span className="block">August 7th–11th, 2023</span>
</p>
<div className="text-[#9296AA]">
diff --git a/apps/www/components/LaunchWeek/8/LaunchWeekPrizeSection.tsx b/apps/www/components/LaunchWeek/8/LaunchWeekPrizeSection.tsx
index 7ad927cddea..a2982bbc9e4 100644
--- a/apps/www/components/LaunchWeek/8/LaunchWeekPrizeSection.tsx
+++ b/apps/www/components/LaunchWeek/8/LaunchWeekPrizeSection.tsx
@@ -25,7 +25,7 @@ export default function LaunchWeekPrizeSection({
/>
</div>
<div className="!max-w-[100vw]">
- <div className="w-full container mx-auto h-px bg-gradient-to-r from-transparent via-scale-600 to-transparent" />
+ <div className="w-full container mx-auto h-px bg-gradient-to-r from-transparent via-border-control to-transparent" />
<div className="text-center relative z-10 text-white">
<div className="max-w-[38rem] mx-auto flex flex-col items-center gap-4 px-4">
<div className="relative z-10 w-full h-[100px] md:h-[130px] rounded-sm flex mt-16 items-center justify-center">
diff --git a/apps/www/components/LaunchWeek/8/Releases/LWAnnouncement.tsx b/apps/www/components/LaunchWeek/8/Releases/LWAnnouncement.tsx
index b31e9244e4a..3c209eaaf21 100644
--- a/apps/www/components/LaunchWeek/8/Releases/LWAnnouncement.tsx
+++ b/apps/www/components/LaunchWeek/8/Releases/LWAnnouncement.tsx
@@ -53,7 +53,7 @@ const LWAnnouncement = ({
return (
<div className="w-full max-w-xl opacity-0 !animate-[fadeIn_0.5s_cubic-bezier(0.25,0.25,0,1)_0.5s_both]">
<SmallCard
- className="border hover:border-scale-800 transition-colors"
+ className="border hover:border-stronger transition-colors"
innerClassName="bg-opacity-70 items-stretch"
>
{/* {isLaunchWeekPage ? (
diff --git a/apps/www/components/LaunchWeek/8/Releases/components/index.tsx b/apps/www/components/LaunchWeek/8/Releases/components/index.tsx
index 5a691b2017e..b91e7d9cbbd 100644
--- a/apps/www/components/LaunchWeek/8/Releases/components/index.tsx
+++ b/apps/www/components/LaunchWeek/8/Releases/components/index.tsx
@@ -271,8 +271,8 @@ export const VideoPreviewTrigger = ({
title?: string
thumbnail: string
}) => (
- <div className="flex items-center h-full gap-3 text-xs group/vid text-light hover:text-foreground transition-colors">
- <div className="relative h-10 !aspect-video flex items-center justify-center rounded overflow-hidden border border-scale-1000 opacity-80 group-hover/vid:opacity-100 transition-colors">
+ <div className="flex items-center h-full gap-3 text-xs group/vid text-foreground-light hover:text-foreground transition-colors">
+ <div className="relative h-10 !aspect-video flex items-center justify-center rounded overflow-hidden border border-foreground-lighter opacity-80 group-hover/vid:opacity-100 transition-colors">
<div className="absolute z-10 w-2.5 h-2.5 text-white opacity-100">
<svg viewBox="0 0 81 91" fill="none" xmlns="http://www.w3.org/2000/svg">
<path
@@ -321,7 +321,7 @@ export const ChipLink = ({
uiOnly ? (
<span
className={[
- 'flex flex-auto justify-center sm:justify-between w-full text-center sm:text-left min-h-[43px] sm:w-auto items-center border border-[#232323] bg-gradient-to-r text-white from-[#46444460] to-[#19191980] hover:from-[#4e4e4e90] hover:to-[#19191990] hover:border-scale-800 backdrop-blur-xl rounded-full text-sm py-2 px-3 sm:pr-2',
+ 'flex flex-auto justify-center sm:justify-between w-full text-center sm:text-left min-h-[43px] sm:w-auto items-center border border-[#232323] bg-gradient-to-r text-white from-[#46444460] to-[#19191980] hover:from-[#4e4e4e90] hover:to-[#19191990] hover:border-stronger backdrop-blur-xl rounded-full text-sm py-2 px-3 sm:pr-2',
className,
].join(' ')}
>
@@ -333,7 +333,7 @@ export const ChipLink = ({
target={target ?? '_self'}
rel="noopener"
className={[
- 'flex flex-auto justify-center sm:justify-between w-full text-center sm:text-left min-h-[43px] sm:w-auto items-center border border-[#232323] bg-gradient-to-r text-white from-[#46444460] to-[#19191980] hover:from-[#4e4e4e90] hover:to-[#19191990] hover:border-scale-800 backdrop-blur-xl rounded-full text-sm py-2 px-3 sm:pr-2',
+ 'flex flex-auto justify-center sm:justify-between w-full text-center sm:text-left min-h-[43px] sm:w-auto items-center border border-[#232323] bg-gradient-to-r text-white from-[#46444460] to-[#19191980] hover:from-[#4e4e4e90] hover:to-[#19191990] hover:border-stronger backdrop-blur-xl rounded-full text-sm py-2 px-3 sm:pr-2',
className,
].join(' ')}
>
diff --git a/apps/www/components/LaunchWeek/8/Ticket/TicketActions.tsx b/apps/www/components/LaunchWeek/8/Ticket/TicketActions.tsx
index b59d219ffea..14d09918ea1 100644
--- a/apps/www/components/LaunchWeek/8/Ticket/TicketActions.tsx
+++ b/apps/www/components/LaunchWeek/8/Ticket/TicketActions.tsx
@@ -68,9 +68,9 @@ export default function TicketActions({
<div className="grid gap-1 grid-cols-1 sm:grid-cols-3">
{!sharePage ? (
<>
- <div className="rounded bg-[#E6E8EB] text-scale-500 py-1 px-3 border border-[#3e3e3e] text-xs mb-1">
+ <div className="rounded bg-[#E6E8EB] text-background-surface-300 py-1 px-3 border border-[#3e3e3e] text-xs mb-1">
<div className="flex items-center justify-center gap-2">
- <div className="text-scale-300">
+ <div className="text-background-surface-100">
<IconCheckCircle size={10} strokeWidth={1.5} />
</div>
Connect with GitHub
@@ -79,8 +79,8 @@ export default function TicketActions({
<button
onClick={() => handleShare('twitter')}
className={[
- `flex items-center justify-center gap-2 rounded text-scale-500 py-1 px-3 border border-[#3e3e3e] text-xs mb-1 transition-all ease-out hover:text-scale-100 hover:bg-[#dfe1e3]`,
- userData.sharedOnTwitter ? 'bg-[#E6E8EB] text-scale-500' : 'text-white',
+ `flex items-center justify-center gap-2 rounded text-background-surface-300 py-1 px-3 border border-[#3e3e3e] text-xs mb-1 transition-all ease-out hover:text-background-alternative hover:bg-[#dfe1e3]`,
+ userData.sharedOnTwitter ? 'bg-[#E6E8EB] text-background-surface-300' : 'text-white',
].join(' ')}
>
{userData.sharedOnTwitter && (
@@ -93,8 +93,8 @@ export default function TicketActions({
<button
onClick={() => handleShare('linkedin')}
className={[
- `flex items-center justify-center gap-2 rounded text-scale-500 py-1 px-3 border border-[#3e3e3e] text-xs mb-1 transition-all ease-out hover:text-scale-100 hover:bg-[#dfe1e3]`,
- userData.sharedOnLinkedIn ? 'bg-[#E6E8EB] text-scale-500' : 'text-white',
+ `flex items-center justify-center gap-2 rounded text-background-surface-300 py-1 px-3 border border-[#3e3e3e] text-xs mb-1 transition-all ease-out hover:text-background-alternative hover:bg-[#dfe1e3]`,
+ userData.sharedOnLinkedIn ? 'bg-[#E6E8EB] text-background-surface-300' : 'text-white',
].join(' ')}
>
{userData.sharedOnLinkedIn && (
diff --git a/apps/www/components/LaunchWeek/8/Ticket/TicketContainer.tsx b/apps/www/components/LaunchWeek/8/Ticket/TicketContainer.tsx
index 6b8808864ff..53377e69b94 100644
--- a/apps/www/components/LaunchWeek/8/Ticket/TicketContainer.tsx
+++ b/apps/www/components/LaunchWeek/8/Ticket/TicketContainer.tsx
@@ -104,7 +104,7 @@ export default function TicketContainer({ user, sharePage, referrals, supabase }
)}
</h1>
- <div className="text-sm text-light leading-5">
+ <div className="text-sm text-foreground-light leading-5">
{!sharePage ? (
golden ? (
<p>
diff --git a/apps/www/components/LaunchWeek/8/Ticket/TicketCustomizationForm.tsx b/apps/www/components/LaunchWeek/8/Ticket/TicketCustomizationForm.tsx
index 4c1058671f7..8d2d4ff64f3 100644
--- a/apps/www/components/LaunchWeek/8/Ticket/TicketCustomizationForm.tsx
+++ b/apps/www/components/LaunchWeek/8/Ticket/TicketCustomizationForm.tsx
@@ -50,7 +50,9 @@ const TicketCustomizationForm = ({ supabase, user }: Props) => {
<form className="w-full flex flex-col gap-2 mt-4" onChange={() => debouncedChangeHandler()}>
<div className="flex items-center justify-between">
{!IS_SAVED && !HAS_ERROR && (
- <span className="opacity-0 animate-fade-in text-lighter text-xs">Connected account</span>
+ <span className="opacity-0 animate-fade-in text-foreground-lighter text-xs">
+ Connected account
+ </span>
)}
{IS_SAVED && <span className="opacity-0 animate-fade-in text-xs text-brand">Saved</span>}
{HAS_ERROR && (
@@ -86,8 +88,8 @@ const TicketCustomizationForm = ({ supabase, user }: Props) => {
strokeWidth={2}
className={[
'w-3',
- IS_SAVING && 'text-scale-300',
- !!formData.role ? 'text-brand' : 'text-scale-300',
+ IS_SAVING && 'text-background-surface-300',
+ !!formData.role ? 'text-brand' : 'text-background-surface-300',
].join(' ')}
/>
}
@@ -108,8 +110,8 @@ const TicketCustomizationForm = ({ supabase, user }: Props) => {
strokeWidth={2}
className={[
'w-3',
- IS_SAVING && 'text-scale-300',
- !!formData.company ? 'text-brand' : 'text-scale-300',
+ IS_SAVING && 'text-background-surface-300',
+ !!formData.company ? 'text-brand' : 'text-background-surface-300',
].join(' ')}
/>
}
@@ -130,8 +132,8 @@ const TicketCustomizationForm = ({ supabase, user }: Props) => {
strokeWidth={2}
className={[
'w-3 flex spin',
- IS_SAVING && 'text-scale-300',
- !!formData.location ? 'text-brand' : 'text-scale-300',
+ IS_SAVING && 'text-background-surface-300',
+ !!formData.location ? 'text-brand' : 'text-background-surface-300',
].join(' ')}
/>
}
diff --git a/apps/www/components/LaunchWeek/8/Ticket/TicketFooter.tsx b/apps/www/components/LaunchWeek/8/Ticket/TicketFooter.tsx
index c7a40ad59dc..fee64cfa287 100644
--- a/apps/www/components/LaunchWeek/8/Ticket/TicketFooter.tsx
+++ b/apps/www/components/LaunchWeek/8/Ticket/TicketFooter.tsx
@@ -5,7 +5,7 @@ interface Props {}
export default function TicketFooter({}: Props) {
return (
- <div className="relative z-10 w-full flex flex-col md:flex-row gap-4 md:gap-8 mb-4 md:mb-6 text-light text-xs font-mono uppercase tracking-widest">
+ <div className="relative z-10 w-full flex flex-col md:flex-row gap-4 md:gap-8 mb-4 md:mb-6 text-foreground-light text-xs font-mono uppercase tracking-widest">
<span>{LW8_DATE}</span>
<span>supabase.com/launch-week</span>
</div>
diff --git a/apps/www/components/LaunchWeek/8/Ticket/TicketNumber.tsx b/apps/www/components/LaunchWeek/8/Ticket/TicketNumber.tsx
index 5d160eae45f..4ef19640cc9 100644
--- a/apps/www/components/LaunchWeek/8/Ticket/TicketNumber.tsx
+++ b/apps/www/components/LaunchWeek/8/Ticket/TicketNumber.tsx
@@ -18,7 +18,7 @@ export default function TicketNumber({ number, golden = false }: Props) {
`
md:absolute text-[16px] md:text-[22px] w-full px-2 py-8 md:w-[max-content] leading-[1]
md:transform md:-rotate-90 md:origin-center
- text-light text-center font-mono tracking-[0.8rem]
+ text-foreground-light text-center font-mono tracking-[0.8rem]
`,
golden ? styles['ticket-number-gold'] : styles['ticket-number'],
].join(' ')}
diff --git a/apps/www/components/LaunchWeek/8/Ticket/TicketProfile.tsx b/apps/www/components/LaunchWeek/8/Ticket/TicketProfile.tsx
index 49c83e67cd1..84a340771fb 100644
--- a/apps/www/components/LaunchWeek/8/Ticket/TicketProfile.tsx
+++ b/apps/www/components/LaunchWeek/8/Ticket/TicketProfile.tsx
@@ -18,7 +18,7 @@ export default function TicketProfile({ user, ticketGenerationState, golden = fa
return (
<div className="relative z-10 flex gap-4 items-center px-2">
- <div className="text-light text-sm md:text-base flex flex-col gap-2">
+ <div className="text-foreground-light text-sm md:text-base flex flex-col gap-2">
<p className="text-3xl sm:text-4xl">{name || username || 'Your Name'}</p>
{HAS_NO_META && username && <p>@{username}</p>}
<div>
diff --git a/apps/www/components/LaunchWeek/8/Ticket/ticket-copy.tsx b/apps/www/components/LaunchWeek/8/Ticket/ticket-copy.tsx
index 13f4c9b2f86..9755eefbeb2 100644
--- a/apps/www/components/LaunchWeek/8/Ticket/ticket-copy.tsx
+++ b/apps/www/components/LaunchWeek/8/Ticket/ticket-copy.tsx
@@ -39,7 +39,7 @@ export default function TicketCopy({ username, isGolden }: Props) {
}, 2000)
})
}}
- className="h-full flex items-center gap-3 w-full truncate relative pr-20 text-light hover:text-foreground"
+ className="h-full flex items-center gap-3 w-full truncate relative pr-20 text-foreground-light hover:text-foreground"
>
<div className="flex items-center truncate">
<p
diff --git a/apps/www/components/LaunchWeek/8/TicketBrickWall.tsx b/apps/www/components/LaunchWeek/8/TicketBrickWall.tsx
index 8ec4f9b1cbb..46fca91a43b 100644
--- a/apps/www/components/LaunchWeek/8/TicketBrickWall.tsx
+++ b/apps/www/components/LaunchWeek/8/TicketBrickWall.tsx
@@ -18,7 +18,7 @@ export default function TicketBrickWall({ users }: Props) {
<div className="relative pb-16 pt-16 md:pt-28">
<div className="mx-auto">
<div className="max-w-[38rem] mb-8 mx-auto">
- <h2 className="text-center radial-gradient-text-scale-500">Tickets from the community</h2>
+ <h2 className="text-center radial-gradient-text-500">Tickets from the community</h2>
</div>
<div
className="grid py-4 relative
diff --git a/apps/www/components/MadeForDevelopers/CodeExamples.tsx b/apps/www/components/MadeForDevelopers/CodeExamples.tsx
index 4cb4df8403c..aecd4f010fe 100644
--- a/apps/www/components/MadeForDevelopers/CodeExamples.tsx
+++ b/apps/www/components/MadeForDevelopers/CodeExamples.tsx
@@ -132,7 +132,7 @@ const CodeExamples = () => {
<div className="grid grid-cols-12 gap-2 xl:gap-8">
<div className="col-span-12 text-center lg:col-span-3 lg:hidden">{<TabNav />}</div>
<div className="col-span-12 lg:col-span-9">
- <div className="bg-dark-600 dark:bg-scale-300 rounded-md rounded-b-lg">
+ <div className="bg-surface-100 rounded-md rounded-b-lg">
<div className="flex items-center justify-between p-2 pl-5">
<p className="text-dark-100 mr-2 truncate text-sm sm:text-base">
{exampleList[example].description}
diff --git a/apps/www/components/Nav/DevelopersDropdown.tsx b/apps/www/components/Nav/DevelopersDropdown.tsx
index 8fbc80d7f12..8bbf57fcb65 100644
--- a/apps/www/components/Nav/DevelopersDropdown.tsx
+++ b/apps/www/components/Nav/DevelopersDropdown.tsx
@@ -18,7 +18,7 @@ const DevelopersDropdown = () => (
<div className="w-[550px] xl:w-[500px] py-8 px-8 bg-background grid gap-3 grid-cols-2">
{DevelopersData['navigation'].map((column) => (
<div key={column.label} className="p-0 flex flex-col gap-6">
- <label className="text-lighter text-xs uppercase tracking-widest font-mono">
+ <label className="text-foreground-lighter text-xs uppercase tracking-widest font-mono">
{column.label}
</label>
<ul className="flex flex-col gap-4">
@@ -26,7 +26,7 @@ const DevelopersDropdown = () => (
<li key={link.text}>
<Link
href={link.url!}
- className="flex group items-center gap-2 text-light text-sm hover:text-foreground focus-visible:text-foreground focus-visible:ring-2 focus-visible:outline-none focus-visible:rounded focus-visible:ring-foreground-lighter"
+ className="flex group items-center gap-2 text-foreground-light text-sm hover:text-foreground focus-visible:text-foreground focus-visible:ring-2 focus-visible:outline-none focus-visible:rounded focus-visible:ring-foreground-lighter"
>
{Icon && <Icon size={16} strokeWidth={1.2} />}
<span>{link.text}</span>
@@ -45,7 +45,7 @@ const DevelopersDropdown = () => (
<div className="flex-col gap-2 py-8 px-10">
<Link
href="/blog"
- className="group flex items-center gap-1 text-lighter hover:text-foreground text-xs uppercase tracking-widest font-mono mb-5 focus-visible:ring-2 focus-visible:outline-none focus-visible:ring-foreground-lighter focus-visible:ring-offset-4 focus-visible:ring-offset-background-alternative focus-visible:rounded-sm focus-visible:text-foreground"
+ className="group flex items-center gap-1 text-foreground-lighter hover:text-foreground text-xs uppercase tracking-widest font-mono mb-5 focus-visible:ring-2 focus-visible:outline-none focus-visible:ring-foreground-lighter focus-visible:ring-offset-4 focus-visible:ring-offset-background-alternative focus-visible:rounded-sm focus-visible:text-foreground"
>
<span>Blog</span>
<IconChevronRight className="h-3 w-3 transition-transform will-change-transform -translate-x-1 group-hover:translate-x-0" />
@@ -57,10 +57,10 @@ const DevelopersDropdown = () => (
href={announcement.url}
className="group flex flex-col focus-visible:ring-2 focus-visible:outline-none focus-visible:ring-foreground-lighter focus-visible:ring-offset-4 focus-visible:ring-offset-background-alternative focus-visible:rounded"
>
- <p className="text-light mb-0 line-clamp-2 group-hover:text-foreground group-focus-visible:text-foreground">
+ <p className="text-foreground-light mb-0 line-clamp-2 group-hover:text-foreground group-focus-visible:text-foreground">
{announcement.title}
</p>
- <p className="text-sm line-clamp-2 text-lighter leading-relaxed !mb-0 group-hover:text-foreground-light group-focus-visible:text-foreground-light">
+ <p className="text-sm line-clamp-2 text-foreground-lighter leading-relaxed !mb-0 group-hover:text-foreground-light group-focus-visible:text-foreground-light">
{announcement.description}
</p>
</Link>
diff --git a/apps/www/components/Nav/HamburgerMenu.tsx b/apps/www/components/Nav/HamburgerMenu.tsx
index 73a46defce6..db34c64febd 100644
--- a/apps/www/components/Nav/HamburgerMenu.tsx
+++ b/apps/www/components/Nav/HamburgerMenu.tsx
@@ -13,7 +13,7 @@ const HamburgerButton = (props: HamburgerButtonProps) => (
>
<button
className={cn(
- 'text-lighter focus:ring-brand dark:bg-background dark:hover:bg-scale-300 inline-flex items-center justify-center rounded-md bg-gray-50 p-2 hover:bg-white focus:outline-none focus:ring-2 focus:ring-inset',
+ 'text-foreground-lighter focus:ring-brand bg-background hover:bg-surface-100 inline-flex items-center justify-center rounded-md p-2 focus:outline-none focus:ring-2 focus:ring-inset',
props.showLaunchWeekNavMode && '!bg-transparent border border-[#be9eea]'
)}
aria-expanded="false"
diff --git a/apps/www/components/Nav/MenuItem.tsx b/apps/www/components/Nav/MenuItem.tsx
index b826c88c618..562192dcfce 100644
--- a/apps/www/components/Nav/MenuItem.tsx
+++ b/apps/www/components/Nav/MenuItem.tsx
@@ -15,7 +15,7 @@ const MenuItem = React.forwardRef<
href={href}
ref={ref}
className={cn(
- 'group/menu-item flex items-center text-light text-sm hover:text-foreground select-none gap-3 rounded-md p-2 leading-none no-underline outline-none focus-visible:ring-2 focus-visible:ring-foreground-lighter focus-visible:text-foreground',
+ 'group/menu-item flex items-center text-foreground-light text-sm hover:text-foreground select-none gap-3 rounded-md p-2 leading-none no-underline outline-none focus-visible:ring-2 focus-visible:ring-foreground-lighter focus-visible:text-foreground',
description && 'items-center',
className
)}
@@ -53,7 +53,7 @@ const MenuItem = React.forwardRef<
)}
</div>
{description && (
- <p className="line-clamp-1 -mb-1 leading-relaxed text-lighter group-hover/menu-item:text-light group-focus-visible/menu-item:text-light">
+ <p className="line-clamp-1 -mb-1 leading-relaxed text-foreground-lighter group-hover/menu-item:text-foreground-light group-focus-visible/menu-item:text-foreground-light">
{description}
</p>
)}
diff --git a/apps/www/components/Nav/MobileMenu.tsx b/apps/www/components/Nav/MobileMenu.tsx
index 9ae4482d995..5ae90d0f537 100644
--- a/apps/www/components/Nav/MobileMenu.tsx
+++ b/apps/www/components/Nav/MobileMenu.tsx
@@ -147,7 +147,7 @@ const MobileMenu = ({ open, setOpen, isDarkMode, menu }: Props) => {
<button
onClick={() => setOpen(false)}
type="button"
- className="inline-flex items-center justify-center p-2 bg-white rounded-md text-lighter focus:ring-brand dark:bg-surface-100 dark:hover:bg-surface-200 hover:bg-surface-100 focus:outline-none focus:ring-2 focus:ring-inset"
+ className="inline-flex items-center justify-center p-2 bg-white rounded-md text-foreground-lighter focus:ring-brand dark:bg-surface-100 dark:hover:bg-surface-200 hover:bg-surface-100 focus:outline-none focus:ring-2 focus:ring-inset"
>
<span className="sr-only">Close menu</span>
<svg
diff --git a/apps/www/components/Nav/ProductDropdown.tsx b/apps/www/components/Nav/ProductDropdown.tsx
index 48b219f883d..c3834c99dd5 100644
--- a/apps/www/components/Nav/ProductDropdown.tsx
+++ b/apps/www/components/Nav/ProductDropdown.tsx
@@ -36,7 +36,7 @@ const ProductDropdown = () => {
<div className="col-span-3 xl:w-auto">
<Link
href="/customers"
- className="group flex items-center gap-1 text-lighter hover:text-foreground text-xs uppercase tracking-widest font-mono mb-6 focus-visible:ring-2 focus-visible:outline-none focus-visible:ring-foreground-lighter focus-visible:ring-offset-4 focus-visible:ring-offset-background-alternative focus-visible:rounded-sm focus-visible:text-foreground"
+ className="group flex items-center gap-1 text-foreground-lighter hover:text-foreground text-xs uppercase tracking-widest font-mono mb-6 focus-visible:ring-2 focus-visible:outline-none focus-visible:ring-foreground-lighter focus-visible:ring-offset-4 focus-visible:ring-offset-background-alternative focus-visible:rounded-sm focus-visible:text-foreground"
>
Customer Stories
<IconChevronRight className="h-3 w-3 transition-transform will-change-transform -translate-x-1 group-hover:translate-x-0" />
@@ -68,7 +68,7 @@ const ProductDropdown = () => {
</ul>
</div>
<div className="col-span-2">
- <p className="text-lighter text-xs uppercase tracking-widest font-mono mb-6">
+ <p className="text-foreground-lighter text-xs uppercase tracking-widest font-mono mb-6">
{ComparisonsData.label}
</p>
<ul className="flex flex-col gap-2">
diff --git a/apps/www/components/Nav/index.tsx b/apps/www/components/Nav/index.tsx
index 83fc5e0f126..19d97e5ab22 100644
--- a/apps/www/components/Nav/index.tsx
+++ b/apps/www/components/Nav/index.tsx
@@ -63,7 +63,7 @@ const Nav = () => {
/>
<nav
className={cn(
- `relative z-40 border-border border-b backdrop-blur-sm transition-opacity`,
+ `relative z-40 border-default border-b backdrop-blur-sm transition-opacity`,
showLaunchWeekNavMode ? '!opacity-100 !border-[#e0d2f430]' : '',
isLaunchWeekPage && showLaunchWeekNavMode ? '!border-b-0' : ''
)}
diff --git a/apps/www/components/OpenSource/RepoCard.tsx b/apps/www/components/OpenSource/RepoCard.tsx
index 34a9ccd8bb0..2efd4b6458a 100644
--- a/apps/www/components/OpenSource/RepoCard.tsx
+++ b/apps/www/components/OpenSource/RepoCard.tsx
@@ -1,7 +1,8 @@
import Link from 'next/link'
import { motion } from 'framer-motion'
import { IconStar } from 'ui'
-import InteractiveShimmerCard from '../InteractiveShimmerCard'
+
+import Panel from '~/components/Panel'
const RepoCard = ({ repo, activeTab, index }: { repo: any; activeTab: number; index: number }) => (
<motion.div
@@ -11,8 +12,7 @@ const RepoCard = ({ repo, activeTab, index }: { repo: any; activeTab: number; in
exit={{ opacity: 0, y: 5, transition: { duration: 0.05 } }}
>
<Link href={repo.html_url} target="_blank">
- <InteractiveShimmerCard
- outerClassName=""
+ <Panel
innerClassName="relative group flex flex-col gap-2 p-4 min-h-[170px] md:!h-[200px]"
hasActiveOnHover
>
@@ -37,8 +37,8 @@ const RepoCard = ({ repo, activeTab, index }: { repo: any; activeTab: number; in
{repo.name}
</p>
</div>
- <p className="text-sm flex-1 text-lighter">{repo.description}</p>
- <div className="text-sm w-full flex justify-between text-lighter mt-8">
+ <p className="text-sm flex-1 text-foreground-lighter">{repo.description}</p>
+ <div className="text-sm w-full flex justify-between text-foreground-lighter mt-8">
<p className="">{repo.full_name}</p>
<div className="flex items-center gap-3">
<div className="flex items-center gap-1">
@@ -61,7 +61,7 @@ const RepoCard = ({ repo, activeTab, index }: { repo: any; activeTab: number; in
</div>
</div>
</div>
- </InteractiveShimmerCard>
+ </Panel>
</Link>
</motion.div>
)
diff --git a/apps/www/components/OpenSource/Repos.tsx b/apps/www/components/OpenSource/Repos.tsx
index 751001549e4..a9e68b24c9a 100644
--- a/apps/www/components/OpenSource/Repos.tsx
+++ b/apps/www/components/OpenSource/Repos.tsx
@@ -19,7 +19,9 @@ const Tab = ({ isActive, label, icon, onClick }: TabProps) => (
<button
onClick={onClick}
className={`rounded-full px-4 md:px-3 py-2 md:py-1 nowrap flex group gap-1 transition-all ${
- isActive ? 'text-strong bg-surface-300' : 'text-lighter bg-surface-200 hover:bg-overlay-hover'
+ isActive
+ ? 'text-strong bg-surface-300'
+ : 'text-foreground-lighter bg-surface-200 hover:bg-overlay-hover'
}`}
aria-selected={isActive}
role="tab"
@@ -32,7 +34,7 @@ const Tab = ({ isActive, label, icon, onClick }: TabProps) => (
viewBox="0 0 16 16"
fill="none"
xmlns="http://www.w3.org/2000/svg"
- className={cn('text-light shrink-0', isActive && 'text-brand')}
+ className={cn('text-foreground-light shrink-0', isActive && 'text-brand')}
>
<path
d={icon}
@@ -106,7 +108,7 @@ const Repos = ({ tabs }: Props) => {
<div className="flex mx-auto items-center gap-6 text-sm sm:gap-8">
<Link
href="https://github.com/supabase/supabase/blob/master/DEVELOPERS.md"
- className="text-lighter hover:underline flex gap-1 items-center"
+ className="text-foreground-lighter hover:underline flex gap-1 items-center"
target="_blank"
>
<GitHubIcon />
@@ -114,7 +116,7 @@ const Repos = ({ tabs }: Props) => {
</Link>
<Link
href="https://github.com/supabase/.github/blob/main/CODE_OF_CONDUCT.md"
- className="text-lighter hover:underline flex gap-1 items-center"
+ className="text-foreground-lighter hover:underline flex gap-1 items-center"
target="_blank"
>
<GitHubIcon />
diff --git a/apps/www/components/OpenSource/Sponsorships.tsx b/apps/www/components/OpenSource/Sponsorships.tsx
index c9c81b30a98..0cab364228a 100644
--- a/apps/www/components/OpenSource/Sponsorships.tsx
+++ b/apps/www/components/OpenSource/Sponsorships.tsx
@@ -1,8 +1,9 @@
import Link from 'next/link'
import React from 'react'
-import InteractiveShimmerCard from '../InteractiveShimmerCard'
import { IconArrowUpRight, cn } from 'ui'
+import Panel from '~/components/Panel'
+
const Sponsorships = ({ sponsorships }: { sponsorships: any[] }) => {
return (
<div className="flex flex-col gap-8 xl:gap-10">
@@ -10,14 +11,14 @@ const Sponsorships = ({ sponsorships }: { sponsorships: any[] }) => {
<h2 className="text-3xl xl:text-4xl max-w-[280px] sm:max-w-xs xl:max-w-[360px] tracking-[-1px]">
Sponsored Projects
</h2>
- <p className="text-muted mb-4 max-w-sm">
+ <p className="text-foreground-lighter mb-4 max-w-sm">
We don't just live and breath open-source, we also sponsor projects we love.
</p>
</div>
<div className="relative w-full h-fit grid md:grid-cols-2 lg:grid-cols-3 gap-4">
{sponsorships.map((link) => (
<Link href={link.url} key={link.name} target="_blank">
- <InteractiveShimmerCard
+ <Panel
outerClassName=""
innerClassName={cn(
'relative group flex flex-col gap-2 p-4 ',
@@ -48,11 +49,11 @@ const Sponsorships = ({ sponsorships }: { sponsorships: any[] }) => {
{link.name}
</p>
</div>
- <p className="text-sm flex-1 text-lighter">{link.description}</p>
- <div className="text-sm w-full flex justify-between text-lighter mt-2">
+ <p className="text-sm flex-1 text-foreground-lighter">{link.description}</p>
+ <div className="text-sm w-full flex justify-between text-foreground-lighter mt-2">
<IconArrowUpRight className="w-4 stroke-[1.5px]" />
</div>
- </InteractiveShimmerCard>
+ </Panel>
</Link>
))}
</div>
diff --git a/apps/www/components/InteractiveShimmerCard/index.tsx b/apps/www/components/Panel/Panel.tsx
similarity index 60%
rename from apps/www/components/InteractiveShimmerCard/index.tsx
rename to apps/www/components/Panel/Panel.tsx
index c28b9b72edc..920c5591f3b 100644
--- a/apps/www/components/InteractiveShimmerCard/index.tsx
+++ b/apps/www/components/Panel/Panel.tsx
@@ -1,30 +1,35 @@
import React, { PropsWithChildren, useEffect, useRef } from 'react'
+import { motion } from 'framer-motion'
import { cn } from 'ui'
+import { isBrowser } from 'common'
interface Props {
outerClassName?: string
innerClassName?: string
+ hasActiveOnHover?: boolean
activeColor?: 'default' | 'brand'
hasShimmer?: boolean
- hasActiveOnHover?: boolean
hasInnerShimmer?: boolean
shimmerFromColor?: string
shimmerToColor?: string
+ hasMotion?: boolean
}
-const InteractiveShimmerCard = ({
+const Panel = ({
outerClassName,
innerClassName,
+ hasActiveOnHover = false,
activeColor = 'default',
hasShimmer = false,
- hasActiveOnHover = false,
hasInnerShimmer = false,
shimmerFromColor,
shimmerToColor,
+ hasMotion = false,
children,
}: PropsWithChildren<Props>) => {
const outerRef = useRef(null)
const innerRef = useRef(null)
+ const Component = hasMotion ? motion.div : 'div'
const trackCursor = hasShimmer || hasInnerShimmer
const handleGlow = (event: any) => {
@@ -40,25 +45,25 @@ const InteractiveShimmerCard = ({
if (hasShimmer) {
const activeGlow =
hasActiveOnHover && isActive
- ? `radial-gradient(65rem circle at ${x}px ${y}px, var(${
- activeColor === 'brand' ? '--colors-brand9' : '--colors-scale9'
- }), transparent), `
+ ? `radial-gradient(65rem circle at ${x}px ${y}px, ${
+ activeColor === 'brand' ? 'var(--colors-brand9)' : 'hsl(var(--foreground-muted))'
+ }, transparent), `
: ''
outerElement.style.backgroundImage = `
${activeGlow}radial-gradient(30rem circle at ${x}px ${y}px, ${
- shimmerFromColor ?? 'var(--colors-scale8)'
- }, ${shimmerToColor ?? 'var(--colors-scale5)'})`
+ shimmerFromColor ?? 'hsl(var(--border-strong))'
+ }, ${shimmerToColor ?? 'hsl(var(--background-surface-300))'})`
}
if (hasInnerShimmer) {
innerElement.style.backgroundImage = isActive
- ? `radial-gradient(7rem circle at ${x}px ${y}px, var(--colors-scale5), transparent), radial-gradient(20rem circle at ${x}px ${y}px, var(--colors-scale4), transparent)`
+ ? `radial-gradient(7rem circle at ${x}px ${y}px, hsl(var(--background-surface-300)), transparent), radial-gradient(20rem circle at ${x}px ${y}px, hsl(var(--background-surface-200)), transparent)`
: ''
}
}
useEffect(() => {
- if (typeof window === 'undefined') return
+ if (!isBrowser) return
window.addEventListener('mousemove', handleGlow)
return () => {
@@ -67,29 +72,33 @@ const InteractiveShimmerCard = ({
}, [])
return (
- <div
+ <Component
ref={outerRef}
className={cn(
- 'relative rounded-xl bg-scale-400 from-scale-800 to-scale-800 p-px transition-all shadow-md',
+ 'relative rounded-xl bg-surface-100 bg-gradient-to-b from-border to-surface-200 p-px transition-all shadow-md',
!trackCursor && hasActiveOnHover
? activeColor === 'brand'
? 'hover:bg-none hover:!bg-brand'
- : 'hover:bg-none hover:!bg-scale-900'
+ : 'hover:bg-none hover:!bg-foreground-muted'
: '',
outerClassName
)}
+ {...(hasMotion ? { whileHover: 'hover', animate: 'initial' } : undefined)}
>
<div
className={cn(
- 'relative h-full z-10 rounded-xl bg-scale-200 dark:bg-scale-300 overflow-hidden transition-all text-light',
+ 'relative z-10 w-full h-full rounded-xl bg-surface-100 overflow-hidden text-foreground-light',
innerClassName
)}
>
{children}
- <div ref={innerRef} className="absolute z-0 inset-0 w-full h-full pointer-events-none" />
+ <div
+ ref={innerRef}
+ className="absolute z-10 inset-0 w-full h-full pointer-events-none opacity-20"
+ />
</div>
- </div>
+ </Component>
)
}
-export default InteractiveShimmerCard
+export default Panel
diff --git a/apps/www/components/Panel/index.tsx b/apps/www/components/Panel/index.tsx
index 1ad79cf4694..054425660de 100644
--- a/apps/www/components/Panel/index.tsx
+++ b/apps/www/components/Panel/index.tsx
@@ -1,97 +1,2 @@
-import React, { PropsWithChildren, useEffect, useRef } from 'react'
-import { motion } from 'framer-motion'
-import { detectBrowser } from 'common'
-
-interface Props {
- outerClassName?: string
- innerClassName?: string
- hasActiveOnHover?: boolean
- activeColor?: 'default' | 'brand'
- hasShimmer?: boolean
- hasInnerShimmer?: boolean
- shimmerFromColor?: string
- shimmerToColor?: string
-}
-
-const Panel = ({
- outerClassName,
- innerClassName,
- hasActiveOnHover = false,
- activeColor = 'default',
- hasShimmer = false,
- hasInnerShimmer = false,
- shimmerFromColor,
- shimmerToColor,
- children,
-}: PropsWithChildren<Props>) => {
- const outerRef = useRef(null)
- const innerRef = useRef(null)
- const trackCursor = hasShimmer || hasInnerShimmer
-
- const handleGlow = (event: any) => {
- if (!outerRef.current || !innerRef.current) return null
-
- const outerElement = outerRef.current as HTMLDivElement
- const innerElement = innerRef.current as HTMLDivElement
- const { x: elX, y: elY, width, height } = outerElement.getBoundingClientRect()
- const x = event.clientX - elX
- const y = event.clientY - elY
- const isActive = x > -0 && x < width + 0 && y > -0 && y < height + 0
-
- if (hasShimmer) {
- const activeGlow =
- hasActiveOnHover && isActive
- ? `radial-gradient(65rem circle at ${x}px ${y}px, var(${
- activeColor === 'brand' ? '--colors-brand9' : '--colors-scale9'
- }), transparent), `
- : ''
- outerElement.style.backgroundImage = `
- ${activeGlow}radial-gradient(30rem circle at ${x}px ${y}px, ${
- shimmerFromColor ?? 'var(--colors-scale8)'
- }, ${shimmerToColor ?? 'var(--colors-scale5)'})`
- }
-
- if (hasInnerShimmer) {
- innerElement.style.backgroundImage = isActive
- ? `radial-gradient(7rem circle at ${x}px ${y}px, var(--colors-scale5), transparent), radial-gradient(20rem circle at ${x}px ${y}px, var(--colors-scale4), transparent)`
- : ''
- }
- }
-
- useEffect(() => {
- if (typeof window === 'undefined' || !trackCursor) return
-
- window.addEventListener('mousemove', handleGlow)
- return () => {
- window.removeEventListener('mousemove', handleGlow)
- }
- }, [])
-
- return (
- <motion.div
- ref={outerRef}
- className={[
- 'relative z-0 rounded-xl bg-gradient-to-b from-background-surface-300 to-scale-400 p-px shadow-md',
- !trackCursor && hasActiveOnHover ? 'hover:bg-none hover:!bg-scale-700' : '',
- outerClassName,
- ].join(' ')}
- whileHover="hover"
- animate="initial"
- >
- <div
- className={[
- 'relative z-10 h-full rounded-xl bg overflow-hidden transition-all text-light',
- innerClassName,
- ].join(' ')}
- >
- <div
- ref={innerRef}
- className="absolute z-10 inset-0 w-full h-full pointer-events-none opacity-20"
- />
- <div className="relative z-0 w-full h-full">{children}</div>
- </div>
- </motion.div>
- )
-}
-
+import Panel from './Panel'
export default Panel
diff --git a/apps/www/components/Partners/PartnerLinkBox.tsx b/apps/www/components/Partners/PartnerLinkBox.tsx
index a620cc70007..2437f1cba8b 100644
--- a/apps/www/components/Partners/PartnerLinkBox.tsx
+++ b/apps/www/components/Partners/PartnerLinkBox.tsx
@@ -15,20 +15,17 @@ const PartnerLinkBox = ({
color?: 'amber' | 'brand' | 'blue'
}) => {
const colors = {
- amber:
- 'bg-amber-400 dark:bg-scale-100 group-hover:bg-amber-500 dark:group-hover:bg-amber-300 text-amber-900',
- blue: 'bg-blue-400 dark:bg-scale-100 group-hover:bg-blue-500 dark:group-hover:bg-blue-300 text-blue-900',
- brand:
- 'bg-brand-400 dark:bg-scale-100 group-hover:bg-brand-300 dark:group-hover:bg-brand-300 text-brand',
+ amber: 'bg-amber-300 text-amber-900',
+ blue: 'bg-blue-300 text-blue-900',
+ brand: 'bg-brand-300 text-brand',
}
const content = (
<div
className="
- hover:bg-scale-300
- bg-scale-200
- border-scale-500
- dark:border-scale-400 group cursor-pointer rounded
+ hover:border-foreground-lighter
+ bg-surface-100
+ group cursor-pointer rounded
border px-5 py-4
"
>
diff --git a/apps/www/components/Partners/TileGrid.tsx b/apps/www/components/Partners/TileGrid.tsx
index 84cfe0e89a8..6eb7330395a 100644
--- a/apps/www/components/Partners/TileGrid.tsx
+++ b/apps/www/components/Partners/TileGrid.tsx
@@ -42,17 +42,17 @@ export default function TileGrid({
<Image
layout="fill"
objectFit="cover"
- className="bg-gray-300"
+ className="bg-surface-100"
src={p.logo}
alt={p.title}
/>
</div>
<div>
- <h3 className="text-light group-hover:text-foreground mb-2 text-xl transition-colors">
+ <h3 className="text-foreground-light group-hover:text-foreground mb-2 text-xl transition-colors">
{p.title}
</h3>
<p
- className="text-lighter text-sm line-clamp-4 min-h-[80px]"
+ className="text-foreground-lighter text-sm line-clamp-4 min-h-[80px]"
title={p.description}
>
{p.description}
@@ -85,7 +85,7 @@ export default function TileGrid({
<Image
layout="fill"
objectFit="cover"
- className="bg-gray-300"
+ className="bg-surface-100"
src={p.logo}
alt={p.title}
/>
@@ -95,7 +95,7 @@ export default function TileGrid({
{p.title}
</h3>
<p
- className="text-lighter text-sm line-clamp-4 min-h-[80px]"
+ className="text-foreground-lighter text-sm line-clamp-4 min-h-[80px]"
title={p.description}
>
{p.description}
diff --git a/apps/www/components/Pricing/ComputePricingModal.tsx b/apps/www/components/Pricing/ComputePricingModal.tsx
index 3faf91cdc0f..7bb4d5b4cff 100644
--- a/apps/www/components/Pricing/ComputePricingModal.tsx
+++ b/apps/www/components/Pricing/ComputePricingModal.tsx
@@ -99,7 +99,7 @@ export default function ComputePricingModal({ showComputeModal, setShowComputeMo
<Fragment key={`row-${i}`}>
{i === 0 && (
<tr className="">
- <td className="pb-1 bg-scale-700 px-3 py-1 -mr-1 border-l-4 border-scale-700">
+ <td className="pb-1 bg-border-strong px-3 py-1 -mr-1 border-l-4 border-strong">
<span className="">First instance is free on paid plans</span>
</td>
</tr>
@@ -107,8 +107,8 @@ export default function ComputePricingModal({ showComputeModal, setShowComputeMo
<tr
key={i}
className={[
- i % 2 === 0 ? 'bg-scale-300 rounded-lg' : '',
- i === 0 ? 'border-4 border-scale-700' : '',
+ i % 2 === 0 ? 'bg-surface-100 rounded-lg' : '',
+ i === 0 ? 'border-4 border-strong' : '',
].join(' ')}
>
{row.columns.map((column) => (
diff --git a/apps/www/components/Pricing/PricingAddOnTable.tsx b/apps/www/components/Pricing/PricingAddOnTable.tsx
index 1cf6d86da1d..9575b348122 100644
--- a/apps/www/components/Pricing/PricingAddOnTable.tsx
+++ b/apps/www/components/Pricing/PricingAddOnTable.tsx
@@ -35,14 +35,14 @@ const PricingAddOnTable = ({ icon, pricing }: PricingAddOnTableProps) => {
<Collapsible.Trigger asChild>
<button
className={classNames(
- 'text-foreground bg-blue-500 border-scale-300 group flex w-full flex-col items-start rounded-t-md dark:border lg:flex-row lg:items-center',
+ 'text-foreground bg-blue-500 border-background-surface-100 group flex w-full flex-col items-start rounded-t-md dark:border lg:flex-row lg:items-center',
!isAddOnOpen && 'rounded-b-md'
)}
type="button"
>
<div className="flex w-full flex-1 flex-col items-start lg:w-auto lg:flex-row lg:items-center">
- <div className="dark:bg-scale-300 relative flex w-full items-center space-x-3 self-stretch bg-white py-8 pl-4 lg:w-[420px] lg:py-0">
- <span className="bg-scale-1200 text-scale-100 rounded-md p-2 shadow-sm transition-transform duration-500 group-hover:scale-105 group-hover:shadow">
+ <div className="bg-surface-100 relative flex w-full items-center space-x-3 self-stretch py-8 pl-4 lg:w-[420px] lg:py-0">
+ <span className="bg-foreground text-background rounded-md p-2 shadow-sm transition-transform duration-500 group-hover:scale-105 group-hover:shadow">
{icon}
</span>
<span className="flex-shrink-0">
@@ -50,7 +50,7 @@ const PricingAddOnTable = ({ icon, pricing }: PricingAddOnTableProps) => {
</span>
</div>
- <div className="border-scale-500 dark:border-scale-400 flex flex-1 items-center justify-between lg:border-l">
+ <div className="border-muted flex flex-1 items-center justify-between lg:border-l">
<div className="grid-flow-rows grid grid-cols-1 gap-y-3 gap-x-6 px-3 py-6 lg:grid-cols-2">
{pricing.features.map((feature, i) => (
<div key={i} className="flex items-center space-x-2">
@@ -72,7 +72,7 @@ const PricingAddOnTable = ({ icon, pricing }: PricingAddOnTableProps) => {
<div>
<table className="text-foreground m-0 hidden w-full table-auto overflow-hidden rounded-b lg:table">
<thead>
- <tr className="bg-scale-500">
+ <tr className="bg-surface-300">
{columnNames.map((column) => (
<th key={column.key} className="p-3 text-left font-medium">
{column.title}
@@ -82,7 +82,7 @@ const PricingAddOnTable = ({ icon, pricing }: PricingAddOnTableProps) => {
</thead>
<tbody>
{pricing.rows.map((row, i) => (
- <tr key={i} className={classNames(i % 2 === 0 && 'bg-scale-300')}>
+ <tr key={i} className={classNames(i % 2 === 0 && 'bg-surface-100')}>
{row.columns.map((column) => (
<td key={column.key} className="p-3">
{column.value}
@@ -98,7 +98,7 @@ const PricingAddOnTable = ({ icon, pricing }: PricingAddOnTableProps) => {
{pricing.rows.map((row, i) => (
<Fragment key={i}>
{row.columns.map((column) => (
- <tr key={column.key} className={classNames(i % 2 === 0 && 'bg-scale-300')}>
+ <tr key={column.key} className={classNames(i % 2 === 0 && 'bg-surface-100')}>
<th className="py-3 pl-4 text-left font-medium">{column.title}</th>
<td className="px-4 py-3">{column.value}</td>
</tr>
diff --git a/apps/www/components/Pricing/PricingTableRow.tsx b/apps/www/components/Pricing/PricingTableRow.tsx
index f73772f6629..cebe84bf0b3 100644
--- a/apps/www/components/Pricing/PricingTableRow.tsx
+++ b/apps/www/components/Pricing/PricingTableRow.tsx
@@ -9,11 +9,7 @@ export const PricingTableRowDesktop = (props: any) => {
return (
<>
- <tr
- className="divide-border-secondary"
- style={{ borderTop: 'none' }}
- id={`${props.sectionId}-desktop`}
- >
+ <tr className="divide-border" style={{ borderTop: 'none' }} id={`${props.sectionId}-desktop`}>
<th
className="bg-background text-foreground sticky top-[62px] z-10 py-3 pl-6 text-left text-sm font-medium dark:text-white"
scope="colgroup"
@@ -32,7 +28,7 @@ export const PricingTableRowDesktop = (props: any) => {
{category.features.map((feat: any, i: number) => {
return (
<Fragment key={feat.title}>
- <tr className="divide-border-secondary" key={i}>
+ <tr className="divide-border" key={i}>
<th
className={`text-foreground flex items-center px-6 py-5 last:pb-24 text-left text-xs font-normal dark:text-white `}
scope="row"
@@ -101,7 +97,7 @@ export const PricingTableRowMobile = (props: any) => {
return (
<>
<table className="mt-8 w-full" id={`${props.sectionId}-mobile`}>
- <caption className="bg-background border-border border-t px-4 py-3 text-left text-sm font-medium dark:text-white">
+ <caption className="bg-background border-default border-t px-4 py-3 text-left text-sm font-medium dark:text-white">
<div className="flex items-center gap-2">
{category.icon ? <ProductIcon icon={props.icon} /> : null}
<span className="text-foreground font-normal">{category.title}</span>
@@ -117,11 +113,14 @@ export const PricingTableRowMobile = (props: any) => {
</th>
</tr>
</thead>
- <tbody className="divide-border-border divide-y">
+ <tbody className="divide-border-default divide-y">
{category.features.map((feat: any, i: number) => {
return (
- <tr key={i} className="border-border border-t">
- <th className="text-light px-4 py-3 text-left text-sm font-normal" scope="row">
+ <tr key={i} className="border-default border-t">
+ <th
+ className="text-foreground-light px-4 py-3 text-left text-sm font-normal"
+ scope="row"
+ >
<span>
<p>{feat.title}</p>
</span>
diff --git a/apps/www/components/ProductIcon.tsx b/apps/www/components/ProductIcon.tsx
index b07c3796f52..117e9e44076 100644
--- a/apps/www/components/ProductIcon.tsx
+++ b/apps/www/components/ProductIcon.tsx
@@ -26,7 +26,7 @@ function ProductIcon({ icon, color }: ProductIcon) {
case 'black':
default:
return {
- container: 'bg-scale-1200 text-scale-100',
+ container: 'bg-foreground text-background-alternative',
svg: 'stroke-white dark:stroke-black',
}
}
@@ -36,8 +36,8 @@ function ProductIcon({ icon, color }: ProductIcon) {
<div
className={[
'inline-flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-md',
- !color || color === 'black' ? 'bg-scale-1200 text-scale-100' : '',
- color && color === 'gray' ? 'bg-scale-700 text-light' : '',
+ !color || color === 'black' ? 'bg-foreground text-background-alternative' : '',
+ color && color === 'gray' ? 'bg-border-strong text-foreground-light' : '',
color && color === 'green' ? 'bg-brand dark:bg-brand-500 text-brand-100' : '',
color && color === 'alt' ? 'bg-alternative text-brand' : '',
// color && color === 'alt' ? 'bg-surface-300 text-brand' : '',
diff --git a/apps/www/components/Products/ProductCard.tsx b/apps/www/components/Products/ProductCard.tsx
index ad451176f6c..9a2effdc51b 100644
--- a/apps/www/components/Products/ProductCard.tsx
+++ b/apps/www/components/Products/ProductCard.tsx
@@ -1,6 +1,7 @@
import React from 'react'
import Link from 'next/link'
import Panel from '~/components/Panel'
+import { cn } from 'ui'
const ProductCard = ({
className,
@@ -25,26 +26,27 @@ const ProductCard = ({
}) => (
<Link
href={url}
- className={[
+ className={cn(
'group relative w-full h-[400px] flex flex-col gap-5 lg:flex-row focus:outline-none focus:border-none focus:ring-brand-600 focus:ring-2 focus:rounded-xl',
- className,
- ].join(' ')}
+ className
+ )}
onClick={onClick}
>
<Panel
hasShimmer
hasActiveOnHover
- outerClassName="relative w-full h-full shadow-lg p-0"
- innerClassName={[
+ hasMotion={title.includes('Edge Functions')}
+ outerClassName="relative w-full h-full shadow-lg"
+ innerClassName={cn(
`relative overflow-hidden flex-1 flex flex-col items-center gap-5 lg:items-start justify-between
- bg-surface-100 w-full rounded-xl h-full`,
- ].join(' ')}
+ bg-surface-100 w-full rounded-xl h-full`
+ )}
>
<div
- className={[
+ className={cn(
'relative z-10 flex flex-col lg:h-full gap-1 text-foreground mx-auto items-center text-center h-full px-6 py-8',
- alignLeft && 'lg:mx-0 lg:pl-8 lg:items-start lg:text-left lg:max-w-[260px]',
- ].join(' ')}
+ alignLeft && 'lg:mx-0 lg:pl-8 lg:items-start lg:text-left lg:max-w-[260px]'
+ )}
>
<div className="flex items-center justify-center h-12 w-12 bg-alternative rounded-lg mb-3">
{icon && (
@@ -68,7 +70,7 @@ const ProductCard = ({
</div>
<h2 className="text-xl">{title}</h2>
<div className="flex-1 flex flex-col justify-between gap-2">
- <p className="text-sm text-lighter">{subtitle}</p>
+ <p className="text-sm text-foreground-lighter">{subtitle}</p>
{highlights && <span className="hidden lg:block">{highlights}</span>}
</div>
</div>
diff --git a/apps/www/components/Products/VectorAI/CustomersVisual.tsx b/apps/www/components/Products/VectorAI/CustomersVisual.tsx
index 295bf2d4417..d990b88c362 100644
--- a/apps/www/components/Products/VectorAI/CustomersVisual.tsx
+++ b/apps/www/components/Products/VectorAI/CustomersVisual.tsx
@@ -1,19 +1,14 @@
import React from 'react'
-import { useTheme } from 'next-themes'
import { m } from 'framer-motion'
import { DEFAULT_EASE } from '~/lib/animations'
const CustomersVisual = () => {
- const { resolvedTheme } = useTheme()
-
const RenderedVisual = () => (
<>
<div
className="absolute inset-0 mx-auto aspect-[5.13/1] h-full z-10"
style={{
- background: `radial-gradient(50% 50% at 50% 50%, transparent, ${
- resolvedTheme === 'dark' ? 'var(--colors-scale1)' : 'var(--colors-scale3)'
- })`,
+ background: `radial-gradient(50% 50% at 50% 50%, transparent, hsl(var(--background-alternative))`,
}}
/>
<m.svg
@@ -55,7 +50,7 @@ const CustomersVisual = () => {
cy="151.574"
rx="271.124"
ry="82.5656"
- fill={resolvedTheme === 'dark' ? '#161616' : '#F1F3F5'}
+ fill="hsl(var(--background-alternative))"
/>
</g>
<path
@@ -94,13 +89,13 @@ const CustomersVisual = () => {
<g filter="url(#filter2_f_4353_100693)">
<path
d="M930.203 82.036C914.556 60.4668 890.905 48.1616 865.905 48.1616H865.057C840.76 48.1616 817.7 60.0178 802.035 80.564C818.898 64.5075 841.409 55.49 864.944 55.49H865.882C890.122 55.49 913.214 65.1309 930.203 82.036Z"
- fill={resolvedTheme === 'dark' ? '#1EC77C' : '#2AB377'}
+ fill="hsl(var(--brand-default))"
/>
</g>
<g filter="url(#filter3_f_4353_100693)">
<path
d="M944.969 69.0081C925.715 47.439 896.616 35.1338 865.854 35.1338H864.811C834.915 35.1338 806.542 46.99 787.268 67.5362C808.016 51.4797 835.714 39.2051 864.673 39.2051H865.826C895.651 39.2051 924.064 52.1031 944.969 69.0081Z"
- fill={resolvedTheme === 'dark' ? '#232323' : '#E1E1E1'}
+ fill="hsl(var(--background-default))"
/>
</g>
{/* logo bg rays */}
@@ -236,7 +231,7 @@ const CustomersVisual = () => {
rx="303.093"
ry="68.9323"
transform="matrix(1 -0.000779452 -0.000779452 -1 562 296.168)"
- fill={resolvedTheme === 'dark' ? '#161616' : '#F1F3F5'}
+ fill="hsl(var(--background-alternative))"
/>
</g>
{/* coordinates */}
@@ -448,17 +443,9 @@ const CustomersVisual = () => {
gradientUnits="userSpaceOnUse"
gradientTransform="translate(859.159 138.208) rotate(92.2122) scale(263.179 749.441)"
>
- <stop stopColor={resolvedTheme === 'dark' ? '#161616' : '#F2F4F6'} stopOpacity="0" />
- <stop
- offset="0.489999"
- stopColor={resolvedTheme === 'dark' ? '#414141' : '#5F5F5F'}
- stopOpacity="0.84"
- />
- <stop
- offset="1"
- stopColor={resolvedTheme === 'dark' ? '#171717' : '#F2F4F6'}
- stopOpacity="0"
- />
+ <stop stopColor="hsl(var(--foreground-default))" stopOpacity="0" />
+ <stop offset="0.489999" stopColor="hsl(var(--foreground-muted))" stopOpacity="0.84" />
+ <stop offset="1" stopColor="hsl(var(--background-default))" stopOpacity="0" />
</radialGradient>
<radialGradient
id="paint1_radial_4353_100693"
@@ -468,17 +455,9 @@ const CustomersVisual = () => {
gradientUnits="userSpaceOnUse"
gradientTransform="translate(859.159 136.974) rotate(-103.238) scale(44.3621 730.071)"
>
- <stop stopColor={resolvedTheme === 'dark' ? '#161616' : '#F2F4F6'} stopOpacity="0" />
- <stop
- offset="0.489999"
- stopColor={resolvedTheme === 'dark' ? '#414141' : '#5F5F5F'}
- stopOpacity="0.84"
- />
- <stop
- offset="1"
- stopColor={resolvedTheme === 'dark' ? '#171717' : '#F2F4F6'}
- stopOpacity="0"
- />
+ <stop stopColor="hsl(var(--foreground-default))" stopOpacity="0" />
+ <stop offset="0.489999" stopColor="hsl(var(--foreground-muted))" stopOpacity="0.84" />
+ <stop offset="1" stopColor="hsl(var(--background-default))" stopOpacity="0" />
</radialGradient>
<radialGradient
id="paint2_radial_4353_100693"
@@ -488,17 +467,9 @@ const CustomersVisual = () => {
gradientUnits="userSpaceOnUse"
gradientTransform="translate(863.122 127.579) rotate(-92.6074) scale(137.882 462.616)"
>
- <stop stopColor={resolvedTheme === 'dark' ? '#161616' : '#F2F4F6'} stopOpacity="0" />
- <stop
- offset="0.489999"
- stopColor={resolvedTheme === 'dark' ? '#414141' : '#5F5F5F'}
- stopOpacity="0.84"
- />
- <stop
- offset="1"
- stopColor={resolvedTheme === 'dark' ? '#171717' : '#F2F4F6'}
- stopOpacity="0"
- />
+ <stop stopColor="hsl(var(--foreground-default))" stopOpacity="0" />
+ <stop offset="0.489999" stopColor="hsl(var(--foreground-muted))" stopOpacity="0.84" />
+ <stop offset="1" stopColor="hsl(var(--background-default))" stopOpacity="0" />
</radialGradient>
<radialGradient
id="paint3_radial_4353_100693"
@@ -508,17 +479,9 @@ const CustomersVisual = () => {
gradientUnits="userSpaceOnUse"
gradientTransform="translate(861.752 133.22) rotate(-90) scale(115.815 675.283)"
>
- <stop stopColor={resolvedTheme === 'dark' ? '#161616' : '#F2F4F6'} stopOpacity="0" />
- <stop
- offset="0.592292"
- stopColor={resolvedTheme === 'dark' ? '#414141' : '#5F5F5F'}
- stopOpacity="0.84"
- />
- <stop
- offset="1"
- stopColor={resolvedTheme === 'dark' ? '#171717' : '#F2F4F6'}
- stopOpacity="0"
- />
+ <stop stopColor="hsl(var(--foreground-default))" stopOpacity="0" />
+ <stop offset="0.592292" stopColor="hsl(var(--foreground-muted))" stopOpacity="0.84" />
+ <stop offset="1" stopColor="hsl(var(--background-default))" stopOpacity="0" />
</radialGradient>
<radialGradient
id="paint4_radial_4353_100693"
@@ -528,17 +491,9 @@ const CustomersVisual = () => {
gradientUnits="userSpaceOnUse"
gradientTransform="translate(862.511 138.502) rotate(105.433) scale(25.8224 489.043)"
>
- <stop stopColor={resolvedTheme === 'dark' ? '#161616' : '#F2F4F6'} stopOpacity="0" />
- <stop
- offset="0.489999"
- stopColor={resolvedTheme === 'dark' ? '#414141' : '#A3A3A3'}
- stopOpacity="0.84"
- />
- <stop
- offset="1"
- stopColor={resolvedTheme === 'dark' ? '#171717' : '#F2F4F6'}
- stopOpacity="0"
- />
+ <stop stopColor="hsl(var(--foreground-default))" stopOpacity="0" />
+ <stop offset="0.489999" stopColor="hsl(var(--foreground-light))" stopOpacity="0.84" />
+ <stop offset="1" stopColor="hsl(var(--background-default))" stopOpacity="0" />
</radialGradient>
<radialGradient
id="paint5_radial_4353_100693"
@@ -548,8 +503,8 @@ const CustomersVisual = () => {
gradientUnits="userSpaceOnUse"
gradientTransform="translate(862.32 54.7715) rotate(90) scale(193.44 193.44)"
>
- <stop stopColor={resolvedTheme === 'dark' ? '#161616' : '#ffffff'} />
- <stop offset="1" stopColor={resolvedTheme === 'dark' ? '#161616' : '#F1F3F500'} />
+ <stop stopColor="hsl(var(--background-default))" />
+ <stop offset="1" stopColor="hsl(var(--background-alternative))" />
</radialGradient>
<m.linearGradient
animate={{
@@ -568,11 +523,7 @@ const CustomersVisual = () => {
gradientUnits="userSpaceOnUse"
>
<stop stopColor="transparent" stopOpacity="0" />
- <stop
- offset="0.5"
- stopColor={resolvedTheme === 'dark' ? '#60e7aa' : '#096e40'}
- stopOpacity="0.6"
- />
+ <stop offset="0.5" stopColor="hsl(var(--brand-default))" stopOpacity="0.6" />
<stop offset="1" stopColor="transparent" stopOpacity="0" />
</m.linearGradient>
<linearGradient
@@ -583,8 +534,8 @@ const CustomersVisual = () => {
y2="193.79"
gradientUnits="userSpaceOnUse"
>
- <stop stopColor="#3DCB8C" />
- <stop offset="1" stopColor={resolvedTheme === 'dark' ? '#171717' : '#F1F3F5'} />
+ <stop stopColor="hsl(var(--brand-default))" />
+ <stop offset="1" stopColor="hsl(var(--background-alternative))" />
</linearGradient>
<linearGradient
id="paint7_linear_4353_100693"
@@ -596,11 +547,11 @@ const CustomersVisual = () => {
>
<stop
offset="0.331593"
- stopColor={resolvedTheme === 'dark' ? '#151515' : '#EAE8E9'}
+ stopColor="hsl(var(--background-alternative))"
stopOpacity="0"
/>
- <stop offset="0.594681" stopColor={resolvedTheme === 'dark' ? '#A3A3A3' : '#636363'} />
- <stop offset="1" stopColor={resolvedTheme === 'dark' ? '#171717' : '#F2F4F6'} />
+ <stop offset="0.594681" stopColor="hsl(var(--foreground-lighter))" />
+ <stop offset="1" stopColor="hsl(var(--background-default))" />
</linearGradient>
<linearGradient
id="paint8_linear_4353_100693"
@@ -610,9 +561,9 @@ const CustomersVisual = () => {
y2="236.32"
gradientUnits="userSpaceOnUse"
>
- <stop offset="0.0114691" stopColor={resolvedTheme === 'dark' ? '#171717' : '#F1F3F5'} />
- <stop offset="0.540433" stopColor="#3DCB8C" />
- <stop offset="1" stopColor={resolvedTheme === 'dark' ? '#161616' : '#F1F3F5'} />
+ <stop offset="0.0114691" stopColor="hsl(var(--background-alternative))" />
+ <stop offset="0.540433" stopColor="hsl(var(--brand-default))" />
+ <stop offset="1" stopColor="hsl(var(--background-alternative))" />
</linearGradient>
<linearGradient
id="paint9_linear_4353_100693"
@@ -622,7 +573,7 @@ const CustomersVisual = () => {
y2="105.386"
gradientUnits="userSpaceOnUse"
>
- <stop stopColor="#3DCB8C" />
+ <stop stopColor="hsl(var(--brand-default))" />
<stop offset="1" stopColor="white" stopOpacity="0" />
</linearGradient>
<radialGradient
@@ -633,13 +584,9 @@ const CustomersVisual = () => {
gradientUnits="userSpaceOnUse"
gradientTransform="translate(864.407 138.314) rotate(90) scale(55.0818)"
>
- <stop stopColor={resolvedTheme === 'dark' ? '#343434' : '#C7C8C8'} stopOpacity="0" />
- <stop offset="0.522658" stopColor={resolvedTheme === 'dark' ? '#212121' : '#D3D3D3'} />
- <stop
- offset="1"
- stopColor={resolvedTheme === 'dark' ? '#232323' : '#CFD1D1'}
- stopOpacity="0"
- />
+ <stop stopColor="hsl(var(--foreground-lighter))" stopOpacity="0" />
+ <stop offset="0.522658" stopColor="hsl(var(--border-default))" />
+ <stop offset="1" stopColor="hsl(var(--background-overlay-default))" stopOpacity="0" />
</radialGradient>
<linearGradient
id="paint11_linear_4353_100693"
@@ -649,10 +596,10 @@ const CustomersVisual = () => {
y2="163.315"
gradientUnits="userSpaceOnUse"
>
- <stop stopColor={resolvedTheme === 'dark' ? '#E2E2E2' : '#B1AFAF'} />
+ <stop stopColor="hsl(var(--foreground-light))" />
<stop
offset="1"
- stopColor={resolvedTheme === 'dark' ? '#202020' : '#F2F2F2'}
+ stopColor="hsl(var(--background-overlay-default))"
stopOpacity="0.29"
/>
</linearGradient>
@@ -664,8 +611,8 @@ const CustomersVisual = () => {
y2="163.788"
gradientUnits="userSpaceOnUse"
>
- <stop stopColor={resolvedTheme === 'dark' ? 'white' : '#151515'} />
- <stop offset="1" stopColor="#4D4D4D" stopOpacity="0" />
+ <stop stopColor="hsl(var(--background-default))" />
+ <stop offset="1" stopColor="hsl(var(--foreground-light))" stopOpacity="0" />
</linearGradient>
<linearGradient
id="paint13_linear_4353_100693"
@@ -675,12 +622,8 @@ const CustomersVisual = () => {
y2="105.061"
gradientUnits="userSpaceOnUse"
>
- <stop stopColor={resolvedTheme === 'dark' ? '#BFBFBF' : '#333333'} />
- <stop
- offset="0.3125"
- stopColor={resolvedTheme === 'dark' ? '#232323' : 'white'}
- stopOpacity="0"
- />
+ <stop stopColor="hsl(var(--foreground-light))" />
+ <stop offset="0.3125" stopColor="hsl(var(--foreground-lighter))" stopOpacity="0" />
</linearGradient>
<linearGradient
id="paint14_linear_4353_100693"
@@ -690,12 +633,8 @@ const CustomersVisual = () => {
y2="105.061"
gradientUnits="userSpaceOnUse"
>
- <stop stopColor={resolvedTheme === 'dark' ? '#BFBFBF' : '#333333'} />
- <stop
- offset="0.3125"
- stopColor={resolvedTheme === 'dark' ? '#232323' : 'white'}
- stopOpacity="0"
- />
+ <stop stopColor="hsl(var(--foreground-light))" />
+ <stop offset="0.3125" stopColor="hsl(var(--foreground-lighter))" stopOpacity="0" />
</linearGradient>
<linearGradient
id="paint15_linear_4353_100693"
@@ -705,12 +644,8 @@ const CustomersVisual = () => {
y2="105.061"
gradientUnits="userSpaceOnUse"
>
- <stop stopColor={resolvedTheme === 'dark' ? '#BFBFBF' : '#333333'} />
- <stop
- offset="0.3125"
- stopColor={resolvedTheme === 'dark' ? '#232323' : 'white'}
- stopOpacity="0"
- />
+ <stop stopColor="hsl(var(--foreground-light))" />
+ <stop offset="0.3125" stopColor="hsl(var(--foreground-lighter))" stopOpacity="0" />
</linearGradient>
<linearGradient
id="paint16_linear_4353_100693"
@@ -720,12 +655,8 @@ const CustomersVisual = () => {
y2="105.061"
gradientUnits="userSpaceOnUse"
>
- <stop stopColor={resolvedTheme === 'dark' ? '#BFBFBF' : '#333333'} />
- <stop
- offset="0.3125"
- stopColor={resolvedTheme === 'dark' ? '#232323' : 'white'}
- stopOpacity="0"
- />
+ <stop stopColor="hsl(var(--foreground-light))" />
+ <stop offset="0.3125" stopColor="hsl(var(--foreground-lighter))" stopOpacity="0" />
</linearGradient>
<linearGradient
id="paint17_linear_4353_100693"
@@ -735,12 +666,8 @@ const CustomersVisual = () => {
y2="105.061"
gradientUnits="userSpaceOnUse"
>
- <stop stopColor={resolvedTheme === 'dark' ? '#BFBFBF' : '#A4A4A4'} />
- <stop
- offset="0.3125"
- stopColor={resolvedTheme === 'dark' ? '#232323' : 'white'}
- stopOpacity="0"
- />
+ <stop stopColor="hsl(var(--foreground-lighter))" />
+ <stop offset="0.3125" stopColor="hsl(var(--foreground-lighter))" stopOpacity="0" />
</linearGradient>
<linearGradient
id="paint18_linear_4353_100693"
@@ -750,12 +677,8 @@ const CustomersVisual = () => {
y2="105.061"
gradientUnits="userSpaceOnUse"
>
- <stop stopColor={resolvedTheme === 'dark' ? '#BFBFBF' : '#A4A4A4'} />
- <stop
- offset="0.3125"
- stopColor={resolvedTheme === 'dark' ? '#232323' : 'white'}
- stopOpacity="0"
- />
+ <stop stopColor="hsl(var(--foreground-lighter))" />
+ <stop offset="0.3125" stopColor="hsl(var(--foreground-lighter))" stopOpacity="0" />
</linearGradient>
<linearGradient
id="paint19_linear_4353_100693"
@@ -765,12 +688,8 @@ const CustomersVisual = () => {
y2="105.061"
gradientUnits="userSpaceOnUse"
>
- <stop stopColor={resolvedTheme === 'dark' ? '#BFBFBF' : '#A4A4A4'} />
- <stop
- offset="0.3125"
- stopColor={resolvedTheme === 'dark' ? '#232323' : 'white'}
- stopOpacity="0"
- />
+ <stop stopColor="hsl(var(--foreground-lighter))" />
+ <stop offset="0.3125" stopColor="hsl(var(--foreground-lighter))" stopOpacity="0" />
</linearGradient>
<linearGradient
id="paint20_linear_4353_100693"
@@ -780,12 +699,8 @@ const CustomersVisual = () => {
y2="105.061"
gradientUnits="userSpaceOnUse"
>
- <stop stopColor={resolvedTheme === 'dark' ? '#BFBFBF' : '#A4A4A4'} />
- <stop
- offset="0.3125"
- stopColor={resolvedTheme === 'dark' ? '#232323' : 'white'}
- stopOpacity="0"
- />
+ <stop stopColor="hsl(var(--foreground-lighter))" />
+ <stop offset="0.3125" stopColor="hsl(var(--foreground-lighter))" stopOpacity="0" />
</linearGradient>
<linearGradient
id="paint21_linear_4353_100693"
@@ -795,12 +710,8 @@ const CustomersVisual = () => {
y2="105.061"
gradientUnits="userSpaceOnUse"
>
- <stop stopColor={resolvedTheme === 'dark' ? '#00FF8E' : '#727272'} />
- <stop
- offset="0.15625"
- stopColor={resolvedTheme === 'dark' ? '#232323' : 'white'}
- stopOpacity="0"
- />
+ <stop stopColor="hsl(var(--brand-default))" />
+ <stop offset="0.15625" stopColor="hsl(var(--foreground-lighter))" stopOpacity="0" />
</linearGradient>
<linearGradient
id="paint22_linear_4353_100693"
@@ -810,12 +721,8 @@ const CustomersVisual = () => {
y2="105.061"
gradientUnits="userSpaceOnUse"
>
- <stop stopColor={resolvedTheme === 'dark' ? 'white' : '#757575'} />
- <stop
- offset="0.15625"
- stopColor={resolvedTheme === 'dark' ? '#232323' : 'white'}
- stopOpacity="0"
- />
+ <stop stopColor="hsl(var(--foreground-lighter))" />
+ <stop offset="0.15625" stopColor="hsl(var(--foreground-lighter))" stopOpacity="0" />
</linearGradient>
<linearGradient
id="paint23_linear_4353_100693"
@@ -825,12 +732,8 @@ const CustomersVisual = () => {
y2="105.061"
gradientUnits="userSpaceOnUse"
>
- <stop stopColor={resolvedTheme === 'dark' ? 'white' : '#757575'} />
- <stop
- offset="0.15625"
- stopColor={resolvedTheme === 'dark' ? '#232323' : 'white'}
- stopOpacity="0"
- />
+ <stop stopColor="hsl(var(--foreground-lighter))" />
+ <stop offset="0.15625" stopColor="hsl(var(--foreground-lighter))" stopOpacity="0" />
</linearGradient>
<linearGradient
id="paint24_linear_4353_100693"
@@ -840,12 +743,8 @@ const CustomersVisual = () => {
y2="105.061"
gradientUnits="userSpaceOnUse"
>
- <stop stopColor={resolvedTheme === 'dark' ? 'white' : '#757575'} />
- <stop
- offset="0.15625"
- stopColor={resolvedTheme === 'dark' ? '#232323' : 'white'}
- stopOpacity="0"
- />
+ <stop stopColor="hsl(var(--foreground-lighter))" />
+ <stop offset="0.15625" stopColor="hsl(var(--foreground-lighter))" stopOpacity="0" />
</linearGradient>
<linearGradient
id="paint25_linear_4353_100693"
@@ -855,12 +754,8 @@ const CustomersVisual = () => {
y2="94.3999"
gradientUnits="userSpaceOnUse"
>
- <stop stopColor={resolvedTheme === 'dark' ? '#49FFAA' : '#0c0c0c'} />
- <stop
- offset="1"
- stopColor={resolvedTheme === 'dark' ? '#49FFAA' : '#002313'}
- stopOpacity="1"
- />
+ <stop stopColor="hsl(var(--brand-default))" />
+ <stop offset="1" stopColor="hsl(var(--brand-default))" stopOpacity="1" />
</linearGradient>
<linearGradient
id="paint26_linear_4353_100693"
@@ -870,12 +765,8 @@ const CustomersVisual = () => {
y2="203.949"
gradientUnits="userSpaceOnUse"
>
- <stop stopColor={resolvedTheme === 'dark' ? '#49FFAA' : '#3D4943'} />
- <stop
- offset="1"
- stopColor={resolvedTheme === 'dark' ? '#49FFAA' : '#002313'}
- stopOpacity="1"
- />
+ <stop stopColor="hsl(var(--brand-500))" />
+ <stop offset="1" stopColor="hsl(var(--brand-default))" stopOpacity="1" />
</linearGradient>
<linearGradient
id="paint27_linear_4353_100693"
@@ -885,12 +776,8 @@ const CustomersVisual = () => {
y2="185.046"
gradientUnits="userSpaceOnUse"
>
- <stop stopColor={resolvedTheme === 'dark' ? '#49FFAA' : '#1a1a1a'} />
- <stop
- offset="1"
- stopColor={resolvedTheme === 'dark' ? '#49FFAA' : '#002313'}
- stopOpacity="1"
- />
+ <stop stopColor="hsl(var(--brand-500))" />
+ <stop offset="1" stopColor="hsl(var(--brand-default))" stopOpacity="1" />
</linearGradient>
<linearGradient
id="paint28_linear_4353_100693"
@@ -900,12 +787,8 @@ const CustomersVisual = () => {
y2="237.781"
gradientUnits="userSpaceOnUse"
>
- <stop stopColor={resolvedTheme === 'dark' ? '#49FFAA' : '#3D4943'} />
- <stop
- offset="1"
- stopColor={resolvedTheme === 'dark' ? '#49FFAA' : '#002313'}
- stopOpacity="1"
- />
+ <stop stopColor="hsl(var(--brand-500))" />
+ <stop offset="1" stopColor="hsl(var(--brand-default))" stopOpacity="1" />
</linearGradient>
<linearGradient
id="paint29_linear_4353_100693"
@@ -915,12 +798,8 @@ const CustomersVisual = () => {
y2="74.8884"
gradientUnits="userSpaceOnUse"
>
- <stop stopColor={resolvedTheme === 'dark' ? '#49FFAA' : '#3D4943'} />
- <stop
- offset="1"
- stopColor={resolvedTheme === 'dark' ? '#49FFAA' : '#002313'}
- stopOpacity="1"
- />
+ <stop stopColor="hsl(var(--brand-500))" />
+ <stop offset="1" stopColor="hsl(var(--brand-default))" stopOpacity="1" />
</linearGradient>
</defs>
</m.svg>
diff --git a/apps/www/components/Quote.tsx b/apps/www/components/Quote.tsx
index 21381b3a3c7..79f092ac585 100644
--- a/apps/www/components/Quote.tsx
+++ b/apps/www/components/Quote.tsx
@@ -13,7 +13,7 @@ export default function Quote(props: Props) {
return (
<figure className="quote-figure p-0 mt-8">
<div className="relative flex flex-col gap-5 pl-8 py-2">
- <p className="text-light text-lg border-none" style={{ margin: 0, padding: 0 }}>
+ <p className="text-foreground-light text-lg border-none" style={{ margin: 0, padding: 0 }}>
{children}
</p>
{caption && img && (
diff --git a/apps/www/components/ScrollableCodeBlock.tsx b/apps/www/components/ScrollableCodeBlock.tsx
index f5d18e972a6..efd7c447613 100644
--- a/apps/www/components/ScrollableCodeBlock.tsx
+++ b/apps/www/components/ScrollableCodeBlock.tsx
@@ -37,17 +37,17 @@ const ScrollableCodeBlock = ({
return (
<div>
{showToolbar && (
- <div className="bg-scale-1200 dark:bg-scale-200 border-scale-1200 dark:border-scale-400 flex h-7 w-full items-center gap-1.5 rounded-t-lg border border-b-0 px-4">
+ <div className="bg-surface-100 border-overlay flex h-7 w-full items-center gap-1.5 rounded-t-lg border border-b-0 px-4">
<div className="flex items-center gap-1.5">
- <div className="bg-scale-1100 dark:bg-scale-400 h-2.5 w-2.5 rounded-full"></div>
- <div className="bg-scale-1100 dark:bg-scale-400 h-2.5 w-2.5 rounded-full"></div>
- <div className="bg-scale-1100 dark:bg-scale-400 h-2.5 w-2.5 rounded-full"></div>
+ <div className="bg-surface-300 h-2.5 w-2.5 rounded-full"></div>
+ <div className="bg-surface-300 h-2.5 w-2.5 rounded-full"></div>
+ <div className="bg-surface-300 h-2.5 w-2.5 rounded-full"></div>
</div>
</div>
)}
<div
- className="border-scale-1100 dark:border-scale-400 overflow-hidden rounded-b-lg border"
+ className="border-overlay overflow-hidden rounded-b-lg border"
style={{ maxHeight: MAX_HEIGHT, transform: 'translateZ(0)' }}
>
<div
diff --git a/apps/www/components/Sections/CommunitySlider.tsx b/apps/www/components/Sections/CommunitySlider.tsx
index bbb52500d93..afdec61a768 100644
--- a/apps/www/components/Sections/CommunitySlider.tsx
+++ b/apps/www/components/Sections/CommunitySlider.tsx
@@ -103,18 +103,18 @@ const CommunitySlider = () => {
}, [ref.current, swiperInstance?.autoplay])
const Card = (card: CardInterface) => (
- <div className="dark:bg-scale-300 hover:border-scale-600 hover:dark:border-scale-700 border-scale-300 dark:border-scale-400 rounded-2xl border bg-white p-6 drop-shadow-sm flex flex-col gap-4">
+ <div className="bg-surface-100 hover:border-strong border-overlay rounded-2xl border p-6 drop-shadow-sm flex flex-col gap-4">
<div className="flex items-center gap-2">
- <div className="h-10 w-10 overflow-hidden rounded-full border dark:border-gray-600">
+ <div className="h-10 w-10 overflow-hidden rounded-full border border-control">
<Image src={card.avatar!} layout="responsive" width="64" height="64" alt={card.author} />
</div>
<div>
<p className="text-foreground font-medium">{card.author}</p>
- <p className="text-muted text-sm">{card.role}</p>
+ <p className="text-foreground-muted text-sm">{card.role}</p>
</div>
</div>
- <p className="text-muted mt-2 text-base">{card.quote}</p>
+ <p className="text-foreground-muted mt-2 text-base">{card.quote}</p>
<div className="mt-3 pt-3 border-t">
<div className="relative h-10">
@@ -127,7 +127,7 @@ const CommunitySlider = () => {
/>
</div>
</div>
- <p className="text-muted my-3 text-base">{card.abstract}</p>
+ <p className="text-foreground-muted my-3 text-base">{card.abstract}</p>
{card.url && (
<div className="text-brand block cursor-pointer text-sm">Read Customer Story</div>
@@ -136,7 +136,7 @@ const CommunitySlider = () => {
)
return (
- <div className="py-16 sm:py-18 md:py-24 bg-scale-100">
+ <div className="py-16 sm:py-18 md:py-24 bg-alternative">
<div className="relative h-[300px] w-screen mx-auto md:w-full -mb-32 z-0">
<Image
src="/images/product/vector/community/vector-community.svg"
diff --git a/apps/www/components/Sections/CustomerQuotesSection.tsx b/apps/www/components/Sections/CustomerQuotesSection.tsx
index a0af2445eb1..c7959cdb97f 100644
--- a/apps/www/components/Sections/CustomerQuotesSection.tsx
+++ b/apps/www/components/Sections/CustomerQuotesSection.tsx
@@ -67,12 +67,12 @@ const CustomerQuotesSection = (props: Props) => {
</div>
</div>
<div className="border-t pt-4">
- <blockquote className="text-light text-base">{customer.quote}</blockquote>
+ <blockquote className="text-foreground-light text-base">{customer.quote}</blockquote>
</div>
</div>
<div>
- <p className="text-muted mt-4">
+ <p className="text-foreground-lighter mt-4">
{customer.author}, {customer.role}
</p>
{customer.url && (
diff --git a/apps/www/components/Sections/EnterpriseCta.tsx b/apps/www/components/Sections/EnterpriseCta.tsx
index f0bbe2eedae..3ea3c7dd201 100644
--- a/apps/www/components/Sections/EnterpriseCta.tsx
+++ b/apps/www/components/Sections/EnterpriseCta.tsx
@@ -10,7 +10,7 @@ const EnterpriseCta = () => {
<h2 className="heading-gradient text-2xl sm:text-3xl xl:text-4xl">
Supabase Vector for Enterprise
</h2>
- <p className="mx-auto text-muted w-full">
+ <p className="mx-auto text-foreground-lighter w-full">
Talk to one of our experts about scaling Supabase Vector{' '}
<br className="hidden md:block" />
and managing embeddings at scale.
diff --git a/apps/www/components/Sections/FeaturesSection.tsx b/apps/www/components/Sections/FeaturesSection.tsx
index 2ea7ab5c071..c3db626f30b 100644
--- a/apps/www/components/Sections/FeaturesSection.tsx
+++ b/apps/www/components/Sections/FeaturesSection.tsx
@@ -83,7 +83,7 @@ const Feature = ({
>
<path
d={feature.icon}
- stroke="var(--colors-scale12)"
+ stroke="hsl(var(--foreground-default))"
strokeMiterlimit="10"
strokeLinejoin="round"
strokeLinecap="round"
@@ -94,7 +94,9 @@ const Feature = ({
</div>
<div className="text-sm lg:text-base">
<h2 className="text-base">{feature.title}</h2>
- <ReactMarkdown className="prose pt-1 text-sm text-muted">{feature.text}</ReactMarkdown>
+ <ReactMarkdown className="prose pt-1 text-sm text-foreground-muted">
+ {feature.text}
+ </ReactMarkdown>
</div>
</m.div>
)
diff --git a/apps/www/components/Sections/FunctionsUsecases.tsx b/apps/www/components/Sections/FunctionsUsecases.tsx
index e3f2885e197..1313daca921 100644
--- a/apps/www/components/Sections/FunctionsUsecases.tsx
+++ b/apps/www/components/Sections/FunctionsUsecases.tsx
@@ -46,7 +46,7 @@ function FunctionsUsecases(props: Props) {
key={`featureHighlighted-${i}`}
className={
'bg-background hover:bg-surface-100 hover:border group rounded-md border px-6 py-4 text-left transition-all' +
- (active ? ' dark:bg-scale-400 border-foreground-lighter bg-white' : '')
+ (active ? ' bg-surface-200 border-foreground-lighter' : '')
}
// onClick={() => setCurrentSelection(feat.highlightLines)}
onClick={() => handleApiSwiperNavChange(i)}
@@ -54,7 +54,9 @@ function FunctionsUsecases(props: Props) {
<div
className={
'transition-colors ' +
- (active ? ' text-foreground' : ' text-light group-hover:text-foreground')
+ (active
+ ? ' text-foreground'
+ : ' text-foreground-light group-hover:text-foreground')
}
>
{feat.title}
@@ -62,7 +64,9 @@ function FunctionsUsecases(props: Props) {
<div
className={
'text-sm transition-colors ' +
- (active ? ' text-light' : ' text-light group-hover:text-light ')
+ (active
+ ? ' text-foreground-light'
+ : ' text-foreground-light group-hover:text-foreground-light ')
}
>
{/*
diff --git a/apps/www/components/Sections/HighlightCards.tsx b/apps/www/components/Sections/HighlightCards.tsx
index fe93b2a6268..59b9413f62f 100644
--- a/apps/www/components/Sections/HighlightCards.tsx
+++ b/apps/www/components/Sections/HighlightCards.tsx
@@ -1,9 +1,10 @@
import React, { useRef, useState } from 'react'
import { LazyMotion, domAnimation, m, useInView } from 'framer-motion'
-import SectionContainer from '~/components/Layouts/SectionContainer'
-import InteractiveShimmerCard from '~/components/InteractiveShimmerCard'
import { INITIAL_BOTTOM, getAnimation } from '~/lib/animations'
+import Panel from '~/components/Panel'
+import SectionContainer from '~/components/Layouts/SectionContainer'
+
interface Highlight {
image?: React.ReactNode
svg?: React.ReactNode
@@ -43,12 +44,12 @@ const HighlightCard = ({ highlight, index }: { highlight: Highlight; index: numb
onMouseLeave={() => setIsHovered(false)}
animate={isInView ? animate : initial}
>
- <InteractiveShimmerCard hasShimmer innerClassName="flex flex-col !bg-scale-100">
+ <Panel hasShimmer innerClassName="flex flex-col !bg-alternative">
<div className="relative w-full aspect-[1.35/1] mb-4">
<div
className="absolute inset-0 w-full h-full z-10"
style={{
- background: `radial-gradient(100% 50% at 50% 50%, transparent, var(--colors-scale1))`,
+ background: `radial-gradient(100% 50% at 50% 50%, transparent, hsl(var(--background-alternative)))`,
}}
/>
{highlight.image && <Img isHovered={isHovered} />}
@@ -58,7 +59,7 @@ const HighlightCard = ({ highlight, index }: { highlight: Highlight; index: numb
<h3 className="text-lg text-foreground mb-2">{highlight.title}</h3>
<p className="text-muted">{highlight.paragraph}</p>
</div>
- </InteractiveShimmerCard>
+ </Panel>
</m.div>
)
}
diff --git a/apps/www/components/Sections/ProductHeaderCentered.tsx b/apps/www/components/Sections/ProductHeaderCentered.tsx
index 492ea19c678..38904078517 100644
--- a/apps/www/components/Sections/ProductHeaderCentered.tsx
+++ b/apps/www/components/Sections/ProductHeaderCentered.tsx
@@ -77,7 +77,7 @@ const ProductHeaderCentered = (props: Types) => (
<h1 className="h1 text-3xl md:text-4xl xl:!text-5xl tracking-[-1.5px]" key={`h1`}>
{props.h1}
</h1>
- <p className="p !text-light">{props.subheader}</p>
+ <p className="p !text-foreground-light">{props.subheader}</p>
</div>
<div className="w-full sm:w-auto flex flex-col items-stretch sm:flex-row pt-2 sm:pt-8 sm:items-center gap-2">
{props.cta && (
diff --git a/apps/www/components/Sections/ProductsCta.tsx b/apps/www/components/Sections/ProductsCta.tsx
index 0e464e0122d..8e5cfa0081d 100644
--- a/apps/www/components/Sections/ProductsCta.tsx
+++ b/apps/www/components/Sections/ProductsCta.tsx
@@ -16,7 +16,7 @@ function ProductsCta(props: Props) {
<h2 className="heading-gradient text-2xl sm:text-3xl xl:text-4xl">
Pick your SupaPower(s)
</h2>
- <p className="mx-auto text-muted">
+ <p className="mx-auto text-foreground-lighter">
Supabase products are built to work both in isolation and seamlessly together
<br className="hidden md:block" /> to ensure the most flexible and scalable developer
experience.
diff --git a/apps/www/components/Sections/TimedTabsSection.tsx b/apps/www/components/Sections/TimedTabsSection.tsx
index c3a57baad5f..04b0b931a9f 100644
--- a/apps/www/components/Sections/TimedTabsSection.tsx
+++ b/apps/www/components/Sections/TimedTabsSection.tsx
@@ -20,12 +20,12 @@ const Tab = ({ isActive, label, paragraph, onClick, progress, intervalDuration }
<button
onClick={onClick}
className={`text-left text-lg flex flex-col group gap-1 transition-all ${
- isActive ? 'flex-[2] text-foreground' : 'flex-[1] text-light'
+ isActive ? 'flex-[2] text-foreground' : 'flex-[1] text-foreground-light'
}`}
aria-selected={isActive}
role="tab"
>
- <div className="relative w-full h-[2px] bg-scale-700 opacity-80 group-hover:opacity-100 rounded-full overflow-hidden">
+ <div className="relative w-full h-[2px] bg-border-strong opacity-80 group-hover:opacity-100 rounded-full overflow-hidden">
{isActive && (
<motion.div
className={[
@@ -43,7 +43,7 @@ const Tab = ({ isActive, label, paragraph, onClick, progress, intervalDuration }
<motion.p
initial={{ opacity: 0 }}
animate={{ opacity: 1, transition: { delay: 0.2 } }}
- className="hidden md:block mt-1 text-muted text-sm"
+ className="hidden md:block mt-1 text-foreground-muted text-sm"
>
{paragraph}
</motion.p>
@@ -133,7 +133,7 @@ const TimedTabsSection = ({
<h2 className="text-3xl xl:text-4xl max-w-[280px] sm:max-w-xs xl:max-w-[360px] tracking-[-1px]">
{title}
</h2>
- <p className="text-muted mb-4 max-w-sm">{paragraph}</p>
+ <p className="text-foreground-muted mb-4 max-w-sm">{paragraph}</p>
{cta && (
<Button asChild type="default" size="small" icon={<IconArrowUpRight />}>
<Link href={cta.link} className="">
@@ -193,7 +193,7 @@ const TimedTabsSection = ({
initial={{ opacity: 0 }}
animate={{ opacity: 1, transition: { duration: 0.1, delay: 0.2 } }}
exit={{ opacity: 0, transition: { duration: 0.05 } }}
- className="text-muted text-sm"
+ className="text-foreground-muted text-sm"
>
{tabs[activeTab]?.paragraph}
</motion.p>
@@ -208,7 +208,7 @@ const OpenInColab = ({ colabUrl, className }: { colabUrl: string; className?: st
href={colabUrl}
target="_blank"
className={[
- 'flex items-center z-10 h-10 bg-[#fff] hover:bg-[#fff] dark:bg-scale-300 dark:hover:bg-scale-400 hover:text-muted text-sm text-muted shadow-lg hover:shadow-md rounded-full py-1 px-3 gap-2',
+ 'flex items-center z-10 h-10 bg-surface-100 hover:bg-surface-200 hover:text-foreground-muted text-sm text-foreground-muted shadow-lg hover:shadow-md rounded-full py-1 px-3 gap-2',
className,
].join(' ')}
>
diff --git a/apps/www/components/Sections/TwitterSocialProof.tsx b/apps/www/components/Sections/TwitterSocialProof.tsx
index c37d9f68e24..0fe39341eef 100644
--- a/apps/www/components/Sections/TwitterSocialProof.tsx
+++ b/apps/www/components/Sections/TwitterSocialProof.tsx
@@ -54,7 +54,7 @@ function TwitterSocialProof() {
>
{showButton && (
<div
- className={`absolute bottom-0 left-0 z-10 w-full h-[25%] bg-gradient-to-t from-[#1c1c1c] via-[#1c1c1c]`}
+ className={`absolute bottom-0 left-0 z-10 w-full h-[25%] bg-gradient-to-t from-background via-background`}
/>
)}
{tweets.map((tweet: any, i: number) => (
diff --git a/apps/www/components/Sections/UseCasesSection.tsx b/apps/www/components/Sections/UseCasesSection.tsx
index b791a729c14..f9072dea817 100644
--- a/apps/www/components/Sections/UseCasesSection.tsx
+++ b/apps/www/components/Sections/UseCasesSection.tsx
@@ -1,11 +1,12 @@
import Link from 'next/link'
import React, { ReactNode, useRef } from 'react'
import { Button, IconArrowUpRight } from 'ui'
-import SectionContainer from '~/components/Layouts/SectionContainer'
-import InteractiveShimmerCard from '../InteractiveShimmerCard'
import { LazyMotion, domAnimation, m, useInView } from 'framer-motion'
import { INITIAL_BOTTOM, getAnimation } from '~/lib/animations'
+import SectionContainer from '~/components/Layouts/SectionContainer'
+import Panel from '~/components/Panel'
+
interface UseCase {
img?: string
title: string
@@ -62,10 +63,7 @@ const UseCase = ({
return (
<m.div initial={initial} animate={isInView ? animate : initial} className="flex">
- <InteractiveShimmerCard
- outerClassName="w-full"
- innerClassName="p-4 md:p-8 h-full !bg-scale-200"
- >
+ <Panel outerClassName="w-full" innerClassName="p-4 md:p-8 h-full !bg-background">
<div className="h-full flex flex-col gap-4 items-start justify-between">
<div className="prose">
<div className="flex items-center gap-2">
@@ -76,11 +74,11 @@ const UseCase = ({
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
- <path d={useCase.icon} fillRule="evenodd" fill="var(--colors-scale11)" />
+ <path d={useCase.icon} fillRule="evenodd" fill="hsl(var(--foreground-light))" />
</svg>
<h4 className="text-base sm:text-lg m-0">{useCase.title}</h4>
</div>
- <p className="text-sm text-muted mt-2">{useCase.description}</p>
+ <p className="text-sm text-foreground-lighter mt-2">{useCase.description}</p>
</div>
{useCase.cta &&
(useCase.cta.isDisabled ? (
@@ -95,7 +93,7 @@ const UseCase = ({
</Button>
))}
</div>
- </InteractiveShimmerCard>
+ </Panel>
</m.div>
)
}
diff --git a/apps/www/components/TextLink.tsx b/apps/www/components/TextLink.tsx
index ed636994f3f..fee89e3b904 100644
--- a/apps/www/components/TextLink.tsx
+++ b/apps/www/components/TextLink.tsx
@@ -5,7 +5,7 @@ function TextLink({ url = '', label, ...props }: any) {
return (
<Link
href={url}
- className="text-light hover:text-foreground mt-3 block cursor-pointer text-sm"
+ className="text-foreground-light hover:text-foreground mt-3 block cursor-pointer text-sm"
{...props}
>
<div className="group flex items-center gap-1">
diff --git a/apps/www/components/UI/FlyOut.tsx b/apps/www/components/UI/FlyOut.tsx
index ab9756cc1d0..e27ead32edb 100644
--- a/apps/www/components/UI/FlyOut.tsx
+++ b/apps/www/components/UI/FlyOut.tsx
@@ -36,13 +36,13 @@ const FlyOut = (props: Props) => {
<>
<div className="absolute inset-x-0 transform shadow-lg ">
<div
- className="dark:border-scale-500 absolute inset-0 flex border-b sm:flex-col lg:flex-row"
+ className="border-default absolute inset-0 flex border-b sm:flex-col lg:flex-row"
aria-hidden="true"
>
- <div className="dark:bg-scale-200 dark:border-scale-400 border-r bg-white sm:h-1/2 sm:w-full lg:h-full lg:w-1/2" />
+ <div className="bg-background border-muted border-r sm:h-1/2 sm:w-full lg:h-full lg:w-1/2" />
<div
className={`${
- singleBgColor ? 'dark:bg-scale-200 bg-white' : 'dark:bg-scale-200 bg-gray-50'
+ singleBgColor ? 'bg-background' : 'bg-surface-100'
} sm:h-1/2 sm:w-full lg:h-full lg:w-1/2`}
/>
</div>
diff --git a/apps/www/components/UI/SectionHeader.tsx b/apps/www/components/UI/SectionHeader.tsx
index bab4719cc88..e28cd3a06ae 100644
--- a/apps/www/components/UI/SectionHeader.tsx
+++ b/apps/www/components/UI/SectionHeader.tsx
@@ -7,7 +7,9 @@ const SectionHeader = (props: any) => {
</span>
<h3 className="h2">
<span>{props.title}</span>
- {props.title_alt && <span className="text-light inline">{props.title_alt}</span>}
+ {props.title_alt && (
+ <span className="text-foreground-light inline">{props.title_alt}</span>
+ )}
</h3>
</div>
{props.paragraph && <p className="p max-w-3xl text-lg sm:mt-4">{props.paragraph}</p>}
diff --git a/apps/www/components/ZoomableImg/ZoomContent.tsx b/apps/www/components/ZoomableImg/ZoomContent.tsx
index 8ba8a64ef18..2d037b10724 100644
--- a/apps/www/components/ZoomableImg/ZoomContent.tsx
+++ b/apps/www/components/ZoomableImg/ZoomContent.tsx
@@ -7,8 +7,7 @@ any) => {
className={`
[&_img]:rounded-md
[&_img]:border
- [&_img]:bg-scale-100
- [&_img]:dark:bg-scale-200
+ [&_img]:bg-surface-100
`}
>
{img}
diff --git a/apps/www/data/home/content.tsx b/apps/www/data/home/content.tsx
index 1b8cc7d0ec6..74d132c34fa 100644
--- a/apps/www/data/home/content.tsx
+++ b/apps/www/data/home/content.tsx
@@ -5,7 +5,7 @@ export default {
heroSection: {
heading: (
<>
- <span className="block text-[#F4FFFA00] bg-clip-text bg-gradient-to-b from-scale-1200 to-scale-1200 dark:to-scale-1100">
+ <span className="block text-[#F4FFFA00] bg-clip-text bg-gradient-to-b from-foreground to-foreground-light">
Build in a weekend
</span>
<span className="text-transparent bg-clip-text bg-gradient-to-br from-[#3ECF8E] via-[#3ECF8E] to-[#3ecfb2] block md:ml-0">
diff --git a/apps/www/data/partners/index.tsx b/apps/www/data/partners/index.tsx
index bb5399763c8..47196fad55d 100644
--- a/apps/www/data/partners/index.tsx
+++ b/apps/www/data/partners/index.tsx
@@ -21,7 +21,7 @@ export default {
}}
>
<svg
- className="text-scale-100 h-8 w-8 flex-shrink-0"
+ className="text-background-alternative h-8 w-8 flex-shrink-0"
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
diff --git a/apps/www/data/support.tsx b/apps/www/data/support.tsx
index 091431cec97..14a408bf18d 100644
--- a/apps/www/data/support.tsx
+++ b/apps/www/data/support.tsx
@@ -62,8 +62,8 @@ const data = {
title: "Can't find what you're looking for?",
paragraph: (
<>
- <p className="text-light">The Supabase Support Team is ready to help.</p>
- <p className="text-lighter text-sm">
+ <p className="text-foreground-light">The Supabase Support Team is ready to help.</p>
+ <p className="text-foreground-lighter text-sm">
Response time for support tickets will vary depending on plan type and severity of the
issue.
</p>
@@ -81,7 +81,7 @@ const data = {
link: 'https://supabase.com/dashboard/support/new',
target: '_blank',
icon: <IconArrowUpRight />,
- className: '!text-light hover:!text-foreground',
+ className: '!text-foreground-light hover:!text-foreground',
type: 'text',
},
],
diff --git a/apps/www/layouts/comparison.tsx b/apps/www/layouts/comparison.tsx
index 789bcf382c2..d443500b807 100644
--- a/apps/www/layouts/comparison.tsx
+++ b/apps/www/layouts/comparison.tsx
@@ -38,7 +38,7 @@ const LayoutComparison = ({ components, props }: Props) => {
return (
<Link href={`${post.url}`} as={`${post.url}`}>
<div className={className}>
- <div className="border-scale-500 hover:bg-scale-100 dark:hover:bg-scale-300 cursor-pointer rounded border p-6 transition">
+ <div className="border-default hover:bg-surface-100 cursor-pointer rounded border p-6 transition">
<div className="space-y-4">
<div>
<p className="text-muted text-sm">{label}</p>
@@ -132,7 +132,9 @@ const LayoutComparison = ({ components, props }: Props) => {
<MDXRemote {...content} components={components} />
</div>
<div className="py-16">
- <div className="text-muted dark:text-lighter text-sm">Share this article</div>
+ <div className="text-muted dark:text-foreground-lighter text-sm">
+ Share this article
+ </div>
<div className="mt-4 flex items-center space-x-4">
<Link
href={`https://twitter.com/share?text=${props.blog.title}&url=https://supabase.com/blog/${props.blog.slug}`}
diff --git a/apps/www/lib/mdx/mdxComponents.tsx b/apps/www/lib/mdx/mdxComponents.tsx
index d0eeef66288..6f37ecd0c2f 100644
--- a/apps/www/lib/mdx/mdxComponents.tsx
+++ b/apps/www/lib/mdx/mdxComponents.tsx
@@ -43,7 +43,7 @@ const BlogCollapsible = ({ title, ...props }: { title: string }) => {
<CollapsibleTrigger_Shadcn_
className="
data-[state=open]:text
- hover:text-light
+ hover:text-foreground-light
flex items-center gap-3
[&>svg]:fill-current
[&>svg]:rotate-90
diff --git a/apps/www/pages/_app.tsx b/apps/www/pages/_app.tsx
index 876b6566996..78795e790e0 100644
--- a/apps/www/pages/_app.tsx
+++ b/apps/www/pages/_app.tsx
@@ -5,7 +5,7 @@ import '../../../packages/ui/build/css/themes/light.css'
import '../styles/index.css'
import { SessionContextProvider } from '@supabase/auth-helpers-react'
-import { AuthProvider, ThemeProvider, useTelemetryProps } from 'common'
+import { AuthProvider, ThemeProvider, useTelemetryProps, useThemeSandbox } from 'common'
import { API_URL, APP_NAME, DEFAULT_META_DESCRIPTION } from 'lib/constants'
import { DefaultSeo } from 'next-seo'
import { AppProps } from 'next/app'
@@ -22,6 +22,8 @@ export default function App({ Component, pageProps }: AppProps) {
const telemetryProps = useTelemetryProps()
const { consentValue, hasAcceptedConsent } = useConsent()
+ useThemeSandbox()
+
function handlePageTelemetry(route: string) {
return post(`${API_URL}/telemetry/page`, {
referrer: document.referrer,
diff --git a/apps/www/pages/alternatives/[slug].module.css b/apps/www/pages/alternatives/[slug].module.css
deleted file mode 100644
index f5f939a0445..00000000000
--- a/apps/www/pages/alternatives/[slug].module.css
+++ /dev/null
@@ -1,46 +0,0 @@
-/* .toc a {
- text-decoration: none !important;
- font-weight: 400 !important;
-}
-
-.toc > ul > li {
- padding-left: 0 !important;
-}
-
-.toc li {
- @apply text-sm !important;
- padding-left: 1rem !important;
-}
-
-.toc ul > li:before {
- content: '';
- position: absolute;
- background-color: none;
- border-radius: 50%;
- width: 0 !important;
- height: 0 !important;
- top: 0.6875em;
- left: 0.25em;
-}
-
-.header:hover svg,
-.header svg:hover {
- display: inline-block;
-}
-
-.article h1,
-.article h2,
-.article h3,
-.article h4,
-.article h5 {
- font-weight: 500 !important;
-}
-
-.article {
- @apply mb-16;
-}
-
-.article > div > pre {
- padding: 0;
- background: none;
-} */
diff --git a/apps/www/pages/auth/Auth.module.css b/apps/www/pages/auth/Auth.module.css
deleted file mode 100644
index 3dd7008e1bd..00000000000
--- a/apps/www/pages/auth/Auth.module.css
+++ /dev/null
@@ -1,7 +0,0 @@
-/* .github-icon svg {
- fill: currentColor;
-} */
-
-.github-icon {
- @apply text-white;
-}
diff --git a/apps/www/pages/beta.tsx b/apps/www/pages/beta.tsx
index 7d1fbb382b2..aa20138ab1c 100644
--- a/apps/www/pages/beta.tsx
+++ b/apps/www/pages/beta.tsx
@@ -179,7 +179,7 @@ const Introduction = () => {
</div>
<div className="col-span-12 mb-10 text-base">
- <p className="pb-2 border-b-2 border-dark-200 text-light dark:border-dark-400 w-60">
+ <p className="pb-2 border-b-2 border-dark-200 text-foreground-light dark:border-dark-400 w-60">
Alpha Program in Numbers
</p>
</div>
@@ -194,7 +194,7 @@ const Introduction = () => {
className="grid items-center grid-cols-8 col-span-6 gap-x-1 sm:col-span-4 sm:grid-cols-12 md:gap-x-0 xl:gap-x-6"
>
<div className="col-span-4 sm:col-span-4 md:col-span-3 xl:col-span-2">
- <div className="flex items-center justify-center w-12 h-12 rounded-md bg-scale-1200 dark:bg-white">
+ <div className="flex items-center justify-center w-12 h-12 rounded-md bg-foreground">
{stat.icon}
</div>
</div>
@@ -207,7 +207,7 @@ const Introduction = () => {
</p>
</div>
<div className="col-span-12 col-start-0 sm:col-span-9 sm:col-start-5 md:col-span-10 md:col-start-4 xl:col-start-3">
- <p className="text-xs text-lighter lg:text-base">{stat.name}</p>
+ <p className="text-xs text-foreground-lighter lg:text-base">{stat.name}</p>
</div>
</div>
))}
@@ -864,7 +864,7 @@ const ScalingOurTeam = () => (
)
const WhatsNext = () => (
- <div id="whatsNext" className="border-b-px bg-background dark:border-scale-600 border-gray-50">
+ <div id="whatsNext" className="border-b-px bg-background border-muted">
<div className="container grid grid-cols-12 px-8 py-20 mx-auto text-dark-400 dark:text-dark-300 gap-y-10 lg:px-28">
<SectionHeader sectionNumber={9} header="What's Next" />
@@ -990,7 +990,7 @@ const Beta = (props: Props) => {
/>
<Container>
<div className="sticky inset-0 z-50">
- <div className="flex items-center justify-between px-5 py-5 shadow-lg bg-scale-1200 dark:bg-scale-300 xl:px-20">
+ <div className="flex items-center justify-between px-5 py-5 shadow-lg bg-surface-100 xl:px-20">
<Link href="/">
<Image src={`${basePath}/images/logo-dark.png`} height={24} width={120} alt="" />
</Link>
diff --git a/apps/www/pages/blog.tsx b/apps/www/pages/blog.tsx
index 50f3639bd42..3a7a6e06226 100644
--- a/apps/www/pages/blog.tsx
+++ b/apps/www/pages/blog.tsx
@@ -126,7 +126,7 @@ function Blog(props: any) {
</div>
</div>
- <div className="border-scale-600 border-t">
+ <div className="border-default border-t">
<div className="container mx-auto mt-16 px-8 sm:px-16 xl:px-20">
<BlogFilters
posts={blogs}
diff --git a/apps/www/pages/blog/[slug].module.css b/apps/www/pages/blog/[slug].module.css
deleted file mode 100644
index f5f939a0445..00000000000
--- a/apps/www/pages/blog/[slug].module.css
+++ /dev/null
@@ -1,46 +0,0 @@
-/* .toc a {
- text-decoration: none !important;
- font-weight: 400 !important;
-}
-
-.toc > ul > li {
- padding-left: 0 !important;
-}
-
-.toc li {
- @apply text-sm !important;
- padding-left: 1rem !important;
-}
-
-.toc ul > li:before {
- content: '';
- position: absolute;
- background-color: none;
- border-radius: 50%;
- width: 0 !important;
- height: 0 !important;
- top: 0.6875em;
- left: 0.25em;
-}
-
-.header:hover svg,
-.header svg:hover {
- display: inline-block;
-}
-
-.article h1,
-.article h2,
-.article h3,
-.article h4,
-.article h5 {
- font-weight: 500 !important;
-}
-
-.article {
- @apply mb-16;
-}
-
-.article > div > pre {
- padding: 0;
- background: none;
-} */
diff --git a/apps/www/pages/blog/[slug].tsx b/apps/www/pages/blog/[slug].tsx
index 8a11d441dae..1dc97ef8621 100644
--- a/apps/www/pages/blog/[slug].tsx
+++ b/apps/www/pages/blog/[slug].tsx
@@ -139,10 +139,10 @@ function BlogPostPage(props: InferGetStaticPropsType<typeof getStaticProps>) {
return (
<Link href={`${post.path}`} as={`${post.path}`}>
<div className={className}>
- <div className="border-scale-500 hover:bg-scale-100 dark:hover:bg-scale-300 cursor-pointer rounded border p-6 transition">
+ <div className="hover:bg-control cursor-pointer rounded border p-6 transition">
<div className="space-y-4">
<div>
- <p className="text-light text-sm">{label}</p>
+ <p className="text-foreground-lighter text-sm">{label}</p>
</div>
<div>
<h4 className="text-foreground text-lg">{post.title}</h4>
@@ -242,7 +242,7 @@ function BlogPostPage(props: InferGetStaticPropsType<typeof getStaticProps>) {
<p>
<Link
href={'/blog'}
- className="text-light hover:text-foreground flex cursor-pointer items-center text-sm transition"
+ className="text-foreground-lighter hover:text-foreground flex cursor-pointer items-center text-sm transition"
>
<IconChevronLeft style={{ padding: 0 }} />
Back
@@ -286,7 +286,9 @@ function BlogPostPage(props: InferGetStaticPropsType<typeof getStaticProps>) {
<span className="text-foreground mb-0 text-sm">
{author.author}
</span>
- <span className="text-light mb-0 text-xs">{author.position}</span>
+ <span className="text-foreground-lighter mb-0 text-xs">
+ {author.position}
+ </span>
</div>
</div>
</Link>
@@ -330,7 +332,7 @@ function BlogPostPage(props: InferGetStaticPropsType<typeof getStaticProps>) {
</article>
{isLaunchWeek7 && <BlogLinks />}
<div className="block lg:hidden py-8">
- <div className="text-light dark:text-lighter text-sm">Share this article</div>
+ <div className="text-foreground-lighter text-sm">Share this article</div>
<ShareArticleActions title={props.blog.title} slug={props.blog.slug} />
</div>
<div className="grid gap-8 py-8 lg:grid-cols-1">
@@ -358,7 +360,7 @@ function BlogPostPage(props: InferGetStaticPropsType<typeof getStaticProps>) {
<div>
<div className="cursor-pointer">
<div className="flex gap-2">
- {/* <div className="text-light">
+ {/* <div className="text-foreground-lighter">
<IconFile size={'small'} style={{ minWidth: '1.2rem' }} />
</div> */}
<span className="text-light hover:text-gray-1200 text-sm">
diff --git a/apps/www/pages/blog/categories/[category].tsx b/apps/www/pages/blog/categories/[category].tsx
index 1b35e07d030..ac3f09be60a 100644
--- a/apps/www/pages/blog/categories/[category].tsx
+++ b/apps/www/pages/blog/categories/[category].tsx
@@ -42,7 +42,7 @@ function CategoriesIndex(props: Props) {
/>
<DefaultLayout>
<div className="container mx-auto px-8 py-16 sm:px-16 xl:px-20">
- <div className="text-lighter flex space-x-1">
+ <div className="text-foreground-lighter flex space-x-1">
<h1 className="cursor-pointer">
<Link href="/blog">Blog</Link>
<span className="px-2">/</span>
diff --git a/apps/www/pages/blog/tags/[tag].tsx b/apps/www/pages/blog/tags/[tag].tsx
index 27729b385f0..7152eb5f5c2 100644
--- a/apps/www/pages/blog/tags/[tag].tsx
+++ b/apps/www/pages/blog/tags/[tag].tsx
@@ -42,7 +42,7 @@ function TagBlogsPage(props: Props) {
/>
<DefaultLayout>
<div className="container mx-auto px-8 py-16 sm:px-16 xl:px-20">
- <div className="text-lighter flex space-x-1">
+ <div className="text-foreground-lighter flex space-x-1">
<h1 className="cursor-pointer">
<Link href="/blog">Blog</Link>
<span className="px-2">/</span>
diff --git a/apps/www/pages/brand-assets.tsx b/apps/www/pages/brand-assets.tsx
index 67bd258eb59..2261bec5afd 100644
--- a/apps/www/pages/brand-assets.tsx
+++ b/apps/www/pages/brand-assets.tsx
@@ -60,7 +60,7 @@ const Index = () => {
<div className="p-16">
<div className="space-y-2">
<h1 className="text-foreground text-4xl">Supabase logos</h1>
- <p className="text-light text-sm">
+ <p className="text-foreground-light text-sm">
<p>
Download Supabase official logos, including as SVG's, in both light and dark
theme.
@@ -91,7 +91,7 @@ const Index = () => {
<div className="p-16">
<div className="space-y-2">
<h1 className="text-foreground text-4xl">Supabase Integrations</h1>
- <p className="text-light text-sm">
+ <p className="text-foreground-light text-sm">
<p>
When building a{' '}
<a
diff --git a/apps/www/pages/careers/career.module.css b/apps/www/pages/careers/career.module.css
index 4526263ae29..f57bec9862e 100644
--- a/apps/www/pages/careers/career.module.css
+++ b/apps/www/pages/careers/career.module.css
@@ -1,5 +1,5 @@
.contributors-bg-circle {
- @apply bg-gradient-to-r from-scale-100 via-scale-700 to-scale-100 rounded-full p-[1px] aspect-square absolute;
+ @apply bg-gradient-to-r from-background-alternative via-border-strong to-background-alternative rounded-full p-[1px] aspect-square absolute;
}
.contributors-0 {
diff --git a/apps/www/pages/careers/index.tsx b/apps/www/pages/careers/index.tsx
index af2593e79b9..882eafd235f 100644
--- a/apps/www/pages/careers/index.tsx
+++ b/apps/www/pages/careers/index.tsx
@@ -107,7 +107,7 @@ const CareerPage: NextPage = ({ jobs, contributors }: any) => {
<h2 className="text-3xl md:text-4xl xl:text-5xl lg:max-w-2xl xl:max-w-3xl lg:mx-auto tracking-[-1.5px]">
We're on a mission to build the best developer platform
</h2>
- <p className="text-sm md:text-base text-lighter max-w-sm sm:max-w-md md:max-w-lg mx-auto">
+ <p className="text-sm md:text-base text-foreground-lighter max-w-sm sm:max-w-md md:max-w-lg mx-auto">
Explore remote possibilities and join our team to help us achieve it.
</p>
<a href="#positions">
@@ -127,7 +127,7 @@ const CareerPage: NextPage = ({ jobs, contributors }: any) => {
<h2 className="text-3xl lg:text-4xl pt-3 tracking-[-1.5px]">
{company.number}
</h2>
- <ReactMarkdown className="text-light text-sm lg:text-base">
+ <ReactMarkdown className="text-foreground-light text-sm lg:text-base">
{company.text}
</ReactMarkdown>
</div>
@@ -136,8 +136,8 @@ const CareerPage: NextPage = ({ jobs, contributors }: any) => {
</div>
</SectionContainer>
- <div className="py-[1.25px] bg-gradient-to-r from-scale-100 via-scale-700 to-scale-100">
- <div className="bg-scale-100 overflow-clip">
+ <div className="py-[1.25px] bg-gradient-to-r from-background via-border to-background">
+ <div className="bg-alternative overflow-clip">
<SectionContainer className="!py-0 !pb-16 lg:!pt-16">
<div className="lg:flex lg:h-[500px]">
<div className="relative aspect-square -top-[110px] -left-[200px] w-[575px] sm:-top-[150px] sm:-left-[300px] sm:w-[850px] lg:-top-[225px] lg:-left-[330px] lg:w-[800px] lg:h-[800px] xl:-left-[200px] xl:-top-[210px] xl:w-[1000px]">
@@ -147,7 +147,7 @@ const CareerPage: NextPage = ({ jobs, contributors }: any) => {
<h2 className="text-2xl sm:text-3xl xl:text-4xl max-w-[300px] lg:max-w-xs tracking-[-1.5px]">
We work together, wherever we are
</h2>
- <p className="text-light mt-4 text-xs sm:text-sm lg:text-base md:w-5/6 lg:w-full">
+ <p className="text-foreground-light mt-4 text-xs sm:text-sm lg:text-base md:w-5/6 lg:w-full">
Working in a globally distributed team is rewarding but has its challenges. We
are across many different timezones, so we use tools like Notion, Slack, and
Discord to stay connected to our team, and our community.
@@ -169,7 +169,7 @@ const CareerPage: NextPage = ({ jobs, contributors }: any) => {
<h2 className="text-2xl sm:text-3xl xl:text-4xl tracking-[-1.5px]">
What is Supabase
</h2>
- <p className="text-light text-xs sm:text-sm lg:text-base pt-2 sm:max-w-md xl:max-w-lg">
+ <p className="text-foreground-light text-xs sm:text-sm lg:text-base pt-2 sm:max-w-md xl:max-w-lg">
Supabase is an open source Firebase alternative, built by developers for
developers. Supabase adds auth, realtime, storage, restful APIs, and edge
functions to Postgres without a single line of code. Supabase was
@@ -269,7 +269,7 @@ const CareerPage: NextPage = ({ jobs, contributors }: any) => {
<h2 className="text-2xl sm:text-3xl xl:text-4xl tracking-[-1.5px]">
Human powered
</h2>
- <p className="text-lighter text-xs sm:text-sm lg:text-base pt-3 sm:w-3/5 lg:max-w-sm">
+ <p className="text-foreground-lighter text-xs sm:text-sm lg:text-base pt-3 sm:w-3/5 lg:max-w-sm">
As a completely remote and asynchronous team, we focus on these five traits to
keep our team effective:
</p>
@@ -293,7 +293,7 @@ const CareerPage: NextPage = ({ jobs, contributors }: any) => {
</div>
<div className="">
<h2 className="text-base">{human.title}</h2>
- <p className="text-light text-xs lg:text-sm">{human.text}</p>
+ <p className="text-foreground-light text-xs lg:text-sm">{human.text}</p>
</div>
</div>
)
@@ -319,7 +319,7 @@ const CareerPage: NextPage = ({ jobs, contributors }: any) => {
<h2 className="text-2xl sm:text-3xl xl:text-4xl max-w-[300px] xl:max-w-none mx-auto tracking-[-1.5px]">
1,000 + Contributors building Supabase
</h2>
- <p className="text-light text-xs sm:text-sm lg:text-base sm:max-w-lg lg:max-w-2xl mx-auto pt-3">
+ <p className="text-foreground-light text-xs sm:text-sm lg:text-base sm:max-w-lg lg:max-w-2xl mx-auto pt-3">
We're building a community of communities, bringing together developers from
many different backgrounds, as well as new developers looking to get involved
with open source. We love celebrating everyone who contributes their time to the
@@ -332,7 +332,7 @@ const CareerPage: NextPage = ({ jobs, contributors }: any) => {
<div
className={`${
Styles[`contributors-${i}`]
- } absolute w-12 h-12 md:w-14 md:h-14 lg:w-16 lg:h-16 rounded-full border-[1.5px] border-scale-600 z-10
+ } absolute w-12 h-12 md:w-14 md:h-14 lg:w-16 lg:h-16 rounded-full border-[1.5px] border-default z-10
transition-all hover:scale-105 drop-shadow-sm hover:drop-shadow-md
`}
key={i}
@@ -354,22 +354,22 @@ const CareerPage: NextPage = ({ jobs, contributors }: any) => {
<div
className={`${Styles['contributors-bg-circle']} w-[100%] lg:w-[80%] left-[0%] lg:left-[10%] -bottom-[30%] xs:-bottom-[36%] sm:-bottom-[52%] md:-bottom-[64%] lg:-bottom-[80%] xl:-bottom-[100%]`}
>
- <div className="flex flex-col justify-between h-full bg-scale-100 rounded-full p-4"></div>
+ <div className="flex flex-col justify-between h-full bg-alternative rounded-full p-4"></div>
</div>
<div
className={`${Styles['contributors-bg-circle']} w-[80%] lg:w-[60%] left-[10%] lg:left-[20%] -bottom-[25%] xs:-bottom-[30%] sm:-bottom-[44%] md:-bottom-[54%] lg:-bottom-[60%] xl:-bottom-[75%]`}
>
- <div className="flex flex-col justify-between h-full bg-scale-100 rounded-full p-4"></div>
+ <div className="flex flex-col justify-between h-full bg-alternative rounded-full p-4"></div>
</div>
<div
className={`${Styles['contributors-bg-circle']} w-[60%] lg:w-[40%] left-[20%] lg:left-[30%] -bottom-[20%] xs:-bottom-[25%] sm:-bottom-[38%] md:-bottom-[44%] lg:-bottom-[40%] xl:-bottom-[50%]`}
>
- <div className="flex flex-col justify-between h-full bg-scale-100 rounded-full p-4"></div>
+ <div className="flex flex-col justify-between h-full bg-alternative rounded-full p-4"></div>
</div>
<div
className={`${Styles['contributors-bg-circle']} w-[40%] lg:w-[20%] left-[30%] lg:left-[40%] -bottom-[15%] xs:-bottom-[19%] sm:-bottom-[30%] md:-bottom-[34%] lg:-bottom-[20%] xl:-bottom-[25%]`}
>
- <div className="flex flex-col justify-between h-full bg-scale-100 rounded-full p-4"></div>
+ <div className="flex flex-col justify-between h-full bg-alternative rounded-full p-4"></div>
</div>
</div>
</SectionContainer>
@@ -388,7 +388,7 @@ const CareerPage: NextPage = ({ jobs, contributors }: any) => {
(benefits: { icon: string; title: string; text: string }, i: number) => {
return (
<div
- className="h-full bg-white dark:bg-scale-300 drop-shadow-sm border-scale-400 border-[1px] p-6 rounded-lg flex items-start space-x-6 w-full"
+ className="h-full bg-alternative drop-shadow-sm border-muted border-[1px] p-6 rounded-lg flex items-start space-x-6 w-full"
key={i}
>
<div className="w-12 h-12 sm:w-10 sm:h-10 lg:w-12 lg:h-12 aspect-square rounded-lg flex items-center">
@@ -432,7 +432,7 @@ const CareerPage: NextPage = ({ jobs, contributors }: any) => {
</div>
<div className="text-center sm:max-w-md md:w-3/4 lg:max-w-lg xl:max-w-2xl mx-auto">
<h2 className="text-2xl sm:text-3xl xl:text-4xl tracking-[-1.5px]">How we hire</h2>
- <p className="text-xs sm:text-sm lg:text-base text-light pt-3">
+ <p className="text-xs sm:text-sm lg:text-base text-foreground-light pt-3">
The entire process is fully remote and all communication happens over email or via
video chat in Google Meet. The calls are all 1:1 and usually take between 20-45
minutes. We know you are interviewing us too, so please ask questions. We are happy
@@ -456,7 +456,7 @@ const CareerPage: NextPage = ({ jobs, contributors }: any) => {
<h2 className="sm:text-lg max-w-[75%] xl:max-w-none xl:w-11/12 lg:max-w-none">
{hiring.title}
</h2>
- <p className="text-light text-xs sm:text-sm mt-1 md:w-3/4 lg:w-11/12">
+ <p className="text-foreground-light text-xs sm:text-sm mt-1 md:w-3/4 lg:w-11/12">
{hiring.text}
</p>
</div>
@@ -487,7 +487,7 @@ const CareerPage: NextPage = ({ jobs, contributors }: any) => {
return (
<div className="cursor-pointer md:cursor-default" key={i}>
<Link href={job.absolute_url}>
- <div className="bg-white border-scale-300 drop-shadow-sm dark:bg-scale-300 border dark:border-scale-400 p-4 px-7 rounded-md sm:flex sm:items-center transition ease-out hover:bg-scale-100 dark:hover:bg-scale-400 hover:drop-shadow-md hover:cursor-pointer">
+ <div className="bg-alternative border-muted drop-shadow-sm border p-4 px-7 rounded-md sm:flex sm:items-center transition ease-out hover:bg-alternative dark:hover:bg-surface-100 hover:drop-shadow-md hover:cursor-pointer">
<h2 className="text-base min-w-[240px] lg:min-w-[316px] truncate mr-6">
{job.title}
</h2>
diff --git a/apps/www/pages/changelog.tsx b/apps/www/pages/changelog.tsx
index 1cbe49fd152..88551197777 100644
--- a/apps/www/pages/changelog.tsx
+++ b/apps/www/pages/changelog.tsx
@@ -63,7 +63,7 @@ function ChangelogPage(props: any) {
{/* Title and description */}
<div className="py-10">
<h1 className="h1">Changelog</h1>
- <p className="text-muted text-lg">New updates and product improvements</p>
+ <p className="text-foreground-lighter text-lg">New updates and product improvements</p>
</div>
{/* Content */}
@@ -71,13 +71,13 @@ function ChangelogPage(props: any) {
{props.changelog.map((changelog: any, i: number) => {
const date = changelog.published_at.split('T')
return (
- <div key={i} className="border-border grid border-l pb-10 lg:grid-cols-12 lg:gap-8">
+ <div key={i} className="border-muted grid border-l pb-10 lg:grid-cols-12 lg:gap-8">
<div
className="col-span-12 mb-8 self-start lg:sticky lg:top-0 lg:col-span-4 lg:-mt-32 lg:pt-32
"
>
<div className="flex w-full items-baseline gap-6">
- <div className="bg-surface-300 border-control text-lighter -ml-2.5 flex h-5 w-5 items-center justify-center rounded border drop-shadow-sm">
+ <div className="bg-border border-muted text-foreground-lighter -ml-2.5 flex h-5 w-5 items-center justify-center rounded border drop-shadow-sm">
<IconGitCommit size={14} strokeWidth={1.5} />
</div>
<div className="flex w-full flex-col gap-1">
diff --git a/apps/www/pages/company.tsx b/apps/www/pages/company.tsx
index ef2cc130fb5..49d2680b1e9 100644
--- a/apps/www/pages/company.tsx
+++ b/apps/www/pages/company.tsx
@@ -209,14 +209,14 @@ const Community = () => {
</div>
<div>
<h1 className="text-foreground mb-0 text-4xl">{x.stat}</h1>
- <p className="text-light text-sm">{x.statLabel}</p>
+ <p className="text-foreground-light text-sm">{x.statLabel}</p>
</div>
</div>
))}
</div>
<div className="space-y-8">
<div className="max-w-3xl">
- <p className="text-light text-sm">
+ <p className="text-foreground-light text-sm">
With developer signups from the world's leading brands.
</p>
</div>
@@ -252,10 +252,9 @@ const Investors = () => {
<div key={x.name}>
<div
className="
- dark:bg-scale-400
+ bg-surface-100
col-span-1 flex h-32 content-end
- items-center justify-center
- bg-gray-50"
+ items-center justify-center"
>
<div className="relative h-8 w-full overflow-auto">
<Image
@@ -286,7 +285,7 @@ const Investors = () => {
<div className="flex flex-col justify-center space-y-2">
<div>
<h1 className="text-foreground mb-0 text-base">{x.name}</h1>
- <p className="text-lighter mb-0 text-xs">{x.title}</p>
+ <p className="text-foreground-lighter mb-0 text-xs">{x.title}</p>
</div>
</div>
</div>
@@ -305,11 +304,11 @@ const Press = () => {
<div className="mx-auto mt-5 grid gap-5 lg:max-w-none lg:grid-cols-3">
{PressData.filter((x) => x.type == 'article').map((x) => (
<Link href={x.href} key={x.href} target="_blank">
- <Card key={`press_${x.href}`} hoverable className="dark:bg-scale-400 h-36 bg-white">
+ <Card key={`press_${x.href}`} hoverable className="h-36">
<Space className="h-40 justify-between" direction="vertical">
<div>
<h1 className="text-foreground text-xl">{x.type.toUpperCase()}</h1>
- <p className="text-light line-clamp block h-12 overflow-hidden text-ellipsis text-base">
+ <p className="text-foreground-light line-clamp block h-12 overflow-hidden text-ellipsis text-base">
{x.title}
</p>
</div>
@@ -321,11 +320,11 @@ const Press = () => {
<div className="mx-auto mt-5 grid gap-5 sm:grid-cols-2 lg:max-w-none lg:grid-cols-4">
{PressData.filter((x) => x.type == 'podcast').map((x) => (
<Link href={x.href} key={x.href} target="_blank">
- <Card key={`press_${x.href}`} hoverable className="dark:bg-scale-400 h-36 bg-white">
+ <Card key={`press_${x.href}`} hoverable className="h-36">
<Space className="h-40 justify-between" direction="vertical">
<div>
<h1 className="text-foreground text-xl">{x.type.toUpperCase()}</h1>
- <p className="text-light line-clamp block h-12 overflow-hidden text-ellipsis text-base">
+ <p className="text-foreground-light line-clamp block h-12 overflow-hidden text-ellipsis text-base">
{x.title}
</p>
</div>
diff --git a/apps/www/pages/customers/[slug].module.css b/apps/www/pages/customers/[slug].module.css
deleted file mode 100644
index 66da7170e6c..00000000000
--- a/apps/www/pages/customers/[slug].module.css
+++ /dev/null
@@ -1,46 +0,0 @@
-.toc a {
- text-decoration: none !important;
- font-weight: 400 !important;
-}
-
-.toc > ul > li {
- padding-left: 0 !important;
-}
-
-.toc li {
- @apply text-sm !important;
- padding-left: 1rem !important;
-}
-
-.toc ul > li:before {
- content: '';
- position: absolute;
- background-color: none;
- border-radius: 50%;
- width: 0 !important;
- height: 0 !important;
- top: 0.6875em;
- left: 0.25em;
-}
-
-.header:hover svg,
-.header svg:hover {
- display: inline-block;
-}
-
-.article h1,
-.article h2,
-.article h3,
-.article h4,
-.article h5 {
- font-weight: 500 !important;
-}
-
-.article {
- @apply mb-16;
-}
-
-.article > div > pre {
- padding: 0;
- background: none;
-}
diff --git a/apps/www/pages/customers/[slug].tsx b/apps/www/pages/customers/[slug].tsx
index 3ba95aa0081..ed167a84eed 100644
--- a/apps/www/pages/customers/[slug].tsx
+++ b/apps/www/pages/customers/[slug].tsx
@@ -162,7 +162,7 @@ function CaseStudyPage(props: any) {
<span className="not-prose ">
<a
href={props.blog.company_url}
- className=" flex cursor-pointer items-center space-x-1 opacity-50 transition-opacity hover:opacity-100"
+ className="flex cursor-pointer items-center space-x-1 transition-opacity text-foreground-lightround-ligtext-foreground-light:text-foreground-light"
target="_blank"
>
<span>{props.blog.company_url}</span>
@@ -175,12 +175,12 @@ function CaseStudyPage(props: any) {
return (
<div className="flex flex-col gap-0">
<span className="text-foreground-lighter">{x.label}</span>
- <span className="text-light">{x.text}</span>
+ <span className="text-foreground-light">{x.text}</span>
</div>
)
})}
- <div className="">
+ <div>
<p>Ready to get started?</p>
<div>
<Button asChild type="default" iconRight={<IconChevronRight />}>
diff --git a/apps/www/pages/customers/index.tsx b/apps/www/pages/customers/index.tsx
index 5bf067a03e5..51d1a3c8c6f 100644
--- a/apps/www/pages/customers/index.tsx
+++ b/apps/www/pages/customers/index.tsx
@@ -77,7 +77,7 @@ function CustomerStoriesPage(props: any) {
}}
/>
<DefaultLayout>
- <div className="relative z-0 dark:bg-scale-200 bg-scale-200 overflow-hidden">
+ <div className="relative z-0 bg-background overflow-hidden">
<div className="container mx-auto mt-44 px-8 sm:px-4 xl:px-20">
<div className="mx-auto relative z-10">
<motion.div
@@ -86,7 +86,7 @@ function CustomerStoriesPage(props: any) {
animate={{ opacity: 1, y: 0, transition: { duration: 0.5, easing: 'easeOut' } }}
>
<h1 className="text-foreground mb-3 text-3xl">Customer stories</h1>
- <h2 className="text-light text-xl">
+ <h2 className="text-foreground-light text-xl">
Discover case studies on how Supabase is being used around the world to quickly
create outstanding products and set new industry standards.
</h2>
@@ -123,7 +123,7 @@ function CustomerStoriesPage(props: any) {
</div>
<div
className={[
- 'absolute inset-0 h-[300px] dark:bg-scale-200 bg-bg-scale-200 z-0 after:!bg-scale-200',
+ 'absolute inset-0 h-[300px] bg-background z-0 after:!bg-background',
styles['bg-visual'],
].join(' ')}
/>
diff --git a/apps/www/pages/database/Database.css b/apps/www/pages/database/Database.css
deleted file mode 100644
index e69de29bb2d..00000000000
diff --git a/apps/www/pages/database/Database.tsx b/apps/www/pages/database/Database.tsx
index 6fc9042ba12..d7659c77609 100644
--- a/apps/www/pages/database/Database.tsx
+++ b/apps/www/pages/database/Database.tsx
@@ -242,9 +242,7 @@ function Database() {
footer={[
<div className="grid grid-cols-12" key={0}>
<div className="col-span-12 mt-0 flex lg:col-span-6 xl:col-span-12 xl:mb-8">
- <p>
- <p className="text-light m-0">Libraries coming soon:</p>
- </p>
+ <p className="text-foreground-light m-0">Libraries coming soon:</p>
<div className="ml-1 space-x-1">
<Badge dot={false}>Python</Badge>
<Badge dot={false}>Dart</Badge>
diff --git a/apps/www/pages/edge-functions/edge-functions.css b/apps/www/pages/edge-functions/edge-functions.css
deleted file mode 100644
index e69de29bb2d..00000000000
diff --git a/apps/www/pages/edge-functions/edge-functions.tsx b/apps/www/pages/edge-functions/edge-functions.tsx
index 1634c042be1..448a4f2d267 100644
--- a/apps/www/pages/edge-functions/edge-functions.tsx
+++ b/apps/www/pages/edge-functions/edge-functions.tsx
@@ -151,7 +151,7 @@ function Database() {
<div>
<h3 className="text-foreground text-lg">{item.title}</h3>
- <p className="text-light text-sm">{item.description}</p>
+ <p className="text-foreground-light text-sm">{item.description}</p>
</div>
</div>
)
@@ -186,7 +186,9 @@ function Database() {
<div
className={cn(
'transition-colors ',
- active ? ' text-foreground' : ' text-light group-hover:text-foreground'
+ active
+ ? ' text-foreground'
+ : ' text-foreground-light group-hover:text-foreground'
)}
>
{feat.title}
@@ -194,7 +196,9 @@ function Database() {
<div
className={cn(
'text-sm transition-colors ',
- active ? ' text-light' : ' text-light group-hover:text-light '
+ active
+ ? ' text-foreground-light'
+ : ' text-foreground-light group-hover:text-foreground-light '
)}
>
{feat.description}
@@ -269,7 +273,7 @@ serve(async (req) => {
<div className="grid grid-cols-12" key={0}>
<div className="col-span-12 mt-0 flex lg:col-span-6 xl:col-span-12 xl:mb-8">
<p>
- <p className="text-light m-0">Libraries coming soon:</p>
+ <p className="text-foreground-light m-0">Libraries coming soon:</p>
</p>
<div className="ml-1 space-x-1">
<Badge dot={false}>Python</Badge>
diff --git a/apps/www/pages/launch-week/6/index.tsx b/apps/www/pages/launch-week/6/index.tsx
index 4668b9fdb7a..d03edfe98eb 100644
--- a/apps/www/pages/launch-week/6/index.tsx
+++ b/apps/www/pages/launch-week/6/index.tsx
@@ -178,7 +178,9 @@ export default function launchweek() {
className="w-40 flex lg:w-80"
/>
</div>
- <p className="text-light text-sm text-center">Dec 12 – 16 at 6 AM PT | 9 AM ET</p>
+ <p className="text-foreground-light text-sm text-center">
+ Dec 12 – 16 at 6 AM PT | 9 AM ET
+ </p>
</div>
</SectionContainer>
<div
diff --git a/apps/www/pages/launch-week/7/tickets/index.tsx b/apps/www/pages/launch-week/7/tickets/index.tsx
index 4ae744a7fd5..ca8d42be76a 100644
--- a/apps/www/pages/launch-week/7/tickets/index.tsx
+++ b/apps/www/pages/launch-week/7/tickets/index.tsx
@@ -129,7 +129,7 @@ export default function TicketsPage({ users }: Props) {
<h2 className="text-4xl">
Check out <span className="gradient-text-pink-500">all the tickets</span>
</h2>
- <p className="radial-gradient-text-scale-500">Submissions are closed.</p>
+ <p className="radial-gradient-text-500">Submissions are closed.</p>
<div className="mt-1">
<Button asChild type="outline" size="medium">
<Link href="/launch-week/7">Go to Launch Week 7</Link>
diff --git a/apps/www/pages/nextjs/Nextjs.css b/apps/www/pages/nextjs/Nextjs.css
deleted file mode 100644
index e69de29bb2d..00000000000
diff --git a/apps/www/pages/open-source/index.tsx b/apps/www/pages/open-source/index.tsx
index f95e3937557..c73bcdc86a1 100644
--- a/apps/www/pages/open-source/index.tsx
+++ b/apps/www/pages/open-source/index.tsx
@@ -47,7 +47,7 @@ const OpenSource = () => {
<Repos tabs={pageData.repo_tabs} />
</SectionContainer>
<SectionContainer className="!py-0">
- <div className="w-full bg-scale-400 border-b" />
+ <div className="w-full border-b" />
</SectionContainer>
<SectionContainer>
<Sponsorships sponsorships={pageData.sponsorships} />
diff --git a/apps/www/pages/partners/experts/[slug].tsx b/apps/www/pages/partners/experts/[slug].tsx
index 63c20e1159d..c5e7692baf4 100644
--- a/apps/www/pages/partners/experts/[slug].tsx
+++ b/apps/www/pages/partners/experts/[slug].tsx
@@ -44,7 +44,7 @@ function Partner({
{/* Back button */}
<Link
href="/partners/experts"
- className="text-foreground hover:text-lighter flex cursor-pointer items-center transition-colors"
+ className="text-foreground hover:text-foreground-lighter flex cursor-pointer items-center transition-colors"
>
<IconChevronLeft style={{ padding: 0 }} />
Back
@@ -55,7 +55,7 @@ function Partner({
layout="fixed"
width={56}
height={56}
- className="bg-scale-400 flex-shrink-f0 h-14 w-14 rounded-full"
+ className="bg-surface2100 flex-shrink-f0 h-14 w-14 rounded-full"
src={partner.logo}
alt={partner.title}
/>
@@ -65,7 +65,7 @@ function Partner({
</div>
<div
- className="bg-scale-300 py-6"
+ className="bg-surface-100 py-6"
style={{ marginLeft: 'calc(50% - 50vw)', marginRight: 'calc(50% - 50vw)' }}
>
<Swiper
@@ -123,7 +123,7 @@ function Partner({
{partner.video && (
<div
- className="bg-scale-1000 relative w-full rounded-md shadow-lg"
+ className="bg-foreground-lighter relative w-full rounded-md shadow-lg"
style={{ padding: '56.25% 0 0 0', marginBottom: '1rem' }}
>
<iframe
@@ -153,7 +153,7 @@ function Partner({
<div className="text-foreground divide-y">
{partner.type === 'technology' && (
<div className="flex items-center justify-between py-2">
- <span className="text-lighter">Developer</span>
+ <span className="text-foreground-lighter">Developer</span>
<span className="text-foreground">{partner.developer}</span>
</div>
)}
@@ -169,7 +169,7 @@ function Partner({
</div>
<div className="flex items-center justify-between py-2">
- <span className="text-lighter">Website</span>
+ <span className="text-foreground-lighter">Website</span>
<a
href={partner.website}
target="_blank"
@@ -182,7 +182,7 @@ function Partner({
{partner.type === 'technology' && partner.docs && (
<div className="flex items-center justify-between py-2">
- <span className="text-lighter">Documentation</span>
+ <span className="text-foreground-lighter">Documentation</span>
<a
href={partner.docs}
target="_blank"
diff --git a/apps/www/pages/partners/experts/index.tsx b/apps/www/pages/partners/experts/index.tsx
index 22880da4a81..9c7c49a30a6 100644
--- a/apps/www/pages/partners/experts/index.tsx
+++ b/apps/www/pages/partners/experts/index.tsx
@@ -52,11 +52,11 @@ function ExpertPartnersPage(props: Props) {
],
}}
/>
- <DefaultLayout className="bg-scale-400 dark:bg-scale-100">
+ <DefaultLayout className="bg-alternative">
<SectionContainer className="space-y-12">
<div>
<h1 className="h1">{meta_title}</h1>
- <p className="text-lighter text-xl">{meta_description}</p>
+ <p className="text-foreground-lighter text-xl">{meta_description}</p>
</div>
<div className="grid space-y-12 md:gap-8 lg:grid-cols-12 lg:gap-16 lg:space-y-0 xl:gap-16">
<div className="lg:col-span-4 xl:col-span-3">
@@ -64,7 +64,7 @@ function ExpertPartnersPage(props: Props) {
<div className="space-y-6">
{/* Search Bar */}
<div className="space-y-4">
- <div className="text-light mb-2 text-sm">Explore more</div>
+ <div className="text-foreground-light mb-2 text-sm">Explore more</div>
<div className="grid grid-cols-2 gap-4 lg:grid-cols-1">
<PartnerLinkBox
title="Integrations"
diff --git a/apps/www/pages/partners/index.tsx b/apps/www/pages/partners/index.tsx
index f3d36c1af63..b7a27fe8a79 100644
--- a/apps/www/pages/partners/index.tsx
+++ b/apps/www/pages/partners/index.tsx
@@ -8,9 +8,9 @@ import { range } from 'lodash'
import { useBreakpoint } from 'common'
import { Badge, Button, IconCode, TextLink } from 'ui'
import DefaultLayout from '~/components/Layouts/Default'
-import InteractiveShimmerCard from '~/components/InteractiveShimmerCard'
import ProductHeaderCentered from '~/components/Sections/ProductHeaderCentered'
import SectionContainer from '~/components/Layouts/SectionContainer'
+import Panel from '~/components/Panel'
import pageData from '~/data/partners'
@@ -39,8 +39,8 @@ const Partners = () => {
<SectionContainer className="overflow-hidden pt-8 pb-12 md:pt-12">
<ProductHeaderCentered {...pageData.heroSection} />
</SectionContainer>
- <div className="relative z-20 w-full flex py-16 mb-16 -mt-10 md:mb-24 md:-mt-20 justify-center gap-2 overflow-hidden mx-auto max-w-4xl before:content[''] before:absolute before:inset-0 before:w-full before:bg-[linear-gradient(to_right,var(--colors-scale5)_0%,transparent_10%,transparent_90%,var(--colors-scale5)_100%)] dark:before:bg-[linear-gradient(to_right,var(--colors-scale1)_0%,transparent_10%,transparent_90%,var(--colors-scale1)_100%)] before:z-10">
- <div className="absolute w-32 h-32 md:w-40 md:h-40 rounded-full bg-scale-100/90 backdrop-blur-2xl backdrop-filter from-scale-200 to-scale-100 border-4 border-scale-100 shadow-xl top-1/2 -translate-x-1/2 left-1/2 -translate-y-1/2 flex items-center justify-center z-30">
+ <div className="relative z-20 w-full flex py-16 mb-16 -mt-10 md:mb-24 md:-mt-20 justify-center gap-2 overflow-hidden mx-auto max-w-4xl before:content[''] before:absolute before:inset-0 before:w-full before:bg-[linear-gradient(to_right,hsl(var(--background-alternative))_0%,transparent_10%,transparent_90%,hsl(var(--background-alternative))_100%)] before:z-10">
+ <div className="absolute w-32 h-32 md:w-40 md:h-40 rounded-full bg-alternative/90 backdrop-blur-2xl backdrop-filter from-background to-background-alternative border-4 border-background-alternative shadow-xl top-1/2 -translate-x-1/2 left-1/2 -translate-y-1/2 flex items-center justify-center z-30">
<div className="absolute inset-0 w-full h-full transform">
<svg
className="absolute inset-[-2px] transform animate-[transformSpin_3s_both_cubic-bezier(.5,.2,.5,.8)_infinite] opacity-90"
@@ -94,7 +94,7 @@ const Partners = () => {
</div>
))}
</div>
- <div className="absolute inset-0 z-[1] bg-[linear-gradient(to_top,var(--colors-scale5)_40%,var(--colors-scale3)_90%)] dark:bg-[linear-gradient(to_top,var(--colors-scale1)_40%,#121212_90%)]" />
+ <div className="absolute inset-0 z-[1] bg-[linear-gradient(to_top,hsl(var(--background-alternative))_40%,hsl(var(--background-default))_90%)]" />
</div>
<SectionContainer>
<div className="grid grid-cols-1 lg:grid-cols-5 gap-8 lg:gap-4">
@@ -102,7 +102,7 @@ const Partners = () => {
<h2 className="text-2xl sm:text-3xl xl:text-4xl tracking-[-.5px]">
Explore our marketplace
</h2>
- <p className="text-lighter text-xs sm:text-sm lg:text-base py-3 lg:max-w-md">
+ <p className="text-foreground-lighter text-xs sm:text-sm lg:text-base py-3 lg:max-w-md">
Discover how technology and consulting partners are already working with Supabase.
</p>
<TextLink
@@ -111,10 +111,9 @@ const Partners = () => {
/>
</div>
<div className="col-span-1 lg:col-span-3 w-full max-w-4xl grid gap-8 rounded md:grid-cols-2">
- <InteractiveShimmerCard
+ <Panel
hasShimmer
- hasInnerShimmer={false}
- hasActiveOnHover={true}
+ hasActiveOnHover
innerClassName="px-8 py-6 group flex flex-col gap-4"
>
<div className="bg-surface-200 mb-4 text-foreground flex h-12 w-12 items-center justify-center rounded-md border transition-all group-hover:scale-105">
@@ -140,8 +139,8 @@ const Partners = () => {
</div>
<Link href="/partners/experts" className="absolute inset-0" />
- </InteractiveShimmerCard>
- <InteractiveShimmerCard
+ </Panel>
+ <Panel
hasInnerShimmer={false}
hasActiveOnHover={true}
innerClassName="px-8 py-6 group flex flex-col gap-4"
@@ -168,7 +167,7 @@ const Partners = () => {
<p className="text-muted text-sm">Use your favorite tools with Supabase.</p>
</div>
<Link href="/partners/integrations" className="absolute inset-0" />
- </InteractiveShimmerCard>
+ </Panel>
</div>
</div>
</SectionContainer>
diff --git a/apps/www/pages/partners/integrations/[slug].tsx b/apps/www/pages/partners/integrations/[slug].tsx
index 6e339020a9c..72504c2bc38 100644
--- a/apps/www/pages/partners/integrations/[slug].tsx
+++ b/apps/www/pages/partners/integrations/[slug].tsx
@@ -94,7 +94,7 @@ function Partner({
{/* Back button */}
<Link
href="/partners/integrations"
- className="text-foreground hover:text-lighter flex cursor-pointer items-center transition-colors"
+ className="text-foreground hover:text-foreground-lighter flex cursor-pointer items-center transition-colors"
>
<IconChevronLeft style={{ padding: 0 }} />
Back
@@ -210,7 +210,7 @@ function Partner({
<div className="text-foreground divide-y">
{partner.type === 'technology' && (
<div className="flex items-center justify-between py-2">
- <span className="text-lighter">Developer</span>
+ <span className="text-foreground-lighter">Developer</span>
<span className="text-foreground">{partner.developer}</span>
</div>
)}
@@ -226,7 +226,7 @@ function Partner({
</div>
<div className="flex items-center justify-between py-2">
- <span className="text-lighter">Website</span>
+ <span className="text-foreground-lighter">Website</span>
<a
href={partner.website}
target="_blank"
@@ -239,7 +239,7 @@ function Partner({
{partner.type === 'technology' && partner.docs && (
<div className="flex items-center justify-between py-2">
- <span className="text-lighter">Documentation</span>
+ <span className="text-foreground-lighter">Documentation</span>
<a
href={partner.docs}
target="_blank"
@@ -258,7 +258,7 @@ function Partner({
</div>
</div>
{partner.call_to_action_link && (
- <div className="bg-background hover:border-border-control border-border rounded-2xl border p-10 drop-shadow-sm max-w-5xl mx-auto mt-12">
+ <div className="bg-background hover:border-default-control border-default rounded-2xl border p-10 drop-shadow-sm max-w-5xl mx-auto mt-12">
<div className="flex flex-row justify-between">
<h1 className="text-2xl font-medium self-center">
Get started with {partner.title} and Supabase.
diff --git a/apps/www/pages/partners/integrations/index.tsx b/apps/www/pages/partners/integrations/index.tsx
index ab6ac4fe2d6..eccb65ed10b 100644
--- a/apps/www/pages/partners/integrations/index.tsx
+++ b/apps/www/pages/partners/integrations/index.tsx
@@ -102,11 +102,11 @@ function IntegrationPartnersPage(props: Props) {
],
}}
/>
- <DefaultLayout className="bg-scale-400 dark:bg-scale-100">
+ <DefaultLayout className="bg-alternative">
<SectionContainer className="space-y-16">
<div>
<h1 className="h1">{meta_title}</h1>
- <p className="text-lighter text-xl">{meta_description}</p>
+ <p className="text-foreground-lighter text-xl">{meta_description}</p>
</div>
{/* Title */}
<div className="grid space-y-12 md:gap-8 lg:grid-cols-12 lg:gap-16 lg:space-y-0 xl:gap-16">
@@ -131,13 +131,13 @@ function IntegrationPartnersPage(props: Props) {
}
/>
<div className="hidden lg:block">
- <div className="text-lighter mb-2 text-sm">Categories</div>
+ <div className="text-foreground-lighter mb-2 text-sm">Categories</div>
<div className="space-y-1">
{allCategories.map((category) => (
<button
key={category}
onClick={() => router.push(`#${category.toLowerCase()}`)}
- className="text-light block text-base"
+ className="text-foreground-light block text-base"
>
{category}
</button>
@@ -145,7 +145,7 @@ function IntegrationPartnersPage(props: Props) {
</div>
</div>
<div className="space-y-4">
- <div className="text-lighter mb-2 text-sm">Explore more</div>
+ <div className="text-foreground-lighter mb-2 text-sm">Explore more</div>
<div className="grid grid-cols-2 gap-8 lg:grid-cols-1">
<PartnerLinkBox
title="Experts"
diff --git a/apps/www/pages/pricing/index.tsx b/apps/www/pages/pricing/index.tsx
index 49128542990..68426b3d1a2 100644
--- a/apps/www/pages/pricing/index.tsx
+++ b/apps/www/pages/pricing/index.tsx
@@ -1,20 +1,22 @@
-import { Accordion, Badge, Button, IconCheck, Select } from 'ui'
-import Solutions from 'data/Solutions'
-import { NextSeo } from 'next-seo'
-import Link from 'next/link'
-import { useRouter } from 'next/router'
import React, { useEffect, useState } from 'react'
import ReactMarkdown from 'react-markdown'
+import Image from 'next/image'
+import Link from 'next/link'
+import { useRouter } from 'next/router'
+import { NextSeo } from 'next-seo'
+import { useTheme } from 'next-themes'
+import { Accordion, Button, IconCheck, Select } from 'ui'
+
+import AnnouncementBadge from '~/components/Announcement/Badge'
import CTABanner from '~/components/CTABanner'
+import ComputePricingModal from '~/components/Pricing/ComputePricingModal'
import DefaultLayout from '~/components/Layouts/Default'
import { PricingTableRowDesktop, PricingTableRowMobile } from '~/components/Pricing/PricingTableRow'
-import { pricing } from 'shared-data/pricing'
+
+import Solutions from '~/data/Solutions'
import pricingFaq from '~/data/PricingFAQ.json'
-import { useTheme } from 'next-themes'
-import ComputePricingModal from '~/components/Pricing/ComputePricingModal'
+import { pricing } from 'shared-data/pricing'
import { plans } from 'shared-data/plans'
-import AnnouncementBadge from '../../components/Announcement/Badge'
-import Image from 'next/image'
export default function IndexPage() {
const router = useRouter()
@@ -106,9 +108,7 @@ export default function IndexPage() {
}) => {
return (
<div className="mt-8 px-4 mobile-header">
- <h2 className="text-brand-600 dark:text-brand text-3xl font-medium uppercase font-mono">
- {plan}
- </h2>
+ <h2 className="text-brand text-3xl font-medium uppercase font-mono">{plan}</h2>
<div className="flex items-baseline gap-2">
{from && <span className="text-foreground text-base">From</span>}
{showDollarSign ? (
@@ -117,7 +117,7 @@ export default function IndexPage() {
{price}
</span>
) : (
- <span className="text-light">{price}</span>
+ <span className="text-foreground-light">{price}</span>
)}
<p className="p">{priceDescription}</p>
@@ -169,7 +169,7 @@ export default function IndexPage() {
</div>
<div className="mx-auto lg:container lg:px-16 xl:px-12 flex flex-col">
- {/* <div className="absolute inset-0 shadow-sm bg-scale-200 h-3/5" /> */}
+ {/* <div className="absolute inset-0 shadow-sm bg-background h-3/5" /> */}
<div
className="relative z-10 mx-auto -mt-8 w-full px-4 sm:px-6
@@ -188,7 +188,7 @@ export default function IndexPage() {
].join(' ')}
>
{plan.name === 'Pro' && (
- <p className="text-[13px] leading-4 text-center py-2 text-scale-100">
+ <p className="text-[13px] leading-4 text-center py-2 text-background">
Most Popular
</p>
)}
@@ -200,7 +200,7 @@ export default function IndexPage() {
].join(' ')}
>
<div
- className={`dark:bg-scale-300 bg-white px-8 xl:px-4 2xl:px-8 pt-6 rounded-tr-[4px] rounded-tl-[4px] ${
+ className={`bg-surface-100 px-8 xl:px-4 2xl:px-8 pt-6 rounded-tr-[4px] rounded-tl-[4px] ${
plan.name === 'Pro' ? 'rounded-tr-[4px] rounded-tl-[4px]' : ''
}`}
>
@@ -219,7 +219,7 @@ export default function IndexPage() {
)}
</div>
</div>
- <p className="text-light my-4 text-sm border-b dark:border-scale-500 pb-4 2xl:pr-4">
+ <p className="text-foreground-light my-4 text-sm border-b border-default pb-4 2xl:pr-4">
{plan.description}
</p>
@@ -231,35 +231,35 @@ export default function IndexPage() {
lg:text-4xl
xl:text-4xl
border-b
- dark:border-scale-500
+ border-default
min-h-[175px] ${plan.priceLabel ? 'pt-6' : 'pt-10'}`}
>
<div className="flex flex-col gap-1">
<div className="flex items-end gap-2">
<div>
{plan.priceLabel && (
- <p className="text-muted ml-1 text-[13px] leading-4 font-normal">
+ <p className="text-foreground-lighter ml-1 text-[13px] leading-4 font-normal">
{plan.priceLabel}
</p>
)}
<div className="flex items-end">
<p
- className={`mt-2 gradient-text-scale-500 dark:gradient-text-scale-100 pb-1 ${
+ className={`mt-2 gradient-text-500 dark:gradient-text-100 pb-1 ${
plan.name !== 'Enterprise' ? 'text-5xl' : 'text-4xl'
}`}
>
{plan.name !== 'Enterprise' ? '$' : ''}
{plan.priceMonthly}
</p>
- <p className="text-muted mb-1.5 ml-1 text-[13px] leading-4">
+ <p className="text-foreground-lighter mb-1.5 ml-1 text-[13px] leading-4">
{plan.costUnit}
</p>
</div>
{plan.warning && (
<p className="-mt-2">
- <span className="bg-scale-200 text-brand-600 border shadow-sm rounded-md bg-opacity-30 py-0.5 px-2 text-[13px] leading-4">
+ <span className="bg-background text-brand-600 border shadow-sm rounded-md bg-opacity-30 py-0.5 px-2 text-[13px] leading-4">
{plan.warning}
</span>
</p>
@@ -271,15 +271,17 @@ export default function IndexPage() {
</div>
<div
className={[
- `dark:border-scale-400 dark:bg-scale-300 flex h-full rounded-bl-[4px] rounded-br-[4px] flex-1 flex-col bg-white px-8 xl:px-4 2xl:px-8 py-6`,
+ `border-default bg-surface-100 flex h-full rounded-bl-[4px] rounded-br-[4px] flex-1 flex-col px-8 xl:px-4 2xl:px-8 py-6`,
plan.name === 'Pro' ? 'mb-0.5 rounded-bl-[4px] rounded-br-[4px]' : '',
].join(' ')}
>
{plan.preface && (
- <p className="text-light text-[13px] mt-2 mb-4">{plan.preface}</p>
+ <p className="text-foreground-light text-[13px] mt-2 mb-4">
+ {plan.preface}
+ </p>
)}
- {/* <p className="text-muted text-sm">Included with plan:</p> */}
- <ul role="list" className="text-[13px] text-lighter">
+ {/* <p className="text-foreground-lighter text-sm">Included with plan:</p> */}
+ <ul role="list" className="text-[13px] text-foreground-lighter">
{plan.features.map((feature) => (
<li key={feature} className="flex items-center py-2 first:mt-0">
<IconCheck
@@ -288,7 +290,7 @@ export default function IndexPage() {
strokeWidth={3}
/>
{/* </div> */}
- <span className="dark:text-foreground mb-0 ml-3 ">{feature}</span>
+ <span className="text-foreground mb-0 ml-3 ">{feature}</span>
</li>
))}
</ul>
@@ -329,14 +331,14 @@ export default function IndexPage() {
<div>
<div className="text-center">
<h2 className="text-foreground text-3xl">Easily customizable add-ons</h2>
- <p className="text-light mt-4 mb-8 lg:mb-16 text-lg">
+ <p className="text-foreground-light mt-4 mb-8 lg:mb-16 text-lg">
Level up your Supabase experience with add-ons.
</p>
</div>
<div className="grid lg:grid-cols-3 gap-4 mb-16">
{addons.map((addon) => (
- <div className="bg-white dark:bg-scale-300 rounded-[4px]" key={addon.name}>
+ <div className="bg-surface-100 border rounded-[4px]" key={addon.name}>
<div className="overflow-hidden rounded-lg relative h-56">
<Image
className="w-full"
@@ -349,7 +351,7 @@ export default function IndexPage() {
/>
</div>
<div className="px-8 -mt-1">
- <p className="text-[13px] text-muted">{addon.price}</p>
+ <p className="text-[13px] text-foreground-lighter">{addon.price}</p>
<div className="flex items-center gap-2 mt-2">
<Image
src={`${basePath}/images/pricing/${addon.icon}${
@@ -362,7 +364,7 @@ export default function IndexPage() {
/>
<span className="text-sm text-foreground">{addon.name}</span>
</div>
- <p className="mt-2 text-muted text-[13px] min-h-[40px] lg:min-h-[50px] lg:max-w-[290px]">
+ <p className="mt-2 text-foreground-lighter text-[13px] min-h-[40px] lg:min-h-[50px] lg:max-w-[290px]">
{addon.description}
</p>
<div className="flex items-center justify-between mt-4 mb-4 lg:mb-8">
@@ -405,7 +407,7 @@ export default function IndexPage() {
className="grid lg:grid-cols-2 gap-8 items-center mt-12 lg:mt-8 max-w-6xl mx-auto"
>
<div className="lg:py-12">
- <span className="bg-brand-300 text-brand-600 rounded-md bg-opacity-30 inline-block dark:bg-scale-400 dark:text-light py-0.5 px-2 text-[13px] leading-4 mt-2">
+ <span className="bg-brand-400 text-brand-600 rounded-md bg-opacity-30 inline-block py-0.5 px-2 text-[13px] leading-4 mt-2">
Available for Pro plan
</span>
<h2 className="text-foreground text-4xl mt-4">Cost control with spend caps</h2>
@@ -430,13 +432,13 @@ export default function IndexPage() {
</div>
</div>
- <div className="bg-scale-200">
+ <div className="bg-background">
<div className="sm:py-18 container relative mx-auto px-4 py-16 md:py-24 lg:px-16 lg:py-24 xl:px-20">
<div className="text-center">
<h2 className="text-foreground text-3xl scroll-m-20" id="compare-plans">
Compare Plans
</h2>
- <p className="text-light mt-4 mb-8 lg:mb-16 text-lg">
+ <p className="text-foreground-light mt-4 mb-8 lg:mb-16 text-lg">
Start with a hobby project, collaborate with a team, and scale to millions of users.
</p>
</div>
@@ -448,7 +450,7 @@ export default function IndexPage() {
{/* Free - Mobile */}
<div className="bg-slate-200 p-2 sticky top-14 z-10 pt-4">
<div className="bg-slate-300 rounded-lg border border-slate-500 py-2 px-4 flex justify-between items-center">
- <label className="text-lighter">Change plan</label>
+ <label className="text-foreground-lighter">Change plan</label>
<Select
id="change-plan"
name="Change plan"
@@ -686,7 +688,7 @@ export default function IndexPage() {
<div className="hidden lg:block">
<table className="h-px w-full table-fixed">
<caption className="sr-only">Pricing plan comparison</caption>
- <thead className="bg-scale-200 dark:bg-scale-200 sticky top-[62px] z-10">
+ <thead className="bg-background dark:bg-background sticky top-[62px] z-10">
<tr>
<th
className="text-foreground w-1/3 px-6 pt-2 pb-2 text-left text-sm font-normal"
@@ -728,7 +730,7 @@ export default function IndexPage() {
scope="col"
key={`th-${plan.name}`}
>
- <p className="p text-sm border-b border-scale-700 pb-4">{plan.description}</p>
+ <p className="p text-sm border-b border-default pb-4">{plan.description}</p>
<div
className="h-0.25 absolute bottom-0 left-0 w-full"
style={{ height: '1px' }}
@@ -736,10 +738,10 @@ export default function IndexPage() {
</th>
))}
</tr>
- <tbody className="border-scale-700 dark:border-scale-400 divide-scale-700 dark:divide-scale-400 divide-y">
+ <tbody className="border-default divide-border divide-y">
<tr>
<th
- className="text-muted px-6 py-8 text-left align-top text-sm font-medium dark:text-white"
+ className="text-foreground-light px-6 py-8 text-left align-top text-sm font-medium"
scope="row"
></th>
@@ -766,7 +768,7 @@ export default function IndexPage() {
{plan.warning && (
<p className="-mt-2">
- <span className="bg-scale-100 text-brand-600 border shadow-sm rounded-md bg-opacity-30 py-0.5 px-2 text-[13px] leading-4">
+ <span className="bg-alternative text-brand-600 border shadow-sm rounded-md bg-opacity-30 py-0.5 px-2 text-[13px] leading-4">
{plan.warning}
</span>
</p>
@@ -832,7 +834,7 @@ export default function IndexPage() {
/>
</tbody>
<tfoot>
- <tr className="border-border border-t">
+ <tr className="border-default border-t">
<th className="sr-only" scope="row">
Choose your plan
</th>
@@ -887,7 +889,7 @@ export default function IndexPage() {
chevronAlign="right"
justified
size="medium"
- className="text-muted dark:text-white"
+ className="text-foreground-light"
>
{pricingFaq.map((faq, i) => {
return (
@@ -896,7 +898,9 @@ export default function IndexPage() {
header={<span className="text-foreground">{faq.question}</span>}
id={`faq--${i.toString()}`}
>
- <ReactMarkdown className="text-muted prose">{faq.answer}</ReactMarkdown>
+ <ReactMarkdown className="text-foreground-lighter prose">
+ {faq.answer}
+ </ReactMarkdown>
</Accordion.Item>
</div>
)
diff --git a/apps/www/pages/realtime/Realtime.tsx b/apps/www/pages/realtime/Realtime.tsx
index e40ac1f1dfe..34fa5a65720 100644
--- a/apps/www/pages/realtime/Realtime.tsx
+++ b/apps/www/pages/realtime/Realtime.tsx
@@ -63,7 +63,7 @@ function RealtimePage() {
h1={[<span key={'authentication-h1'}>Build modern web and mobile applications</span>]}
subheader={['Sync client state globally over WebSockets in Realtime']}
image={[
- <div className="bg-scale-300 border-scale-500 relative flex h-[372px] w-[560px] items-center justify-center overflow-hidden rounded border drop-shadow-md">
+ <div className="bg-surface-100 border-default relative flex h-[372px] w-[560px] items-center justify-center overflow-hidden rounded border drop-shadow-md">
<div
className={[
'border-brand-300 relative h-12 w-48 bg-[#34B27B]',
@@ -86,7 +86,7 @@ function RealtimePage() {
/>
<div
className={[
- 'border-scale-1200 absolute bottom-[40px] left-[175px] flex h-10 w-20',
+ 'border-foreground absolute bottom-[40px] left-[175px] flex h-10 w-20',
'items-center justify-center space-x-2 rounded-full border-[3px] bg-indigo-900',
`${RealtimeStyles['cursor-two-comment']}`,
].join(' ')}
@@ -99,29 +99,23 @@ function RealtimePage() {
/>
<div
className={[
- 'border-scale-1200 absolute top-[72px] left-[320px] flex h-10 w-20',
+ 'border-foreground absolute top-[72px] left-[320px] flex h-10 w-20',
'items-center justify-center space-x-2 rounded-full border-[3px] bg-tomato-900',
`${RealtimeStyles['cursor-three-comment']}`,
].join(' ')}
>
<p className="text-lg">😄</p>
</div>
- {/* <div className="bg-scale-100 border-scale-500 absolute left-0 h-full w-24 border-r py-9 shadow">
- <div className="border-scale-500 h-7 border-b" />
- </div> */}
- {/* <div className="bg-scale-100 border-scale-500 absolute right-0 h-full w-20 border-l py-9 shadow">
- <div className="border-scale-500 h-7 border-b" />
- </div> */}
- <div className="bg-scale-200 border-scale-500 absolute top-0 flex h-9 w-full items-center justify-between border-b">
+ <div className="bg-background border-default absolute top-0 flex h-9 w-full items-center justify-between border-b">
<div className="flex items-center">
<IconMenu className="text-foreground mx-3" strokeWidth={1} size={16} />
<IconGrid className="text-foreground mx-3" strokeWidth={1} size={15} />
<IconLayers className="text-foreground mx-3" strokeWidth={1} size={15} />
</div>
<div className="mx-3 flex items-center">
- <div className="border-scale-300 dark:border-scale-1200 bg-tomato-900 dark:bg-tomato-900 relative -right-4 h-5 w-5 rounded-full border" />
- <div className="border-scale-300 dark:border-scale-1200 bg-yellow-900 dark:bg-yellow-900 relative -right-2 z-[2] h-5 w-5 rounded-full border" />
- <div className="border-scale-300 dark:border-scale-1200 bg-indigo-900 dark:bg-indigo-900 z-[3] h-5 w-5 rounded-full border" />
+ <div className="border-foreground bg-tomato-900 dark:bg-tomato-900 relative -right-4 h-5 w-5 rounded-full border" />
+ <div className="border-foreground bg-yellow-900 dark:bg-yellow-900 relative -right-2 z-[2] h-5 w-5 rounded-full border" />
+ <div className="border-foreground bg-indigo-900 dark:bg-indigo-900 z-[3] h-5 w-5 rounded-full border" />
</div>
</div>
</div>,
@@ -197,12 +191,12 @@ function RealtimePage() {
<>
<div className="flex flex-col gap-3">
<img
- className="bg-scale-300 hidden rounded-lg dark:block"
+ className="bg-surface-100 hidden rounded-lg dark:block"
src={`/images/realtime/example-apps/dark/${example.img}?type=1`}
alt={example.title}
/>
<img
- className="bg-scale-300 block rounded-lg dark:hidden"
+ className="bg-surface-100 block rounded-lg dark:hidden"
src={`/images/realtime/example-apps/light/${example.img}`}
alt={example.title}
/>
diff --git a/apps/www/pages/security.mdx b/apps/www/pages/security.mdx
index 3250586ee91..5a688dfb651 100644
--- a/apps/www/pages/security.mdx
+++ b/apps/www/pages/security.mdx
@@ -21,7 +21,7 @@ export const meta = {
export const Section = ({ children, icon, img }) => (
<div>
{icon && (
- <div className="bordershadow-scale-500 not-prose dark:bg-scale-400 -mb-4 flex h-10 w-10 items-center justify-center rounded-full bg-white">
+ <div className="border shadow-background-surface-300 not-prose bg-surface-100 -mb-4 flex h-10 w-10 items-center justify-center rounded-full">
<figure className="w-5">{icon}</figure>
</div>
)}
@@ -33,7 +33,7 @@ export const Section = ({ children, icon, img }) => (
<div className="container mx-auto px-8 sm:px-16 xl:px-20 grid grid-cols-12 items-center my-16">
<div className="col-span-12 lg:col-span-6">
<h1>Security at Supabase</h1>
- <h2 className="text-xl text-light max-w-xl">
+ <h2 className="text-xl text-foreground-light max-w-xl">
Supabase is trusted by thousands of developers for building and deploying secure applications.
</h2>
</div>
diff --git a/apps/www/pages/storage/Storage.module.css b/apps/www/pages/storage/Storage.module.css
deleted file mode 100644
index 3dd7008e1bd..00000000000
--- a/apps/www/pages/storage/Storage.module.css
+++ /dev/null
@@ -1,7 +0,0 @@
-/* .github-icon svg {
- fill: currentColor;
-} */
-
-.github-icon {
- @apply text-white;
-}
diff --git a/apps/www/pages/support.tsx b/apps/www/pages/support.tsx
index 47e09349f6d..37473605499 100644
--- a/apps/www/pages/support.tsx
+++ b/apps/www/pages/support.tsx
@@ -6,7 +6,7 @@ import Typed from 'typed.js'
import { Button, ButtonProps, cn, IconCommand, IconSearch, SearchButton } from 'ui'
import DefaultLayout from '~/components/Layouts/Default'
-import InteractiveShimmerCard from '~/components/InteractiveShimmerCard'
+import Panel from '~/components/Panel'
import SectionContainer from '~/components/Layouts/SectionContainer'
import { questions } from 'shared-data'
import data from '~/data/support'
@@ -63,21 +63,20 @@ const Index = () => {
justify-between
bg-background
border
- border-scale-500
+ border-control
hover:bg-surface-100
- hover:border-scale-600
transition
rounded"
>
<div className="flex items-center flex-1 space-x-2">
- <IconSearch className="text-light" size={18} strokeWidth={2} />
+ <IconSearch className="text-foreground-light" size={18} strokeWidth={2} />
<p
ref={typerRef}
- className="text-lighter text-sm group-hover:text-light transition"
+ className="text-foreground-lighter text-sm group-hover:text-foreground-light transition"
/>
</div>
<div className="flex items-center h-full space-x-1">
- <div className="hidden text-lighter md:flex items-center justify-center h-5 w-10 border rounded bg-scale-500 border-scale-700 gap-1">
+ <div className="hidden text-foreground-lighter md:flex items-center justify-center h-5 w-10 border rounded bg-surface-300 border-foreground-lighter/30 gap-1">
<IconCommand size={12} strokeWidth={1.5} />
<span className="text-[12px]">K</span>
</div>
@@ -88,7 +87,7 @@ const Index = () => {
</div>
<SectionContainer className="text grid gap-5 md:grid-cols-2 xl:grid-cols-3 max-w-7xl !pb-8">
{data.cards.map((card) => (
- <InteractiveShimmerCard
+ <Panel
key={card.title}
outerClassName={cn(card.className)}
innerClassName="flex flex-col p-5"
@@ -96,7 +95,7 @@ const Index = () => {
<div className="mb-4 lg:mb-8 flex-1">
<h2 className="text text-lg font-medium">{card.title}</h2>
<div className="my-2 block">
- <p className="text-light">{card.paragraph}</p>
+ <p className="text-foreground-light">{card.paragraph}</p>
</div>
</div>
<div className="flex gap-2">
@@ -113,7 +112,7 @@ const Index = () => {
</Button>
))}
</div>
- </InteractiveShimmerCard>
+ </Panel>
))}
</SectionContainer>
<SectionContainer className="!pt-0 max-w-7xl">
diff --git a/apps/www/pages/vector/Vector.tsx b/apps/www/pages/vector/Vector.tsx
index 00e9851e987..4441b2c2a37 100644
--- a/apps/www/pages/vector/Vector.tsx
+++ b/apps/www/pages/vector/Vector.tsx
@@ -44,21 +44,21 @@ function VectorPage() {
],
}}
/>
- <DefaultLayout className="!bg-scale-300 dark:!bg-scale-100">
+ <DefaultLayout className="!bg-alternative">
<ProductHeaderCentered {...pageData.heroSection} />
<HighlightCards {...(pageData.highlightsSection as any)} />
<CenteredTitleImage {...pageData.integrations} />
<TimedTabsSection {...pageData.APIsection} />
- <div className="bg-white dark:bg-[#121212]">
+ <div className="bg-alternative">
<UseCasesSection {...pageData.useCasesSection} />
<FeaturesSection {...pageData.featuresSection} />
</div>
<CustomerQuotesSection {...pageData.quotesSection} />
- <div className="bg-gradient-to-t from-white dark:from-[#121212] to-transparent">
+ <div className="bg-gradient-to-t from-alternative to-transparent">
<EnterpriseCta />
</div>
- <div className="bg-scale-200">
- <div className="w-full h-[1px] bg-gradient-to-r from-scale-100 via-scale-500 dark:via-scale-600 to-scale-100" />
+ <div className="bg-background">
+ <div className="w-full h-[1px] bg-gradient-to-r from-background-alternative via-border to-background-alternative" />
<ProductsCta currentProduct={PRODUCT_SHORTNAMES.VECTOR} />
</div>
</DefaultLayout>
diff --git a/apps/www/public/rss.xml b/apps/www/public/rss.xml
index cdd882c5053..2189598dd77 100644
--- a/apps/www/public/rss.xml
+++ b/apps/www/public/rss.xml
@@ -5,9 +5,16 @@
<link>https://supabase.com</link>
<description>Latest news from Supabase</description>
<language>en</language>
- <lastBuildDate>Mon, 09 Oct 2023 22:00:00 GMT</lastBuildDate>
+ <lastBuildDate>Tue, 31 Oct 2023 23:00:00 GMT</lastBuildDate>
<atom:link href="https://supabase.com/rss.xml" rel="self" type="application/rss+xml"/>
<item>
+ <guid>https://supabase.com/blog/supabase-is-now-compatible-with-nextjs-14</guid>
+ <title>Supabase is now compatible with Next.js 14</title>
+ <link>https://supabase.com/blog/supabase-is-now-compatible-with-nextjs-14</link>
+ <description>The fastest way to build apps with Next.js 14 and Supabase</description>
+ <pubDate>Tue, 31 Oct 2023 23:00:00 GMT</pubDate>
+</item>
+<item>
<guid>https://supabase.com/blog/pgvector-vs-pinecone</guid>
<title>pgvector vs Pinecone: cost and performance</title>
<link>https://supabase.com/blog/pgvector-vs-pinecone</link>
diff --git a/apps/www/styles/index.css b/apps/www/styles/index.css
index 088f3ec5abb..3a79eb7e05a 100644
--- a/apps/www/styles/index.css
+++ b/apps/www/styles/index.css
@@ -143,12 +143,12 @@ h6:not(.overwrite) {
}
.p:not(.prose *):not(.overwrite) {
- @apply text-light;
+ @apply text-foreground-light;
margin-bottom: 16px;
}
.small:not(.prose *):not(.overwrite) {
- @apply text-lighter text-xs;
+ @apply text-foreground-lighter text-xs;
}
.sbui-border-fix select {
@@ -647,11 +647,11 @@ launch week
hsl(var(--brand-default)) 100%
);
}
- .gradient-text-scale-100 {
+ .gradient-text-100 {
background-image: -webkit-linear-gradient(45deg, #fff 0%, var(--colors-green12) 100%);
}
- .gradient-text-scale-500 {
+ .gradient-text-500 {
background-image: -webkit-linear-gradient(
45deg,
hsl(var(--foreground-lighter)) 0%,
@@ -675,10 +675,10 @@ launch week
background-image: -webkit-linear-gradient(45deg, #e4b641 100%, #f5bf0069 41%);
}
- .radial-gradient-text-scale-500 {
+ .radial-gradient-text-500 {
background: radial-gradient(45% 100% at 50% 50%, #fff 30%, hsla(0, 0%, 100%, 0.35) 100%);
}
- .radial-gradient-text-scale-600 {
+ .radial-gradient-text-600 {
background: radial-gradient(45% 100% at 50% 50%, #fff 30%, hsla(0, 0%, 100%, 0.6) 100%);
}
}
diff --git a/package-lock.json b/package-lock.json
index 63e26e318b6..ac899180399 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -45,6 +45,7 @@
"@supabase/supabase-js": "^2.38.2",
"common": "*",
"config": "*",
+ "dat.gui": "^0.7.9",
"framer-motion": "^6.5.1",
"github-slugger": "^2.0.0",
"gray-matter": "^4.0.3",
@@ -37761,7 +37762,9 @@
"common-tags": "^1.8.2",
"config": "*",
"configcat-js": "^7.0.0",
+ "dat.gui": "^0.7.9",
"dayjs": "^1.11.10",
+ "eslint-config-next": "^13.3.0",
"file-saver": "^2.0.5",
"framer-motion": "^6.5.1",
"generate-password": "^1.7.0",
diff --git a/packages/common/constants/environment.ts b/packages/common/constants/environment.ts
new file mode 100644
index 00000000000..82b3fdf90e2
--- /dev/null
+++ b/packages/common/constants/environment.ts
@@ -0,0 +1,2 @@
+export const IS_PLATFORM = process.env.NEXT_PUBLIC_IS_PLATFORM === 'true'
+export const IS_PROD = process.env.NEXT_PUBLIC_VERCEL_ENV === 'production'
diff --git a/packages/common/constants/index.ts b/packages/common/constants/index.ts
index b1b0b3c29be..b3cc074d36e 100644
--- a/packages/common/constants/index.ts
+++ b/packages/common/constants/index.ts
@@ -1,2 +1,3 @@
export * from './client-libraries'
+export * from './environment'
export * from './local-storage'
diff --git a/packages/common/hooks/index.ts b/packages/common/hooks/index.ts
index 12b0a79170f..d5ecf2c0cff 100644
--- a/packages/common/hooks/index.ts
+++ b/packages/common/hooks/index.ts
@@ -2,3 +2,4 @@ export * from './useBreakpoint'
export * from './useDebounce'
export * from './useParams'
export * from './useTelemetryProps'
+export * from './useThemeSandbox'
diff --git a/packages/common/hooks/useThemeSandbox.tsx b/packages/common/hooks/useThemeSandbox.tsx
new file mode 100644
index 00000000000..06b49c08b6c
--- /dev/null
+++ b/packages/common/hooks/useThemeSandbox.tsx
@@ -0,0 +1,145 @@
+import { useEffect, useState } from 'react'
+import { IS_PROD } from '../constants'
+
+const defaultDark: { [name: string]: string } = {
+ '--brand-accent': '160deg 100% 50%',
+ '--brand-default': '159.9deg 100% 38.6%',
+ '--brand-600': '136deg 59.5% 70%',
+ '--brand-500': '160.4deg 100% 19.2%',
+ '--brand-400': '160.4deg 100% 9.6%',
+ '--brand-300': '158.4deg 100% 4.9%',
+ '--brand-200': '162deg 100% 2%',
+ '--border-stronger': '200deg 16.1% 22%',
+ '--border-strong': '200deg 16.5% 17.8%',
+ '--border-alternative': '200deg 16.4% 13.1%',
+ '--border-control': '200deg 10% 14%',
+ '--border-overlay': '200deg 20% 9%',
+ '--border-secondary': '200deg 21.6% 10%',
+ '--border-muted': '200deg 14.9% 9.2%',
+ '--border-default': '200deg 10% 11%',
+ '--background-muted': '200deg 9.1% 10.8%',
+ '--background-overlay-hover': '200deg 20% 11%',
+ '--background-overlay-default': '200deg 14.3% 6.9%',
+ '--background-surface-300': '200deg 20% 10%',
+ '--background-surface-200': '200deg 20% 7%',
+ '--background-surface-100': '200deg 20% 6%',
+ '--background-control': '200deg 9% 11%',
+ '--background-selection': '200deg 9.8% 10%',
+ '--background-alternative': '200deg 20% 2.9%',
+ '--background-default': '200deg 20% 4%',
+ '--foreground-muted': '200deg 10% 35%',
+ '--foreground-lighter': '200deg 8% 55%',
+ '--foreground-light': '200deg 5% 69%',
+ '--foreground-default': '200deg 0% 93%',
+}
+const defaultLight: { [name: string]: string } = {
+ '--brand-accent': '152.9deg 60% 52.9%',
+ '--brand-default': '152.9deg 60% 52.9%',
+ '--brand-600': '153.2deg 49.7% 33.5%',
+ '--brand-500': '148.7deg 42.7% 69.2%',
+ '--brand-400': '149.1deg 59.3% 88.4%',
+ '--brand-300': '148.6deg 77.8% 94.7%',
+ '--brand-200': '156deg 71.4% 98.6%',
+ '--border-stronger': '205deg 10.7% 78%',
+ '--border-strong': '210deg 11.1% 85.9%',
+ '--border-secondary': '210deg 11.8% 93.3%',
+ '--border-alternative': '216deg 11.1% 91.2%',
+ '--border-control': '205.7deg 12.3% 88.8%',
+ '--border-overlay': '216deg 11.1% 91.2%',
+ '--border-muted': '210deg 11.8% 93.3%',
+ '--border-default': '216deg 11.1% 91.2%',
+ '--background-overlay-hover': '210deg 16.7% 95.3%',
+ '--background-overlay-default': '210deg 33.3% 98.8%',
+ '--background-surface-300': '210deg 11.8% 93.3%',
+ '--background-surface-200': '210deg 16.7% 95.3%',
+ '--background-surface-100': '210deg 33.3% 98.8%',
+ '--background-control': '210deg 16.7% 95.3%',
+ '--background-selection': '210deg 11.8% 93.3%',
+ '--background-muted': '210deg 10% 93%',
+ '--background-alternative': '210deg 10% 100%',
+ '--background-default': '210deg 16.7% 97.6%',
+ '--foreground-muted': '205.7deg 6.3% 56.1%',
+ '--foreground-lighter': '205.7deg 5.7% 52.2%',
+ '--foreground-light': '205.7deg 6.3% 43.5%',
+ '--foreground-default': '201.8deg 24.4% 8.8%',
+}
+
+/**
+ * Shows a GUI to test color themes in dev and preview env.
+ *
+ * To access sandbox mode:
+ * - switch theme to dark mode
+ * - append "#theme-sandbox" to the url
+ * - select "Apply Theme" to apply preset (localStorage will keep track of changes so you don't lose new values)
+ * - select "Reset localStorage" and refresh page to restart
+ */
+export const useThemeSandbox = (): any => {
+ const isWindowUndefined = typeof window === 'undefined'
+ if (isWindowUndefined || IS_PROD) return null
+ const hash = window.location.hash
+ const defaultConfig = defaultDark // use dark default tokens
+ // const defaultConfig = defaultLight // use light default tokens
+ const localPreset = localStorage.getItem('theme-sandbox')
+ const isSandbox = hash.includes('#theme-sandbox') || localPreset !== null
+ const [themeConfig, setThemeConfig] = useState(
+ localPreset ? JSON.parse(localPreset) : defaultConfig
+ )
+ const styles = document.querySelector(':root') as any
+
+ const handleSetThemeConfig = (name: string, value: any) => {
+ updateCSSVariables()
+ setThemeConfig((prevConfig: any) => ({ ...prevConfig, [name]: value }))
+ }
+
+ const updateCSSVariables = () => {
+ Object.entries(themeConfig).map(([key, value]) => styles.style.setProperty(key, value))
+ localStorage.setItem('theme-sandbox', JSON.stringify(themeConfig))
+ }
+
+ const init = async () => {
+ if (!isSandbox) return
+ const dat = await import('dat.gui')
+ const gui = new dat.GUI()
+
+ gui.width = 500
+
+ Object.entries(defaultConfig).map(([key, _value]) => {
+ if (!themeConfig[key]) return localStorage.removeItem('theme-sandbox')
+ const folderName = key.split('-')[2]
+ const folder = gui.__folders[folderName] ?? gui.addFolder(folderName)
+
+ return folder
+ .add(themeConfig, key)
+ .name(key)
+ .onChange((newValue) => {
+ handleSetThemeConfig(key, newValue)
+ })
+ })
+
+ var obj = {
+ 'Apply Theme': function () {
+ updateCSSVariables()
+ },
+ 'Exit Sandbox': function () {
+ gui.destroy()
+ },
+ 'Reset localStorage': function () {
+ localStorage.removeItem('theme-sandbox')
+ setThemeConfig(defaultConfig)
+ },
+ }
+
+ gui.add(obj, 'Apply Theme')
+ gui.add(obj, 'Reset localStorage')
+ gui.add(obj, 'Exit Sandbox')
+ gui.load
+ }
+
+ useEffect(() => {
+ init()
+ }, [])
+
+ return { themeConfig, handleSetThemeConfig, isSandbox }
+}
+
+export default useThemeSandbox
diff --git a/packages/config/code-hike.scss b/packages/config/code-hike.scss
index 5687d6b4500..f78da0afa74 100644
--- a/packages/config/code-hike.scss
+++ b/packages/config/code-hike.scss
@@ -216,6 +216,8 @@
top: 0.8em;
}
.ch-editor-tab {
+ border: none;
+ border-right: 1px solid var(--ch-16);
min-width: -webkit-fit-content;
min-width: -moz-fit-content;
min-width: fit-content;
@@ -228,10 +230,9 @@
box-sizing: border-box;
padding-left: 15px;
padding-right: 15px;
- background-color: var(--ch-24) !important;
- color: hsla(0, 0%, 100%, 0.5);
+ background-color: var(--ch-21) !important;
+ color: var(--ch-15);
min-width: 0;
- border-bottom: 1px solid;
}
.ch-editor-tab-active {
background-color: red;
@@ -261,8 +262,8 @@
// border: 1px solid red;
}
.ch-editor-frame .ch-frame-title-bar {
- background-color: var(--ch-t-background) !important;
- background: var(--ch-t-background) !important;
+ background-color: var(--ch-21) !important;
+ background: var(--ch-21) !important;
}
.ch-editor-terminal {
position: absolute;
@@ -642,7 +643,7 @@
background-color: rgba(186, 230, 253, 0.4);
}
.ch-editor-tab[data-active='true'] {
- background-color: var(--ch-24);
+ background-color: var(--ch-16) !important;
}
.ch-section-link[data-active='true'],
.ch-section-link[data-active='true'] * {
diff --git a/packages/config/tailwind.config.js b/packages/config/tailwind.config.js
index ebb6639fdf8..7a486564449 100644
--- a/packages/config/tailwind.config.js
+++ b/packages/config/tailwind.config.js
@@ -178,7 +178,7 @@ const uiConfig = ui({
height: '0.125rem',
width: '0.5rem',
borderRadius: '0.25rem',
- backgroundColor: 'var(--colors-scale7)',
+ backgroundColor: 'hsl(var(--border-strong))',
content: '""',
},
ol: {
@@ -194,19 +194,19 @@ const uiConfig = ui({
height: '1.2rem',
width: '1.2rem',
borderRadius: '0.25rem',
- backgroundColor: 'var(--colors-scale3)',
- border: '1px solid var(--colors-scale5)',
+ backgroundColor: 'hsl(var(--background-surface-100))',
+ border: '1px solid hsl(var(--border-default))',
content: 'counter(item) " "',
counterIncrement: 'item',
fontSize: '12px',
- color: 'var(--colors-scale9)',
+ color: 'hsl(var(--foreground-muted))',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
},
'p img': {
- border: '1px solid var(--colors-scale4)',
+ border: '1px solid hsl(var(--border-muted))',
borderRadius: '4px',
overflow: 'hidden',
},
@@ -230,7 +230,7 @@ const uiConfig = ui({
transition: 'color 0.3s ease-in-out',
paddingBottom: '2px',
fontWeight: '400',
- color: 'var(--colors-scale12)',
+ color: 'hsl(var(--colors-scale12))',
textDecorationLine: 'underline',
textDecorationColor: 'hsl(var(--brand-400))',
textDecorationThickness: '1px',
@@ -240,7 +240,7 @@ const uiConfig = ui({
textDecorationColor: 'hsl(var(--brand-default))',
},
figcaption: {
- color: 'var(--colors-scale9)',
+ color: 'hsl(var(--foreground-muted))',
},
'figure.quote-figure p:first-child': {
marginTop: '0 !important',
diff --git a/packages/config/ui.config.js b/packages/config/ui.config.js
index b9f24c04676..6bc3d2466ac 100644
--- a/packages/config/ui.config.js
+++ b/packages/config/ui.config.js
@@ -289,8 +289,8 @@ const uiConfig = {
},
colors: {
...colorClasses,
- 'hi-contrast': `var(--colors-fixed-scale12)`,
- 'lo-contrast': `var(--colors-fixed-scale1)`,
+ 'hi-contrast': `hsl(var(--foreground-default))`,
+ 'lo-contrast': `hsl(var(--background-alternative))`,
warning: {
default: 'red',
100: '#342355',
diff --git a/packages/ui/.storybook/preview.css b/packages/ui/.storybook/preview.css
index b62b4e7dbd7..b7e455bded3 100644
--- a/packages/ui/.storybook/preview.css
+++ b/packages/ui/.storybook/preview.css
@@ -74,7 +74,7 @@
@layer base {
/* * {
- @apply border-border;
+ @apply border-default;
} */
/* body {
@apply bg-background text-foreground;
diff --git a/packages/ui/.storybook/shadcn.css b/packages/ui/.storybook/shadcn.css
index b7e2bafa992..110b02c5144 100644
--- a/packages/ui/.storybook/shadcn.css
+++ b/packages/ui/.storybook/shadcn.css
@@ -70,7 +70,7 @@
@layer base {
/* * {
- @apply border-border;
+ @apply border-default;
} */
body {
@apply bg-background text-foreground;
diff --git a/packages/ui/build/css/themes/light.css b/packages/ui/build/css/themes/light.css
index c4684735942..82a38a9ac63 100644
--- a/packages/ui/build/css/themes/light.css
+++ b/packages/ui/build/css/themes/light.css
@@ -28,8 +28,8 @@
--border-alternative: var(--colors-slate-light-500);
--border-control: var(--colors-slate-light-600);
--border-overlay: var(--colors-slate-light-500);
- --border-secondary: var(--colors-gray-dark-400);
- --border-muted: var(--colors-gray-dark-400);
+ --border-secondary: var(--colors-slate-light-400);
+ --border-muted: var(--colors-slate-light-400);
--border-default: var(--colors-slate-light-500);
--background-overlay-hover: var(--colors-slate-light-300);
--background-overlay-default: var(--colors-slate-light-100);
@@ -40,7 +40,7 @@
--background-control: var(--colors-slate-light-300);
--background-selection: var(--colors-gray-light-400);
--background-default: var(--colors-slate-light-200);
- --foreground-muted: var(--colors-slate-light-800);
+ --foreground-muted: var(--colors-slate-light-900);
--foreground-lighter: var(--colors-slate-light-1000);
--foreground-light: var(--colors-slate-light-1100);
--foreground-strong: var(--colors-slate-light-1200);
diff --git a/packages/ui/src/components/Accordion/Accordion.stories.tsx b/packages/ui/src/components/Accordion/Accordion.stories.tsx
index e11fc9edc0c..41eea4d7350 100644
--- a/packages/ui/src/components/Accordion/Accordion.stories.tsx
+++ b/packages/ui/src/components/Accordion/Accordion.stories.tsx
@@ -13,13 +13,15 @@ export const OneItem = (args: AccordionProps) => (
<Accordion.Item
header={
<>
- <span className="text-scale-900 group-hover:text-scale-1200">Title of the thing</span>
+ <span className="text-foreground-muted group-hover:text-foreground">
+ Title of the thing
+ </span>
<Badge>Test badge</Badge>
</>
}
id="first"
>
- <span className="text-scale-900">
+ <span className="text-foreground-muted">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequatur amet labore.
</span>
</Accordion.Item>
@@ -30,41 +32,49 @@ export const MultipleItems = (args: AccordionProps) => (
<Accordion {...args} openBehaviour="multiple">
<Accordion.Item
header={
- <span className="text-scale-900 group-hover:text-scale-1200">Title of the thing</span>
+ <span className="text-foreground-muted group-hover:text-foreground">
+ Title of the thing
+ </span>
}
id={'1'}
>
- <span className="text-scale-900">
+ <span className="text-foreground-muted">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequatur amet labore.
</span>
</Accordion.Item>
<Accordion.Item
header={
- <span className="text-scale-900 group-hover:text-scale-1200">Title of the thing</span>
+ <span className="text-foreground-muted group-hover:text-foreground">
+ Title of the thing
+ </span>
}
id={'2'}
>
- <span className="text-scale-900">
+ <span className="text-foreground-muted">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequatur amet labore.
</span>
</Accordion.Item>
<Accordion.Item
header={
- <span className="text-scale-900 group-hover:text-scale-1200">Title of the thing</span>
+ <span className="text-foreground-muted group-hover:text-foreground">
+ Title of the thing
+ </span>
}
id={'3'}
>
- <span className="text-scale-900">
+ <span className="text-foreground-muted">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequatur amet labore.
</span>
</Accordion.Item>
<Accordion.Item
header={
- <span className="text-scale-900 group-hover:text-scale-1200">Title of the thing</span>
+ <span className="text-foreground-muted group-hover:text-foreground">
+ Title of the thing
+ </span>
}
id={'4'}
>
- <span className="text-scale-900">
+ <span className="text-foreground-muted">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequatur amet labore.
</span>
</Accordion.Item>
@@ -75,41 +85,49 @@ export const Bordered = (args: AccordionProps) => (
<Accordion {...args}>
<Accordion.Item
header={
- <span className="text-scale-900 group-hover:text-scale-1200">Title of the thing</span>
+ <span className="text-foreground-muted group-hover:text-foreground">
+ Title of the thing
+ </span>
}
id={'1'}
>
- <span className="text-scale-900">
+ <span className="text-foreground-muted">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequatur amet labore.
</span>
</Accordion.Item>
<Accordion.Item
header={
- <span className="text-scale-900 group-hover:text-scale-1200">Title of the thing</span>
+ <span className="text-foreground-muted group-hover:text-foreground">
+ Title of the thing
+ </span>
}
id={'2'}
>
- <span className="text-scale-900">
+ <span className="text-foreground-muted">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequatur amet labore.
</span>
</Accordion.Item>
<Accordion.Item
header={
- <span className="text-scale-900 group-hover:text-scale-1200">Title of the thing</span>
+ <span className="text-foreground-muted group-hover:text-foreground">
+ Title of the thing
+ </span>
}
id={'3'}
>
- <span className="text-scale-900">
+ <span className="text-foreground-muted">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequatur amet labore.
</span>
</Accordion.Item>
<Accordion.Item
header={
- <span className="text-scale-900 group-hover:text-scale-1200">Title of the thing</span>
+ <span className="text-foreground-muted group-hover:text-foreground">
+ Title of the thing
+ </span>
}
id={'4'}
>
- <span className="text-scale-900">
+ <span className="text-foreground-muted">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequatur amet labore.
</span>
</Accordion.Item>
@@ -125,25 +143,25 @@ export const LeftAlignedChevron = (args: AccordionProps) => (
<Accordion.Item
header={
<>
- <span className="text-scale-900 group-hover:text-scale-1200">First item</span>
+ <span className="text-foreground-muted group-hover:text-foreground">First item</span>
<Badge>Test badge</Badge>
</>
}
id="first"
>
- <span className="text-scale-900">
+ <span className="text-foreground-muted">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequatur amet labore.
</span>
</Accordion.Item>
<Accordion.Item
header={
<>
- <span className="text-scale-900 group-hover:text-scale-1200">Second item</span>
+ <span className="text-foreground-muted group-hover:text-foreground">Second item</span>
</>
}
id="second"
>
- <span className="text-scale-900">
+ <span className="text-foreground-muted">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequatur amet labore.
</span>
</Accordion.Item>
diff --git a/packages/ui/src/components/Admonition/index.tsx b/packages/ui/src/components/Admonition/index.tsx
index 1a076acf41c..869cf845791 100644
--- a/packages/ui/src/components/Admonition/index.tsx
+++ b/packages/ui/src/components/Admonition/index.tsx
@@ -17,36 +17,36 @@ export const Admonition = ({
'shadow p-4 rounded border-l-[5px] space-y-2 my-4',
`${
type === 'note'
- ? 'bg-scale-400 border-scale-800'
+ ? 'bg-surface-200 border-stronger'
: type === 'info'
- ? 'bg-scale-500 border-scale-800'
+ ? 'bg-surface-300 border-stronger'
: type === 'tip'
? 'bg-brand-300 border-brand-300'
: type === 'caution'
? 'bg-yellow-400 border-yellow-800'
: type === 'danger'
? 'bg-red-500 border-red-800'
- : 'bg-scale-500 border-scale-800'
+ : 'bg-surface-300 border-stronger'
}`,
].join(' ')}
>
<div className="flex items-center space-x-2">
{type === 'note' ? (
- <IconInfo className="text-scale-1200" size={18} strokeWidth={1.5} />
+ <IconInfo className="text-foreground" size={18} strokeWidth={1.5} />
) : type === 'info' ? (
- <IconInfo className="text-scale-1200" size={18} strokeWidth={1.5} />
+ <IconInfo className="text-foreground" size={18} strokeWidth={1.5} />
) : type === 'tip' ? (
- <IconHelpCircle className="text-scale-1200" size={18} strokeWidth={1.5} />
+ <IconHelpCircle className="text-foreground" size={18} strokeWidth={1.5} />
) : type === 'caution' ? (
- <IconAlertTriangle className="text-scale-1200" size={18} strokeWidth={1.5} />
+ <IconAlertTriangle className="text-foreground" size={18} strokeWidth={1.5} />
) : type === 'danger' ? (
- <IconAlertTriangle className="text-scale-1200" size={18} strokeWidth={1.5} />
+ <IconAlertTriangle className="text-foreground" size={18} strokeWidth={1.5} />
) : (
- <IconInfo className="text-scale-1200" size={18} strokeWidth={1.5} />
+ <IconInfo className="text-foreground" size={18} strokeWidth={1.5} />
)}
- <p className="text-sm text-scale-1200 uppercase my-0 font-bold">{label || type}</p>
+ <p className="text-sm text-foreground uppercase my-0 font-bold">{label || type}</p>
</div>
- <div className="admonition-content text-scale-1200 text-base space-y-1">{children}</div>
+ <div className="admonition-content text-foreground text-base space-y-1">{children}</div>
</div>
)
}
diff --git a/packages/ui/src/components/Button/Button.tsx b/packages/ui/src/components/Button/Button.tsx
index ce61dadf72f..963519b285f 100644
--- a/packages/ui/src/components/Button/Button.tsx
+++ b/packages/ui/src/components/Button/Button.tsx
@@ -36,41 +36,39 @@ const buttonVariants = cva(
focus-visible:outline-brand-600
shadow-sm`,
secondary: `
- bg-scale-1200
- text-scale-100 hover:text-scale-800
- focus-visible:text-scale-600
- border-scale-1100 hover:border-scale-900
- focus-visible:outline-scale-700
+ bg-foreground
+ text-background hover:text-border-stronger
+ focus-visible:text-border-control
+ border-foreground-light hover:border-foreground-lighter
+ focus-visible:outline-border-strong
shadow-sm`,
default: `
- text-scale-1200
- bg-scale-100 hover:bg-scale-300
- border-scale-600 hover:border-scale-700
- dark:border-scale-700 hover:dark:border-scale-800
- dark:bg-scale-500 dark:hover:bg-scale-600
+ text-foreground
+ bg-surface-100 hover:bg-selection
+ dark:bg-surface-300 hover:dark:bg-selection
+ border-control hover:border-strong
+ dark:border-strong hover:dark:border-stronger
focus-visible:outline-brand-600
shadow-sm`,
alternative: `
text-brand-600
bg-brand-200 hover:bg-brand-400
- border-brand-600 hover:border-brand-300
- dark:border-brand-400 hover:dark:border-brand-300
+ border-brand-600
focus-visible:border-brand-300
focus-visible:outline-brand-600
shadow-sm`,
outline: `
- text-scale-1200
+ text-foreground
bg-transparent
- border-scale-600 hover:border-scale-700
- dark:border-scale-800 hover:dark:border-scale-900
- focus-visible:outline-scale-700`,
+ border-strong hover:border-stronger
+ focus-visible:outline-border-strong`,
dashed: `
- text-scale-1200
+ text-foreground
border
border-dashed
- border-scale-700 hover:border-scale-900
+ border-strong hover:border-stronger
bg-transparent
- focus-visible:outline-scale-700
+ focus-visible:outline-border-strong
shadow-sm`,
link: `
text-brand-600
@@ -80,12 +78,12 @@ const buttonVariants = cva(
border-opacity-0
bg-opacity-0 dark:bg-opacity-0
shadow-none
- focus-visible:outline-scale-700`,
+ focus-visible:outline-border-strong`,
text: `
- text-scale-1200
- hover:bg-scale-500
+ text-foreground
+ hover:bg-surface-300
shadow-none
- focus-visible:outline-scale-700
+ focus-visible:outline-border-strong
border-transparent`,
danger: `
text-red-1100
@@ -111,7 +109,7 @@ const buttonVariants = cva(
...sizes,
},
overlay: {
- base: `absolute inset-0 bg-scale-200 opacity-50`,
+ base: `absolute inset-0 bg-background opacity-50`,
container: `fixed inset-0 transition-opacity`,
},
disabled: {
diff --git a/packages/ui/src/components/CodeBlock/CodeBlock.tsx b/packages/ui/src/components/CodeBlock/CodeBlock.tsx
index cbaf6b1d7d3..53bfb4a3ff7 100644
--- a/packages/ui/src/components/CodeBlock/CodeBlock.tsx
+++ b/packages/ui/src/components/CodeBlock/CodeBlock.tsx
@@ -84,7 +84,7 @@ export const CodeBlock = ({
return (
<>
{title && (
- <div className="rounded-t-md bg-scale-300 py-2 px-4 border-b border-scale-500 text-blue-1100 font-sans">
+ <div className="rounded-t-md bg-surface-100 py-2 px-4 border-b border-default text-blue-1100 font-sans">
{title.replace(/%20/g, ' ')}
</div>
)}
@@ -97,7 +97,7 @@ export const CodeBlock = ({
// @ts-ignore
style={monokaiTheme}
className={[
- 'code-block border p-4 w-full !my-0 !bg-scale-300',
+ 'code-block border p-4 w-full !my-0 !bg-surface-100',
`${!title ? '!rounded-md' : '!rounded-t-none !rounded-b-md'}`,
`${!showLineNumbers ? 'pl-6' : ''}`,
className,
@@ -110,7 +110,7 @@ export const CodeBlock = ({
lineProps={(lineNumber) => {
if (linesToHighlight.includes(lineNumber)) {
return {
- style: { display: 'block', backgroundColor: 'var(--colors-scale6)' },
+ style: { display: 'block', backgroundColor: 'hsl(var(--background-selection))' },
}
}
return {}
diff --git a/packages/ui/src/components/Collapsible/Collapsible.stories.tsx b/packages/ui/src/components/Collapsible/Collapsible.stories.tsx
index 8b6ca01742b..24f809563a7 100644
--- a/packages/ui/src/components/Collapsible/Collapsible.stories.tsx
+++ b/packages/ui/src/components/Collapsible/Collapsible.stories.tsx
@@ -14,7 +14,7 @@ export const Default = (args: any) => {
<Collapsible.Trigger asChild>
<button
type="button"
- className="group text-scale-1200 flex justify-between items-center w-full bg-scale-300 rounded border border-scale-500 p-3"
+ className="group text-foreground flex justify-between items-center w-full bg-surface-100 rounded border border-default p-3"
>
<div className="flex gap-2 items-center">
<IconChevronUp className="transition data-open-parent:rotate-0 data-closed-parent:rotate-180" />
@@ -29,7 +29,7 @@ export const Default = (args: any) => {
</button>
</Collapsible.Trigger>
<Collapsible.Content>
- <div className="group text-scale-1200 flex justify-between items-center w-full bg-scale-300 rounded border border-scale-500 p-3">
+ <div className="group text-foreground flex justify-between items-center w-full bg-surface-100 rounded border border-default p-3">
<h3 className="text-tomato-900">I am content</h3>
<h3 className="text-tomato-900">I am content</h3>
<h3 className="text-tomato-900">I am content</h3>
diff --git a/packages/ui/src/components/Command/APIKeys.tsx b/packages/ui/src/components/Command/APIKeys.tsx
index 6ce89cc4084..c5ffa24f9ed 100644
--- a/packages/ui/src/components/Command/APIKeys.tsx
+++ b/packages/ui/src/components/Command/APIKeys.tsx
@@ -39,10 +39,10 @@ const APIKeys = ({ isSubItem = false }) => {
)}
{apiKeys?.anon === undefined && apiKeys?.service === undefined && (
<CommandItem type="link" className="items-start">
- <IconAlertCircle strokeWidth={1.5} className="text-scale-1100" />
+ <IconAlertCircle strokeWidth={1.5} className="text-foreground-light" />
<div>
<p>No API keys available</p>
- <p className="text-scale-1000">
+ <p className="text-foreground-lighter">
You may not have the necessary permissions to view the project's API keys
</p>
</div>
diff --git a/packages/ui/src/components/Command/AiCommand.tsx b/packages/ui/src/components/Command/AiCommand.tsx
index 5715d2675c8..34b0ccd0127 100644
--- a/packages/ui/src/components/Command/AiCommand.tsx
+++ b/packages/ui/src/components/Command/AiCommand.tsx
@@ -396,15 +396,15 @@ const AiCommand = () => {
<div key={index} className="flex gap-6 mx-4 [overflow-anchor:none] mb-6">
<div
className="
- w-7 h-7 bg-scale-200 rounded-full border border-scale-400 flex items-center justify-center text-scale-1000 first-letter:
- ring-scale-200
+ w-7 h-7 bg-background rounded-full border border-muted flex items-center justify-center text-foreground-lighter first-letter:
+ ring-background
ring-1
shadow-sm
"
>
<IconUser strokeWidth={1.5} size={16} />
</div>
- <div className="prose text-scale-1000">{message.content}</div>
+ <div className="prose text-foreground-lighter">{message.content}</div>
</div>
)
case MessageRole.Assistant:
@@ -419,7 +419,7 @@ const AiCommand = () => {
/>
<>
{message.status === MessageStatus.Pending ? (
- <div className="bg-scale-700 h-[21px] w-[13px] mt-1 animate-pulse animate-bounce"></div>
+ <div className="bg-border-strong h-[21px] w-[13px] mt-1 animate-pulse animate-bounce"></div>
) : (
<ReactMarkdown
remarkPlugins={[remarkGfm]}
@@ -471,10 +471,10 @@ const AiCommand = () => {
{hasError && (
<div className="p-6 flex flex-col items-center gap-6 mt-4">
<IconAlertTriangle className="text-amber-900" strokeWidth={1.5} size={21} />
- <p className="text-lg text-scale-1200 text-center">
+ <p className="text-lg text-foreground text-center">
Sorry, looks like Clippy is having a hard time!
</p>
- <p className="text-sm text-scale-900 text-center">Please try again in a bit.</p>
+ <p className="text-sm text-foreground-muted text-center">Please try again in a bit.</p>
<Button size="tiny" type="secondary" onClick={handleReset}>
Try again?
</Button>
@@ -483,10 +483,10 @@ const AiCommand = () => {
<div className="[overflow-anchor:auto] h-px w-full"></div>
</div>
- <div className="absolute bottom-0 w-full bg-scale-200 py-3">
+ <div className="absolute bottom-0 w-full bg-background py-3">
{messages.length > 0 && !hasError && <AiWarning className="mb-3 mx-3" />}
<Input
- className="bg-scale-100 rounded mx-3 [&_input]:pr-32 md:[&_input]:pr-40"
+ className="bg-alternative rounded mx-3 [&_input]:pr-32 md:[&_input]:pr-40"
inputRef={inputRef}
autoFocus
placeholder={
@@ -501,8 +501,8 @@ const AiCommand = () => {
search ? 'opacity-100' : 'opacity-0'
}`}
>
- <span className="text-scale-1100">Submit message</span>
- <div className="hidden text-scale-1100 md:flex items-center justify-center h-6 w-6 rounded bg-scale-500">
+ <span className="text-foreground-light">Submit message</span>
+ <div className="hidden text-foreground-light md:flex items-center justify-center h-6 w-6 rounded bg-overlay-hover">
<IconCornerDownLeft size={12} strokeWidth={1.5} />
</div>
</div>
diff --git a/packages/ui/src/components/Command/Command.alerts.tsx b/packages/ui/src/components/Command/Command.alerts.tsx
index 04b5b0e0cd6..7c11bfd4651 100644
--- a/packages/ui/src/components/Command/Command.alerts.tsx
+++ b/packages/ui/src/components/Command/Command.alerts.tsx
@@ -6,7 +6,7 @@ export const AiWarning = ({ className }: { className?: string }) => (
variant="info"
title="Supabase AI is experimental and may produce incorrect answers."
className={className}
- icon={<Microscope strokeWidth={1.5} size={18} className="text-scale-900" />}
+ icon={<Microscope strokeWidth={1.5} size={18} className="text-foreground-muted" />}
>
<p>Always verify the output before executing.</p>
</Alert>
diff --git a/packages/ui/src/components/Command/Command.utils.tsx b/packages/ui/src/components/Command/Command.utils.tsx
index 7ac28a01056..096bc86ada2 100644
--- a/packages/ui/src/components/Command/Command.utils.tsx
+++ b/packages/ui/src/components/Command/Command.utils.tsx
@@ -51,8 +51,8 @@ export const CommandDialog = ({ children, onKeyDown, page, ...props }: CommandDi
{...props}
hideFooter
className={cn(
- '!bg-[#f8f9fa]/95 dark:!bg-[#1c1c1c]/80 backdrop-filter backdrop-blur-sm',
- '!border-[#e6e8eb]/90 dark:!border-[#282828]/90',
+ '!bg-overlay/90 backdrop-filter backdrop-blur-sm',
+ '!border-overlay/90',
'transition ease-out',
'place-self-start mx-auto top-24',
animateBounce ? 'scale-[101.5%]' : 'scale-100'
@@ -60,7 +60,7 @@ export const CommandDialog = ({ children, onKeyDown, page, ...props }: CommandDi
>
<Command
className={[
- '[&_[cmdk-group]]:px-2 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-scale-800 [&_[cmdk-input]]:h-12',
+ '[&_[cmdk-group]]:px-2 [&_[cmdk-group]]:!bg-transparent [&_[cmdk-group-heading]]:!bg-transparent [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-border-stronger [&_[cmdk-input]]:h-12',
'[&_[cmdk-item]_svg]:h-5',
'[&_[cmdk-item]_svg]:w-5',
'[&_[cmdk-input-wrapper]_svg]:h-5',
@@ -96,7 +96,7 @@ export const CommandInput = React.forwardRef<
className={cn(
'flex h-11 w-full rounded-md bg-transparent px-4 py-7 text-sm outline-none',
'focus:shadow-none focus:ring-transparent',
- 'text-scale-1100 placeholder:text-scale-800 dark:placeholder:text-scale-800 disabled:cursor-not-allowed disabled:opacity-50 dark:text-scale-1200 border-0',
+ 'text-foreground-light placeholder:text-border-stronger disabled:cursor-not-allowed disabled:opacity-50 border-0',
className
)}
{...props}
@@ -115,7 +115,7 @@ export const CommandList = React.forwardRef<CommandPrimitiveListElement, Command
({ className, ...props }, ref) => (
<CommandPrimitive.List
ref={ref}
- className={cn('overflow-y-auto overflow-x-hidden', className)}
+ className={cn('overflow-y-auto overflow-x-hidden bg-transparent', className)}
{...props}
/>
)
@@ -132,7 +132,7 @@ export const CommandEmpty = React.forwardRef<
>((props, ref) => (
<CommandPrimitive.Empty
ref={ref}
- className="py-6 text-center text-sm text-scale-900"
+ className="py-6 text-center text-sm text-foreground-muted"
{...props}
/>
))
@@ -149,7 +149,7 @@ export const CommandGroup = React.forwardRef<
<CommandPrimitive.Group
ref={ref}
className={cn(
- 'overflow-hidden py-3 px-2 text-scale-700 dark:text-scale-800 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:pb-1.5 [&_[cmdk-group-heading]]:text-sm [&_[cmdk-group-heading]]:font-normal [&_[cmdk-group-heading]]:text-scale-900 [&_[cmdk-group-heading]]:dark:text-sca-300',
+ 'overflow-hidden py-3 px-2 text-border-strong [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:pb-1.5 [&_[cmdk-group-heading]]:text-sm [&_[cmdk-group-heading]]:font-normal [&_[cmdk-group-heading]]:text-foreground-muted',
className
)}
{...props}
@@ -172,7 +172,7 @@ export const CommandSeparator = React.forwardRef<
className={cn(
`h-px
w-full
- bg-scale-50
+ bg-alternative
`,
className
)}
@@ -202,42 +202,32 @@ export const CommandItem = React.forwardRef<CommandPrimitiveItemElement, Command
'text-sm',
'group',
'py-3',
- 'text-scale-1100',
+ 'text-foreground-light',
'relative',
'flex',
type === 'block-link'
? `
- bg-[#fbfcfd]/90
- dark:bg-[#232323]/90
+ bg-transparent
border
- border-[#ddd]/90
- dark:border-[#282828]/90
- backdrop-filter
- backdrop-blur-md
+ border-overlay/90
px-5
transition-all
outline-none
- aria-selected:border-[#ccc]
- dark:aria-selected:border-[#323232]
- aria-selected:bg-[#f1f3f5]/90
- dark:aria-selected:bg-[#323232]
+ aria-selected:border-overlay
+ aria-selected:bg-overlay-hover/90
aria-selected:shadow-sm
aria-selected:scale-[100.3%]
data-[disabled]:pointer-events-none data-[disabled]:opacity-50`
: type === 'link'
? `
px-2
- backdrop-filter
- backdrop-blur-md
transition-all
outline-none
- aria-selected:bg-[#f1f3f5]/90
- dark:aria-selected:bg-[#323232]
+ aria-selected:bg-overlay-hover/90
data-[disabled]:pointer-events-none data-[disabled]:opacity-50`
: `
px-2
- aria-selected:bg-scale-300
- dark:aria-selected:bg-[#323232]/80
+ aria-selected:bg-overlay-hover/80
aria-selected:backdrop-filter
aria-selected:backdrop-blur-md
data-[disabled]:pointer-events-none
@@ -262,7 +252,7 @@ export const CommandItemStale = React.forwardRef<CommandPrimitiveItemElement, Co
<CommandPrimitive.Item
ref={ref}
className={cn(
- 'text-scale-1100 relative flex cursor-default select-none items-center rounded-md py-1.5 px-2 text-sm outline-none aria-selected:bg-scale-500 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:aria-selected:bg-scale-500',
+ 'text-foreground-light relative flex cursor-default select-none items-center rounded-md py-1.5 px-2 text-sm outline-none aria-selected:bg-overlay-selection data-[disabled]:pointer-events-none data-[disabled]:opacity-50',
className
)}
{...props}
@@ -292,8 +282,8 @@ export const CommandShortcut = ({
'cursor-default px-1.5 py-0.5 rounded text-xs [&:not(:last-child)]:hover:cursor-pointer',
'justify-end',
type === 'breadcrumb'
- ? 'text-scale-900'
- : 'bg-scale-500 text-scale-900 [&:not(:last-child)]:hover:bg-scale-600 last:bg-scale-600 last:text-scale-900',
+ ? 'text-foreground-muted'
+ : 'bg-overlay-hover text-foreground-muted [&:not(:last-child)]:hover:bg-selection last:bg-selection last:text-foreground-muted',
className
)}
>
@@ -323,7 +313,7 @@ export const TextHighlighter = ({ text, query, ...props }: TextHighlighterProps)
// Add back the wrapped `query` (if it's not the last element)
if (index !== parts.length - 1) {
- returnValue.push(<span className="font-semibold text-scale-1200">{query}</span>)
+ returnValue.push(<span className="font-semibold text-foreground">{query}</span>)
}
return returnValue
diff --git a/packages/ui/src/components/Command/CommandMenu.tsx b/packages/ui/src/components/Command/CommandMenu.tsx
index 12a4d47a286..f0c65dcaa95 100644
--- a/packages/ui/src/components/Command/CommandMenu.tsx
+++ b/packages/ui/src/components/Command/CommandMenu.tsx
@@ -115,7 +115,7 @@ const CommandMenu = ({ projectRef }: CommandMenuProps) => {
{search ? (
<>
{': '}
- <span className="text-scale-1200 font-semibold">{search}</span>
+ <span className="text-foreground font-semibold">{search}</span>
</>
) : (
'...'
@@ -135,7 +135,7 @@ const CommandMenu = ({ projectRef }: CommandMenuProps) => {
{search ? (
<>
{': '}
- <span className="text-scale-1200 font-semibold">{search}</span>
+ <span className="text-foreground font-semibold">{search}</span>
</>
) : (
'...'
@@ -148,7 +148,7 @@ const CommandMenu = ({ projectRef }: CommandMenuProps) => {
<CommandGroup heading="Quickstarts">
{sharedItems.quickstarts.map((item) => (
<CommandItem key={item.url} type="link" onSelect={() => router.push(item.url)}>
- <IconArrowRight className="text-scale-900" />
+ <IconArrowRight className="text-foreground-muted" />
<CommandLabel>
Start with <span className="font-bold"> {item.label}</span>
</CommandLabel>
@@ -161,7 +161,7 @@ const CommandMenu = ({ projectRef }: CommandMenuProps) => {
<CommandGroup heading="Projects">
{sharedItems.projectTools.map((item) => (
<CommandItem key={item.url} type="link" onSelect={() => router.push(item.url)}>
- <IconArrowRight className="text-scale-900" />
+ <IconArrowRight className="text-foreground-muted" />
<CommandLabel>
<span className="font-bold"> {item.label}</span>
</CommandLabel>
@@ -174,7 +174,7 @@ const CommandMenu = ({ projectRef }: CommandMenuProps) => {
<CommandGroup heading="Studio tools">
{sharedItems.tools.map((item) => (
<CommandItem key={item.url} type="link" onSelect={() => router.push(item.url)}>
- <IconArrowRight className="text-scale-900" />
+ <IconArrowRight className="text-foreground-muted" />
<CommandLabel>
Go to <span className="font-bold"> {item.label}</span>
</CommandLabel>
@@ -190,7 +190,7 @@ const CommandMenu = ({ projectRef }: CommandMenuProps) => {
badge={<BadgeExperimental />}
onSelect={() => setPages([...pages, COMMAND_ROUTES.GENERATE_SQL])}
>
- <AiIcon className="text-scale-1100" />
+ <AiIcon className="text-foreground-light" />
<CommandLabel>Generate SQL with Supabase AI</CommandLabel>
</CommandItem>
</CommandGroup>
@@ -205,7 +205,7 @@ const CommandMenu = ({ projectRef }: CommandMenuProps) => {
setPages([...pages, COMMAND_ROUTES.API_KEYS])
}}
>
- <IconKey className="text-scale-1100" />
+ <IconKey className="text-foreground-light" />
<CommandLabel>Get API keys</CommandLabel>
</CommandItem>
{project?.apiUrl !== undefined && (
@@ -217,7 +217,7 @@ const CommandMenu = ({ projectRef }: CommandMenuProps) => {
}}
className="space-x-2"
>
- <IconLink className="text-scale-1100" />
+ <IconLink className="text-foreground-light" />
<CommandLabel>Copy API URL</CommandLabel>
</ChildItem>
)}
@@ -240,7 +240,7 @@ const CommandMenu = ({ projectRef }: CommandMenuProps) => {
setIsOpen(false)
}}
>
- <IconArrowRight className="text-scale-900" />
+ <IconArrowRight className="text-foreground-muted" />
<CommandLabel>
Go to <span className="font-bold"> {item.label}</span>
</CommandLabel>
@@ -255,7 +255,7 @@ const CommandMenu = ({ projectRef }: CommandMenuProps) => {
<CommandGroup heading="Support">
{sharedItems.support.map((item) => (
<CommandItem key={item.url} type="link" onSelect={() => router.push(item.url)}>
- <IconLifeBuoy className="text-scale-900" />
+ <IconLifeBuoy className="text-foreground-muted" />
<CommandLabel>
Go to <span className="font-bold"> {item.label}</span>
</CommandLabel>
diff --git a/packages/ui/src/components/Command/DocsSearch.tsx b/packages/ui/src/components/Command/DocsSearch.tsx
index 7549f6b054e..a3d11cddeb5 100644
--- a/packages/ui/src/components/Command/DocsSearch.tsx
+++ b/packages/ui/src/components/Command/DocsSearch.tsx
@@ -125,7 +125,7 @@ const DocsSearch = () => {
<IconChevronRight
strokeWidth={1.5}
className="
- text-scale-900
+ text-foreground-muted
opacity-0
-left-4
group-aria-selected:scale-[101%]
@@ -142,11 +142,11 @@ const DocsSearch = () => {
className="
transition
w-6 h-6
- bg-scale-100
+ bg-alternative
group-aria-selected:scale-[105%]
- group-aria-selected:bg-scale-1200
- text-scale-1200
- group-aria-selected:text-scale-100
+ group-aria-selected:bg-foreground
+ text-foreground
+ group-aria-selected:text-background
rounded flex
items-center
justify-center
@@ -184,7 +184,7 @@ const DocsSearch = () => {
<TextHighlighter text={page.meta.title} query={search} />
</CommandLabel>
{page.meta.description && (
- <div className="text-xs text-scale-900">
+ <div className="text-xs text-foreground-muted">
<TextHighlighter text={page.meta.description} query={search} />
</div>
)}
@@ -194,7 +194,7 @@ const DocsSearch = () => {
<ChevronArrow />
</CommandItem>
{pageSections.length > 0 && (
- <div className="border-l border-scale-500 ml-3 pt-3">
+ <div className="border-l border-default ml-3 pt-3">
{pageSections.map((section, i) => (
<CommandItem
className="ml-3 mb-3"
@@ -210,7 +210,7 @@ const DocsSearch = () => {
<div className="flex flex-col gap-2">
<cite>
<TextHighlighter
- className="not-italic text-xs rounded-full px-2 py-1 bg-scale-500 text-scale-1200"
+ className="not-italic text-xs rounded-full px-2 py-1 bg-overlay-hover text-foreground"
text={page.meta.title}
query={search}
/>
@@ -255,11 +255,11 @@ const DocsSearch = () => {
)}
{isLoading && !results && (
<div className="p-6 grid gap-6 my-4">
- <p className="text-lg text-scale-900 text-center">Searching for results</p>
+ <p className="text-lg text-foreground-muted text-center">Searching for results</p>
</div>
)}
{results && results.length === 0 && (
- <div className="p-6 flex flex-col items-center gap-6 mt-4 text-scale-1100">
+ <div className="p-6 flex flex-col items-center gap-6 mt-4 text-foreground-light">
<IconAlertTriangle strokeWidth={1.5} size={40} />
<p className="text-lg text-center">No results found.</p>
<Button size="tiny" type="secondary" onClick={handleResetPrompt}>
diff --git a/packages/ui/src/components/Command/GenerateSQL/GenerateSQL.tsx b/packages/ui/src/components/Command/GenerateSQL/GenerateSQL.tsx
index bdef19c968f..65003b36f20 100644
--- a/packages/ui/src/components/Command/GenerateSQL/GenerateSQL.tsx
+++ b/packages/ui/src/components/Command/GenerateSQL/GenerateSQL.tsx
@@ -103,13 +103,13 @@ const GenerateSQL = () => {
<div className="flex gap-6 mx-4 [overflow-anchor:none] mb-6">
<div
className="
- w-7 h-7 bg-scale-200 rounded-full border border-scale-400 flex items-center justify-center text-scale-1000 first-letter:
- ring-scale-200 ring-1 shadow-sm
+ w-7 h-7 bg-background rounded-full border border-muted flex items-center justify-center text-foreground-lighter first-letter:
+ ring-background ring-1 shadow-sm
"
>
<IconUser strokeWidth={1.5} size={16} />
</div>
- <div className="flex items-center prose text-scale-1100 text-sm">
+ <div className="flex items-center prose text-foreground-light text-sm">
{message.content}
</div>
</div>
@@ -141,7 +141,7 @@ const GenerateSQL = () => {
</div>
<>
{message.status === MessageStatus.Pending ? (
- <div className="bg-scale-700 h-[21px] w-[13px] mt-1 animate-bounce"></div>
+ <div className="bg-border-strong h-[21px] w-[13px] mt-1 animate-bounce"></div>
) : cantHelp ? (
<div className="p-6 flex flex-col flex-grow items-center gap-6 mt-4">
<IconAlertTriangle
@@ -149,7 +149,7 @@ const GenerateSQL = () => {
strokeWidth={1.5}
size={21}
/>
- <p className="text-lg text-scale-1200 text-center">
+ <p className="text-lg text-foreground text-center">
Sorry, I don't know how to help with that.
</p>
<Button size="tiny" type="secondary" onClick={handleReset}>
@@ -163,14 +163,14 @@ const GenerateSQL = () => {
hideCopy
language="sql"
className="
- relative prose dark:prose-dark bg-scale-300 max-w-none !mb-0
+ relative prose dark:prose-dark bg-surface-100 max-w-none !mb-0
!rounded-b-none
"
>
{answer}
</CodeBlock>
- <AiWarning className="!rounded-t-none border-scale-400" />
+ <AiWarning className="!rounded-t-none border-muted" />
</div>
{message.status === MessageStatus.Complete && (
<SQLOutputActions answer={answer} messages={messages.slice(0, i + 1)} />
@@ -186,11 +186,11 @@ const GenerateSQL = () => {
{messages.length === 0 && !hasError && (
<div>
<div className="px-4">
- <h3 className="text-base text-scale-1100">
+ <h3 className="text-base text-foreground-light">
Describe what you need and Supabase AI will try to generate the relevant SQL
statements
</h3>
- <p className="text-sm mt-1 text-scale-1100">
+ <p className="text-sm mt-1 text-foreground-light">
Here are some example prompts to try out:
</p>
</div>
@@ -243,10 +243,10 @@ const GenerateSQL = () => {
{hasError && (
<div className="p-6 flex flex-col items-center gap-6 mt-4">
<IconAlertTriangle className="text-amber-900" strokeWidth={1.5} size={21} />
- <p className="text-lg text-scale-1200 text-center">
+ <p className="text-lg text-foreground text-center">
Sorry, looks like Clippy is having a hard time!
</p>
- <p className="text-sm text-scale-900 text-center">Please try again in a bit.</p>
+ <p className="text-sm text-foreground-muted text-center">Please try again in a bit.</p>
<Button size="tiny" type="secondary" onClick={handleReset}>
Try again?
</Button>
@@ -255,7 +255,7 @@ const GenerateSQL = () => {
<div className="[overflow-anchor:auto] h-px w-full"></div>
</div>
- <div className="absolute bottom-0 w-full bg-scale-200 pt-4">
+ <div className="absolute bottom-0 w-full bg-background pt-4">
{/* {messages.length > 0 && !hasError && <AiWarning className="mb-4 mx-4" />} */}
{allowSendingSchemaMetadata && (
<div className="mb-4">
@@ -266,7 +266,7 @@ const GenerateSQL = () => {
Include table names, column names and their corresponding data types in
conversation
</p>
- <p className="text-sm text-scale-1100">
+ <p className="text-sm text-foreground-light">
This will generate answers that are more relevant to your project during the
current conversation
</p>
@@ -286,7 +286,7 @@ const GenerateSQL = () => {
)}
<Input
inputRef={inputRef}
- className="bg-scale-100 rounded mx-3 mb-4 [&_input]:pr-32 md:[&_input]:pr-40"
+ className="bg-alternative rounded mx-3 mb-4 [&_input]:pr-32 md:[&_input]:pr-40"
autoFocus
placeholder={
isLoading || isResponding
@@ -302,8 +302,8 @@ const GenerateSQL = () => {
search ? 'opacity-100' : 'opacity-0'
}`}
>
- <span className="text-scale-1100">Submit message</span>
- <div className="hidden text-scale-1100 md:flex items-center justify-center h-6 w-6 rounded bg-scale-500">
+ <span className="text-foreground-light">Submit message</span>
+ <div className="hidden text-foreground-light md:flex items-center justify-center h-6 w-6 rounded bg-overlay-hover">
<IconCornerDownLeft size={12} strokeWidth={1.5} />
</div>
</div>
diff --git a/packages/ui/src/components/ExpandableVideo/ExpandableVideo.tsx b/packages/ui/src/components/ExpandableVideo/ExpandableVideo.tsx
index 952379f38cd..6b66c16eeef 100644
--- a/packages/ui/src/components/ExpandableVideo/ExpandableVideo.tsx
+++ b/packages/ui/src/components/ExpandableVideo/ExpandableVideo.tsx
@@ -89,7 +89,7 @@ export function ExpandableVideo({
<div className="relative w-full">
<button
onClick={() => setExpandVideo(false)}
- className="text-scale-1100 hover:text-scale-1200 absolute -top-8 right-0"
+ className="text-foreground-light hover:text-foreground absolute -top-8 right-0"
>
<p className="text-xs">Close</p>
</button>
diff --git a/packages/ui/src/components/Form/Form.stories.tsx b/packages/ui/src/components/Form/Form.stories.tsx
index f46c9ac0c29..ad48d26524c 100644
--- a/packages/ui/src/components/Form/Form.stories.tsx
+++ b/packages/ui/src/components/Form/Form.stories.tsx
@@ -356,12 +356,8 @@ export const CardForm = () => {
header?: React.ReactNode
footer?: React.ReactNode
}) => (
- <div className="bg-scale-300 border border-scale-400 rounded-md w-3/4 mx-auto my-8 shadow overflow-hidden">
- {header && (
- <div className="bg-scale-100 dark:bg-scale-200 px-8 py-4 border-b border-scale-400">
- {header}
- </div>
- )}
+ <div className="bg-surface-100 border border-overlay rounded-md w-3/4 mx-auto my-8 shadow overflow-hidden">
+ {header && <div className="bg-surface-100 px-8 py-4 border-b border-overlay">{header}</div>}
<div className="space-y-6 py-6">{children}</div>
{footer}
</div>
@@ -400,8 +396,8 @@ export const CardForm = () => {
<Panel
header={
<>
- <h3 className="text-scale-1200 text-xl font-semibold">Custom Options</h3>
- <p className="text-scale-900">
+ <h3 className="text-foreground text-xl font-semibold">Custom Options</h3>
+ <p className="text-foreground-muted">
These settings apply to payment pages you create using Stripe Checkout and Payment
Links.
</p>
@@ -409,7 +405,7 @@ export const CardForm = () => {
}
footer={
<>
- <div className="border-t border-scale-400"></div>
+ <div className="border-t border-muted"></div>
<div className="py-3 px-6 flex gap-2 justify-end">
<Button loading={isSubmitting} type="secondary" htmlType="submit">
Cancel
@@ -422,9 +418,9 @@ export const CardForm = () => {
}
>
{/* <p>{isSubmitting ? 'submitting' : 'not submitting'}</p> */}
- {/* <div className="border-t border-scale-400"></div> */}
+ {/* <div className="border-t border-muted"></div> */}
<Section
- header={<label className="text-sm text-scale-1200 col-span-4">Faster checkout</label>}
+ header={<label className="text-sm text-foreground col-span-4">Faster checkout</label>}
>
<Toggle
className="col-span-8"
@@ -434,9 +430,9 @@ export const CardForm = () => {
descriptionText="Go to Payment methods settings to configure Apple Pay and Google Pay."
/>
</Section>
- <div className="border-t border-scale-400"></div>
+ <div className="border-t border-muted"></div>
<Section
- header={<label className="text-sm text-scale-1200 col-span-4">Faster checkout</label>}
+ header={<label className="text-sm text-foreground col-span-4">Faster checkout</label>}
>
<Radio.Group
className="col-span-8"
@@ -461,9 +457,9 @@ export const CardForm = () => {
/>
</Radio.Group>
</Section>
- <div className="border-t border-scale-400"></div>
+ <div className="border-t border-muted"></div>
<Section
- header={<label className="text-sm text-scale-1200 col-span-4">Faster checkout</label>}
+ header={<label className="text-sm text-foreground col-span-4">Faster checkout</label>}
>
<div className="col-span-8 space-y-4">
<Input name="app_id" label="Application ID in Stripe" />
diff --git a/packages/ui/src/components/Form/examples/AuthForm.tsx b/packages/ui/src/components/Form/examples/AuthForm.tsx
index 1b4987e2387..8b69618c365 100644
--- a/packages/ui/src/components/Form/examples/AuthForm.tsx
+++ b/packages/ui/src/components/Form/examples/AuthForm.tsx
@@ -25,12 +25,10 @@ const DocsButton = () => {
return (
<button
className="
- bg-scale-300
- dark:bg-scale-100
- border-scale-500
- hover:border-scale-700
- dark:border-scale-300
- dark:hover:border-scale-500 group
+ bg-surface-100
+ border-default
+ hover:border-strong
+ group
my-6 flex
w-full items-center
gap-6
@@ -47,8 +45,8 @@ const DocsButton = () => {
/> */}
</div>
<div className="grow">
- <h3 className="text-scale-1200">Use authentication as the backbone of your app</h3>
- <p className="text-scale-900 text-xs">
+ <h3 className="text-foreground">Use authentication as the backbone of your app</h3>
+ <p className="text-foreground-muted text-xs">
Learn how to use Supabase Auth with Auth Policies to pick and choose what users see what.
</p>
<p className="text-brand mt-2 flex items-center gap-1 text-xs">
@@ -58,7 +56,7 @@ const DocsButton = () => {
</span>
</p>
</div>
- <div className="text-scale-900">
+ <div className="text-foreground-muted">
<IconX />
</div>
</button>
@@ -78,16 +76,10 @@ const CardForm = () => {
}) => (
<div
className="
- bg-scale-100
- dark:bg-scale-300
-
- border-scale-400 my-8 overflow-hidden rounded-md border shadow"
+ bg-surface-100
+ border-muted my-8 overflow-hidden rounded-md border shadow"
>
- {header && (
- <div className="bg-scale-100 dark:bg-scale-200 border-scale-400 border-b px-8 py-4">
- {header}
- </div>
- )}
+ {header && <div className="bg-background border-muted border-b px-8 py-4">{header}</div>}
<div className="space-y-6 py-6">{children}</div>
{footer}
</div>
@@ -136,7 +128,7 @@ const CardForm = () => {
<Panel
footer={
<>
- <div className="border-scale-400 border-t"></div>
+ <div className="border-muted border-t"></div>
<div className="flex justify-end gap-2 py-3 px-6">
<Button type="default" htmlType="reset" onClick={() => handleReset()}>
Cancel
@@ -154,7 +146,7 @@ const CardForm = () => {
}
>
<Section
- header={<label className="text-scale-1200 col-span-4 text-sm">User Signups</label>}
+ header={<label className="text-foreground col-span-4 text-sm">User Signups</label>}
>
<Toggle
id="enable_signups"
@@ -164,9 +156,9 @@ const CardForm = () => {
descriptionText="If this is disabled, new users will not be able to sign up to your application."
/>
</Section>
- <div className="border-scale-400 border-t"></div>
+ <div className="border-muted border-t"></div>
<Section
- header={<label className="text-scale-1200 col-span-4 text-sm">User Sessions</label>}
+ header={<label className="text-foreground col-span-4 text-sm">User Sessions</label>}
>
<InputNumber
className="col-span-8"
@@ -219,12 +211,8 @@ const AuthForm = () => {
header?: React.ReactNode
footer?: React.ReactNode
}) => (
- <div className="bg-scale-300 border-scale-400 mx-auto my-8 w-3/4 overflow-hidden rounded-md border shadow">
- {header && (
- <div className="bg-scale-100 dark:bg-scale-200 border-scale-400 border-b px-8 py-4">
- {header}
- </div>
- )}
+ <div className="bg-surface-100 border-overlay mx-auto my-8 w-3/4 overflow-hidden rounded-md border shadow">
+ {header && <div className="bg-background border-overlay border-b px-8 py-4">{header}</div>}
<div className="space-y-6 py-6">{children}</div>
{footer}
</div>
@@ -253,7 +241,7 @@ const AuthForm = () => {
return (
<div
className="
- bg-scale-400 border-scale-500 hover:border-scale-700 hover:bg-scale-500 mx-auto overflow-hidden
+ bg-surface-200 border-default hover:border-strong hover:bg-overlay-hover mx-auto overflow-hidden
border shadow
transition first:rounded-tr
first:rounded-tl
@@ -293,12 +281,11 @@ const AuthForm = () => {
open={open}
onOpenChange={setOpen}
className="
- bg-scale-100 dark:bg-scale-300
- hover:bg-scale-200 dark:hover:bg-scale-500
- data-open:bg-scale-200 dark:data-open:bg-scale-500
- border-scale-300
- dark:border-scale-500 hover:border-scale-500
- dark:hover:border-scale-700 data-open:border-scale-700
+ bg-surface-100
+ hover:bg-overlay-hover
+ data-open:bg-selection
+ border-default
+ hover:border-strong data-open:border-strong
data-open:pb-px col-span-12 mx-auto
-space-y-px overflow-hidden
@@ -317,13 +304,13 @@ const AuthForm = () => {
type="button"
className="
- text-scale-1200 group
+ text-foreground group
flex
w-full items-center justify-between rounded p-3 px-6"
>
<div className="flex items-center gap-3">
<IconChevronUp
- className="text-scale-800 data-open-parent:rotate-0 data-closed-parent:rotate-180 transition"
+ className="text-border-stronger data-open-parent:rotate-0 data-closed-parent:rotate-180 transition"
strokeWidth={2}
/>
@@ -345,7 +332,7 @@ const AuthForm = () => {
<span className="px-1">Enabled</span>
</div>
) : (
- <div className="bg-scale-100 dark:bg-scale-300 border-scale-500 dark:border-scale-700 text-scale-900 rounded-md border py-1 px-3 text-xs">
+ <div className="bg-surface-100 border-strong text-foreground-muted rounded-md border py-1 px-3 text-xs">
Disabled
</div>
)}
@@ -403,8 +390,8 @@ const AuthForm = () => {
<Collapsible.Content>
<div
className="
- bg-scale-100 dark:bg-scale-300
- text-scale-1200 border-scale-500 group border-t py-6 px-6
+ bg-surface-100
+ text-foreground border-default group border-t py-6 px-6
"
>
<div className="mx-auto max-w-md space-y-6">
@@ -414,7 +401,7 @@ const AuthForm = () => {
label={`Enable ${provider.name} Provider`}
layout="flex"
/>
- <div className="border-scale-400 border-t"></div>
+ <div className="border-muted border-t"></div>
{provider.form.map((x) => {
return (
<Input
@@ -427,7 +414,7 @@ const AuthForm = () => {
/>
)
})}
- <div className="border-scale-400 border-t"></div>
+ <div className="border-muted border-t"></div>
<div className="flex items-center justify-end gap-3">
<Button
htmlType="reset"
@@ -550,11 +537,11 @@ const DomainsForm = () => {
<>
<div className="my-6 flex items-center justify-between">
<div>
- <h3 className="text-scale-1200 mb-2 text-2xl">Authorised domains</h3>
- <p className="text-scale-900 text-sm">
+ <h3 className="text-foreground mb-2 text-2xl">Authorised domains</h3>
+ <p className="text-foreground-muted text-sm">
Turn payment methods on and off in one click – no engineering time required.
</p>
- <p className="text-scale-900 text-sm">
+ <p className="text-foreground-muted text-sm">
Use our guide to check which payment methods are compatible with your integration.
</p>
</div>
@@ -564,7 +551,7 @@ const DomainsForm = () => {
visible={open}
onCancel={() => setOpen(!open)}
header={
- <div className="text-scale-1200 flex items-center gap-2">
+ <div className="text-foreground flex items-center gap-2">
<div className="flex items-baseline gap-2">
<h3 className="text-sm">Add a new domain</h3>
</div>
@@ -607,7 +594,7 @@ const DomainsForm = () => {
return (
<div className="mb-4 space-y-4 pt-4">
<div className="px-5">
- <p className="text-scale-1100 text-sm">
+ <p className="text-foreground-light text-sm">
This will add a domain to a list of allowed domains that can interact with
your Authentication services for this project.
</p>
@@ -653,7 +640,7 @@ const DomainsForm = () => {
return (
<>
<div
- className="bg-scale-300 border-scale-500 text-scale-1200 flex items-center
+ className="bg-surface-100 border-default text-foreground flex items-center
justify-between gap-2
border px-6
py-4 text-sm
@@ -661,7 +648,7 @@ const DomainsForm = () => {
"
>
<div className="flex items-center gap-2 font-mono">
- <span className="text-scale-900">
+ <span className="text-foreground-muted">
<IconGlobe strokeWidth={2} size={14} />
</span>
{domain}
@@ -686,7 +673,7 @@ const DomainsForm = () => {
visible={deleteOpen}
onCancel={() => setDeleteOpen(!open)}
header={
- <div className="text-scale-1200 flex items-center gap-2">
+ <div className="text-foreground flex items-center gap-2">
<div className="flex items-baseline gap-2">
<h3 className="text-sm">Remove domain</h3>
</div>
@@ -697,11 +684,11 @@ const DomainsForm = () => {
>
<div className="mb-4 space-y-4 pt-4">
<div className="px-5">
- <p className="text-scale-1100 mb-2 text-sm">
+ <p className="text-foreground-light mb-2 text-sm">
Are you sure you want to remove{' '}
- <span className="text-scale-1200">{selectedDomain}</span>?
+ <span className="text-foreground">{selectedDomain}</span>?
</p>
- <p className="text-scale-900 text-sm">
+ <p className="text-foreground-muted text-sm">
This domain will no longer work with your Authentication configuration.
</p>
</div>
@@ -758,16 +745,11 @@ const SmtpForm = () => {
}) => (
<div
className="
- bg-scale-100
- dark:bg-scale-300
+ bg-surface-100
- border-scale-400 my-8 overflow-hidden rounded-md border shadow"
+ border-muted my-8 overflow-hidden rounded-md border shadow"
>
- {header && (
- <div className="bg-scale-100 dark:bg-scale-200 border-scale-400 border-b px-8 py-4">
- {header}
- </div>
- )}
+ {header && <div className="bg-background border-muted border-b px-8 py-4">{header}</div>}
<div className="space-y-6 py-6">{children}</div>
{footer}
</div>
@@ -816,7 +798,7 @@ const SmtpForm = () => {
<Panel
footer={
<>
- <div className="border-scale-400 border-t"></div>
+ <div className="border-muted border-t"></div>
<div className="flex justify-end gap-2 py-3 px-6">
<Button
loading={isSubmitting}
@@ -840,7 +822,7 @@ const SmtpForm = () => {
>
{/* <Section
header={
- <label className="text-sm text-scale-1200 col-span-4">
+ <label className="text-sm text-foreground col-span-4">
Enable SMTP
</label>
}
@@ -855,12 +837,12 @@ const SmtpForm = () => {
descriptionText="If this is disabled, new users will not be able to sign up to your application."
/>
{/* </Section> */}
- <div className="border-scale-400 border-t"></div>
+ <div className="border-muted border-t"></div>
<Section
header={
<div className="w-full">
- <label className="text-scale-1100 text-sm">SMTP details</label>
- <p className="text-scale-900 text-sm">
+ <label className="text-foreground-light text-sm">SMTP details</label>
+ <p className="text-foreground-muted text-sm">
These settings can be found in your SMTP provider config
</p>
</div>
@@ -905,15 +887,10 @@ const TemplatesForm = () => {
}) => (
<div
className="
- bg-scale-100
- dark:bg-scale-300
- border-scale-400 mb-8 overflow-hidden rounded-md border shadow"
+ bg-surface-100
+ border-muted mb-8 overflow-hidden rounded-md border shadow"
>
- {header && (
- <div className="bg-scale-100 dark:bg-scale-200 border-scale-400 border-b px-8 py-4">
- {header}
- </div>
- )}
+ {header && <div className="bg-background border-muted border-b px-8 py-4">{header}</div>}
<div className="space-y-6 py-6">{children}</div>
{footer}
</div>
@@ -977,7 +954,7 @@ const TemplatesForm = () => {
<Panel
footer={
<>
- <div className="border-scale-400 border-t"></div>
+ <div className="border-muted border-t"></div>
<div className="flex justify-end gap-2 py-3 px-6">
<Button
loading={isSubmitting}
@@ -1001,7 +978,7 @@ const TemplatesForm = () => {
>
{/* <Section
header={
- <label className="text-sm text-scale-1200 col-span-4">
+ <label className="text-sm text-foreground col-span-4">
Enable SMTP
</label>
}
@@ -1016,12 +993,12 @@ const TemplatesForm = () => {
descriptionText="If this is disabled, new users will not be able to sign up to your application."
/> */}
{/* </Section> */}
- {/* <div className="border-t border-scale-400"></div> */}
+ {/* <div className="border-t border-muted"></div> */}
<Section
header={
<div className="w-full">
- <h3 className="text-scale-1200 mb-4 text-base">Confirm Signup</h3>
- <p className="text-scale-900 text-sm">
+ <h3 className="text-foreground mb-4 text-base">Confirm Signup</h3>
+ <p className="text-foreground-muted text-sm">
When a user signs up using an email address and password, you can send them a
confirmation email to verify their registered email address. Learn more
</p>
@@ -1065,25 +1042,25 @@ export function WholeForm() {
<Tabs.Panel id="one" label="Sign-in method">
<div className="animate-fade-in space-y-12 py-12">
<div>
- <h1 className="text-scale-1200 text-3xl">Sign-in method</h1>
+ <h1 className="text-foreground text-3xl">Sign-in method</h1>
</div>
- <div className="border-scale-400 border-t"></div>
+ <div className="border-muted border-t"></div>
<div>
- <h3 className="text-scale-1200 mb-2 text-2xl">General settings</h3>
- <p className="text-scale-900 text-sm">
+ <h3 className="text-foreground mb-2 text-2xl">General settings</h3>
+ <p className="text-foreground-muted text-sm">
Turn payment methods on and off in one click – no engineering time required.
</p>
- <p className="text-scale-900 text-sm">
+ <p className="text-foreground-muted text-sm">
Use our guide to check which payment methods are compatible with your integration.
</p>
<CardForm />
</div>
<div>
- <h3 className="text-scale-1200 mb-2 text-2xl">Providers</h3>
- <p className="text-scale-900 text-sm">
+ <h3 className="text-foreground mb-2 text-2xl">Providers</h3>
+ <p className="text-foreground-muted text-sm">
Turn payment methods on and off in one click – no engineering time required.
</p>
- <p className="text-scale-900 text-sm">
+ <p className="text-foreground-muted text-sm">
Use our guide to check which payment methods are compatible with your integration.
</p>
<AuthForm />
@@ -1095,16 +1072,14 @@ export function WholeForm() {
<Tabs.Panel id="two" label="Emails">
<div className="animate-fade-in space-y-12 py-12">
<div>
- <h1 className="text-scale-1200 text-3xl">Emails</h1>
+ <h1 className="text-foreground text-3xl">Emails</h1>
</div>
<button
className="
- bg-scale-300
- dark:bg-scale-100
- border-scale-500
- hover:border-scale-700
- dark:border-scale-300
- dark:hover:border-scale-500 group
+ bg-surface-300
+ border-default
+ hover:border-strong
+ group
my-6 flex
w-full items-center
gap-6
@@ -1121,8 +1096,8 @@ export function WholeForm() {
/> */}
</div>
<div className="grow">
- <h3 className="text-scale-1200">Use authentication as the backbone of your app</h3>
- <p className="text-scale-900 text-xs">
+ <h3 className="text-foreground">Use authentication as the backbone of your app</h3>
+ <p className="text-foreground-muted text-xs">
Learn how to use Supabase Auth with Auth Policies to pick and choose what users
see what.
</p>
@@ -1133,21 +1108,21 @@ export function WholeForm() {
</span>
</p>
</div>
- <div className="text-scale-900">
+ <div className="text-foreground-muted">
<IconX />
</div>
</button>
- <div className="border-scale-400 border-t"></div>
+ <div className="border-muted border-t"></div>
<div>
- <h3 className="text-scale-1200 mb-2 text-2xl">Custom SMTP</h3>
- <p className="text-scale-900 text-sm">
+ <h3 className="text-foreground mb-2 text-2xl">Custom SMTP</h3>
+ <p className="text-foreground-muted text-sm">
You can use your own SMTP server instead of the built-in email service.
</p>
<SmtpForm />
</div>
<div>
- <h3 className="text-scale-1200 mb-2 text-2xl">Templates</h3>
- <p className="text-scale-900 text-sm">
+ <h3 className="text-foreground mb-2 text-2xl">Templates</h3>
+ <p className="text-foreground-muted text-sm">
You can use your own SMTP server instead of the built-in email service.
</p>
<TemplatesForm />
diff --git a/packages/ui/src/components/GlassPanel/GlassPanel.tsx b/packages/ui/src/components/GlassPanel/GlassPanel.tsx
index f1be7dce2ae..d478e679e2f 100644
--- a/packages/ui/src/components/GlassPanel/GlassPanel.tsx
+++ b/packages/ui/src/components/GlassPanel/GlassPanel.tsx
@@ -72,8 +72,8 @@ const GlassPanel = ({
'border rounded-lg',
'text-left',
background
- ? 'border-scale-500 hover:border-scale-700 bg-white dark:bg-scale-300'
- : 'border-scale-400 hover:border-scale-500 bg-transparent',
+ ? 'hover:border-strong bg-surface-100'
+ : 'border-muted hover:border-default bg-transparent',
'transition',
].join(' ')}
>
@@ -112,10 +112,10 @@ const GlassPanel = ({
) : (
icon && <IconBackground>{icon}</IconBackground>
)}
- <p className="text-base text-scale-1200">{title}</p>
+ <p className="text-base text-foreground">{title}</p>
</div>
- {children && <span className="text-sm text-scale-1100 flex-grow">{children}</span>}
+ {children && <span className="text-sm text-foreground-light flex-grow">{children}</span>}
{showLink && <span className="text-brand justify-end text-sm">Learn more</span>}
</div>
</div>
diff --git a/packages/ui/src/components/IconPanel/IconPanel.tsx b/packages/ui/src/components/IconPanel/IconPanel.tsx
index afa33aff218..3f5c0d7c6c9 100644
--- a/packages/ui/src/components/IconPanel/IconPanel.tsx
+++ b/packages/ui/src/components/IconPanel/IconPanel.tsx
@@ -44,8 +44,8 @@ const IconPanel = ({
'overflow-hidden',
'border rounded-full',
background
- ? 'border-scale-500 hover:border-scale-700 bg-white dark:bg-scale-300'
- : 'border-scale-400 hover:border-scale-500 bg-transparent',
+ ? 'hover:border-strong bg-surface-100'
+ : 'border-muted hover:border-default bg-transparent',
'transition',
].join(' ')}
>
@@ -84,12 +84,12 @@ const IconPanel = ({
)}
<div className="flex flex-col gap-1">
<div className="flex items-center gap-3">
- {title && <h5 className="text-base text-scale-1200 m-0">{title}</h5>}
+ {title && <h5 className="text-base text-foreground m-0">{title}</h5>}
{!hideArrow && (
<div
className="
transition-all ease-out -ml-1 opacity-0
- text-scale-800
+ text-foreground-muted
group-hover:opacity-100
group-hover:ml-0"
>
@@ -97,7 +97,9 @@ const IconPanel = ({
</div>
)}
</div>
- {children && <span className="text-sm text-scale-1100 not-prose">{children}</span>}
+ {children && (
+ <span className="text-sm text-foreground-light not-prose">{children}</span>
+ )}
{showLink && <span className="text-brand justify-end text-sm">Learn more</span>}
</div>
</div>
@@ -106,14 +108,14 @@ const IconPanel = ({
className="
absolute transition-all ease-in
-z-10 -inset-3 rounded-2xl
- bg-scale-200 dark:bg-whiteA-300 opacity-0 peer-hover:opacity-100"
+ bg-surface-100 opacity-0 peer-hover:opacity-100"
></div>
</div>
{tooltip && (
<ReactTooltip
effect="solid"
- backgroundColor="var(--colors-scale1)"
- textColor="var(--colors-scale11)"
+ backgroundColor="hsl(var(--background-alternative))"
+ textColor="hsl(var(--foreground-light))"
className="!py-2 !px-4"
/>
)}
diff --git a/packages/ui/src/components/LoadingLine/LoadingLine.tsx b/packages/ui/src/components/LoadingLine/LoadingLine.tsx
index afb8522b653..d63961a3eea 100644
--- a/packages/ui/src/components/LoadingLine/LoadingLine.tsx
+++ b/packages/ui/src/components/LoadingLine/LoadingLine.tsx
@@ -3,7 +3,7 @@ import { cn } from '../../lib/utils'
export const LoadingLine = ({ loading }: { loading: boolean }) => {
return (
- <div className="relative overflow-hidden w-full h-px bg-[#eceef0] dark:bg-[#2e2e2e] m-auto">
+ <div className="relative overflow-hidden w-full h-px bg-border m-auto">
<span
className={cn(
'absolute w-[80px] h-px ml-auto mr-auto left-0 right-0 text-center block top-0',
diff --git a/packages/ui/src/components/Modal/Modal.stories.tsx b/packages/ui/src/components/Modal/Modal.stories.tsx
index 218bc53277f..c14933b673d 100644
--- a/packages/ui/src/components/Modal/Modal.stories.tsx
+++ b/packages/ui/src/components/Modal/Modal.stories.tsx
@@ -28,9 +28,9 @@ export const withUseState = () => {
<div
className="
py-4 px-8
- bg-scale-300
+ bg-surface-100
border
- border-scale-500
+ border-default
rounded flex gap-4
shadow-sm
justify-between
@@ -45,8 +45,8 @@ export const withUseState = () => {
-translate-y-1/2"
>
<div>
- <h4 className="text-scale-1200 text-base">Delete your project</h4>
- <p className="text-scale-1100 text-sm">It will be sad to see you go</p>
+ <h4 className="text-foreground text-base">Delete your project</h4>
+ <p className="text-foreground-light text-sm">It will be sad to see you go</p>
</div>
<Button type="default" onClick={() => setVisible(!visible)} icon={<IconTrash />}>
Delete this project
@@ -58,13 +58,13 @@ export const withUseState = () => {
visible={visible}
onCancel={() => setVisible(!visible)}
header={
- <div className="flex items-center gap-2 text-scale-1200">
- {/* <div className="text-scale-600">
+ <div className="flex items-center gap-2 text-foreground">
+ {/* <div className="text-border-control">
<IconTrash strokeWidth={2} />
</div> */}
<div className="flex items-baseline gap-2">
<h3 className="text-sm">Delete your project</h3>
- <span className="text-xs text-scale-900">Are you sure?</span>
+ <span className="text-xs text-foreground-muted">Are you sure?</span>
</div>
</div>
}
@@ -106,12 +106,12 @@ export const withUseState = () => {
</span>
</div>
<div className="px-5">
- <p className="text-sm text-scale-1100">
+ <p className="text-sm text-foreground-light">
This action cannot be undone. This will permanently delete the project{' '}
- <span className="text-scale-1200 font-regular">MyProject</span>.
+ <span className="text-foreground font-regular">MyProject</span>.
</p>
</div>
- <div className="border-t border-scale-300 dark:border-scale-500"></div>
+ <div className="border-t border-muted dark:border-default"></div>
<div className="px-5">
<Input
id="name"
@@ -120,7 +120,7 @@ export const withUseState = () => {
label="Please type MyProject to confirm."
/>
</div>
- <div className="border-t border-scale-300 dark:border-scale-500"></div>
+ <div className="border-t border-muted dark:border-default"></div>
<div className="px-5">
<Button
type="danger"
@@ -146,13 +146,13 @@ export const Default = (args: any) => (
<Modal
{...args}
header={
- <div className="flex items-center gap-2 text-scale-1200">
+ <div className="flex items-center gap-2 text-foreground">
<div className="text-brand-400">
<IconLink2 />
</div>
<div className="flex items-baseline gap-2">
<h3>This is the title</h3>
- <span className="text-xs text-scale-900">This is the title</span>
+ <span className="text-xs text-foreground-muted">This is the title</span>
</div>
</div>
}
diff --git a/packages/ui/src/components/Popover/Popover.module.css b/packages/ui/src/components/Popover/Popover.module.css
index 97e8d4fabd7..153072e5dbc 100644
--- a/packages/ui/src/components/Popover/Popover.module.css
+++ b/packages/ui/src/components/Popover/Popover.module.css
@@ -1,5 +1,5 @@
.sbui-popover__content {
- @apply bg-scale-200 p-0;
+ @apply bg-background p-0;
@apply border;
@apply rounded;
@apply shadow;
@@ -46,7 +46,7 @@
} */
.sbui-popover__arrow {
- @apply fill-current text-scale-200;
+ @apply fill-current text-background;
@apply border-0 border-t;
border-style: solid;
}
@@ -55,9 +55,9 @@
@apply absolute top-1 right-0;
@apply bg-transparent cursor-pointer border-none;
- @apply text-gray-300;
- @apply hover:text-gray-400;
+ @apply text-background-surface-100;
+ @apply hover:text-background-surface-200;
- @apply dark:text-dark-400;
- @apply dark:hover:text-dark-300;
+ @apply dark:text-background-surface-200;
+ @apply dark:hover:text-background-surface-00;
}
diff --git a/packages/ui/src/components/Popover/Popover.stories.tsx b/packages/ui/src/components/Popover/Popover.stories.tsx
index cb7c1d6910a..4de7b5328c6 100644
--- a/packages/ui/src/components/Popover/Popover.stories.tsx
+++ b/packages/ui/src/components/Popover/Popover.stories.tsx
@@ -22,7 +22,7 @@ export const Default = (args: any) => (
<Button type="default" size="tiny">
Clear
</Button>
- <h5 className="text-sm text-scale-1200">Filter</h5>
+ <h5 className="text-sm text-foreground">Filter</h5>
<Button type="primary">Save</Button>
</div>
}
diff --git a/packages/ui/src/components/SidePanel/SidePanel.module.css b/packages/ui/src/components/SidePanel/SidePanel.module.css
index edb7edff6ec..2b31fcfe063 100644
--- a/packages/ui/src/components/SidePanel/SidePanel.module.css
+++ b/packages/ui/src/components/SidePanel/SidePanel.module.css
@@ -53,7 +53,7 @@
} */
/* .sbui-sidepanel-overlay {
- @apply absolute inset-0 bg-scale-300 opacity-75;
+ @apply absolute inset-0 bg-surface-100 opacity-75;
} */
.sbui-sidepanel--left {
diff --git a/packages/ui/src/components/SidePanel/SidePanel.stories.tsx b/packages/ui/src/components/SidePanel/SidePanel.stories.tsx
index a141522775c..8d68e304426 100644
--- a/packages/ui/src/components/SidePanel/SidePanel.stories.tsx
+++ b/packages/ui/src/components/SidePanel/SidePanel.stories.tsx
@@ -10,7 +10,7 @@ export default {
}
const content = (
- <span className="text-scale-900 text-sm">
+ <span className="text-foreground-muted text-sm">
SidePanel content is inserted here, if you need to insert anything into the SidePanel you can do
so via
<span className="text-code">children</span>
@@ -23,8 +23,8 @@ export const Default = (args: any) => (
{...args}
header={
<>
- <h3 className="text-base text-scale-1200">This is the title</h3>
- <p className="text-xs text-scale-900">This is the title</p>
+ <h3 className="text-base text-foreground">This is the title</h3>
+ <p className="text-xs text-foreground-muted">This is the title</p>
</>
}
>
@@ -66,7 +66,7 @@ export const customFooter = (args: any) => (
export const triggerElement = (args: any) => (
<>
<SidePanel {...args}>
- <span className="text-scale-900">This was opened with a trigger element</span>
+ <span className="text-foreground-muted">This was opened with a trigger element</span>
</SidePanel>
</>
)
@@ -80,7 +80,7 @@ export const nestedSidepanels = (args: any) => {
<div
className="
p-3 px-5
- bg-scale-300 border border-scale-600 rounded flex gap-4
+ bg-surface-100 border border-control rounded flex gap-4
justify-between
items-center
@@ -93,8 +93,8 @@ export const nestedSidepanels = (args: any) => {
-translate-y-1/2"
>
<div>
- <h4 className="text-scale-1200 text-base">Shall we nest some components?</h4>
- <p className="text-scale-1100 text-sm">yea sure, go on then.</p>
+ <h4 className="text-foreground text-base">Shall we nest some components?</h4>
+ <p className="text-foreground-light text-sm">yea sure, go on then.</p>
</div>
<Button type="secondary" onClick={() => setPanel1Visible(true)}>
Open sidepanel
@@ -106,11 +106,11 @@ export const nestedSidepanels = (args: any) => {
onConfirm={() => setPanel1Visible(false)}
>
<div className="space-y-3">
- <p className="text-sm text-scale-900 font-light">
+ <p className="text-sm text-foreground-muted font-light">
This Sidepanel was opened with a trigger element
</p>
- <p className="text-sm text-scale-1200">
+ <p className="text-sm text-foreground">
You can open a nested panel by clicking the button below
</p>
@@ -135,51 +135,51 @@ export const nestedSidepanels = (args: any) => {
export const longContent = (args: any) => (
<>
<SidePanel {...args}>
- <p className="text-scale-900">This is a paragraph</p>
- <p className="text-scale-900">This is a paragraph</p>
- <p className="text-scale-900">This is a paragraph</p>
- <p className="text-scale-900">This is a paragraph</p>
- <p className="text-scale-900">This is a paragraph</p>
- <p className="text-scale-900">This is a paragraph</p>
- <p className="text-scale-900">This is a paragraph</p>
- <p className="text-scale-900">This is a paragraph</p>
- <p className="text-scale-900">This is a paragraph</p>
- <p className="text-scale-900">This is a paragraph</p>
- <p className="text-scale-900">This is a paragraph</p>
- <p className="text-scale-900">This is a paragraph</p>
- <p className="text-scale-900">This is a paragraph</p>
- <p className="text-scale-900">This is a paragraph</p>
- <p className="text-scale-900">This is a paragraph</p>
- <p className="text-scale-900">This is a paragraph</p>
- <p className="text-scale-900">This is a paragraph</p>
- <p className="text-scale-900">This is a paragraph</p>
- <p className="text-scale-900">This is a paragraph</p>
- <p className="text-scale-900">This is a paragraph</p>
- <p className="text-scale-900">This is a paragraph</p>
- <p className="text-scale-900">This is a paragraph</p>
- <p className="text-scale-900">This is a paragraph</p>
- <p className="text-scale-900">This is a paragraph</p>
- <p className="text-scale-900">This is a paragraph</p>
- <p className="text-scale-900">This is a paragraph</p>
- <p className="text-scale-900">This is a paragraph</p>
- <p className="text-scale-900">This is a paragraph</p>
- <p className="text-scale-900">This is a paragraph</p>
- <p className="text-scale-900">This is a paragraph</p>
- <p className="text-scale-900">This is a paragraph</p>
- <p className="text-scale-900">This is a paragraph</p>
- <p className="text-scale-900">This is a paragraph</p>
- <p className="text-scale-900">This is a paragraph</p>
- <p className="text-scale-900">This is a paragraph</p>
- <p className="text-scale-900">This is a paragraph</p>
- <p className="text-scale-900">This is a paragraph</p>
- <p className="text-scale-900">This is a paragraph</p>
- <p className="text-scale-900">This is a paragraph</p>
- <p className="text-scale-900">This is a paragraph</p>
- <p className="text-scale-900">This is a paragraph</p>
- <p className="text-scale-900">This is a paragraph</p>
- <p className="text-scale-900">This is a paragraph</p>
- <p className="text-scale-900">This is a paragraph</p>
- <p className="text-scale-900">This is a paragraph</p>
+ <p className="text-foreground-muted">This is a paragraph</p>
+ <p className="text-foreground-muted">This is a paragraph</p>
+ <p className="text-foreground-muted">This is a paragraph</p>
+ <p className="text-foreground-muted">This is a paragraph</p>
+ <p className="text-foreground-muted">This is a paragraph</p>
+ <p className="text-foreground-muted">This is a paragraph</p>
+ <p className="text-foreground-muted">This is a paragraph</p>
+ <p className="text-foreground-muted">This is a paragraph</p>
+ <p className="text-foreground-muted">This is a paragraph</p>
+ <p className="text-foreground-muted">This is a paragraph</p>
+ <p className="text-foreground-muted">This is a paragraph</p>
+ <p className="text-foreground-muted">This is a paragraph</p>
+ <p className="text-foreground-muted">This is a paragraph</p>
+ <p className="text-foreground-muted">This is a paragraph</p>
+ <p className="text-foreground-muted">This is a paragraph</p>
+ <p className="text-foreground-muted">This is a paragraph</p>
+ <p className="text-foreground-muted">This is a paragraph</p>
+ <p className="text-foreground-muted">This is a paragraph</p>
+ <p className="text-foreground-muted">This is a paragraph</p>
+ <p className="text-foreground-muted">This is a paragraph</p>
+ <p className="text-foreground-muted">This is a paragraph</p>
+ <p className="text-foreground-muted">This is a paragraph</p>
+ <p className="text-foreground-muted">This is a paragraph</p>
+ <p className="text-foreground-muted">This is a paragraph</p>
+ <p className="text-foreground-muted">This is a paragraph</p>
+ <p className="text-foreground-muted">This is a paragraph</p>
+ <p className="text-foreground-muted">This is a paragraph</p>
+ <p className="text-foreground-muted">This is a paragraph</p>
+ <p className="text-foreground-muted">This is a paragraph</p>
+ <p className="text-foreground-muted">This is a paragraph</p>
+ <p className="text-foreground-muted">This is a paragraph</p>
+ <p className="text-foreground-muted">This is a paragraph</p>
+ <p className="text-foreground-muted">This is a paragraph</p>
+ <p className="text-foreground-muted">This is a paragraph</p>
+ <p className="text-foreground-muted">This is a paragraph</p>
+ <p className="text-foreground-muted">This is a paragraph</p>
+ <p className="text-foreground-muted">This is a paragraph</p>
+ <p className="text-foreground-muted">This is a paragraph</p>
+ <p className="text-foreground-muted">This is a paragraph</p>
+ <p className="text-foreground-muted">This is a paragraph</p>
+ <p className="text-foreground-muted">This is a paragraph</p>
+ <p className="text-foreground-muted">This is a paragraph</p>
+ <p className="text-foreground-muted">This is a paragraph</p>
+ <p className="text-foreground-muted">This is a paragraph</p>
+ <p className="text-foreground-muted">This is a paragraph</p>
</SidePanel>
</>
)
diff --git a/packages/ui/src/components/SidePanel/SidePanel.tsx b/packages/ui/src/components/SidePanel/SidePanel.tsx
index 13622bbce5d..4ac7a46ee06 100644
--- a/packages/ui/src/components/SidePanel/SidePanel.tsx
+++ b/packages/ui/src/components/SidePanel/SidePanel.tsx
@@ -90,11 +90,11 @@ const SidePanel = ({
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
- <span className="text-xs text-scale-1200">{tooltip}</span>
+ <span className="text-xs text-foreground">{tooltip}</span>
</div>
</Tooltip.Content>
</Tooltip.Portal>
diff --git a/packages/ui/src/components/TextLink/TextLink.tsx b/packages/ui/src/components/TextLink/TextLink.tsx
index ed15b937b3a..7de47310801 100644
--- a/packages/ui/src/components/TextLink/TextLink.tsx
+++ b/packages/ui/src/components/TextLink/TextLink.tsx
@@ -21,7 +21,7 @@ function TextLink({
<Link
href={url}
className={cn(
- 'text-scale-1100 hover:text-scale-1200 mt-3 block cursor-pointer text-sm focus-visible:ring-2 focus-visible:outline-none focus-visible:rounded-sm focus-visible:ring-foreground-lighter focus-visible:text-foreground-strong',
+ 'text-foreground-light hover:text-foreground mt-3 block cursor-pointer text-sm focus-visible:ring-2 focus-visible:outline-none focus-visible:rounded-sm focus-visible:ring-foreground-lighter focus-visible:text-foreground-strong',
className
)}
{...props}
diff --git a/packages/ui/src/components/TweetCard/TweetCard.tsx b/packages/ui/src/components/TweetCard/TweetCard.tsx
index ca9f681457b..f7c21c56259 100644
--- a/packages/ui/src/components/TweetCard/TweetCard.tsx
+++ b/packages/ui/src/components/TweetCard/TweetCard.tsx
@@ -10,15 +10,15 @@ function TweetCard(props: TweetCard) {
return (
<div
className="
- dark:bg-scale-300 border-scale-300 dark:border-scale-400
- rounded-2xl border bg-white p-6
+ bg-surface-100 border-overlay
+ rounded-2xl border p-6
drop-shadow-sm
"
>
<div className="relative">
<div className="flex items-center gap-2">
{props.img_url ? (
- <div className="h-10 w-10 overflow-hidden rounded-full border dark:border-gray-600">
+ <div className="h-10 w-10 overflow-hidden rounded-full border border-control">
<Image
src={props.img_url}
layout="responsive"
@@ -30,7 +30,7 @@ function TweetCard(props: TweetCard) {
) : (
<div className="w-6" />
)}
- <p className="text-scale-1200 text-sm font-medium">{props.handle}</p>
+ <p className="text-foreground text-sm font-medium">{props.handle}</p>
<div
className="absolute -left-1 -top-1 flex h-5 w-5 items-center justify-center rounded-full"
style={{ background: '#000' }}
@@ -47,7 +47,7 @@ function TweetCard(props: TweetCard) {
</div>
</div>
- <p className="text-scale-900 mt-3 text-base">"{props.quote}"</p>
+ <p className="text-foreground-muted mt-3 text-base">"{props.quote}"</p>
</div>
)
}
diff --git a/packages/ui/src/components/shadcn/stories/Calendar.stories.tsx b/packages/ui/src/components/shadcn/stories/Calendar.stories.tsx
index 1c4172a11d0..ce3b2064ba7 100644
--- a/packages/ui/src/components/shadcn/stories/Calendar.stories.tsx
+++ b/packages/ui/src/components/shadcn/stories/Calendar.stories.tsx
@@ -73,7 +73,7 @@ export const Default = () => {
// variant={'outline'}
// className={cn(
// 'w-[240px] pl-3 text-left font-normal',
-// !field.value && 'text-muted-foreground'
+// !field.value && 'text-foreground-muted'
// )}
// >
// {field.value ? format(field.value, 'PPP') : <span>Pick a date</span>}
diff --git a/packages/ui/src/components/shadcn/stories/Card.stories.tsx b/packages/ui/src/components/shadcn/stories/Card.stories.tsx
index 21808a8ca7e..7f8a6a28e79 100644
--- a/packages/ui/src/components/shadcn/stories/Card.stories.tsx
+++ b/packages/ui/src/components/shadcn/stories/Card.stories.tsx
@@ -111,7 +111,7 @@ export const CardDemo = ({ className, ...props }: CardProps) => {
<BellRing />
<div className="flex-1 space-y-1">
<p className="text-sm font-medium leading-none">Push Notifications</p>
- <p className="text-sm text-muted-foreground">Send notifications to device.</p>
+ <p className="text-sm text-foreground-muted">Send notifications to device.</p>
</div>
<Switch />
</div>
@@ -124,7 +124,7 @@ export const CardDemo = ({ className, ...props }: CardProps) => {
<span className="flex h-2 w-2 translate-y-1 rounded-full bg-sky-500" />
<div className="space-y-1">
<p className="text-sm font-medium leading-none">{notification.title}</p>
- <p className="text-sm text-muted-foreground">{notification.description}</p>
+ <p className="text-sm text-foreground-muted">{notification.description}</p>
</div>
</div>
))}
diff --git a/packages/ui/src/components/shadcn/stories/Checkbox.stories.tsx b/packages/ui/src/components/shadcn/stories/Checkbox.stories.tsx
index 7a403541ec4..125eb62b6ba 100644
--- a/packages/ui/src/components/shadcn/stories/Checkbox.stories.tsx
+++ b/packages/ui/src/components/shadcn/stories/Checkbox.stories.tsx
@@ -46,7 +46,7 @@ export function CheckboxWithText() {
>
Accept terms and conditions
</label>
- <p className="text-sm text-muted-foreground">
+ <p className="text-sm text-foreground-muted">
You agree to our Terms of Service and Privacy Policy.
</p>
</div>
diff --git a/packages/ui/src/components/shadcn/stories/ComboBox.stories.tsx b/packages/ui/src/components/shadcn/stories/ComboBox.stories.tsx
index 067f6616757..54ecb513ec7 100644
--- a/packages/ui/src/components/shadcn/stories/ComboBox.stories.tsx
+++ b/packages/ui/src/components/shadcn/stories/ComboBox.stories.tsx
@@ -188,7 +188,7 @@ export const PopoverExample = {
return (
<div className="flex items-center space-x-4">
- <p className="text-sm text-muted-foreground">Status</p>
+ <p className="text-sm text-foreground-muted">Status</p>
<Popover open={open} onOpenChange={setOpen}>
<PopoverTrigger asChild>
<Button variant="outline" size="sm" className="w-[150px] justify-start">
@@ -259,7 +259,7 @@ export const DropdownExample = {
<span className="mr-2 rounded-lg bg-primary px-2 py-1 text-xs text-primary-foreground">
{label}
</span>
- <span className="text-muted-foreground">Create a new project</span>
+ <span className="text-foreground-muted">Create a new project</span>
</p>
<DropdownMenu open={open} onOpenChange={setOpen}>
<DropdownMenuTrigger asChild>
@@ -373,7 +373,7 @@ export const ReactHookFormDemo = {
role="combobox"
className={cn(
'w-[200px] justify-between',
- !field.value && 'text-muted-foreground'
+ !field.value && 'text-foreground-muted'
)}
>
{field.value
@@ -464,7 +464,7 @@ export const ComboOrgPicker = {
return (
<div className="flex items-center space-x-4">
- <p className="text-sm text-muted-foreground">Status</p>
+ <p className="text-sm text-foreground-muted">Status</p>
<Popover open={open} onOpenChange={setOpen}>
<PopoverTrigger asChild>
<Button variant="outline" size="sm" className="w-[320px] justify-start">
@@ -638,7 +638,7 @@ export const MultipleComboPickers = {
return (
<div className="flex items-center space-x-4">
- <p className="text-sm text-muted-foreground">Status</p>
+ <p className="text-sm text-foreground-muted">Status</p>
<Popover open={open} onOpenChange={setOpen}>
<PopoverTrigger asChild>
<Button variant="outline" size="sm" className="w-[320px] justify-start">
diff --git a/packages/ui/src/components/shadcn/stories/Command.stories.tsx b/packages/ui/src/components/shadcn/stories/Command.stories.tsx
index 17c3ffab749..9eb213308aa 100644
--- a/packages/ui/src/components/shadcn/stories/Command.stories.tsx
+++ b/packages/ui/src/components/shadcn/stories/Command.stories.tsx
@@ -77,9 +77,9 @@ export function CommandDialogDemo() {
return (
<>
- <p className="text-sm text-muted-foreground">
+ <p className="text-sm text-foreground-muted">
Press{' '}
- <kbd className="pointer-events-none inline-flex h-5 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[10px] font-medium text-muted-foreground opacity-100">
+ <kbd className="pointer-events-none inline-flex h-5 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[10px] font-medium text-foreground-muted opacity-100">
<span className="text-xs">⌘</span>K
</kbd>
</p>
diff --git a/packages/ui/src/components/shadcn/stories/DataTable.storiesFIX LATER.tsx b/packages/ui/src/components/shadcn/stories/DataTable.storiesFIX LATER.tsx
index cb149023b5e..46f7db689b0 100644
--- a/packages/ui/src/components/shadcn/stories/DataTable.storiesFIX LATER.tsx
+++ b/packages/ui/src/components/shadcn/stories/DataTable.storiesFIX LATER.tsx
@@ -258,7 +258,7 @@ export function DataTableDemo() {
</Table>
</div>
<div className="flex items-center justify-end space-x-2 py-4">
- <div className="flex-1 text-sm text-muted-foreground">
+ <div className="flex-1 text-sm text-foreground-muted">
{table.getFilteredSelectedRowModel().rows.length} of{' '}
{table.getFilteredRowModel().rows.length} row(s) selected.
</div>
diff --git a/packages/ui/src/components/shadcn/stories/DatePicker.stories.tsx b/packages/ui/src/components/shadcn/stories/DatePicker.stories.tsx
index 44238215ede..f410acbfcea 100644
--- a/packages/ui/src/components/shadcn/stories/DatePicker.stories.tsx
+++ b/packages/ui/src/components/shadcn/stories/DatePicker.stories.tsx
@@ -43,7 +43,7 @@ export function Default() {
variant={'outline'}
className={cn(
'w-[280px] justify-start text-left font-normal',
- !date && 'text-muted-foreground'
+ !date && 'text-foreground-muted'
)}
>
<CalendarIcon className="mr-2 h-4 w-4" />
@@ -72,7 +72,7 @@ export function DatePickerWithRange({ className }: React.HTMLAttributes<HTMLDivE
variant={'outline'}
className={cn(
'w-[300px] justify-start text-left font-normal',
- !date && 'text-muted-foreground'
+ !date && 'text-foreground-muted'
)}
>
<CalendarIcon className="mr-2 h-4 w-4" />
@@ -132,7 +132,7 @@ export function DatePickerWithPresets() {
variant={'outline'}
className={cn(
'w-[280px] justify-start text-left font-normal',
- !date && 'text-muted-foreground'
+ !date && 'text-foreground-muted'
)}
>
<CalendarIcon className="mr-2 h-4 w-4" />
@@ -197,7 +197,7 @@ export function DatePickerForm() {
variant={'outline'}
className={cn(
'w-[240px] pl-3 text-left font-normal',
- !field.value && 'text-muted-foreground'
+ !field.value && 'text-foreground-muted'
)}
>
{field.value ? format(field.value, 'PPP') : <span>Pick a date</span>}
diff --git a/packages/ui/src/components/shadcn/stories/Form.stories.tsx b/packages/ui/src/components/shadcn/stories/Form.stories.tsx
index 8a72343ee63..fd87b5bc03e 100644
--- a/packages/ui/src/components/shadcn/stories/Form.stories.tsx
+++ b/packages/ui/src/components/shadcn/stories/Form.stories.tsx
@@ -164,7 +164,7 @@ export const CalendarExample = {
variant={'outline'}
className={cn(
'w-[240px] pl-3 text-left font-normal',
- !field.value && 'text-muted-foreground'
+ !field.value && 'text-foreground-muted'
)}
>
{field.value ? format(field.value, 'PPP') : <span>Pick a date</span>}
diff --git a/packages/ui/src/components/shadcn/stories/HoverCard.stories.tsx b/packages/ui/src/components/shadcn/stories/HoverCard.stories.tsx
index ddf64542977..8c48ae4916f 100644
--- a/packages/ui/src/components/shadcn/stories/HoverCard.stories.tsx
+++ b/packages/ui/src/components/shadcn/stories/HoverCard.stories.tsx
@@ -26,7 +26,7 @@ export function Default() {
<p className="text-sm">The React Framework – created and maintained by @vercel.</p>
<div className="flex items-center pt-2">
<CalendarDays className="mr-2 h-4 w-4 opacity-70" />{' '}
- <span className="text-xs text-muted-foreground">Joined December 2021</span>
+ <span className="text-xs text-foreground-muted">Joined December 2021</span>
</div>
</div>
</div>
diff --git a/packages/ui/src/components/shadcn/stories/NavigationMenu.stories.tsx b/packages/ui/src/components/shadcn/stories/NavigationMenu.stories.tsx
index 3b76c04a456..5e60fa44478 100644
--- a/packages/ui/src/components/shadcn/stories/NavigationMenu.stories.tsx
+++ b/packages/ui/src/components/shadcn/stories/NavigationMenu.stories.tsx
@@ -70,7 +70,7 @@ export function Default() {
{...props}
>
<div className="text-sm font-medium leading-none">{title}</div>
- <p className="line-clamp-2 text-sm leading-snug text-muted-foreground">{children}</p>
+ <p className="line-clamp-2 text-sm leading-snug text-foreground-muted">{children}</p>
</a>
</NavigationMenuLink>
</li>
@@ -109,7 +109,7 @@ export function Default() {
>
<div className="w-7 h-7 rounded-lg bg-foreground"></div>
<div className="mb-2 mt-4 text-lg font-medium">shadcn/ui</div>
- <p className="text-sm leading-tight text-muted-foreground">
+ <p className="text-sm leading-tight text-foreground-muted">
Beautifully designed components built with Radix UI and Tailwind CSS.
</p>
</a>
diff --git a/packages/ui/src/components/shadcn/stories/Popover.stories.tsx b/packages/ui/src/components/shadcn/stories/Popover.stories.tsx
index 56afa83f966..5eae3d042de 100644
--- a/packages/ui/src/components/shadcn/stories/Popover.stories.tsx
+++ b/packages/ui/src/components/shadcn/stories/Popover.stories.tsx
@@ -20,7 +20,7 @@ export function PopoverDemo() {
<div className="grid gap-4">
<div className="space-y-2">
<h4 className="font-medium leading-none">Dimensions</h4>
- <p className="text-sm text-muted-foreground">Set the dimensions for the layer.</p>
+ <p className="text-sm text-foreground-muted">Set the dimensions for the layer.</p>
</div>
<div className="grid gap-2">
<div className="grid grid-cols-3 items-center gap-4">
diff --git a/packages/ui/src/components/shadcn/stories/Seperator.stories.tsx b/packages/ui/src/components/shadcn/stories/Seperator.stories.tsx
index 652f0965a7c..8cc1a2d844f 100644
--- a/packages/ui/src/components/shadcn/stories/Seperator.stories.tsx
+++ b/packages/ui/src/components/shadcn/stories/Seperator.stories.tsx
@@ -11,7 +11,7 @@ export function Default() {
<div>
<div className="space-y-1">
<h4 className="text-sm font-medium leading-none">Radix Primitives</h4>
- <p className="text-sm text-muted-foreground">An open-source UI component library.</p>
+ <p className="text-sm text-foreground-muted">An open-source UI component library.</p>
</div>
<Separator className="my-4" />
<div className="flex h-5 items-center space-x-4 text-sm">
diff --git a/packages/ui/src/components/shadcn/stories/TextArea.stories.tsx b/packages/ui/src/components/shadcn/stories/TextArea.stories.tsx
index f6d9bb18c67..a949308ee73 100644
--- a/packages/ui/src/components/shadcn/stories/TextArea.stories.tsx
+++ b/packages/ui/src/components/shadcn/stories/TextArea.stories.tsx
@@ -42,7 +42,7 @@ export function TextareaWithText() {
<div className="grid w-full gap-1.5">
<Label htmlFor="message-2">Your Message</Label>
<Textarea placeholder="Type your message here." id="message-2" />
- <p className="text-sm text-muted-foreground">
+ <p className="text-sm text-foreground-muted">
Your message will be copied to the support team.
</p>
</div>
diff --git a/packages/ui/src/components/shadcn/ui/alert-dialog.tsx b/packages/ui/src/components/shadcn/ui/alert-dialog.tsx
index fc72d2b5d15..71c847615fa 100644
--- a/packages/ui/src/components/shadcn/ui/alert-dialog.tsx
+++ b/packages/ui/src/components/shadcn/ui/alert-dialog.tsx
@@ -87,7 +87,7 @@ const AlertDialogDescription = React.forwardRef<
>(({ className, ...props }, ref) => (
<AlertDialogPrimitive.Description
ref={ref}
- className={cn('text-sm text-muted-foreground', className)}
+ className={cn('text-sm text-foreground-muted', className)}
{...props}
/>
))
diff --git a/packages/ui/src/components/shadcn/ui/alert.tsx b/packages/ui/src/components/shadcn/ui/alert.tsx
index 7fca01f98c4..c2239c97b7c 100644
--- a/packages/ui/src/components/shadcn/ui/alert.tsx
+++ b/packages/ui/src/components/shadcn/ui/alert.tsx
@@ -47,7 +47,7 @@ const AlertDescription = React.forwardRef<
>(({ className, ...props }, ref) => (
<div
ref={ref}
- className={cn('text-sm [&_p]:leading-relaxed text-light font-normal', className)}
+ className={cn('text-sm [&_p]:leading-relaxed text-foreground-light font-normal', className)}
{...props}
/>
))
diff --git a/packages/ui/src/components/shadcn/ui/badge.tsx b/packages/ui/src/components/shadcn/ui/badge.tsx
index 2b4eaf92bf3..c5e8f0f1447 100644
--- a/packages/ui/src/components/shadcn/ui/badge.tsx
+++ b/packages/ui/src/components/shadcn/ui/badge.tsx
@@ -8,13 +8,13 @@ const badgeVariants = cva(
{
variants: {
variant: {
- default: 'bg-surface-200 text-light border border-scale-700',
+ default: 'bg-surface-200 text-foreground-light border border-strong',
brand: 'bg-brand-200 text-brand-primary border border-brand-400',
secondary:
'bg-secondary hover:bg-secondary/80 border-transparent text-secondary-foreground',
destructive: 'bg-destructive-400 text-destructive border border-destructive-300',
outline: 'bg-transparent text border border-foreground',
- scale: 'bg-scale-200 text-scale-1100 border border-scale-700',
+ scale: 'bg-background text-foreground-light border border-strong',
tomato: `bg-tomato-200 text-tomato-1100 border border-tomato-700`,
red: `bg-red-200 text-red-1100 border border-red-700`,
crimson: `bg-crimson-200 text-crimson-1100 border border-crimson-700`,
@@ -57,7 +57,7 @@ const badgeVariants = cva(
// dot: '-ml-0.5 mr-1.5 h-2 w-2 rounded-full',
// color: {
// brand: 'bg-brand-200 text-brand-600 border border-brand-400',
-// scale: 'bg-scale-200 text-scale-1100 border border-scale-700',
+// scale: 'bg-background text-foreground-light border border-strong',
// tomato: `bg-tomato-200 text-tomato-1100 border border-tomato-700`,
// red: `bg-red-200 text-red-1100 border border-red-700`,
// crimson: `bg-crimson-200 text-crimson-1100 border border-crimson-700`,
diff --git a/packages/ui/src/components/shadcn/ui/button.tsx b/packages/ui/src/components/shadcn/ui/button.tsx
index 758cb0a10ea..ee81cf5f0de 100644
--- a/packages/ui/src/components/shadcn/ui/button.tsx
+++ b/packages/ui/src/components/shadcn/ui/button.tsx
@@ -5,13 +5,13 @@ import { cva, type VariantProps } from 'class-variance-authority'
import { cn } from '@ui/lib/utils'
const buttonVariants = cva(
- 'inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50',
+ 'inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-foreground-muted focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50',
{
variants: {
variant: {
- default: 'bg-primary text-primary-foreground hover:bg-primary/90',
+ default: 'bg-blue-300 text-primary-foreground hover:bg-primary/90',
destructive: 'bg-destructive text-destructive-foreground hover:bg-destructive/90',
- outline: 'border border-input bg-background hover:bg-accent hover:text-accent-foreground',
+ outline: 'border border-control bg-background hover:bg-accent hover:text-accent-foreground',
secondary: 'bg-secondary text-secondary-foreground hover:bg-secondary/80',
ghost: 'hover:bg-accent hover:text-accent-foreground',
link: 'text-primary underline-offset-4 hover:underline',
diff --git a/packages/ui/src/components/shadcn/ui/calendar.tsx b/packages/ui/src/components/shadcn/ui/calendar.tsx
index 7aaa45608f0..ddb00c3e0e1 100644
--- a/packages/ui/src/components/shadcn/ui/calendar.tsx
+++ b/packages/ui/src/components/shadcn/ui/calendar.tsx
@@ -28,7 +28,7 @@ function Calendar({ className, classNames, showOutsideDays = true, ...props }: C
nav_button_next: 'absolute right-1',
table: 'w-full border-collapse space-y-1',
head_row: 'flex',
- head_cell: 'text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]',
+ head_cell: 'text-foreground-muted rounded-md w-9 font-normal text-[0.8rem]',
row: 'flex w-full mt-2',
cell: 'text-center text-sm p-0 relative [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20',
day: cn(
@@ -38,8 +38,8 @@ function Calendar({ className, classNames, showOutsideDays = true, ...props }: C
day_selected:
'bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground',
day_today: 'bg-accent text-accent-foreground',
- day_outside: 'text-muted-foreground opacity-50',
- day_disabled: 'text-muted-foreground opacity-50',
+ day_outside: 'text-foreground-muted opacity-50',
+ day_disabled: 'text-foreground-muted opacity-50',
day_range_middle: 'aria-selected:bg-accent aria-selected:text-accent-foreground',
day_hidden: 'invisible',
...classNames,
diff --git a/packages/ui/src/components/shadcn/ui/card.tsx b/packages/ui/src/components/shadcn/ui/card.tsx
index 7a00928c035..a70983d488d 100644
--- a/packages/ui/src/components/shadcn/ui/card.tsx
+++ b/packages/ui/src/components/shadcn/ui/card.tsx
@@ -35,7 +35,7 @@ const CardDescription = React.forwardRef<
HTMLParagraphElement,
React.HTMLAttributes<HTMLParagraphElement>
>(({ className, ...props }, ref) => (
- <p ref={ref} className={cn('text-sm text-muted-foreground', className)} {...props} />
+ <p ref={ref} className={cn('text-sm text-foreground-muted', className)} {...props} />
))
CardDescription.displayName = 'CardDescription'
diff --git a/packages/ui/src/components/shadcn/ui/command.tsx b/packages/ui/src/components/shadcn/ui/command.tsx
index 8196000c449..a630c5c172a 100644
--- a/packages/ui/src/components/shadcn/ui/command.tsx
+++ b/packages/ui/src/components/shadcn/ui/command.tsx
@@ -13,7 +13,7 @@ const Command = React.forwardRef<
<CommandPrimitive
ref={ref}
className={cn(
- 'flex h-full w-full flex-col overflow-hidden rounded-md bg-overlay text-light',
+ 'flex h-full w-full flex-col overflow-hidden rounded-md bg-overlay text-foreground-light',
className
)}
{...props}
@@ -27,7 +27,7 @@ const CommandDialog = ({ children, ...props }: CommandDialogProps) => {
return (
<Dialog {...props}>
<DialogContent className="overflow-hidden p-0 shadow-lg">
- <Command className="[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5">
+ <Command className="[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-foreground-muted [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5">
{children}
</Command>
</DialogContent>
@@ -87,7 +87,7 @@ const CommandGroup = React.forwardRef<
<CommandPrimitive.Group
ref={ref}
className={cn(
- 'overflow-hidden p-1 text-light [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground',
+ 'overflow-hidden p-1 text-foreground-light [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-foreground-muted',
className
)}
{...props}
@@ -127,7 +127,7 @@ CommandItem.displayName = CommandPrimitive.Item.displayName
const CommandShortcut = ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>) => {
return (
<span
- className={cn('ml-auto text-xs tracking-widest text-muted-foreground', className)}
+ className={cn('ml-auto text-xs tracking-widest text-foreground-muted', className)}
{...props}
/>
)
diff --git a/packages/ui/src/components/shadcn/ui/context-menu.tsx b/packages/ui/src/components/shadcn/ui/context-menu.tsx
index 13cc6bce919..b7d42d21225 100644
--- a/packages/ui/src/components/shadcn/ui/context-menu.tsx
+++ b/packages/ui/src/components/shadcn/ui/context-menu.tsx
@@ -163,7 +163,7 @@ ContextMenuSeparator.displayName = ContextMenuPrimitive.Separator.displayName
const ContextMenuShortcut = ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>) => {
return (
<span
- className={cn('ml-auto text-xs tracking-widest text-muted-foreground', className)}
+ className={cn('ml-auto text-xs tracking-widest text-foreground-muted', className)}
{...props}
/>
)
diff --git a/packages/ui/src/components/shadcn/ui/dialog.tsx b/packages/ui/src/components/shadcn/ui/dialog.tsx
index c77b0a7b99b..80cf824f7a7 100644
--- a/packages/ui/src/components/shadcn/ui/dialog.tsx
+++ b/packages/ui/src/components/shadcn/ui/dialog.tsx
@@ -44,7 +44,7 @@ const DialogContent = React.forwardRef<
{...props}
>
{children}
- <DialogPrimitive.Close className="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground">
+ <DialogPrimitive.Close className="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-foreground-muted">
<X className="h-4 w-4" />
<span className="sr-only">Close</span>
</DialogPrimitive.Close>
@@ -84,7 +84,7 @@ const DialogDescription = React.forwardRef<
>(({ className, ...props }, ref) => (
<DialogPrimitive.Description
ref={ref}
- className={cn('text-sm text-muted-foreground', className)}
+ className={cn('text-sm text-foreground-muted', className)}
{...props}
/>
))
diff --git a/packages/ui/src/components/shadcn/ui/dropdown-menu.tsx b/packages/ui/src/components/shadcn/ui/dropdown-menu.tsx
index 9448d01b388..f19fbc5b6e8 100644
--- a/packages/ui/src/components/shadcn/ui/dropdown-menu.tsx
+++ b/packages/ui/src/components/shadcn/ui/dropdown-menu.tsx
@@ -44,7 +44,7 @@ const DropdownMenuSubContent = React.forwardRef<
<DropdownMenuPrimitive.SubContent
ref={ref}
className={cn(
- 'z-50 min-w-[8rem] overflow-hidden rounded-md border bg-overlay p-1 text-light shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',
+ 'z-50 min-w-[8rem] overflow-hidden rounded-md border bg-overlay p-1 text-foreground-light shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',
className
)}
{...props}
@@ -61,7 +61,7 @@ const DropdownMenuContent = React.forwardRef<
ref={ref}
sideOffset={sideOffset}
className={cn(
- 'z-50 min-w-[8rem] overflow-hidden rounded-md border bg-overlay p-1 text-light shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 w-64',
+ 'z-50 min-w-[8rem] overflow-hidden rounded-md border bg-overlay p-1 text-foreground-light shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 w-64',
className
)}
{...props}
@@ -141,7 +141,7 @@ const DropdownMenuLabel = React.forwardRef<
>(({ className, inset, ...props }, ref) => (
<DropdownMenuPrimitive.Label
ref={ref}
- className={cn('px-2 py-1.5 text-xs text-light', inset && 'pl-8', className)}
+ className={cn('px-2 py-1.5 text-xs text-foreground-light', inset && 'pl-8', className)}
{...props}
/>
))
diff --git a/packages/ui/src/components/shadcn/ui/form.tsx b/packages/ui/src/components/shadcn/ui/form.tsx
index 86964b97a85..af0317e4702 100644
--- a/packages/ui/src/components/shadcn/ui/form.tsx
+++ b/packages/ui/src/components/shadcn/ui/form.tsx
@@ -124,7 +124,7 @@ const FormDescription = React.forwardRef<
<p
ref={ref}
id={formDescriptionId}
- className={cn('text-sm text-light', className)}
+ className={cn('text-sm text-foreground-light', className)}
{...props}
/>
)
diff --git a/packages/ui/src/components/shadcn/ui/input.tsx b/packages/ui/src/components/shadcn/ui/input.tsx
index ba78c34aa38..27be9ee55f5 100644
--- a/packages/ui/src/components/shadcn/ui/input.tsx
+++ b/packages/ui/src/components/shadcn/ui/input.tsx
@@ -12,8 +12,8 @@ const Input = React.forwardRef<HTMLInputElement, InputProps>(
<input
type={type}
className={cn(
- 'flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground',
- 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50',
+ 'flex h-10 w-full rounded-md border border-control bg-control px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-foreground-muted',
+ 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-background-control focus-visible:ring-offset-2 focus-visible:ring-offset-foreground-muted disabled:cursor-not-allowed disabled:opacity-50',
...customClasses,
className
)}
diff --git a/packages/ui/src/components/shadcn/ui/menubar.tsx b/packages/ui/src/components/shadcn/ui/menubar.tsx
index 192d9c8beeb..6c5248a4f5d 100644
--- a/packages/ui/src/components/shadcn/ui/menubar.tsx
+++ b/packages/ui/src/components/shadcn/ui/menubar.tsx
@@ -194,7 +194,7 @@ MenubarSeparator.displayName = MenubarPrimitive.Separator.displayName
const MenubarShortcut = ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>) => {
return (
<span
- className={cn('ml-auto text-xs tracking-widest text-muted-foreground', className)}
+ className={cn('ml-auto text-xs tracking-widest text-foreground-muted', className)}
{...props}
/>
)
diff --git a/packages/ui/src/components/shadcn/ui/select.tsx b/packages/ui/src/components/shadcn/ui/select.tsx
index 22b284ecb64..3676b9eb0f6 100644
--- a/packages/ui/src/components/shadcn/ui/select.tsx
+++ b/packages/ui/src/components/shadcn/ui/select.tsx
@@ -19,7 +19,7 @@ const SelectTrigger = React.forwardRef<
<SelectPrimitive.Trigger
ref={ref}
className={cn(
- 'flex h-10 w-full items-center justify-between rounded-md border border-input bg-transparent px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50',
+ 'flex h-10 w-full items-center justify-between rounded-md border border-control bg-transparent px-3 py-2 text-sm ring-offset-background placeholder:text-foreground-muted focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50',
className
)}
{...props}
diff --git a/packages/ui/src/components/shadcn/ui/sheet.tsx b/packages/ui/src/components/shadcn/ui/sheet.tsx
index 91cb53105e4..45abb9374f1 100644
--- a/packages/ui/src/components/shadcn/ui/sheet.tsx
+++ b/packages/ui/src/components/shadcn/ui/sheet.tsx
@@ -195,7 +195,7 @@ const SheetDescription = React.forwardRef<
>(({ className, ...props }, ref) => (
<SheetPrimitive.Description
ref={ref}
- className={cn('text-sm text-muted-foreground', className)}
+ className={cn('text-sm text-foreground-muted', className)}
{...props}
/>
))
diff --git a/packages/ui/src/components/shadcn/ui/table.tsx b/packages/ui/src/components/shadcn/ui/table.tsx
index 9d6a1008f52..c45de23a709 100644
--- a/packages/ui/src/components/shadcn/ui/table.tsx
+++ b/packages/ui/src/components/shadcn/ui/table.tsx
@@ -60,7 +60,7 @@ const TableHead = React.forwardRef<
<th
ref={ref}
className={cn(
- 'h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0',
+ 'h-12 px-4 text-left align-middle font-medium text-foreground-muted [&:has([role=checkbox])]:pr-0',
className
)}
{...props}
@@ -84,7 +84,7 @@ const TableCaption = React.forwardRef<
HTMLTableCaptionElement,
React.HTMLAttributes<HTMLTableCaptionElement>
>(({ className, ...props }, ref) => (
- <caption ref={ref} className={cn('mt-4 text-sm text-muted-foreground', className)} {...props} />
+ <caption ref={ref} className={cn('mt-4 text-sm text-foreground-muted', className)} {...props} />
))
TableCaption.displayName = 'TableCaption'
diff --git a/packages/ui/src/components/shadcn/ui/tabs.tsx b/packages/ui/src/components/shadcn/ui/tabs.tsx
index d0beada8dba..53ec657d650 100644
--- a/packages/ui/src/components/shadcn/ui/tabs.tsx
+++ b/packages/ui/src/components/shadcn/ui/tabs.tsx
@@ -14,7 +14,7 @@ const TabsList = React.forwardRef<
<TabsPrimitive.List
ref={ref}
className={cn(
- 'inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground',
+ 'inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-foreground-muted',
className
)}
{...props}
diff --git a/packages/ui/src/components/shadcn/ui/textarea.tsx b/packages/ui/src/components/shadcn/ui/textarea.tsx
index 8c00170acfb..3dcd949d0aa 100644
--- a/packages/ui/src/components/shadcn/ui/textarea.tsx
+++ b/packages/ui/src/components/shadcn/ui/textarea.tsx
@@ -9,7 +9,7 @@ const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(
return (
<textarea
className={cn(
- 'flex min-h-[80px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50',
+ 'flex min-h-[80px] w-full rounded-md border border-control bg-transparent px-3 py-2 text-sm ring-offset-background placeholder:text-foreground-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50',
className
)}
ref={ref}
diff --git a/packages/ui/src/components/shadcn/ui/toggle.tsx b/packages/ui/src/components/shadcn/ui/toggle.tsx
index 1ca8fdf7cf0..62cd15a0ea9 100644
--- a/packages/ui/src/components/shadcn/ui/toggle.tsx
+++ b/packages/ui/src/components/shadcn/ui/toggle.tsx
@@ -7,12 +7,13 @@ import { cva, type VariantProps } from 'class-variance-authority'
import { cn } from '@ui/lib/utils'
const toggleVariants = cva(
- 'inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors data-[state=on]:bg-accent data-[state=on]:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 ring-offset-background hover:bg-muted hover:text-muted-foreground',
+ 'inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors data-[state=on]:bg-accent data-[state=on]:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 ring-offset-background hover:bg-muted hover:text-foreground-muted',
{
variants: {
variant: {
default: 'bg-transparent',
- outline: 'bg-transparent border border-input hover:bg-accent hover:text-accent-foreground',
+ outline:
+ 'bg-transparent border border-control hover:bg-accent hover:text-accent-foreground',
},
size: {
default: 'h-10 px-3',
diff --git a/packages/ui/src/layout/banners/LWAnnouncement.tsx b/packages/ui/src/layout/banners/LWAnnouncement.tsx
index 3d52807a82e..52a5ae3f8d0 100644
--- a/packages/ui/src/layout/banners/LWAnnouncement.tsx
+++ b/packages/ui/src/layout/banners/LWAnnouncement.tsx
@@ -13,13 +13,13 @@ const Card = ({
}) => (
<div
className={[
- 'group relative p-[1px] bg-gradient-to-b from-scale-100/90 to-scale-100/60 rounded-xl overflow-hidden shadow-sm',
+ 'group relative p-[1px] bg-gradient-to-b from-background-alternative/90 to-background-alternative/60 rounded-xl overflow-hidden shadow-sm',
className,
].join(' ')}
>
<div
className={[
- 'bg-scale-100 text-sm text-foreground-light p-2 flex flex-row justify-between items-center backdrop-blur-md h-full',
+ 'bg-alternative text-sm text-foreground-light p-2 flex flex-row justify-between items-center backdrop-blur-md h-full',
innerClassName,
].join(' ')}
>
@@ -50,7 +50,7 @@ const LWAnnouncement = ({
].join(' ')}
>
<Card
- className={['border hover:border-scale-800 transition-colors', cardClassName].join(' ')}
+ className={['border hover:border-stronger transition-colors', cardClassName].join(' ')}
innerClassName={['!bg-opacity-70', cardInnerClassName].join(' ')}
>
<Link
diff --git a/packages/ui/src/lib/commonCva.ts b/packages/ui/src/lib/commonCva.ts
index fdf863e24c9..932e7456052 100644
--- a/packages/ui/src/lib/commonCva.ts
+++ b/packages/ui/src/lib/commonCva.ts
@@ -9,16 +9,16 @@ const defaults = {
},
text: {
brand: 'text-purple-600',
- body: 'text-scale-600 dark:text-scaleDark-200',
- title: 'text-scale-700 dark:text-scaleDark-100',
+ body: 'text-background',
+ title: 'text-alternative',
},
border: {
brand: 'border-brand-600',
- primary: 'border-scale-700',
- secondary: 'border-scale-400',
- alternative: 'border-scale-600 dark:border-scaleDark-200',
+ primary: 'border-strong',
+ secondary: 'border-secondary',
+ alternative: 'border-alternative',
},
- placeholder: 'placeholder-scale-800',
+ placeholder: 'placeholder-border-stronger',
focus: `
outline-none
focus:ring-current focus:ring-2
@@ -49,7 +49,7 @@ const defaults = {
},
},
overlay: {
- base: `absolute inset-0 bg-scale-200 opacity-50`,
+ base: `absolute inset-0 bg-background opacity-50`,
container: `fixed inset-0 transition-opacity`,
},
}
diff --git a/packages/ui/src/lib/tailwind-demo-classes.ts b/packages/ui/src/lib/tailwind-demo-classes.ts
index bad7b532179..faf8dc7969a 100644
--- a/packages/ui/src/lib/tailwind-demo-classes.ts
+++ b/packages/ui/src/lib/tailwind-demo-classes.ts
@@ -1,158 +1,158 @@
export default {
- "background": [
- "bg",
- "bg-alternative",
- "bg-selection",
- "bg-control",
- "bg-surface-100",
- "bg-surface-200",
- "bg-surface-300",
- "bg-surface-_contrast-300",
- "bg-overlay",
- "bg-overlay-hover",
- "bg-secondary",
- "bg-muted"
+ background: [
+ 'bg',
+ 'bg-alternative',
+ 'bg-selection',
+ 'bg-control',
+ 'bg-surface-100',
+ 'bg-surface-200',
+ 'bg-surface-300',
+ 'bg-surface-_contrast-300',
+ 'bg-overlay',
+ 'bg-overlay-hover',
+ 'bg-secondary',
+ 'bg-muted',
],
- "border": [
- "border",
- "border-muted",
- "border-secondary",
- "border-overlay",
- "border-control",
- "border-alternative",
- "border-strong",
- "border-stronger"
+ border: [
+ 'border',
+ 'border-muted',
+ 'border-secondary',
+ 'border-overlay',
+ 'border-control',
+ 'border-alternative',
+ 'border-strong',
+ 'border-stronger',
],
- "text": [
- "text",
- "text-strong",
- "text-light",
- "text-lighter",
- "text-muted",
- "text-contrast"
+ text: [
+ 'text',
+ 'text-strong',
+ 'text-foreground-light',
+ 'text-foreground-lighter',
+ 'text-muted',
+ 'text-contrast',
],
- "colors": [
- "bg-destructive-200",
- "bg-destructive-300",
- "bg-destructive-400",
- "bg-destructive-500",
- "bg-destructive-600",
- "bg-destructive",
- "bg-warning-200",
- "bg-warning-300",
- "bg-warning-400",
- "bg-warning-500",
- "bg-warning-600",
- "bg-warning",
- "bg-brand-200",
- "bg-brand-300",
- "bg-brand-400",
- "bg-brand-500",
- "bg-brand-600",
- "bg-brand",
- "bg-brand-accent",
- "bg-secondary"
+ colors: [
+ 'bg-destructive-200',
+ 'bg-destructive-300',
+ 'bg-destructive-400',
+ 'bg-destructive-500',
+ 'bg-destructive-600',
+ 'bg-destructive',
+ 'bg-warning-200',
+ 'bg-warning-300',
+ 'bg-warning-400',
+ 'bg-warning-500',
+ 'bg-warning-600',
+ 'bg-warning',
+ 'bg-brand-200',
+ 'bg-brand-300',
+ 'bg-brand-400',
+ 'bg-brand-500',
+ 'bg-brand-600',
+ 'bg-brand',
+ 'bg-brand-accent',
+ 'bg-secondary',
],
- "palletes": [
- "bg-black",
- "bg-white",
- "bg-gray-dark-100",
- "bg-gray-dark-200",
- "bg-gray-dark-300",
- "bg-gray-dark-400",
- "bg-gray-dark-500",
- "bg-gray-dark-600",
- "bg-gray-dark-700",
- "bg-gray-dark-800",
- "bg-gray-dark-900",
- "bg-gray-dark-1000",
- "bg-gray-dark-1100",
- "bg-gray-dark-1200",
- "bg-gray-dark-alpha-100",
- "bg-gray-dark-alpha-200",
- "bg-gray-dark-alpha-300",
- "bg-gray-dark-alpha-400",
- "bg-gray-dark-alpha-500",
- "bg-gray-dark-alpha-600",
- "bg-gray-dark-alpha-700",
- "bg-gray-dark-alpha-800",
- "bg-gray-dark-alpha-900",
- "bg-gray-dark-alpha-1000",
- "bg-gray-dark-alpha-1100",
- "bg-gray-dark-alpha-1200",
- "bg-gray-light-100",
- "bg-gray-light-200",
- "bg-gray-light-300",
- "bg-gray-light-400",
- "bg-gray-light-500",
- "bg-gray-light-600",
- "bg-gray-light-700",
- "bg-gray-light-800",
- "bg-gray-light-900",
- "bg-gray-light-1000",
- "bg-gray-light-1100",
- "bg-gray-light-1200",
- "bg-gray-light-alpha-100",
- "bg-gray-light-alpha-200",
- "bg-gray-light-alpha-300",
- "bg-gray-light-alpha-400",
- "bg-gray-light-alpha-500",
- "bg-gray-light-alpha-600",
- "bg-gray-light-alpha-700",
- "bg-gray-light-alpha-800",
- "bg-gray-light-alpha-900",
- "bg-gray-light-alpha-1000",
- "bg-gray-light-alpha-1100",
- "bg-gray-light-alpha-1200",
- "bg-slate-dark-100",
- "bg-slate-dark-200",
- "bg-slate-dark-300",
- "bg-slate-dark-400",
- "bg-slate-dark-500",
- "bg-slate-dark-600",
- "bg-slate-dark-700",
- "bg-slate-dark-800",
- "bg-slate-dark-900",
- "bg-slate-dark-1000",
- "bg-slate-dark-1100",
- "bg-slate-dark-1200",
- "bg-slate-dark-alpha-100",
- "bg-slate-dark-alpha-200",
- "bg-slate-dark-alpha-300",
- "bg-slate-dark-alpha-400",
- "bg-slate-dark-alpha-500",
- "bg-slate-dark-alpha-600",
- "bg-slate-dark-alpha-700",
- "bg-slate-dark-alpha-800",
- "bg-slate-dark-alpha-900",
- "bg-slate-dark-alpha-1000",
- "bg-slate-dark-alpha-1100",
- "bg-slate-dark-alpha-1200",
- "bg-slate-light-100",
- "bg-slate-light-200",
- "bg-slate-light-300",
- "bg-slate-light-400",
- "bg-slate-light-500",
- "bg-slate-light-600",
- "bg-slate-light-700",
- "bg-slate-light-800",
- "bg-slate-light-900",
- "bg-slate-light-1000",
- "bg-slate-light-1100",
- "bg-slate-light-1200",
- "bg-slate-light-alpha-100",
- "bg-slate-light-alpha-200",
- "bg-slate-light-alpha-300",
- "bg-slate-light-alpha-400",
- "bg-slate-light-alpha-500",
- "bg-slate-light-alpha-600",
- "bg-slate-light-alpha-700",
- "bg-slate-light-alpha-800",
- "bg-slate-light-alpha-900",
- "bg-slate-light-alpha-1000",
- "bg-slate-light-alpha-1100",
- "bg-slate-light-alpha-1200",
- "variables-bg-brand-primary",
- "variables-bg-brand-accent"
- ]
-};
+ palletes: [
+ 'bg-black',
+ 'bg-white',
+ 'bg-gray-dark-100',
+ 'bg-gray-dark-200',
+ 'bg-gray-dark-300',
+ 'bg-gray-dark-400',
+ 'bg-gray-dark-500',
+ 'bg-gray-dark-600',
+ 'bg-gray-dark-700',
+ 'bg-gray-dark-800',
+ 'bg-gray-dark-900',
+ 'bg-gray-dark-1000',
+ 'bg-gray-dark-1100',
+ 'bg-gray-dark-1200',
+ 'bg-gray-dark-alpha-100',
+ 'bg-gray-dark-alpha-200',
+ 'bg-gray-dark-alpha-300',
+ 'bg-gray-dark-alpha-400',
+ 'bg-gray-dark-alpha-500',
+ 'bg-gray-dark-alpha-600',
+ 'bg-gray-dark-alpha-700',
+ 'bg-gray-dark-alpha-800',
+ 'bg-gray-dark-alpha-900',
+ 'bg-gray-dark-alpha-1000',
+ 'bg-gray-dark-alpha-1100',
+ 'bg-gray-dark-alpha-1200',
+ 'bg-gray-light-100',
+ 'bg-gray-light-200',
+ 'bg-gray-light-300',
+ 'bg-gray-light-400',
+ 'bg-gray-light-500',
+ 'bg-gray-light-600',
+ 'bg-gray-light-700',
+ 'bg-gray-light-800',
+ 'bg-gray-light-900',
+ 'bg-gray-light-1000',
+ 'bg-gray-light-1100',
+ 'bg-gray-light-1200',
+ 'bg-gray-light-alpha-100',
+ 'bg-gray-light-alpha-200',
+ 'bg-gray-light-alpha-300',
+ 'bg-gray-light-alpha-400',
+ 'bg-gray-light-alpha-500',
+ 'bg-gray-light-alpha-600',
+ 'bg-gray-light-alpha-700',
+ 'bg-gray-light-alpha-800',
+ 'bg-gray-light-alpha-900',
+ 'bg-gray-light-alpha-1000',
+ 'bg-gray-light-alpha-1100',
+ 'bg-gray-light-alpha-1200',
+ 'bg-slate-dark-100',
+ 'bg-slate-dark-200',
+ 'bg-slate-dark-300',
+ 'bg-slate-dark-400',
+ 'bg-slate-dark-500',
+ 'bg-slate-dark-600',
+ 'bg-slate-dark-700',
+ 'bg-slate-dark-800',
+ 'bg-slate-dark-900',
+ 'bg-slate-dark-1000',
+ 'bg-slate-dark-1100',
+ 'bg-slate-dark-1200',
+ 'bg-slate-dark-alpha-100',
+ 'bg-slate-dark-alpha-200',
+ 'bg-slate-dark-alpha-300',
+ 'bg-slate-dark-alpha-400',
+ 'bg-slate-dark-alpha-500',
+ 'bg-slate-dark-alpha-600',
+ 'bg-slate-dark-alpha-700',
+ 'bg-slate-dark-alpha-800',
+ 'bg-slate-dark-alpha-900',
+ 'bg-slate-dark-alpha-1000',
+ 'bg-slate-dark-alpha-1100',
+ 'bg-slate-dark-alpha-1200',
+ 'bg-slate-light-100',
+ 'bg-slate-light-200',
+ 'bg-slate-light-300',
+ 'bg-slate-light-400',
+ 'bg-slate-light-500',
+ 'bg-slate-light-600',
+ 'bg-slate-light-700',
+ 'bg-slate-light-800',
+ 'bg-slate-light-900',
+ 'bg-slate-light-1000',
+ 'bg-slate-light-1100',
+ 'bg-slate-light-1200',
+ 'bg-slate-light-alpha-100',
+ 'bg-slate-light-alpha-200',
+ 'bg-slate-light-alpha-300',
+ 'bg-slate-light-alpha-400',
+ 'bg-slate-light-alpha-500',
+ 'bg-slate-light-alpha-600',
+ 'bg-slate-light-alpha-700',
+ 'bg-slate-light-alpha-800',
+ 'bg-slate-light-alpha-900',
+ 'bg-slate-light-alpha-1000',
+ 'bg-slate-light-alpha-1100',
+ 'bg-slate-light-alpha-1200',
+ 'variables-bg-brand-primary',
+ 'variables-bg-brand-accent',
+ ],
+}
diff --git a/packages/ui/src/lib/theme/defaultTheme.ts b/packages/ui/src/lib/theme/defaultTheme.ts
index 9bf9aa11ac8..cac00a814fa 100644
--- a/packages/ui/src/lib/theme/defaultTheme.ts
+++ b/packages/ui/src/lib/theme/defaultTheme.ts
@@ -12,16 +12,16 @@ const defaults = {
},
text: {
brand: 'text-purple-600',
- body: 'text-scale-600 dark:text-scaleDark-200',
- title: 'text-scale-700 dark:text-scaleDark-100',
+ body: 'text-foreground-light',
+ title: 'text-foreground',
},
border: {
brand: 'border-brand-600',
- primary: 'border-scale-700',
- secondary: 'border-scale-400',
- alternative: 'border-scale-600 dark:border-scaleDark-200',
+ primary: 'border-default',
+ secondary: 'border-secondary',
+ alternative: 'border-alternative',
},
- placeholder: 'placeholder-scale-800',
+ placeholder: 'placeholder-foreground-muted',
focus: `
outline-none
focus:ring-current focus:ring-2
@@ -52,7 +52,7 @@ const defaults = {
},
},
overlay: {
- base: `absolute inset-0 bg-scale-200 opacity-50`,
+ base: `absolute inset-0 bg-background opacity-50`,
container: `fixed inset-0 transition-opacity`,
},
}
@@ -125,7 +125,7 @@ export default {
outline-none
focus-visible:ring-1
focus-visible:z-10
- ring-scale-1100
+ ring-foreground-light
`,
content: `
data-open:animate-slide-down
@@ -143,7 +143,7 @@ export default {
container: `
group
border
- border-scale-700
+ border-default
first:rounded-tl-md first:rounded-tr-md
last:rounded-bl-md last:rounded-br-md
@@ -163,10 +163,10 @@ export default {
outline-none
focus-visible:ring-1
focus-visible:z-10
- ring-scale-1100
+ ring-foreground-light
transition-colors
- hover:bg-scale-200
+ hover:bg-background
overflow-hidden
@@ -179,15 +179,15 @@ export default {
`,
panel: `
px-6 py-3
- border-t border-scale-700
- bg-scale-200
+ border-t border-strong
+ bg-background
`,
},
},
justified: `justify-between`,
chevron: {
base: `
- text-scale-900
+ text-foreground-lighter
rotate-0
group-state-open:rotate-180
group-data-[state=open]:rotate-180
@@ -219,7 +219,7 @@ export default {
color: {
brand: 'bg-brand-500 text-brand-600 border border-brand-400',
brandAlt: 'bg-brand bg-opacity-100 text-background border border-brand',
- scale: 'bg-scale-200 text-scale-1100 border border-scale-700',
+ scale: 'bg-background text-foreground-light border border-strong',
tomato: `bg-tomato-200 text-tomato-1100 border border-tomato-700`,
red: `bg-red-200 text-red-1100 border border-red-700`,
crimson: `bg-crimson-200 text-crimson-1100 border border-crimson-700`,
@@ -265,10 +265,10 @@ export default {
description: `text-amber-1100`,
},
info: {
- base: `bg-scale-400 border-scale-500 dark:bg-scale-100 dark:border-scale-300`,
- icon: `text-scale-900`,
- header: `text-scale-1200`,
- description: `text-scale-1100`,
+ base: `bg-alternative border-alternative`,
+ icon: `text-foreground-lighter`,
+ header: `text-foreground`,
+ description: `text-foreground-light`,
},
success: {
base: `bg-brand-300 dark:bg-brand-100 border-brand-400`,
@@ -277,17 +277,17 @@ export default {
description: `text-brand-600`,
},
neutral: {
- base: `bg-scale-300 dark:bg-scale-300 border-scale-500`,
- icon: `text-scale-900`,
- header: `text-scale-1200`,
- description: `text-scale-1100`,
+ base: `bg-surface-100 border-default`,
+ icon: `text-foreground-muted`,
+ header: `text-foreground`,
+ description: `text-foreground-light`,
},
},
close: `
absolute
right-6 top-4
p-0 m-0
- text-scale-900
+ text-foreground-muted
cursor-pointer transition ease-in-out
bg-transparent border-transparent focus:outline-none
opacity-50 hover:opacity-100`,
@@ -299,7 +299,7 @@ export default {
card: {
base: `
- bg-white dark:bg-scaleDark-700
+ bg-surface-100
border
${defaults.border.primary}
@@ -328,7 +328,7 @@ export default {
base: `
relative
cursor-pointer
- text-scale-900
+ text-foreground-lighter
flex
items-center
space-x-2
@@ -336,15 +336,15 @@ export default {
transition
focus:outline-none
focus-visible:ring
- focus-visible:ring-scale-700
- focus-visible:border-scale-900
+ focus-visible:ring-foreground-muted
+ focus-visible:border-foreground-muted
`,
inactive: `
- hover:text-scale-1200
+ hover:text-foreground
`,
active: `
- !text-scale-1200
- border-b-2 border-scale-1200
+ !text-foreground
+ border-b-2 border-foreground
`,
},
pills: {
@@ -362,18 +362,18 @@ export default {
border
focus:outline-none
focus-visible:ring
- focus-visible:ring-scale-700
- focus-visible:border-scale-900
+ focus-visible:ring-foreground-muted
+ focus-visible:border-foreground-muted
`,
inactive: `
- bg-scale-200
- border-scale-700 hover:border-scale-900
- text-scale-900 hover:text-scale-1200
+ bg-background
+ border-strong hover:border-foreground-muted
+ text-foreground-muted hover:text-foreground
`,
active: `
- bg-scale-600
- text-scale-1200
- border-scale-800
+ bg-selection
+ text-foreground
+ border-stronger
`,
},
'rounded-pills': {
@@ -390,18 +390,18 @@ export default {
rounded-full
focus:outline-none
focus-visible:ring
- focus-visible:ring-scale-700
- focus-visible:border-scale-900
+ focus-visible:ring-foreground-muted
+ focus-visible:border-foreground-muted
`,
inactive: `
- bg-scale-400 hover:bg-scale-500
- hover:border-scale-900
- text-scale-900 hover:text-scale-1200
+ bg-surface-200 hover:bg-surface-300
+ hover:border-foreground-lighter
+ text-foreground-lighter hover:text-foreground
`,
active: `
- bg-scale-1200
- text-scale-200
- border-scale-1200
+ bg-foreground
+ text-background
+ border-foreground
`,
},
block: 'w-full flex items-center justify-center',
@@ -424,24 +424,24 @@ export default {
rounded-md
shadow-sm
transition-all
- text-scale-1200
+ text-foreground
border
- focus:shadow-md
+ focus-visible:shadow-md
${defaults.focus}
- focus:border-scale-900
- focus:ring-scale-400
+ focus-visible:border-foreground-muted
+ focus-visible:ring-background-control
${defaults.placeholder}
`,
variants: {
standard: `
- bg-scaleA-200
- border border-scale-700
+ bg-foreground/[.026]
+ border border-control
`,
error: `
- bg-red-100
- border border-red-700
- focus:ring-red-500
- placeholder:text-red-600
+ bg-destructive-200
+ border border-destructive-500
+ focus:ring-destructive-400
+ placeholder:text-destructive-400
`,
},
container: 'relative',
@@ -467,12 +467,12 @@ export default {
rounded-md
shadow-sm
transition-all
- text-scale-1200
+ text-foreground
border
- focus:shadow-md
+ focus-visible:shadow-md
${defaults.focus}
- focus:border-scale-900
- focus:ring-scale-400
+ focus-visible:border-foreground-muted
+ focus-visible:ring-background-control
${defaults.placeholder}
appearance-none
@@ -480,14 +480,14 @@ export default {
`,
variants: {
standard: `
- bg-scaleA-200
- border border-scale-700
+ bg-background
+ border border-strong
`,
error: `
- bg-red-100
- border border-red-700
- focus:ring-red-500
- placeholder:text-red-600
+ bg-destructive-200
+ border border-destructive-500
+ focus:ring-destructive-400
+ placeholder:text-destructive-400
`,
},
container: 'relative',
@@ -498,7 +498,7 @@ export default {
disabled: 'opacity-50',
actions_container: 'absolute inset-y-0 right-0 pl-3 pr-1 mr-5 flex items-center',
chevron_container: 'absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none',
- chevron: 'h-5 w-5 text-scale-800',
+ chevron: 'h-5 w-5 text-foreground-lighter',
},
/*
@@ -513,12 +513,12 @@ export default {
rounded-md
shadow-sm
transition-all
- text-scale-1200
+ text-foreground
border
- focus:shadow-md
+ focus-visible:shadow-md
${defaults.focus}
- focus:border-scale-900
- focus:ring-scale-400
+ focus-visible:border-foreground-muted
+ focus-visible:ring-background-control
${defaults.placeholder}
appearance-none
@@ -526,14 +526,14 @@ export default {
`,
variants: {
standard: `
- bg-scaleA-200
- border border-scale-700
+ bg-control
+ border border-strong
`,
error: `
- bg-red-100
- border border-red-700
- focus:ring-red-500
- placeholder:text-red-600
+ bg-destructive-200
+ border border-destructive-500
+ focus:ring-destructive-400
+ placeholder:text-destructive-400
`,
},
disabled: 'opacity-50',
@@ -569,9 +569,9 @@ export default {
base: `
bg-transparent
${defaults.focus}
- focus:ring-scale-400
+ focus:ring-border-muted
text-brand
- border-scale-700
+ border-strong
shadow-sm
rounded
cursor-pointer
@@ -586,19 +586,19 @@ export default {
},
disabled: 'opacity-50',
label: {
- base: `text-scale-1100 cursor-pointer`,
+ base: `text-foreground-light cursor-pointer`,
...defaults.size.text,
},
label_before: {
- base: 'text-scale-500',
+ base: 'text-border',
...defaults.size.text,
},
label_after: {
- base: 'text-scale-500',
+ base: 'text-border',
...defaults.size.text,
},
description: {
- base: `text-scale-1000`,
+ base: `text-foreground-lighter`,
...defaults.size.text,
},
group: `space-y-3`,
@@ -629,14 +629,14 @@ export default {
absolute
${defaults.focus}
focus:ring-brand-400
- border-scale-700
+ border-strong
text-brand
shadow-sm
cursor-pointer
peer
- bg-scale-300
+ bg-surface-100
`,
hidden: `absolute opacity-0`,
size: {
@@ -670,14 +670,14 @@ export default {
xlarge: `px-8 p-4`,
},
inactive: `
- bg-scale-100 dark:bg-scale-400
- border-scale-500 dark:border-scale-500
- hover:border-scale-700 hover:dark:border-scale-700
- hover:bg-scale-200 dark:hover:bg-scale-500
+ bg-surface-200
+ border-alternative
+ hover:border-strong
+ hover:bg-surface-300
`,
active: `
- bg-scale-300 dark:bg-scale-600 z-10
- border-scale-900 dark:border-scale-900
+ bg-surface-300 z-10
+ border-muted
border-1
`,
radio_offset: 'left-4',
@@ -706,14 +706,14 @@ export default {
xlarge: `px-8 p-4`,
},
inactive: `
- bg-scale-100 dark:bg-scale-400
- border-scale-500 dark:border-scale-500
- hover:border-scale-700 hover:dark:border-scale-700
- hover:bg-scale-200 dark:hover:bg-scale-500
+ bg-surface-200
+ border-alternative
+ hover:border-strong
+ hover:bg-surface-300
`,
active: `
- bg-scale-300 dark:bg-scale-600 z-10
- border-scale-900 dark:border-scale-900
+ bg-surface-300 z-10
+ border-muted
border-1
`,
radio_offset: 'left-4',
@@ -746,14 +746,14 @@ export default {
xlarge: `px-8 p-4`,
},
inactive: `
- bg-scale-100 dark:bg-scale-400
- border-scale-500 dark:border-scale-500
- hover:border-scale-700 hover:dark:border-scale-700
- hover:bg-scale-200 dark:hover:bg-scale-500
+ bg-surface-200
+ border-alternative
+ hover:border-strong
+ hover:bg-surface-300
`,
active: `
- bg-scale-300 dark:bg-scale-500 z-10
- border-scale-900 dark:border-scale-900 border-1
+ bg-surface-300 z-10
+ border-muted border-1
`,
radio_offset: 'left-4',
},
@@ -769,7 +769,7 @@ export default {
group: `grid grid-cols-12 gap-3`,
base: `
transition
- border border-scale-700 hover:border-scale-900
+ border border-stronger
shadow-sm
rounded-lg
grow
@@ -782,14 +782,14 @@ export default {
xlarge: `px-8 p-4`,
},
inactive: `
- bg-scale-100 dark:bg-scale-400
- border-scale-500 dark:border-scale-500
- hover:border-scale-700 hover:dark:border-scale-700
- hover:bg-scale-200 dark:hover:bg-scale-500
+ bg-surface-200
+ border-alternative
+ hover:border-strong
+ hover:bg-surface-300
`,
active: `
- bg-scale-300 dark:bg-scale-600 z-10
- border-scale-900 dark:border-scale-900
+ bg-surface-300 z-10
+ border-muted
border-1
`,
radio_offset: 'left-4',
@@ -824,23 +824,23 @@ export default {
},
},
label: {
- base: `text-scale-1100 cursor-pointer`,
+ base: `text-foreground-light cursor-pointer`,
...defaults.size.text,
},
label_before: {
- base: 'text-scale-500',
+ base: 'text-border',
...defaults.size.text,
},
label_after: {
- base: 'text-scale-500',
+ base: 'text-border',
...defaults.size.text,
},
description: {
- base: `text-scale-900`,
+ base: `text-foreground-lighter`,
...defaults.size.text,
},
optionalLabel: {
- base: `text-scale-900`,
+ base: `text-foreground-lighter`,
...defaults.size.text,
},
disabled: `opacity-50 cursor-auto border-dashed`,
@@ -849,17 +849,17 @@ export default {
sidepanel: {
base: `
z-40
- bg-scale-100 dark:bg-scale-300
+ bg-overlay
flex flex-col
fixed
inset-y-0
h-screen
- border-l border-overlay-border
+ border-l border-overlay
shadow-xl
`,
header: `
- space-y-1 py-4 px-4 bg-overlay-bg sm:px-6
- border-b border-overlay-border
+ space-y-1 py-4 px-4 bg-overlay sm:px-6
+ border-b border-overlay
`,
contents: `
relative
@@ -871,8 +871,8 @@ export default {
`,
footer: `
flex justify-end gap-2
- p-4 bg-overlay-bg
- border-t border-overlay-border
+ p-4 bg-overlay
+ border-t border-overlay
`,
size: {
medium: `w-screen max-w-md h-full`,
@@ -896,13 +896,12 @@ export default {
w-full
h-px
my-2
- bg-scale-300 dark:bg-scale-500
+ bg-border
`,
overlay: `
z-40
fixed
- bg-scale-300
- dark:bg-scale-100
+ bg-alternative
h-full w-full
left-0
top-0
@@ -930,10 +929,10 @@ export default {
cursor-pointer
transition-colors ease-in-out duration-200
${defaults.focus}
- focus:ring-scale-400
- bg-scale-500
+ focus:!ring-border
+ bg-foreground-muted/40
- hover:bg-scale-700
+ hover:bg-foreground-muted/60
`,
active: `
!bg-brand
@@ -950,8 +949,7 @@ export default {
base: `
inline-block h-5 w-5
rounded-full
- bg-scale-100
- dark:bg-scale-900
+ bg-white
shadow ring-0
transition
ease-in-out duration-200
@@ -1010,31 +1008,31 @@ export default {
data_input_vertical_layout__align_right: 'text-right',
label: {
- base: 'block text-scale-1100',
+ base: 'block text-foreground-light',
size: {
...defaults.size.text,
},
},
label_optional: {
- base: 'text-scale-900',
+ base: 'text-foreground-lighter',
size: {
...defaults.size.text,
},
},
description: {
- base: 'mt-2 text-scale-900 leading-normal',
+ base: 'mt-2 text-foreground-lighter leading-normal',
size: {
...defaults.size.text,
},
},
label_before: {
- base: 'text-scale-1000 ',
+ base: 'text-foreground-lighter ',
size: {
...defaults.size.text,
},
},
label_after: {
- base: 'text-scale-1000',
+ base: 'text-foreground-lighter',
size: {
...defaults.size.text,
},
@@ -1068,7 +1066,6 @@ export default {
trigger: `
flex
border-none
-
rounded
bg-transparent
p-0
@@ -1076,13 +1073,12 @@ export default {
outline-offset-1
transition-all
focus:outline-4
- focus:outline-scale-600
-
+ focus:outline-border-control
`,
content: `
z-40
- bg-scale-100 dark:bg-scale-300
- border border-scale-300 dark:border-scale-500
+ bg-overlay
+ border border-overlay
rounded
shadow-lg
data-open:animate-dropdown-content-show
@@ -1102,24 +1098,24 @@ export default {
content: `w-auto`,
},
header: `
- bg-scale-200 dark:bg-scale-400
+ bg-surface-200
space-y-1 py-1.5 px-3
- border-b border-scale-300 dark:border-scale-500
+ border-b border-overlay
`,
footer: `
- bg-scale-200 dark:bg-scale-400
+ bg-surface-200
py-1.5 px-3
- border-t border-scale-300 dark:border-scale-500
+ border-t border-overlay
`,
close: `
transition
- text-scale-900 hover:text-scale-1100
+ text-foreground-lighter
`,
separator: `
w-full
h-px
my-2
- bg-scale-300 dark:bg-scale-500
+ bg-border-overlay
`,
},
@@ -1133,18 +1129,18 @@ export default {
cursor-pointer
flex space-x-3 items-center
outline-none
- focus-visible:ring-1 ring-scale-1200 focus-visible:z-10
+ focus-visible:ring-1 ring-foreground-muted focus-visible:z-10
group
`,
content: {
base: `transition truncate text-sm w-full`,
- normal: `text-scale-1100 group-hover:text-scale-1200`,
- active: `text-scale-1200 font-semibold`,
+ normal: `text-foreground-light group-hover:text-foreground`,
+ active: `text-foreground font-semibold`,
},
icon: {
base: `transition truncate text-sm`,
- normal: `text-scale-900 group-hover:text-scale-1100`,
- active: `text-scale-1200`,
+ normal: `text-foreground-lighter group-hover:text-foreground-light`,
+ active: `text-foreground`,
},
variants: {
text: {
@@ -1153,11 +1149,11 @@ export default {
`,
normal: `
font-normal
- border-scale-500
- group-hover:border-scale-900`,
+ border-default
+ group-hover:border-foreground-muted`,
active: `
font-semibold
- text-scale-900
+ text-foreground-muted
z-10
`,
},
@@ -1168,12 +1164,12 @@ export default {
normal: `
border-l
font-normal
- border-scale-500
- group-hover:border-scale-900`,
+ border-default
+ group-hover:border-foreground-muted`,
active: `
font-semibold
- text-scale-900
+ text-foreground-muted
z-10
border-l
@@ -1188,13 +1184,12 @@ export default {
`,
normal: `
font-normal
- border-scale-500
- group-hover:border-scale-900`,
+ border-default
+ group-hover:border-foreground-muted`,
active: `
font-semibold
- bg-scale-400
- dark:bg-scale-300
- text-scale-900
+ bg-surface-200
+ text-foreground-lighter
z-10
rounded-md
@@ -1208,8 +1203,8 @@ export default {
mb-2
font-normal
`,
- icon: `text-scale-900`,
- content: `text-sm text-scale-900 w-full`,
+ icon: `text-foreground-lighter`,
+ content: `text-sm text-foreground-lighter w-full`,
variants: {
text: ``,
pills: `px-3`,
@@ -1224,9 +1219,9 @@ export default {
modal: {
base: `
relative
- bg-scale-100 dark:bg-scale-300
+ bg-overlay
my-4
- border border-scale-300 dark:border-scale-500
+ border border-overlay
rounded-md
shadow-xl
data-open:animate-overlay-show
@@ -1234,14 +1229,14 @@ export default {
`,
header: `
- bg-scale-200 dark:bg-scale-400
+ bg-surface-200
space-y-1 py-3 px-4 sm:px-5
- border-b border-scale-300 dark:border-scale-500
+ border-b border-overlay
`,
footer: `
flex justify-end gap-2
py-3 px-5
- border-t border-scale-300 dark:border-scale-500
+ border-t border-overlay
`,
size: {
tiny: `sm:align-middle sm:w-full sm:max-w-xs`,
@@ -1255,8 +1250,7 @@ export default {
overlay: `
z-40
fixed
- bg-scale-300
- dark:bg-scale-100
+ bg-alternative
h-full w-full
left-0
top-0
@@ -1277,7 +1271,7 @@ export default {
w-full
h-px
my-2
- bg-scale-300 dark:bg-scale-500
+ bg-border-overlay
`,
content: `px-5`,
},
@@ -1291,12 +1285,12 @@ export default {
w-full
rounded-md
shadow-sm
- text-scale-1200
+ text-foreground
border
- focus:shadow-md
+ focus-visible:shadow-md
${defaults.focus}
- focus:border-scale-900
- focus:ring-scale-400
+ focus-visible:border-foreground-muted
+ focus-visible:ring-background-control
${defaults.placeholder}
indent-px
transition-all
@@ -1306,18 +1300,18 @@ export default {
label: `truncate`,
variants: {
standard: `
- bg-scaleA-200
- border border-scale-700
+ bg-control
+ border border-control
- aria-expanded:border-scale-900
- aria-expanded:ring-scale-400
+ aria-expanded:border-foreground-muted
+ aria-expanded:ring-border-muted
aria-expanded:ring-2
`,
error: `
- bg-red-100
- border border-red-700
- focus:ring-red-500
- placeholder:text-red-600
+ bg-destructive-200
+ border border-destructive-500
+ focus:ring-destructive-400
+ placeholder:text-destructive-400
`,
},
options_container_animate: `
@@ -1328,10 +1322,10 @@ export default {
data-closed:opacity-0
`,
options_container: `
- bg-scale-100 dark:bg-scale-300
+ bg-overlay
shadow-lg
border border-solid
- border-gray-100 dark:border-gray-600 max-h-60
+ border-overlay max-h-60
rounded-md py-1 text-base
sm:text-sm z-10 overflow-hidden overflow-y-scroll
@@ -1341,7 +1335,7 @@ export default {
`,
with_icon: 'pl-10',
addOnBefore: `
- w-full flex flex-row items-center space-x-3
+ w-full flex flex-row items-center space-x-3
`,
size: {
...default__padding_and_text,
@@ -1349,19 +1343,19 @@ export default {
disabled: `opacity-50`,
actions_container: 'absolute inset-y-0 right-0 pl-3 pr-1 flex space-x-1 items-center',
chevron_container: 'absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none',
- chevron: 'h-5 w-5 text-scale-600',
+ chevron: 'h-5 w-5 text-foreground-muted',
option: `
w-listbox
transition cursor-pointer select-none relative py-2 pl-3 pr-9
- text-scale-900
+ text-foreground-muted
text-sm
- hover:bg-scale-300 dark:hover:bg-scale-500
- focus:bg-scale-300 dark:focus:bg-scale-500
- focus:text-scale-1200
+ hover:bg-border-overlay
+ focus:bg-border-overlay
+ focus:text-foreground
border-none
focus:outline-none
`,
- option_active: `text-scale-1200 bg-scale-600`,
+ option_active: `text-foreground bg-selection`,
option_disabled: `cursor-not-allowed opacity-50`,
option_inner: `flex items-center space-x-3`,
option_check: `absolute inset-y-0 right-0 flex items-center pr-3 text-brand`,
@@ -1391,7 +1385,7 @@ export default {
absolute inset-y-0
left-0 pl-3 flex
items-center pointer-events-none
- text-scale-1100
+ text-foreground-light
`,
},
diff --git a/studio/.storybook/preview.css b/studio/.storybook/preview.css
index 473d67f4950..34e1f2acdc4 100644
--- a/studio/.storybook/preview.css
+++ b/studio/.storybook/preview.css
@@ -6,18 +6,18 @@
.light,
.light .docs-story,
.dark .docs-story {
- @apply bg-scale-200;
+ @apply bg-background;
}
/* // date picker */
/* !!!! THIS IS A COPY OF THE styles/date-picker.scss !! */
.react-datepicker__input-container input {
- @apply block w-full text-base md:text-sm bg-white border border-scale-300 rounded shadow-sm;
+ @apply block w-full text-base md:text-sm bg-white border border-muted rounded shadow-sm;
}
.react-datepicker-popper {
- @apply z-40 w-72 text-sm bg-scale-100 dark:bg-scale-300 shadow px-3 py-2 border-2 border-scale-200 rounded;
+ @apply z-40 w-72 text-sm bg-surface-100 shadow px-3 py-2 border-2 border-background rounded;
}
.react-datepicker-left {
@@ -29,7 +29,7 @@
}
.react-datepicker__portal {
- @apply absolute z-10 w-72 text-sm transform-none bg-white shadow px-3 py-2 top-12 right-0 border-2 border-scale-200 rounded;
+ @apply absolute z-10 w-72 text-sm transform-none bg-white shadow px-3 py-2 top-12 right-0 border-2 border-background rounded;
}
.react-datepicker__month-container {
@@ -42,7 +42,7 @@
}
.react-datepicker__current-month {
- @apply ml-2.5 text-lg font-semibold text-scale-800;
+ @apply ml-2.5 text-lg font-semibold text-border-stronger;
}
.react-datepicker__week {
@@ -62,18 +62,18 @@
}
.react-datepicker__navigation--previous {
- @apply right-12 w-10 h-10 rounded transition flex items-center justify-center hover:bg-scale-200;
+ @apply right-12 w-10 h-10 rounded transition flex items-center justify-center hover:bg-background;
}
.react-datepicker__navigation--next {
- @apply right-4 w-10 h-10 rounded transition flex items-center justify-center hover:bg-scale-200;
+ @apply right-4 w-10 h-10 rounded transition flex items-center justify-center hover:bg-background;
}
.react-datepicker__day {
@apply w-10 h-10 flex items-center font-normal justify-center text-sm leading-loose transition text-foreground-light;
/* @apply mb-1 py-1; */
@apply -space-y-px;
- @apply border border-scale-500;
+ @apply border border-default;
}
.react-datepicker__day--disabled {
@@ -81,7 +81,7 @@
}
.react-datepicker__day--outside-month {
- @apply text-scale-800;
+ @apply text-border-stronger;
}
.react-datepicker__day--in-range {
@@ -93,11 +93,11 @@
}
.react-datepicker__day--selecting-range-start {
- @apply bg-scale-200;
+ @apply bg-background;
}
.react-datepicker__day--selecting-range-end {
- @apply bg-scale-200;
+ @apply bg-background;
}
.react-datepicker__day--selected {
@@ -105,9 +105,9 @@
}
.react-datepicker__day--range-start {
- @apply bg-brand text-white hover:text-scale-700 hover:bg-white;
+ @apply bg-brand text-white hover:text-border-strong hover:bg-white;
}
.react-datepicker__day--range-end {
- @apply bg-brand text-white hover:text-scale-700 hover:bg-white;
+ @apply bg-brand text-white hover:text-border-strong hover:bg-white;
}
diff --git a/studio/components/grid/components/editor/JsonEditor.tsx b/studio/components/grid/components/editor/JsonEditor.tsx
index 12577e8b263..ce1211e7c01 100644
--- a/studio/components/grid/components/editor/JsonEditor.tsx
+++ b/studio/components/grid/components/editor/JsonEditor.tsx
@@ -86,17 +86,17 @@ export const JsonEditor = <TRow, TSummaryRow = unknown>({
readOnly={!isEditable}
onChange={onChange}
/>
- <div className="flex items-start justify-between p-2 bg-scale-400 space-x-2">
+ <div className="flex items-start justify-between p-2 bg-surface-200 space-x-2">
{isEditable ? (
<div className="space-y-1">
<div className="flex items-center space-x-2">
- <div className="px-1.5 py-[2.5px] rounded bg-scale-600 border border-scale-700 flex items-center justify-center">
+ <div className="px-1.5 py-[2.5px] rounded bg-selection border border-strong flex items-center justify-center">
<span className="text-[10px]">⏎</span>
</div>
<p className="text-xs text-foreground-light">Save changes</p>
</div>
<div className="flex items-center space-x-2">
- <div className="px-1 py-[2.5px] rounded bg-scale-600 border border-scale-700 flex items-center justify-center">
+ <div className="px-1 py-[2.5px] rounded bg-selection border border-strong flex items-center justify-center">
<span className="text-[10px]">Esc</span>
</div>
<p className="text-xs text-foreground-light">Cancel changes</p>
@@ -109,8 +109,8 @@ export const JsonEditor = <TRow, TSummaryRow = unknown>({
<Tooltip.Trigger>
<div
className={[
- 'border border-scale-700 rounded p-1 flex items-center justify-center',
- 'transition cursor-pointer bg-scale-600 hover:bg-scale-700',
+ 'border border-strong rounded p-1 flex items-center justify-center',
+ 'transition cursor-pointer bg-selection hover:bg-border-strong',
].join(' ')}
onClick={() => onSelectExpand()}
>
@@ -122,8 +122,8 @@ export const JsonEditor = <TRow, TSummaryRow = unknown>({
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">Expand editor</span>
diff --git a/studio/components/grid/components/editor/TextEditor.tsx b/studio/components/grid/components/editor/TextEditor.tsx
index 8bf88b86384..ed0488616db 100644
--- a/studio/components/grid/components/editor/TextEditor.tsx
+++ b/studio/components/grid/components/editor/TextEditor.tsx
@@ -50,16 +50,16 @@ export const TextEditor = <TRow, TSummaryRow = unknown>({
onChange={onChange}
/>
{isEditable && (
- <div className="flex items-start justify-between p-2 bg-scale-400 space-x-2">
+ <div className="flex items-start justify-between p-2 bg-surface-200 space-x-2">
<div className="space-y-1">
<div className="flex items-center space-x-2">
- <div className="px-1.5 py-[2.5px] rounded bg-scale-600 border border-scale-700 flex items-center justify-center">
+ <div className="px-1.5 py-[2.5px] rounded bg-surface-300 border border-strong flex items-center justify-center">
<span className="text-[10px]">⏎</span>
</div>
<p className="text-xs text-foreground-light">Save changes</p>
</div>
<div className="flex items-center space-x-2">
- <div className="px-1 py-[2.5px] rounded bg-scale-600 border border-scale-700 flex items-center justify-center">
+ <div className="px-1 py-[2.5px] rounded bg-surface-300 border border-strong flex items-center justify-center">
<span className="text-[10px]">Esc</span>
</div>
<p className="text-xs text-foreground-light">Cancel changes</p>
diff --git a/studio/components/grid/components/formatter/ForeignKeyFormatter.tsx b/studio/components/grid/components/formatter/ForeignKeyFormatter.tsx
index d48eea0f1aa..92738de9f0c 100644
--- a/studio/components/grid/components/formatter/ForeignKeyFormatter.tsx
+++ b/studio/components/grid/components/formatter/ForeignKeyFormatter.tsx
@@ -71,8 +71,8 @@ export const ForeignKeyFormatter = (
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">View referencing record</span>
diff --git a/studio/components/grid/components/grid/ColumnHeader.tsx b/studio/components/grid/components/grid/ColumnHeader.tsx
index 7a8c20290eb..a5f623916e9 100644
--- a/studio/components/grid/components/grid/ColumnHeader.tsx
+++ b/studio/components/grid/components/grid/ColumnHeader.tsx
@@ -134,8 +134,8 @@ export function ColumnHeader<R>({
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">Primary key</span>
@@ -158,8 +158,8 @@ export function ColumnHeader<R>({
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">Encrypted column</span>
@@ -192,8 +192,8 @@ function renderColumnIcon(
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<div>
diff --git a/studio/components/grid/components/header/Header.tsx b/studio/components/grid/components/header/Header.tsx
index 06767ca5ad3..3e24167e207 100644
--- a/studio/components/grid/components/header/Header.tsx
+++ b/studio/components/grid/components/header/Header.tsx
@@ -63,7 +63,7 @@ const Header = ({
return (
<div>
- <div className="flex h-10 items-center justify-between bg-scale-100 px-5 py-1.5 dark:bg-scale-300">
+ <div className="flex h-10 items-center justify-between bg-surface-100 px-5 py-1.5">
{customHeader ? (
<>{customHeader}</>
) : (
@@ -122,7 +122,7 @@ const DefaultHeader = ({
</div>
{canAddNew && (
<>
- <div className="h-[20px] w-px border-r border-scale-600"></div>
+ <div className="h-[20px] w-px border-r border-control"></div>
<div className="flex items-center gap-2">
{canCreateColumns && (
<DropdownMenu>
@@ -141,11 +141,11 @@ const DefaultHeader = ({
onClick={onAddRow}
>
<div className="-mt-2 pr-1.5">
- <div className="border border-scale-1000 w-[15px] h-[4px]" />
- <div className="border border-scale-1000 w-[15px] h-[4px] my-[2px]" />
+ <div className="border border-foreground-lighter w-[15px] h-[4px]" />
+ <div className="border border-foreground-lighter w-[15px] h-[4px] my-[2px]" />
<div
className={cn([
- 'border border-scale-1100 w-[15px] h-[4px] translate-x-0.5',
+ 'border border-foreground-light w-[15px] h-[4px] translate-x-0.5',
'transition duration-200 group-data-[highlighted]:border-brand group-data-[highlighted]:translate-x-0',
])}
/>
@@ -167,11 +167,11 @@ const DefaultHeader = ({
onClick={onAddColumn}
>
<div className="flex -mt-2 pr-1.5">
- <div className="border border-scale-1000 w-[4px] h-[15px]" />
- <div className="border border-scale-1000 w-[4px] h-[15px] mx-[2px]" />
+ <div className="border border-foreground-lighter w-[4px] h-[15px]" />
+ <div className="border border-foreground-lighter w-[4px] h-[15px] mx-[2px]" />
<div
className={cn([
- 'border border-scale-1100 w-[4px] h-[15px] -translate-y-0.5',
+ 'border border-foreground-light w-[4px] h-[15px] -translate-y-0.5',
'transition duration-200 group-data-[highlighted]:border-brand group-data-[highlighted]:translate-y-0',
])}
/>
diff --git a/studio/components/grid/components/menu/ColumnMenu.tsx b/studio/components/grid/components/menu/ColumnMenu.tsx
index e6da2f7014f..0f475d245b8 100644
--- a/studio/components/grid/components/menu/ColumnMenu.tsx
+++ b/studio/components/grid/components/menu/ColumnMenu.tsx
@@ -61,8 +61,8 @@ const ColumnMenu = ({ column, isEncrypted }: ColumnMenuProps) => {
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">
diff --git a/studio/components/interfaces/Account/AuditLogs.tsx b/studio/components/interfaces/Account/AuditLogs.tsx
index fde78889177..b5e12226513 100644
--- a/studio/components/interfaces/Account/AuditLogs.tsx
+++ b/studio/components/interfaces/Account/AuditLogs.tsx
@@ -125,7 +125,7 @@ const AuditLogs = () => {
/>
{isSuccess && (
<>
- <div className="h-[20px] border-r border-scale-700 !ml-4 !mr-2" />
+ <div className="h-[20px] border-r border-strong !ml-4 !mr-2" />
<p className="prose text-xs">Viewing {sortedLogs.length} logs in total</p>
</>
)}
@@ -153,11 +153,11 @@ const AuditLogs = () => {
{isSuccess && (
<>
{logs.length === 0 ? (
- <div className="bg-scale-100 dark:bg-scale-300 border rounded p-4 flex items-center justify-between">
+ <div className="bg-surface-100 border rounded p-4 flex items-center justify-between">
<p className="prose text-sm">You do not have any audit logs available yet</p>
</div>
) : logs.length > 0 && sortedLogs.length === 0 ? (
- <div className="bg-scale-100 dark:bg-scale-300 border rounded p-4 flex items-center justify-between">
+ <div className="bg-surface-100 border rounded p-4 flex items-center justify-between">
<p className="prose text-sm">No audit logs found based on the filters applied</p>
</div>
) : (
@@ -194,8 +194,8 @@ const AuditLogs = () => {
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">
@@ -225,12 +225,12 @@ const AuditLogs = () => {
<Table.tr
key={log.occurred_at}
onClick={() => setSelectedLog(log)}
- className="cursor-pointer hover:!bg-scale-100 transition duration-100"
+ className="cursor-pointer hover:!bg-alternative transition duration-100"
>
<Table.td className="max-w-[250px]">
<div className="flex items-center space-x-2">
{hasStatusCode && (
- <p className="bg-scale-400 rounded px-1 flex items-center justify-center text-xs font-mono border">
+ <p className="bg-surface-200 rounded px-1 flex items-center justify-center text-xs font-mono border">
{log.action.metadata[0].status}
</p>
)}
diff --git a/studio/components/interfaces/Account/TOTPFactors/DeleteFactorModal.tsx b/studio/components/interfaces/Account/TOTPFactors/DeleteFactorModal.tsx
index 63e4dccc634..a098efa77db 100644
--- a/studio/components/interfaces/Account/TOTPFactors/DeleteFactorModal.tsx
+++ b/studio/components/interfaces/Account/TOTPFactors/DeleteFactorModal.tsx
@@ -59,7 +59,7 @@ const DeleteFactorModal = ({
</Alert_Shadcn_>
<div className="text-sm px-1 pt-4">
<p>Before deleting this factor, consider:</p>
- <ul className="text-light py-1 list-disc mx-4 space-y-1">
+ <ul className="text-foreground-light py-1 list-disc mx-4 space-y-1">
{lastFactorToBeDeleted ? (
<>
<li>Adding another authenticator app as a factor prior to deleting</li>
diff --git a/studio/components/interfaces/Account/TOTPFactors/index.tsx b/studio/components/interfaces/Account/TOTPFactors/index.tsx
index cb9fc85508c..e2284babb5c 100644
--- a/studio/components/interfaces/Account/TOTPFactors/index.tsx
+++ b/studio/components/interfaces/Account/TOTPFactors/index.tsx
@@ -23,7 +23,7 @@ const TOTPFactors = () => {
return (
<>
<section className="space-y-3">
- <p className="text-sm text-light">
+ <p className="text-sm text-foreground-light">
Generate one-time passwords via authenticator apps like 1Password, Authy, etc. as a second
factor to verify your identity during sign-in.
</p>
@@ -50,11 +50,11 @@ const TOTPFactors = () => {
return (
<div key={factor.id} className="flex flex-row justify-between py-2">
<p className="text-sm text-foreground flex items-center space-x-2">
- <span className="text-light">Name:</span>{' '}
+ <span className="text-foreground-light">Name:</span>{' '}
<span>{factor.friendly_name ?? 'No name provided'}</span>
</p>
<div className="flex items-center gap-4">
- <p className="text-sm text-light">
+ <p className="text-sm text-foreground-light">
Added on {dayjs(factor.updated_at).format(DATETIME_FORMAT)}
</p>
<Button
diff --git a/studio/components/interfaces/AuditLogs/FilterPopover.tsx b/studio/components/interfaces/AuditLogs/FilterPopover.tsx
index c947008ad79..b0da2dd4967 100644
--- a/studio/components/interfaces/AuditLogs/FilterPopover.tsx
+++ b/studio/components/interfaces/AuditLogs/FilterPopover.tsx
@@ -58,7 +58,7 @@ const FilterPopover = ({
})}
></Checkbox.Group>
</div>
- <div className="flex items-center justify-end gap-2 border-t border-scale-400 bg-scale-200 py-2 px-3 dark:border-scale-500 dark:bg-scale-400 ">
+ <div className="flex items-center justify-end gap-2 border-t border-overlay bg-surface-200 py-2 px-3">
<Button
size="tiny"
type="default"
diff --git a/studio/components/interfaces/Auth/AuthProvidersForm/AuthProvidersForm.constants.ts b/studio/components/interfaces/Auth/AuthProvidersForm/AuthProvidersForm.constants.ts
index be099a7cb1a..cb272c121c5 100644
--- a/studio/components/interfaces/Auth/AuthProvidersForm/AuthProvidersForm.constants.ts
+++ b/studio/components/interfaces/Auth/AuthProvidersForm/AuthProvidersForm.constants.ts
@@ -1,10 +1,9 @@
export const ProviderCollapsibleClasses = [
- 'bg-scale-100 dark:bg-scale-300 ',
- 'hover:bg-scale-200 dark:hover:bg-scale-500',
- 'data-open:bg-scale-200 dark:data-open:bg-scale-500 ',
- 'border-scale-300 ',
- 'dark:border-scale-500 hover:border-scale-500 ',
- 'dark:hover:border-scale-700 data-open:border-scale-700',
+ 'bg-surface-100',
+ 'hover:bg-overlay-hover',
+ 'data-open:bg-selection',
+ 'border-default',
+ 'hover:border-strong data-open:border-strong',
'data-open:pb-px col-span-12 mx-auto',
'-space-y-px overflow-hidden',
'border shadow',
diff --git a/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsx b/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsx
index b7ed72bc5e1..e2c98986c57 100644
--- a/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsx
+++ b/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsx
@@ -119,7 +119,7 @@ const ProviderForm = ({ config, provider }: ProviderFormProps) => {
>
<div className="flex items-center gap-3">
<IconChevronUp
- className="text-scale-800 transition data-open-parent:rotate-0 data-closed-parent:rotate-180"
+ className="text-border-stronger transition data-open-parent:rotate-0 data-closed-parent:rotate-180"
strokeWidth={2}
width={14}
/>
@@ -139,7 +139,7 @@ const ProviderForm = ({ config, provider }: ProviderFormProps) => {
<span className="px-1">Enabled</span>
</div>
) : (
- <div className="rounded-md border border-scale-500 bg-scale-100 py-1 px-3 text-xs text-foreground-lighter dark:border-scale-700 dark:bg-scale-300">
+ <div className="rounded-md border border-strong bg-surface-100 py-1 px-3 text-xs text-foreground-lighter">
Disabled
</div>
)}
@@ -159,7 +159,7 @@ const ProviderForm = ({ config, provider }: ProviderFormProps) => {
<div
className="
group border-t
- border-scale-500 bg-scale-100 py-6 px-6 text-foreground dark:bg-scale-300
+ border-strong bg-surface-100 py-6 px-6 text-foreground
"
>
<div className="mx-auto my-6 max-w-lg space-y-6">
@@ -253,8 +253,8 @@ const ProviderForm = ({ config, provider }: ProviderFormProps) => {
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">
diff --git a/studio/components/interfaces/Auth/BasicAuthSettingsForm/BasicAuthSettingsForm.tsx b/studio/components/interfaces/Auth/BasicAuthSettingsForm/BasicAuthSettingsForm.tsx
index ccae841dc00..84aa2e5e7d0 100644
--- a/studio/components/interfaces/Auth/BasicAuthSettingsForm/BasicAuthSettingsForm.tsx
+++ b/studio/components/interfaces/Auth/BasicAuthSettingsForm/BasicAuthSettingsForm.tsx
@@ -151,7 +151,7 @@ const BasicAuthSettingsForm = observer(() => {
/>
</FormSectionContent>
</FormSection>
- <div className="border-t border-scale-400"></div>
+ <div className="border-t border-muted"></div>
<FormSection header={<FormSectionLabel>Bot and Abuse Protection</FormSectionLabel>}>
<FormSectionContent loading={isLoading}>
<Toggle
diff --git a/studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyDefinition.tsx b/studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyDefinition.tsx
index cb504ed7476..798924d5587 100644
--- a/studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyDefinition.tsx
+++ b/studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyDefinition.tsx
@@ -49,8 +49,8 @@ const PolicyDefinition = ({
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'w-[300px] space-y-2 border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'w-[300px] space-y-2 border border-background',
].join(' ')}
>
<p className="text-xs text-foreground">
@@ -96,8 +96,8 @@ const PolicyDefinition = ({
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'w-[300px] space-y-2 border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'w-[300px] space-y-2 border border-background',
].join(' ')}
>
<p className="text-xs text-foreground">
diff --git a/studio/components/interfaces/Auth/Policies/PolicySelection.tsx b/studio/components/interfaces/Auth/Policies/PolicySelection.tsx
index c2d9614839e..1dc29aafcab 100644
--- a/studio/components/interfaces/Auth/Policies/PolicySelection.tsx
+++ b/studio/components/interfaces/Auth/Policies/PolicySelection.tsx
@@ -30,7 +30,7 @@ const PolicySelection = ({
className="
flex h-8 w-8 items-center
justify-center
- rounded bg-scale-1200 text-scale-100
+ rounded bg-foreground text-background
"
>
<IconGrid size={14} strokeWidth={2} />
@@ -48,7 +48,7 @@ const PolicySelection = ({
className="
flex h-8 w-8 items-center
justify-center
- rounded bg-scale-1200 text-scale-100
+ rounded bg-foreground text-background
"
>
<IconEdit size={14} strokeWidth={2} />
diff --git a/studio/components/interfaces/Auth/Policies/PolicyTableRow/PolicyRow.tsx b/studio/components/interfaces/Auth/Policies/PolicyTableRow/PolicyRow.tsx
index 33ca845ba2a..249e3398285 100644
--- a/studio/components/interfaces/Auth/Policies/PolicyTableRow/PolicyRow.tsx
+++ b/studio/components/interfaces/Auth/Policies/PolicyTableRow/PolicyRow.tsx
@@ -32,10 +32,9 @@ const PolicyRow = ({
return (
<Panel.Content
- className={[
- 'flex border-panel-border-light dark:border-panel-border-dark',
- 'w-full space-x-4 border-b py-4 lg:items-center',
- ].join(' ')}
+ className={['flex border-overlay', 'w-full space-x-4 border-b py-4 lg:items-center'].join(
+ ' '
+ )}
>
<div className="flex grow flex-col space-y-1">
<div className="flex items-center space-x-4">
@@ -62,8 +61,8 @@ const PolicyRow = ({
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200 max-w-[220px] text-center',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background max-w-[220px] text-center',
].join(' ')}
>
<span className="text-xs text-foreground">
@@ -113,8 +112,8 @@ const PolicyRow = ({
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">
diff --git a/studio/components/interfaces/Auth/Policies/PolicyTableRow/PolicyTableRowHeader.tsx b/studio/components/interfaces/Auth/Policies/PolicyTableRow/PolicyTableRowHeader.tsx
index 2a893823435..5ddb0f1c916 100644
--- a/studio/components/interfaces/Auth/Policies/PolicyTableRow/PolicyTableRowHeader.tsx
+++ b/studio/components/interfaces/Auth/Policies/PolicyTableRow/PolicyTableRowHeader.tsx
@@ -64,8 +64,8 @@ const PolicyTableRowHeader = ({
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">
@@ -92,8 +92,8 @@ const PolicyTableRowHeader = ({
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">
diff --git a/studio/components/interfaces/Auth/Policies/PolicyTemplates/TemplatesList.tsx b/studio/components/interfaces/Auth/Policies/PolicyTemplates/TemplatesList.tsx
index 66b56a36544..0480c621719 100644
--- a/studio/components/interfaces/Auth/Policies/PolicyTemplates/TemplatesList.tsx
+++ b/studio/components/interfaces/Auth/Policies/PolicyTemplates/TemplatesList.tsx
@@ -28,8 +28,7 @@ const TemplatesList = ({
<div
key={i}
className={
- 'border-b border-scale-400 hover:bg-scale-400 ' +
- (active ? 'bg-scale-300 dark:bg-scale-500' : '')
+ 'border-b border-overlay hover:bg-surface-200 ' + (active ? 'bg-surface-300' : '')
}
>
<Menu.Item
diff --git a/studio/components/interfaces/Auth/RedirectUrls/RedirectUrlList.tsx b/studio/components/interfaces/Auth/RedirectUrls/RedirectUrlList.tsx
index 08f3785d9fe..1d5657d2850 100644
--- a/studio/components/interfaces/Auth/RedirectUrls/RedirectUrlList.tsx
+++ b/studio/components/interfaces/Auth/RedirectUrls/RedirectUrlList.tsx
@@ -42,7 +42,7 @@ const RedirectUrlList = ({
) : (
<div
className={[
- 'flex items-center border-scale-400 bg-scale-200 text-foreground',
+ 'flex items-center border-overlay bg-background text-foreground',
'justify-center gap-2 rounded border px-6 py-8 text-sm',
].join(' ')}
>
diff --git a/studio/components/interfaces/Auth/RedirectUrls/RedirectUrls.tsx b/studio/components/interfaces/Auth/RedirectUrls/RedirectUrls.tsx
index 8932bf3a9c7..84c75908c48 100644
--- a/studio/components/interfaces/Auth/RedirectUrls/RedirectUrls.tsx
+++ b/studio/components/interfaces/Auth/RedirectUrls/RedirectUrls.tsx
@@ -131,8 +131,8 @@ const RedirectUrls = () => {
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">
diff --git a/studio/components/interfaces/Auth/RedirectUrls/ValueContainer.tsx b/studio/components/interfaces/Auth/RedirectUrls/ValueContainer.tsx
index b578ccf8a35..ec36304761c 100644
--- a/studio/components/interfaces/Auth/RedirectUrls/ValueContainer.tsx
+++ b/studio/components/interfaces/Auth/RedirectUrls/ValueContainer.tsx
@@ -3,7 +3,7 @@ import { PropsWithChildren } from 'react'
const ValueContainer = ({ children }: PropsWithChildren<{}>) => (
<div
className="
- bg-scale-100 dark:bg-scale-300 border-scale-500 text-foreground flex items-center
+ bg-surface-100 border-default text-foreground flex items-center
justify-between gap-2
border px-6
py-4 text-sm
diff --git a/studio/components/interfaces/Auth/Users/AddUserDropdown.tsx b/studio/components/interfaces/Auth/Users/AddUserDropdown.tsx
index d3a479f9a74..0eb9e4ecbde 100644
--- a/studio/components/interfaces/Auth/Users/AddUserDropdown.tsx
+++ b/studio/components/interfaces/Auth/Users/AddUserDropdown.tsx
@@ -64,8 +64,8 @@ const AddUserDropdown = ({ projectKpsVersion }: AddUserDropdownProps) => {
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">
@@ -96,8 +96,8 @@ const AddUserDropdown = ({ projectKpsVersion }: AddUserDropdownProps) => {
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">
diff --git a/studio/components/interfaces/Auth/Users/UserDropdown.tsx b/studio/components/interfaces/Auth/Users/UserDropdown.tsx
index 504a1185ef9..0eba6d3e775 100644
--- a/studio/components/interfaces/Auth/Users/UserDropdown.tsx
+++ b/studio/components/interfaces/Auth/Users/UserDropdown.tsx
@@ -180,8 +180,8 @@ const UserDropdown = ({ user, canRemoveUser, canRemoveMFAFactors }: UserDropdown
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">
@@ -211,8 +211,8 @@ const UserDropdown = ({ user, canRemoveUser, canRemoveMFAFactors }: UserDropdown
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={cn([
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
])}
>
<span className="text-xs text-foreground">
diff --git a/studio/components/interfaces/Billing/InvoiceStatusBadge.tsx b/studio/components/interfaces/Billing/InvoiceStatusBadge.tsx
index c5328fb5c39..c1eb93e70ac 100644
--- a/studio/components/interfaces/Billing/InvoiceStatusBadge.tsx
+++ b/studio/components/interfaces/Billing/InvoiceStatusBadge.tsx
@@ -53,8 +53,8 @@ const InvoiceStatusBadge = ({ status }: InvoiceStatusBadgeProps) => {
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'w-[300px] space-y-2 border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'w-[300px] space-y-2 border border-background',
].join(' ')}
>
{[InvoiceStatus.OPEN, InvoiceStatus.UNCOLLECTIBLE].includes(status) && (
diff --git a/studio/components/interfaces/Billing/SpendCapModal.tsx b/studio/components/interfaces/Billing/SpendCapModal.tsx
index 004d0e455cc..d5a33f30f45 100644
--- a/studio/components/interfaces/Billing/SpendCapModal.tsx
+++ b/studio/components/interfaces/Billing/SpendCapModal.tsx
@@ -24,7 +24,7 @@ const SpendCapModal = ({ visible, onHide }: SpendCapModalProps) => {
</p>
{/* Maybe instead of a table, show something more interactive like a spend cap playground */}
{/* Maybe ideate this in Figma first but this is good enough for now */}
- <div className="border rounded border-scale-600 bg-scale-500">
+ <div className="border rounded border-control bg-overlay-hover">
<div className="flex items-center px-4 pt-2 pb-1">
<p className="w-[50%] text-sm text-foreground-light">Item</p>
<p className="w-[25%] text-sm text-foreground-light">Limit</p>
@@ -60,8 +60,8 @@ const SpendCapModal = ({ visible, onHide }: SpendCapModalProps) => {
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow', // background
- 'border border-scale-200 ', //border
+ 'rounded bg-alternative py-1 px-2 leading-none shadow', // background
+ 'border border-background', //border
].join(' ')}
>
<span className="text-xs text-foreground">
@@ -94,8 +94,8 @@ const SpendCapModal = ({ visible, onHide }: SpendCapModalProps) => {
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow', // background
- 'border border-scale-200 ', //border
+ 'rounded bg-alternative py-1 px-2 leading-none shadow', // background
+ 'border border-background', //border
].join(' ')}
>
<span className="text-xs text-foreground">
diff --git a/studio/components/interfaces/BranchManagement/BranchManagement.tsx b/studio/components/interfaces/BranchManagement/BranchManagement.tsx
index dd20a17d86d..f846b7c3241 100644
--- a/studio/components/interfaces/BranchManagement/BranchManagement.tsx
+++ b/studio/components/interfaces/BranchManagement/BranchManagement.tsx
@@ -376,7 +376,7 @@ const BranchManagement = () => {
<li className="flex gap-3">
<div>
<strong className="text-sm">Before you disable branching, consider:</strong>
- <ul className="space-y-2 mt-2 text-sm text-light">
+ <ul className="space-y-2 mt-2 text-sm text-foreground-light">
<li className="list-disc ml-6">
Your project no longer requires database previews.
</li>
diff --git a/studio/components/interfaces/Database/Backups/PITR/PITRNotice.tsx b/studio/components/interfaces/Database/Backups/PITR/PITRNotice.tsx
index f8106117fb9..cc1279ae7ba 100644
--- a/studio/components/interfaces/Database/Backups/PITR/PITRNotice.tsx
+++ b/studio/components/interfaces/Database/Backups/PITR/PITRNotice.tsx
@@ -41,8 +41,8 @@ const PITRNotice = ({}) => {
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">
@@ -57,7 +57,7 @@ const PITRNotice = ({}) => {
}
>
<div className="flex p-6 space-x-6">
- <div className="flex items-center justify-center w-10 h-10 rounded bg-scale-700">
+ <div className="flex items-center justify-center w-10 h-10 rounded bg-border-strong">
<IconCalendar strokeWidth={2} />
</div>
<div className="space-y-2">
diff --git a/studio/components/interfaces/Database/Backups/PITR/PITRSelection.tsx b/studio/components/interfaces/Database/Backups/PITR/PITRSelection.tsx
index 743c92bf447..b3db18a8ed6 100644
--- a/studio/components/interfaces/Database/Backups/PITR/PITRSelection.tsx
+++ b/studio/components/interfaces/Database/Backups/PITR/PITRSelection.tsx
@@ -156,8 +156,8 @@ const PITRSelection = () => {
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'bg-scale-100 rounded py-1 px-2 leading-none shadow',
- 'border-scale-200 border w-48 text-center',
+ 'bg-alternative rounded py-1 px-2 leading-none shadow',
+ 'border-background border w-48 text-center',
].join(' ')}
>
<span className="text-foreground text-xs">
@@ -220,7 +220,7 @@ const PITRSelection = () => {
)}
/>
<div className="flex items-center space-x-2">
- <div className="border w-4 h-4 border-scale-800 bg-brand-600" />
+ <div className="border w-4 h-4 border-stronger bg-overlay-hover" />
<p className="text-xs text-foreground-light">Point in time back up available</p>
</div>
</div>
diff --git a/studio/components/interfaces/Database/Backups/PITR/PITRStatus.tsx b/studio/components/interfaces/Database/Backups/PITR/PITRStatus.tsx
index fdf7a5a569d..b8877b91b7b 100644
--- a/studio/components/interfaces/Database/Backups/PITR/PITRStatus.tsx
+++ b/studio/components/interfaces/Database/Backups/PITR/PITRStatus.tsx
@@ -67,8 +67,8 @@ const PITRStatus = ({
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">
diff --git a/studio/components/interfaces/Database/Backups/PITR/TimeInput.tsx b/studio/components/interfaces/Database/Backups/PITR/TimeInput.tsx
index ec29c6f5811..06c68098bb3 100644
--- a/studio/components/interfaces/Database/Backups/PITR/TimeInput.tsx
+++ b/studio/components/interfaces/Database/Backups/PITR/TimeInput.tsx
@@ -84,13 +84,9 @@ const TimeInput = ({ defaultTime, minimumTime, maximumTime, onChange = noop }: T
<div
className={[
'flex items-center justify-between transition',
- 'rounded-md bg-scaleA-200 border px-3.5 py-2 w-[200px]',
+ 'rounded-md bg-background border px-3.5 py-2 w-[200px]',
`${
- isFocused
- ? 'border-scale-900'
- : error === undefined
- ? 'border-scale-700'
- : 'border-red-800'
+ isFocused ? 'border-stronger' : error === undefined ? 'border-strong' : 'border-red-800'
}`,
].join(' ')}
>
@@ -115,8 +111,8 @@ const TimeInput = ({ defaultTime, minimumTime, maximumTime, onChange = noop }: T
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'bg-scale-100 rounded py-1 px-2 leading-none shadow',
- 'border-scale-200 border',
+ 'bg-alternative rounded py-1 px-2 leading-none shadow',
+ 'border-background border',
].join(' ')}
>
<span className="text-foreground text-xs">Hours (HH)</span>
@@ -145,8 +141,8 @@ const TimeInput = ({ defaultTime, minimumTime, maximumTime, onChange = noop }: T
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'bg-scale-100 rounded py-1 px-2 leading-none shadow',
- 'border-scale-200 border',
+ 'bg-alternative rounded py-1 px-2 leading-none shadow',
+ 'border-background border',
].join(' ')}
>
<span className="text-foreground text-xs">Minutes (MM)</span>
@@ -175,8 +171,8 @@ const TimeInput = ({ defaultTime, minimumTime, maximumTime, onChange = noop }: T
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'bg-scale-100 rounded py-1 px-2 leading-none shadow',
- 'border-scale-200 border',
+ 'bg-alternative rounded py-1 px-2 leading-none shadow',
+ 'border-background border',
].join(' ')}
>
<span className="text-foreground text-xs">Seconds (SS)</span>
diff --git a/studio/components/interfaces/Database/Backups/PITR/TimezoneSelection.tsx b/studio/components/interfaces/Database/Backups/PITR/TimezoneSelection.tsx
index a5be77082e2..d34b20c339c 100644
--- a/studio/components/interfaces/Database/Backups/PITR/TimezoneSelection.tsx
+++ b/studio/components/interfaces/Database/Backups/PITR/TimezoneSelection.tsx
@@ -41,7 +41,7 @@ const TimezoneSelection = ({
<div
className={[
'fixed top-0 flex w-full items-center',
- 'rounded-t-md border-b border-gray-600 bg-gray-500',
+ 'rounded-t-md border-b border-overlay bg-surface-300',
'mb-4 space-x-2 px-4 py-2',
].join(' ')}
style={{ zIndex: 1 }}
@@ -49,7 +49,7 @@ const TimezoneSelection = ({
<IconSearch size={14} />
<input
autoFocus
- className="placeholder-scale-1000 w-72 bg-transparent text-sm outline-none"
+ className="placeholder-foreground-lighter w-72 bg-transparent text-sm outline-none"
value={searchString}
placeholder={''}
onChange={(e: FormEvent<HTMLInputElement>) => setSearchString(e.currentTarget.value)}
diff --git a/studio/components/interfaces/Database/EnumeratedTypes/DeleteEnumeratedTypeModal.tsx b/studio/components/interfaces/Database/EnumeratedTypes/DeleteEnumeratedTypeModal.tsx
index 89eaaf8b15b..66a810824b8 100644
--- a/studio/components/interfaces/Database/EnumeratedTypes/DeleteEnumeratedTypeModal.tsx
+++ b/studio/components/interfaces/Database/EnumeratedTypes/DeleteEnumeratedTypeModal.tsx
@@ -72,7 +72,7 @@ const DeleteEnumeratedTypeModal = ({
</Alert_Shadcn_>
<div className="mt-4">
<strong className="text-sm">Before deleting this enumerated type, consider:</strong>
- <ul className="space-y-2 mt-2 text-sm text-light">
+ <ul className="space-y-2 mt-2 text-sm text-foreground-light">
<li className="list-disc ml-6">
This enumerated type is no longer in use in any tables or functions
</li>
diff --git a/studio/components/interfaces/Database/EnumeratedTypes/EnumeratedTypes.tsx b/studio/components/interfaces/Database/EnumeratedTypes/EnumeratedTypes.tsx
index 9d72cc5c0a3..391ed4b25f9 100644
--- a/studio/components/interfaces/Database/EnumeratedTypes/EnumeratedTypes.tsx
+++ b/studio/components/interfaces/Database/EnumeratedTypes/EnumeratedTypes.tsx
@@ -107,7 +107,7 @@ const EnumeratedTypes = () => {
<Table.tr>
<Table.td colSpan={4}>
<p className="text-sm text-foreground">No enumerated types created yet</p>
- <p className="text-sm text-light">
+ <p className="text-sm text-foreground-light">
There are no enumerated types found in the schema "{selectedSchema}"
</p>
</Table.td>
@@ -117,7 +117,7 @@ const EnumeratedTypes = () => {
<Table.tr>
<Table.td colSpan={4}>
<p className="text-sm text-foreground">No results found</p>
- <p className="text-sm text-light">
+ <p className="text-sm text-foreground-light">
Your search for "{search}" did not return any results
</p>
</Table.td>
diff --git a/studio/components/interfaces/Database/Extensions/ExtensionCard.tsx b/studio/components/interfaces/Database/Extensions/ExtensionCard.tsx
index c902e59fb58..1c87cda9733 100644
--- a/studio/components/interfaces/Database/Extensions/ExtensionCard.tsx
+++ b/studio/components/interfaces/Database/Extensions/ExtensionCard.tsx
@@ -66,14 +66,14 @@ const ExtensionCard = ({ extension }: ExtensionCardProps) => {
<>
<div
className={[
- 'flex border-panel-border-light dark:border-panel-border-dark',
+ 'flex border-overlay',
'flex-col overflow-hidden rounded border shadow-sm',
].join(' ')}
>
<div
className={[
- 'border-panel-border-light bg-panel-header-light dark:bg-panel-header-dark',
- 'flex justify-between w-full border-b py-3 px-4 dark:border-panel-border-dark',
+ 'border-overlay bg-surface-100',
+ 'flex justify-between w-full border-b py-3 px-4',
].join(' ')}
>
<div className="flex items-center gap-1 max-w-[85%]">
@@ -84,7 +84,7 @@ const ExtensionCard = ({ extension }: ExtensionCardProps) => {
>
{extension.name}
</h3>
- <p className="text-sm text-light">
+ <p className="text-sm text-foreground-light">
{extension?.installed_version ?? extension.default_version}
</p>
</div>
diff --git a/studio/components/interfaces/Database/Functions/CreateFunction.tsx b/studio/components/interfaces/Database/Functions/CreateFunction.tsx
index b612bd2e53d..c628eea69f1 100644
--- a/studio/components/interfaces/Database/Functions/CreateFunction.tsx
+++ b/studio/components/interfaces/Database/Functions/CreateFunction.tsx
@@ -381,7 +381,7 @@ const CreateFunction = ({ func, visible, setVisible }: CreateFunctionProps) => {
<SidePanel.Separator />
<SidePanel.Content>
<Panel>
- <div className={`space-y-8 rounded bg-scale-200 py-4`}>
+ <div className={`space-y-8 rounded bg-background py-4`}>
<div className={`px-6`}>
<Toggle
onChange={() => _localState.toggleAdvancedVisible()}
diff --git a/studio/components/interfaces/Database/Functions/FunctionsList/FunctionList.tsx b/studio/components/interfaces/Database/Functions/FunctionsList/FunctionList.tsx
index 930180e558b..095c7fd73c2 100644
--- a/studio/components/interfaces/Database/Functions/FunctionsList/FunctionList.tsx
+++ b/studio/components/interfaces/Database/Functions/FunctionsList/FunctionList.tsx
@@ -56,7 +56,7 @@ const FunctionList = ({
<Table.tr key={schema}>
<Table.td colSpan={5}>
<p className="text-sm text-foreground">No functions created yet</p>
- <p className="text-sm text-light">
+ <p className="text-sm text-foreground-light">
There are no functions found in the schema "{schema}"
</p>
</Table.td>
@@ -69,7 +69,7 @@ const FunctionList = ({
<Table.tr key={schema}>
<Table.td colSpan={5}>
<p className="text-sm text-foreground">No results found</p>
- <p className="text-sm text-light">
+ <p className="text-sm text-foreground-light">
Your search for "{filterString}" did not return any results
</p>
</Table.td>
@@ -141,8 +141,8 @@ const FunctionList = ({
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">
diff --git a/studio/components/interfaces/Database/Functions/FunctionsList/FunctionsList.tsx b/studio/components/interfaces/Database/Functions/FunctionsList/FunctionsList.tsx
index 2d6bc20475f..e5e6915f78b 100644
--- a/studio/components/interfaces/Database/Functions/FunctionsList/FunctionsList.tsx
+++ b/studio/components/interfaces/Database/Functions/FunctionsList/FunctionsList.tsx
@@ -115,8 +115,8 @@ const FunctionsList = ({
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">
diff --git a/studio/components/interfaces/Database/Hooks/EditHookPanel.tsx b/studio/components/interfaces/Database/Hooks/EditHookPanel.tsx
index 661d80f7e45..82031363d7e 100644
--- a/studio/components/interfaces/Database/Hooks/EditHookPanel.tsx
+++ b/studio/components/interfaces/Database/Hooks/EditHookPanel.tsx
@@ -274,7 +274,7 @@ const EditHookPanel = ({ visible, selectedHook, onClose }: EditHookPanelProps) =
onConfirm={() => {}}
onCancel={() => onClosePanel()}
customFooter={
- <div className="flex w-full justify-end space-x-3 border-t border-scale-500 px-3 py-4">
+ <div className="flex w-full justify-end space-x-3 border-t border-default px-3 py-4">
<Button
size="tiny"
type="default"
diff --git a/studio/components/interfaces/Database/Hooks/HTTPRequestFields.tsx b/studio/components/interfaces/Database/Hooks/HTTPRequestFields.tsx
index f6cf0b7d542..5536ab5e4a2 100644
--- a/studio/components/interfaces/Database/Hooks/HTTPRequestFields.tsx
+++ b/studio/components/interfaces/Database/Hooks/HTTPRequestFields.tsx
@@ -92,7 +92,7 @@ const HTTPRequestFields = ({
) : type === 'supabase_function' && edgeFunctions.length === 0 ? (
<div className="space-y-1">
<p className="text-sm text-foreground-light">Select which edge function to trigger</p>
- <div className="px-4 py-4 border rounded bg-scale-500 border-scale-700 flex items-center justify-between space-x-4">
+ <div className="px-4 py-4 border rounded bg-surface-300 border-strong flex items-center justify-between space-x-4">
<p className="text-sm">No edge functions created yet</p>
<Button asChild>
<Link href={`/project/${ref}/functions`}>Create an edge function</Link>
@@ -121,7 +121,7 @@ const HTTPRequestFields = ({
label="Timeout"
labelOptional="Between 1000ms to 5000ms"
type="number"
- actions={<p className="text-light pr-2">ms</p>}
+ actions={<p className="text-foreground-light pr-2">ms</p>}
/>
</FormSectionContent>
</FormSection>
diff --git a/studio/components/interfaces/Database/Hooks/HooksList/HookList.tsx b/studio/components/interfaces/Database/Hooks/HooksList/HookList.tsx
index b890a489199..550b2fbafc8 100644
--- a/studio/components/interfaces/Database/Hooks/HooksList/HookList.tsx
+++ b/studio/components/interfaces/Database/Hooks/HooksList/HookList.tsx
@@ -121,8 +121,8 @@ const HookList = ({ schema, filterString, editHook = noop, deleteHook = noop }:
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">
diff --git a/studio/components/interfaces/Database/Hooks/HooksList/HooksList.tsx b/studio/components/interfaces/Database/Hooks/HooksList/HooksList.tsx
index 1caa2386ae2..8bb9fa0b90e 100644
--- a/studio/components/interfaces/Database/Hooks/HooksList/HooksList.tsx
+++ b/studio/components/interfaces/Database/Hooks/HooksList/HooksList.tsx
@@ -108,8 +108,8 @@ const HooksList = ({
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">
diff --git a/studio/components/interfaces/Database/Indexes/Indexes.tsx b/studio/components/interfaces/Database/Indexes/Indexes.tsx
index aab135a4bfc..23681aded1c 100644
--- a/studio/components/interfaces/Database/Indexes/Indexes.tsx
+++ b/studio/components/interfaces/Database/Indexes/Indexes.tsx
@@ -129,7 +129,7 @@ const Indexes = () => {
<div className="flex items-center space-x-2">
{isLoadingSchemas && <ShimmeringLoader className="w-[260px]" />}
{isErrorSchemas && (
- <div className="w-[260px] text-light text-sm border px-3 py-1.5 rounded flex items-center space-x-2">
+ <div className="w-[260px] text-foreground-light text-sm border px-3 py-1.5 rounded flex items-center space-x-2">
<IconAlertCircle strokeWidth={2} size={16} />
<p>Failed to load schemas</p>
</div>
@@ -181,7 +181,7 @@ const Indexes = () => {
<Table.tr>
<Table.td colSpan={4}>
<p className="text-sm text-foreground">No indexes created yet</p>
- <p className="text-sm text-light">
+ <p className="text-sm text-foreground-light">
There are no indexes found in the schema "{selectedSchema}"
</p>
</Table.td>
@@ -191,7 +191,7 @@ const Indexes = () => {
<Table.tr>
<Table.td colSpan={4}>
<p className="text-sm text-foreground">No results found</p>
- <p className="text-sm text-light">
+ <p className="text-sm text-foreground-light">
Your search for "{search}" did not return any results
</p>
</Table.td>
@@ -286,7 +286,7 @@ const Indexes = () => {
<li className="flex gap-3">
<div>
<strong className="text-sm">Before deleting this index, consider:</strong>
- <ul className="space-y-2 mt-2 text-sm text-light">
+ <ul className="space-y-2 mt-2 text-sm text-foreground-light">
<li className="list-disc ml-6">This index is no longer in use</li>
<li className="list-disc ml-6">
The table which the index is on is not currently in use, as dropping an index
diff --git a/studio/components/interfaces/Database/Migrations/Migrations.tsx b/studio/components/interfaces/Database/Migrations/Migrations.tsx
index 93706d22cbb..994c246adfc 100644
--- a/studio/components/interfaces/Database/Migrations/Migrations.tsx
+++ b/studio/components/interfaces/Database/Migrations/Migrations.tsx
@@ -141,7 +141,7 @@ const Migrations = () => {
<Table.tr>
<Table.td colSpan={3}>
<p className="text-sm text-foreground">No results found</p>
- <p className="text-sm text-light">
+ <p className="text-sm text-foreground-light">
Your search for "{search}" did not return any results
</p>
</Table.td>
diff --git a/studio/components/interfaces/Database/Migrations/MigrationsEmptyState.tsx b/studio/components/interfaces/Database/Migrations/MigrationsEmptyState.tsx
index 01c2b9b4476..ed01de6d3ec 100644
--- a/studio/components/interfaces/Database/Migrations/MigrationsEmptyState.tsx
+++ b/studio/components/interfaces/Database/Migrations/MigrationsEmptyState.tsx
@@ -46,7 +46,7 @@ const MigrationsEmptyState = () => {
]
return (
- <div className="w-full px-12 py-12 bg-white bg-no-repeat border rounded dark:bg-scale-200 border-scale-500">
+ <div className="w-full px-12 py-12 bg-no-repeat border rounded bg-background border-default">
<div className="space-y-8">
<div className="space-y-2 w-4/5">
<h4 className="text-lg">Database migrations</h4>
@@ -62,26 +62,26 @@ const MigrationsEmptyState = () => {
<button
type="button"
className={clsx(
- 'flex w-full items-center justify-between rounded py-3 px-6 text-foreground border bg-scale-100 dark:bg-scale-300',
+ 'flex w-full items-center justify-between rounded py-3 px-6 text-foreground border bg-surface-100',
showInstructions && 'rounded-b-none'
)}
>
<div className="flex items-center justify-between gap-3 w-full">
<div className="flex items-center gap-3">
- <div className="flex items-center justify-center w-8 h-8 p-2 border rounded bg-scale-100">
+ <div className="flex items-center justify-center w-8 h-8 p-2 border rounded bg-alternative">
<IconTerminal strokeWidth={2} />
</div>
<h4>Terminal instructions</h4>
</div>
{showInstructions ? (
<IconMinimize2
- className="text-scale-800 transition data-open-parent:rotate-0 data-closed-parent:rotate-180"
+ className="text-border-stronger transition data-open-parent:rotate-0 data-closed-parent:rotate-180"
strokeWidth={2}
width={14}
/>
) : (
<IconMaximize2
- className="text-scale-800 transition data-open-parent:rotate-0 data-closed-parent:rotate-180"
+ className="text-border-stronger transition data-open-parent:rotate-0 data-closed-parent:rotate-180"
strokeWidth={2}
width={14}
/>
@@ -90,7 +90,7 @@ const MigrationsEmptyState = () => {
</button>
</Collapsible.Trigger>
<Collapsible.Content>
- <div className="border border-t-0 bg-scale-100 dark:bg-scale-300 rounded-b py-3 px-6">
+ <div className="border border-t-0 bg-surface-100 rounded-b py-3 px-6">
<CommandRender commands={commands} />
</div>
</Collapsible.Content>
diff --git a/studio/components/interfaces/Database/Roles/CreateRolePanel.tsx b/studio/components/interfaces/Database/Roles/CreateRolePanel.tsx
index 859ccac2cfb..09efc73976f 100644
--- a/studio/components/interfaces/Database/Roles/CreateRolePanel.tsx
+++ b/studio/components/interfaces/Database/Roles/CreateRolePanel.tsx
@@ -61,7 +61,7 @@ const CreateRolePanel = ({ visible, onClose }: CreateRolePanelProps) => {
loading={false}
onCancel={onClose}
customFooter={
- <div className="flex w-full justify-end space-x-3 border-t border-scale-500 px-3 py-4">
+ <div className="flex w-full justify-end space-x-3 border-t border-default px-3 py-4">
<Button
size="tiny"
type="default"
@@ -137,8 +137,8 @@ const CreateRolePanel = ({ visible, onClose }: CreateRolePanelProps) => {
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200 space-y-1',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background space-y-1',
].join(' ')}
>
<span className="text-xs">
diff --git a/studio/components/interfaces/Database/Roles/RoleRow.tsx b/studio/components/interfaces/Database/Roles/RoleRow.tsx
index af97c01c27e..149a7fd133e 100644
--- a/studio/components/interfaces/Database/Roles/RoleRow.tsx
+++ b/studio/components/interfaces/Database/Roles/RoleRow.tsx
@@ -71,11 +71,11 @@ const RoleRow = ({ role, disabled = false, onSelectDelete }: RoleRowProps) => {
}}
onSubmit={onSaveChanges}
className={[
- 'bg-scale-100 dark:bg-scale-300',
- 'hover:bg-scale-200 dark:hover:bg-scale-500',
- 'data-open:bg-scale-200 dark:data-open:bg-scale-500',
- 'border-scale-300 dark:border-scale-500 hover:border-scale-500',
- 'dark:hover:border-scale-700 data-open:border-scale-700',
+ 'bg-surface-100',
+ 'hover:bg-overlay-hover',
+ 'data-open:bg-selection',
+ 'border-default hover:border-strong',
+ 'data-open:border-strong',
'data-open:pb-px col-span-12 mx-auto',
'-space-y-px overflow-hidden',
'border border-t-0 first:border-t first:!mt-0 hover:border-t hover:-mt-[1px] shadow transition hover:z-50',
@@ -100,7 +100,7 @@ const RoleRow = ({ role, disabled = false, onSelectDelete }: RoleRowProps) => {
<div className="flex items-start space-x-3">
<IconChevronUp
id="collapsible-trigger"
- className="text-scale-800 transition data-open-parent:rotate-0 data-closed-parent:rotate-180"
+ className="text-border-stronger transition data-open-parent:rotate-0 data-closed-parent:rotate-180"
strokeWidth={2}
width={14}
/>
@@ -155,7 +155,7 @@ const RoleRow = ({ role, disabled = false, onSelectDelete }: RoleRowProps) => {
</button>
</Collapsible.Trigger>
<Collapsible.Content>
- <div className="group border-t border-scale-500 bg-scale-100 py-6 px-20 text-foreground dark:bg-scale-300">
+ <div className="group border-t border-default bg-surface-100 py-6 px-20 text-foreground">
<div className="py-4 space-y-[9px]">
{Object.keys(ROLE_PERMISSIONS).map((permission) => (
<Toggle
@@ -185,8 +185,8 @@ const RoleRow = ({ role, disabled = false, onSelectDelete }: RoleRowProps) => {
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200 space-y-1',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background space-y-1',
].join(' ')}
>
<span className="text-xs">
diff --git a/studio/components/interfaces/Database/Roles/RolesList.tsx b/studio/components/interfaces/Database/Roles/RolesList.tsx
index 5c69f774698..d2052987a39 100644
--- a/studio/components/interfaces/Database/Roles/RolesList.tsx
+++ b/studio/components/interfaces/Database/Roles/RolesList.tsx
@@ -84,25 +84,25 @@ const RolesList = ({}) => {
)
}
/>
- <div className="flex items-center border border-scale-700 rounded-full w-min h-[34px]">
+ <div className="flex items-center border border-strong rounded-full w-min h-[34px]">
<button
className={[
'text-xs w-[90px] h-full text-center rounded-l-full flex items-center justify-center transition',
filterType === 'all'
- ? 'bg-scale-500 text-foreground'
- : 'hover:bg-scale-400 text-foreground-light',
+ ? 'bg-overlay-hover text-foreground'
+ : 'hover:bg-surface-200 text-foreground-light',
].join(' ')}
onClick={() => setFilterType('all')}
>
All roles
</button>
- <div className="h-full w-[1px] border-r border-scale-700"></div>
+ <div className="h-full w-[1px] border-r border-strong"></div>
<button
className={[
'text-xs w-[90px] h-full text-center rounded-r-full flex items-center justify-center transition',
filterType === 'active'
- ? 'bg-scale-500 text-foreground'
- : 'hover:bg-scale-400 text-foreground-light',
+ ? 'bg-overlay-hover text-foreground'
+ : 'hover:bg-surface-200 text-foreground-light',
].join(' ')}
onClick={() => setFilterType('active')}
>
@@ -136,8 +136,8 @@ const RolesList = ({}) => {
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200 space-y-1',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background space-y-1',
].join(' ')}
>
<p className="text-xs text-foreground-light pr-2">Connections by roles:</p>
@@ -165,8 +165,8 @@ const RolesList = ({}) => {
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200 text-xs',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background text-xs',
].join(' ')}
>
You need additional permissions to add a new role
@@ -180,7 +180,7 @@ const RolesList = ({}) => {
<div className="space-y-4">
<div>
{supabaseRoles.length > 0 && (
- <div className="bg-scale-100 dark:bg-scale-200 border border-scale-300 dark:border-scale-500 px-6 py-3 rounded-t flex items-center space-x-4">
+ <div className="bg-surface-100 border border-default px-6 py-3 rounded-t flex items-center space-x-4">
<p className="text-sm text-foreground-light">Roles managed by Supabase</p>
<Badge color="green">Protected</Badge>
</div>
@@ -197,7 +197,7 @@ const RolesList = ({}) => {
<div>
{otherRoles.length > 0 && (
- <div className="bg-scale-100 dark:bg-scale-200 border border-scale-300 dark:border-scale-500 px-6 py-3 rounded-t">
+ <div className="bg-surface-100 border border-default px-6 py-3 rounded-t">
<p className="text-sm text-foreground-light">Other database roles</p>
</div>
)}
diff --git a/studio/components/interfaces/Database/Schemas/SchemaGraph.tsx b/studio/components/interfaces/Database/Schemas/SchemaGraph.tsx
index 62629d36713..e4168291b24 100644
--- a/studio/components/interfaces/Database/Schemas/SchemaGraph.tsx
+++ b/studio/components/interfaces/Database/Schemas/SchemaGraph.tsx
@@ -229,13 +229,13 @@ function TableNode({ data, targetPosition, sourcePosition }: NodeProps<TableNode
</div>
) : (
<div className="rounded-lg overflow-hidden" style={{ width: NODE_WIDTH / 2 }}>
- <header className="text-[0.5rem] leading-5 font-bold px-2 text-center bg-brand text-gray-300">
+ <header className="text-[0.5rem] leading-5 font-bold px-2 text-center bg-brand text-background-surface-100">
{data.name}
</header>
{data.columns.map((column) => (
<div
- className="text-[8px] leading-5 relative flex flex-row justify-items-start odd:bg-scale-300 even:bg-scale-400"
+ className="text-[8px] leading-5 relative flex flex-row justify-items-start odd:bg-surface-100 even:bg-surface-200"
key={column.id}
>
<div className="gap-[0.24rem] flex mx-2 align-middle basis-1/5 items-center justify-start">
@@ -269,7 +269,7 @@ function TableNode({ data, targetPosition, sourcePosition }: NodeProps<TableNode
<span
className={clsx(
column.isPrimary && 'pl-[6px]',
- 'absolute top-0 left-0 right-0 pl-2 bg-scale-500 text-ellipsis overflow-hidden whitespace-nowrap opacity-0 hover:opacity-100'
+ 'absolute top-0 left-0 right-0 pl-2 bg-surface-300 text-ellipsis overflow-hidden whitespace-nowrap opacity-0 hover:opacity-100'
)}
>
{column.name}
@@ -351,7 +351,7 @@ const TablesGraph = ({ tables }: { tables: PostgresTable[] }) => {
zoomable
nodeColor={miniMapNodeColor}
maskColor={miniMapMaskColor}
- className="border border-scale-600 rounded-md shadow-sm"
+ className="border border-control rounded-md shadow-sm"
/>
</ReactFlow>
</div>
diff --git a/studio/components/interfaces/Database/Tables/ColumnList.tsx b/studio/components/interfaces/Database/Tables/ColumnList.tsx
index f537813c49a..807e738ea0c 100644
--- a/studio/components/interfaces/Database/Tables/ColumnList.tsx
+++ b/studio/components/interfaces/Database/Tables/ColumnList.tsx
@@ -60,7 +60,7 @@ const ColumnList = ({
<div className="flex items-center space-x-2">
<div className="flex items-center space-x-2">
<h3 className="mb-1 text-xl text-foreground">Database Tables</h3>
- <IconChevronRight strokeWidth={1.5} className="text-light" />
+ <IconChevronRight strokeWidth={1.5} className="text-foreground-light" />
<h3 className="mb-1 text-xl text-foreground">{table.name}</h3>
</div>
</div>
@@ -99,8 +99,8 @@ const ColumnList = ({
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">
@@ -155,7 +155,7 @@ const ColumnList = ({
{x.comment !== null ? (
<p title={x.comment}>{x.comment}</p>
) : (
- <p className="text-scale-800">No description</p>
+ <p className="text-border-stronger">No description</p>
)}
</Table.td>
<Table.td>
@@ -193,8 +193,8 @@ const ColumnList = ({
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">
@@ -222,8 +222,8 @@ const ColumnList = ({
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">
diff --git a/studio/components/interfaces/Database/Tables/TableList.tsx b/studio/components/interfaces/Database/Tables/TableList.tsx
index 7be0c821889..4b61e802532 100644
--- a/studio/components/interfaces/Database/Tables/TableList.tsx
+++ b/studio/components/interfaces/Database/Tables/TableList.tsx
@@ -131,8 +131,8 @@ const TableList = ({
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">
@@ -181,7 +181,7 @@ const TableList = ({
<Table.tr key={snap.selectedSchemaName}>
<Table.td colSpan={6}>
<p className="text-sm text-foreground">No tables created yet</p>
- <p className="text-sm text-light">
+ <p className="text-sm text-foreground-light">
There are no tables found in the schema "{snap.selectedSchemaName}"
</p>
</Table.td>
@@ -191,7 +191,7 @@ const TableList = ({
<Table.tr key={snap.selectedSchemaName}>
<Table.td colSpan={6}>
<p className="text-sm text-foreground">No results found</p>
- <p className="text-sm text-light">
+ <p className="text-sm text-foreground-light">
Your search for "{filterString}" did not return any results
</p>
</Table.td>
@@ -232,7 +232,7 @@ const TableList = ({
{x.comment !== null ? (
<p title={x.comment}>{x.comment}</p>
) : (
- <p className="text-scale-800">No description</p>
+ <p className="text-border-stronger">No description</p>
)}
</Table.td>
<Table.td className="hidden text-right xl:table-cell">
@@ -294,8 +294,8 @@ const TableList = ({
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">
@@ -323,8 +323,8 @@ const TableList = ({
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">
diff --git a/studio/components/interfaces/Database/Triggers/ChooseFunctionForm.tsx b/studio/components/interfaces/Database/Triggers/ChooseFunctionForm.tsx
index 6e111b7eb4d..5765d5007db 100644
--- a/studio/components/interfaces/Database/Triggers/ChooseFunctionForm.tsx
+++ b/studio/components/interfaces/Database/Triggers/ChooseFunctionForm.tsx
@@ -159,12 +159,12 @@ const Function = ({ id, completeStatement, name, onClick }: FunctionProps) => {
const [visible, setVisible] = useState(false)
return (
<div
- className="cursor-pointer rounded p-3 px-6 hover:bg-scale-200 dark:hover:bg-scale-200"
+ className="cursor-pointer rounded p-3 px-6 hover:bg-background"
onClick={() => onClick(id)}
>
<div className="flex items-center justify-between space-x-3">
<div className="flex items-center space-x-3">
- <div className="flex items-center justify-center rounded bg-scale-1200 p-1 text-scale-100 ">
+ <div className="flex items-center justify-center rounded bg-foreground p-1 text-background">
<IconTerminal strokeWidth={2} size={14} />
</div>
<p className="mb-0 text-sm">{name}</p>
diff --git a/studio/components/interfaces/Database/Triggers/CreateTrigger.tsx b/studio/components/interfaces/Database/Triggers/CreateTrigger.tsx
index 28d251f99de..d591b5bb34b 100644
--- a/studio/components/interfaces/Database/Triggers/CreateTrigger.tsx
+++ b/studio/components/interfaces/Database/Triggers/CreateTrigger.tsx
@@ -583,7 +583,7 @@ const ListboxTable = observer(({}) => {
value={x.id}
label={x.name}
addOnBefore={() => (
- <div className="flex items-center justify-center rounded bg-scale-1200 p-1 text-scale-100 ">
+ <div className="flex items-center justify-center rounded bg-foreground p-1 text-background">
<SVG
src={`${BASE_PATH}/img/table-editor.svg`}
style={{ width: `16px`, height: `16px`, strokeWidth: '1px' }}
@@ -674,7 +674,7 @@ const ListboxActivation = observer(({}) => {
value={'BEFORE'}
label={'Before the event'}
addOnBefore={() => (
- <div className="flex items-center justify-center rounded bg-scale-1200 p-1 text-scale-100 ">
+ <div className="flex items-center justify-center rounded bg-foreground p-1 text-background">
<IconPauseCircle strokeWidth={2} size="small" />
</div>
)}
@@ -691,7 +691,7 @@ const ListboxActivation = observer(({}) => {
value={'AFTER'}
label={'After the event'}
addOnBefore={() => (
- <div className="flex items-center justify-center rounded bg-green-1200 p-1 text-scale-100 ">
+ <div className="flex items-center justify-center rounded bg-green-1200 p-1 text-background">
<IconPlayCircle strokeWidth={2} size="small" />
</div>
)}
@@ -735,11 +735,10 @@ const FunctionEmpty = observer(({}) => {
className={[
'relative w-full',
'rounded',
- 'border border-scale-600',
- 'bg-scale-200 px-5 py-1',
+ 'border border-default',
+ 'bg-surface-200 px-5 py-1',
'shadow-sm transition-all',
- 'hover:border-scale-700 hover:bg-scale-300',
- 'dark:bg-scale-400 dark:hover:bg-scale-500',
+ 'hover:border-strong hover:bg-overlay-hover',
].join(' ')}
>
<FormEmptyBox
@@ -760,12 +759,12 @@ const FunctionWithArguments = observer(({}) => {
'relative w-full',
'flex items-center justify-between',
'space-x-3 px-5 py-4',
- 'border border-scale-200 dark:border-scale-500',
+ 'border border-default',
'rounded shadow-sm transition-shadow',
].join(' ')}
>
<div className="flex items-center gap-2">
- <div className="flex h-6 w-6 items-center justify-center rounded bg-scale-1200 text-scale-100 focus-within:bg-opacity-10">
+ <div className="flex h-6 w-6 items-center justify-center rounded bg-foreground text-background focus-within:bg-opacity-10">
<IconTerminal size="small" strokeWidth={2} width={14} />
</div>
<div className="flex items-center gap-2">
diff --git a/studio/components/interfaces/Database/Triggers/TriggersList/TriggerList.tsx b/studio/components/interfaces/Database/Triggers/TriggersList/TriggerList.tsx
index 3725969b82b..2ba8127eb57 100644
--- a/studio/components/interfaces/Database/Triggers/TriggersList/TriggerList.tsx
+++ b/studio/components/interfaces/Database/Triggers/TriggersList/TriggerList.tsx
@@ -48,7 +48,9 @@ const TriggerList = ({
<Table.tr key={schema}>
<Table.td colSpan={6}>
<p className="text-sm text-foreground">No triggers created yet</p>
- <p className="text-sm text-light">There are no triggers found in the schema "{schema}"</p>
+ <p className="text-sm text-foreground-light">
+ There are no triggers found in the schema "{schema}"
+ </p>
</Table.td>
</Table.tr>
)
@@ -59,7 +61,7 @@ const TriggerList = ({
<Table.tr key={schema}>
<Table.td colSpan={5}>
<p className="text-sm text-foreground">No results found</p>
- <p className="text-sm text-light">
+ <p className="text-sm text-foreground-light">
Your search for "{filterString}" did not return any results
</p>
</Table.td>
@@ -138,8 +140,8 @@ const TriggerList = ({
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">
diff --git a/studio/components/interfaces/Database/Triggers/TriggersList/TriggersList.tsx b/studio/components/interfaces/Database/Triggers/TriggersList/TriggersList.tsx
index 5d833df63fe..c03fff4578d 100644
--- a/studio/components/interfaces/Database/Triggers/TriggersList/TriggersList.tsx
+++ b/studio/components/interfaces/Database/Triggers/TriggersList/TriggersList.tsx
@@ -108,8 +108,8 @@ const TriggersList = ({
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">
diff --git a/studio/components/interfaces/Database/Wrappers/CreateWrapper.tsx b/studio/components/interfaces/Database/Wrappers/CreateWrapper.tsx
index 3f0774206f6..f28917a8d9c 100644
--- a/studio/components/interfaces/Database/Wrappers/CreateWrapper.tsx
+++ b/studio/components/interfaces/Database/Wrappers/CreateWrapper.tsx
@@ -223,7 +223,7 @@ const CreateWrapper = () => {
{newTables.map((table, i) => (
<div
key={`${table.schema_name}.${table.table_name}`}
- className="flex items-center justify-between px-4 py-2 border rounded-md border-scale-600"
+ className="flex items-center justify-between px-4 py-2 border rounded-md border-control"
>
<div>
<p className="text-sm">
diff --git a/studio/components/interfaces/Database/Wrappers/EditWrapper.tsx b/studio/components/interfaces/Database/Wrappers/EditWrapper.tsx
index f34b0e78cf0..0cad0455c55 100644
--- a/studio/components/interfaces/Database/Wrappers/EditWrapper.tsx
+++ b/studio/components/interfaces/Database/Wrappers/EditWrapper.tsx
@@ -332,7 +332,7 @@ const EditWrapper = () => {
return (
<div
key={`${table.schema_name}.${table.table_name}`}
- className="flex items-center justify-between px-4 py-2 border rounded-md border-scale-600"
+ className="flex items-center justify-between px-4 py-2 border rounded-md border-control"
>
<div>
<p className="text-sm">
diff --git a/studio/components/interfaces/Database/Wrappers/WrapperRow.tsx b/studio/components/interfaces/Database/Wrappers/WrapperRow.tsx
index d71714ed1b1..c42bc2d0e7e 100644
--- a/studio/components/interfaces/Database/Wrappers/WrapperRow.tsx
+++ b/studio/components/interfaces/Database/Wrappers/WrapperRow.tsx
@@ -34,12 +34,12 @@ const WrapperRow = ({
open={isOpen}
onOpenChange={() => onOpen(wrapperMeta.name)}
className={[
- 'bg-scale-100 dark:bg-scale-300 ',
- 'hover:bg-scale-200 dark:hover:bg-scale-500',
- 'data-open:bg-scale-200 dark:data-open:bg-scale-500',
- 'border-scale-300',
- 'dark:border-scale-500 hover:border-scale-500',
- 'dark:hover:border-scale-700 data-open:border-scale-700',
+ 'bg-surface-100',
+ 'hover:bg-overlay-hover',
+ 'data-open:bg-selection',
+ 'border-default',
+ 'hover:border-strong',
+ 'data-open:border-strong',
'col-span-12 mx-auto',
'-space-y-px overflow-hidden',
'transition border shadow hover:z-50',
@@ -54,7 +54,7 @@ const WrapperRow = ({
>
<div className="flex items-center gap-3">
<IconChevronUp
- className="transition text-scale-800 data-open-parent:rotate-0 data-closed-parent:rotate-180"
+ className="transition text-border-stronger data-open-parent:rotate-0 data-closed-parent:rotate-180"
strokeWidth={2}
width={14}
/>
@@ -67,14 +67,14 @@ const WrapperRow = ({
<span className="text-sm capitalize">{wrapperMeta.label}</span>
</div>
<div className="flex items-center gap-3">
- <div className="px-3 py-1 text-xs border rounded-md border-scale-500 bg-scale-100 text-foreground dark:border-scale-700 dark:bg-scale-300">
+ <div className="px-3 py-1 text-xs border rounded-md border-strong bg-surface-100 text-foreground">
{wrappers.length} wrapper{wrappers.length > 1 ? 's' : ''}
</div>
</div>
</button>
</Collapsible.Trigger>
<Collapsible.Content>
- <div className="border-t group border-scale-500 bg-scale-100 text-foreground dark:bg-scale-300 divide-y">
+ <div className="border-t group border-strong bg-surface-100 text-foreground divide-y">
{wrappers.map((wrapper) => {
const serverOptions = Object.fromEntries(
wrapper.server_options.map((option: any) => option.split('='))
@@ -119,7 +119,7 @@ const WrapperRow = ({
{wrapper.tables ? (
wrapper.tables.map((table: any) => (
<Link key={table.id} href={`/project/${ref}/editor/${table.id}`}>
- <div className="text-sm border rounded px-2 py-1 transition bg-scale-400 hover:bg-scale-500">
+ <div className="text-sm border rounded px-2 py-1 transition bg-surface-200 hover:bg-overlay-hover">
{table.name}
</div>
</Link>
@@ -155,8 +155,8 @@ const WrapperRow = ({
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">
@@ -184,8 +184,8 @@ const WrapperRow = ({
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">
diff --git a/studio/components/interfaces/Database/Wrappers/WrapperTableEditor.tsx b/studio/components/interfaces/Database/Wrappers/WrapperTableEditor.tsx
index 11b83a5a1c4..cc335f5a88a 100644
--- a/studio/components/interfaces/Database/Wrappers/WrapperTableEditor.tsx
+++ b/studio/components/interfaces/Database/Wrappers/WrapperTableEditor.tsx
@@ -269,7 +269,7 @@ const TableForm = ({
key={column.name}
className={[
'px-2 py-1 rounded cursor-pointer transition',
- `${isSelected ? 'bg-brand-300' : 'bg-scale-500 hover:bg-scale-700'}`,
+ `${isSelected ? 'bg-brand-300' : 'bg-surface-300 hover:bg-selection'}`,
].join(' ')}
onClick={() => {
if (isSelected) {
diff --git a/studio/components/interfaces/Database/Wrappers/Wrappers.tsx b/studio/components/interfaces/Database/Wrappers/Wrappers.tsx
index da306dddf77..b9f6a4f15f8 100644
--- a/studio/components/interfaces/Database/Wrappers/Wrappers.tsx
+++ b/studio/components/interfaces/Database/Wrappers/Wrappers.tsx
@@ -63,7 +63,7 @@ const Wrappers = () => {
</div>
{isLoadingExtensions || isLoading ? (
- <div className="p-12 space-y-2 border rounded border-scale-500">
+ <div className="p-12 space-y-2 border rounded border-default">
<GenericSkeletonLoader />
</div>
) : isWrappersEnabled ? (
@@ -71,7 +71,7 @@ const Wrappers = () => {
{wrappers.length === 0 ? (
<div
className={[
- 'border rounded border-scale-500 px-20 py-16',
+ 'border rounded border-default px-20 py-16',
'flex flex-col items-center justify-center space-y-4',
].join(' ')}
>
diff --git a/studio/components/interfaces/Database/Wrappers/WrappersDisabledState.tsx b/studio/components/interfaces/Database/Wrappers/WrappersDisabledState.tsx
index 78f87d98a2b..b3e79dd603e 100644
--- a/studio/components/interfaces/Database/Wrappers/WrappersDisabledState.tsx
+++ b/studio/components/interfaces/Database/Wrappers/WrappersDisabledState.tsx
@@ -67,7 +67,7 @@ const WrappersDisabledState = () => {
return (
<div>
<div
- className="w-full px-12 py-12 bg-white bg-no-repeat border rounded dark:bg-scale-200 border-scale-500"
+ className="w-full px-12 py-12 bg-no-repeat border rounded bg-background border-default"
style={{
backgroundSize: '45%',
backgroundPosition: '105% 40%',
@@ -88,7 +88,7 @@ const WrappersDisabledState = () => {
</div>
{isNotAvailable ? (
<div className="space-y-4">
- <div className="rounded border border-scale-500 px-4 py-2 flex items-center justify-between">
+ <div className="rounded border border-default px-4 py-2 flex items-center justify-between">
<div>
<p className="text-foreground-light text-sm">
Wrappers is not available for this project yet.
@@ -149,8 +149,8 @@ const WrappersDisabledState = () => {
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">
diff --git a/studio/components/interfaces/Database/Wrappers/WrappersDropdown.tsx b/studio/components/interfaces/Database/Wrappers/WrappersDropdown.tsx
index e6a9f80ec7d..577b52ef6e5 100644
--- a/studio/components/interfaces/Database/Wrappers/WrappersDropdown.tsx
+++ b/studio/components/interfaces/Database/Wrappers/WrappersDropdown.tsx
@@ -40,8 +40,8 @@ const WrapperDropdown = ({ buttonText = 'Add wrapper', align = 'end' }: WrapperD
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">
diff --git a/studio/components/interfaces/Docs/GeneratingTypes.tsx b/studio/components/interfaces/Docs/GeneratingTypes.tsx
index 7fdb3988244..97e8df27e3a 100644
--- a/studio/components/interfaces/Docs/GeneratingTypes.tsx
+++ b/studio/components/interfaces/Docs/GeneratingTypes.tsx
@@ -88,7 +88,7 @@ export default function GeneratingTypes({ selectedLang }: Props) {
</Button>
)}
</p>
- <p className="text-xs text-center text-foreground-light bg-scale-200 p-4">
+ <p className="text-xs text-center text-foreground-light bg-background p-4">
Remember to re-generate and download this file as you make changes to your tables.
</p>
</div>
diff --git a/studio/components/interfaces/Docs/LangSelector.tsx b/studio/components/interfaces/Docs/LangSelector.tsx
index 43439f7cc39..becbd171fce 100644
--- a/studio/components/interfaces/Docs/LangSelector.tsx
+++ b/studio/components/interfaces/Docs/LangSelector.tsx
@@ -43,9 +43,9 @@ const LangSelector = ({
onClick={() => setSelectedLang('js')}
className={`${
selectedLang == 'js'
- ? 'bg-scale-300 font-medium text-foreground dark:bg-scale-200'
- : 'bg-scale-100 text-foreground-lighter dark:bg-scale-100'
- } relative inline-flex items-center border-r border-scale-200 p-1 px-2 text-sm transition hover:text-foreground focus:outline-none`}
+ ? 'bg-surface-100 font-medium text-foreground'
+ : 'bg-alternative text-foreground-lighter'
+ } relative inline-flex items-center border-r border-background p-1 px-2 text-sm transition hover:text-foreground focus:outline-none`}
>
JavaScript
</button>
@@ -54,9 +54,9 @@ const LangSelector = ({
onClick={() => setSelectedLang('bash')}
className={`${
selectedLang == 'bash'
- ? 'bg-scale-300 font-medium text-foreground dark:bg-scale-200'
- : 'bg-scale-100 text-foreground-lighter dark:bg-scale-100'
- } relative inline-flex items-center border-r border-scale-200 p-1 px-2 text-sm transition hover:text-foreground focus:outline-none`}
+ ? 'bg-surface-100 font-medium text-foreground'
+ : 'bg-alternative text-foreground-lighter'
+ } relative inline-flex items-center border-r border-background p-1 px-2 text-sm transition hover:text-foreground focus:outline-none`}
>
Bash
</button>
diff --git a/studio/components/interfaces/Functions/EdgeFunctionDetails/EdgeFunctionDetails.tsx b/studio/components/interfaces/Functions/EdgeFunctionDetails/EdgeFunctionDetails.tsx
index 9700f810f47..3d3944a2230 100644
--- a/studio/components/interfaces/Functions/EdgeFunctionDetails/EdgeFunctionDetails.tsx
+++ b/studio/components/interfaces/Functions/EdgeFunctionDetails/EdgeFunctionDetails.tsx
@@ -182,7 +182,7 @@ const EdgeFunctionDetails = () => {
label="Enforce JWT Verification"
descriptionText="Require a valid JWT in the authorization header when invoking the function"
/>
- <div className="space-y-1 border rounded border-scale-500 bg-scale-400 px-4 py-4">
+ <div className="space-y-1 border rounded border-default bg-surface-200 px-4 py-4">
<div className="flex items-center space-x-2">
<p className="text-sm">
Import maps are{' '}
@@ -221,12 +221,12 @@ const EdgeFunctionDetails = () => {
</Form>
<div
- className="space-y-6 rounded border bg-scale-100 px-6 py-4 drop-shadow-sm dark:bg-scale-300 transition-all overflow-hidden"
+ className="space-y-6 rounded border bg-surface-100 px-6 py-4 drop-shadow-sm transition-all overflow-hidden"
style={{ maxHeight: showInstructions ? 800 : 66 }}
>
<div className="flex items-center justify-between">
<div className="flex items-center space-x-3">
- <div className="flex h-8 w-8 items-center justify-center rounded border bg-scale-1200 p-2 text-scale-100 dark:bg-scale-100 dark:text-foreground">
+ <div className="flex h-8 w-8 items-center justify-center rounded border bg-foreground p-2 text-background">
<IconTerminal strokeWidth={2} />
</div>
<h4>Command line access</h4>
@@ -277,8 +277,8 @@ const EdgeFunctionDetails = () => {
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">
diff --git a/studio/components/interfaces/Functions/EdgeFunctionSecrets/EdgeFunctionSecrets.tsx b/studio/components/interfaces/Functions/EdgeFunctionSecrets/EdgeFunctionSecrets.tsx
index ad89448ea00..1fb9820a6f1 100644
--- a/studio/components/interfaces/Functions/EdgeFunctionSecrets/EdgeFunctionSecrets.tsx
+++ b/studio/components/interfaces/Functions/EdgeFunctionSecrets/EdgeFunctionSecrets.tsx
@@ -100,7 +100,7 @@ const EdgeFunctionSecrets = () => {
<Table.tr>
<Table.td colSpan={3}>
<p className="text-sm text-foreground">No results found</p>
- <p className="text-sm text-light">
+ <p className="text-sm text-foreground-light">
Your search for "{searchString}" did not return any results
</p>
</Table.td>
@@ -109,7 +109,7 @@ const EdgeFunctionSecrets = () => {
<Table.tr>
<Table.td colSpan={3}>
<p className="text-sm text-foreground">No secrets created</p>
- <p className="text-sm text-light">
+ <p className="text-sm text-foreground-light">
There are no secrets associated with your project yet
</p>
</Table.td>
diff --git a/studio/components/interfaces/Functions/EdgeFunctionsListItem.tsx b/studio/components/interfaces/Functions/EdgeFunctionsListItem.tsx
index feea28fb20f..5b7987fef16 100644
--- a/studio/components/interfaces/Functions/EdgeFunctionsListItem.tsx
+++ b/studio/components/interfaces/Functions/EdgeFunctionsListItem.tsx
@@ -94,8 +94,8 @@ const EdgeFunctionsListItem = ({ function: item }: EdgeFunctionsListItemProps) =
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">
diff --git a/studio/components/interfaces/Functions/TerminalInstructions.tsx b/studio/components/interfaces/Functions/TerminalInstructions.tsx
index f93d8a0f7c0..6cf03080411 100644
--- a/studio/components/interfaces/Functions/TerminalInstructions.tsx
+++ b/studio/components/interfaces/Functions/TerminalInstructions.tsx
@@ -88,7 +88,7 @@ const TerminalInstructions = ({
return (
<div
- className={`col-span-7 overflow-hidden transition-all rounded bg-scale-100 dark:bg-scale-300 ${
+ className={`col-span-7 overflow-hidden transition-all rounded bg-surface-100 ${
removeBorder ? '' : 'border shadow'
}`}
style={{ maxHeight: showInstructions ? 500 : 80 }}
@@ -96,7 +96,7 @@ const TerminalInstructions = ({
<div className="px-8 py-6 space-y-6">
<div className="flex items-center justify-between">
<div className="flex items-center gap-3">
- <div className="flex items-center justify-center w-8 h-8 p-2 border rounded bg-scale-100">
+ <div className="flex items-center justify-center w-8 h-8 p-2 border rounded bg-alternative">
<IconTerminal strokeWidth={2} />
</div>
<h4>Create your first Edge Function via the CLI</h4>
diff --git a/studio/components/interfaces/GraphQL/graphiql.module.css b/studio/components/interfaces/GraphQL/graphiql.module.css
index 0dad329811d..a474b358927 100644
--- a/studio/components/interfaces/GraphQL/graphiql.module.css
+++ b/studio/components/interfaces/GraphQL/graphiql.module.css
@@ -16,12 +16,12 @@
}
.graphiqlContainer .graphiqlQueryEditor {
- @apply border-b border-scale-500;
+ @apply border-b border-default;
}
.graphiqlContainer .graphiqlSessionHeader {
background-color: hsl(var(--color-base));
- @apply border-b border-scale-500;
+ @apply border-b border-default;
}
.graphiqlContainer .graphiqlResponseSingleTab {
@@ -33,11 +33,11 @@
}
.graphiqlContainer .graphiqlSidebar {
- @apply border-l border-scale-500;
+ @apply border-l border-default;
}
.graphiqlHorizontalDragBar {
- @apply border-l border-scale-500;
+ @apply border-l border-default;
}
.graphiqlAddTabWrapper {
diff --git a/studio/components/interfaces/Home/ExampleProject.tsx b/studio/components/interfaces/Home/ExampleProject.tsx
index d779faf4579..012131b9736 100644
--- a/studio/components/interfaces/Home/ExampleProject.tsx
+++ b/studio/components/interfaces/Home/ExampleProject.tsx
@@ -18,9 +18,8 @@ const ExampleProject = ({ framework, title, description, url }: ExampleProjectPr
<div
className={[
'group relative',
- 'border bg-panel-header-light hover:bg-panel-border-light dark:bg-panel-header-dark dark:hover:bg-panel-border-dark',
- 'border-panel-border-light hover:border-panel-border-hover-light dark:border-panel-border-dark',
- 'flex h-32 flex-row rounded-md p-4 hover:border-gray-300 dark:hover:border-panel-border-hover-dark',
+ 'border bg-surface-100 border-overlay',
+ 'flex h-32 flex-row rounded-md p-4 hover:bg-overlay-hover',
'transition duration-150 ease-in-out',
].join(' ')}
>
diff --git a/studio/components/interfaces/Home/NewProjectPanel/APIKeys.tsx b/studio/components/interfaces/Home/NewProjectPanel/APIKeys.tsx
index 5d3489efd81..0f56b1b948d 100644
--- a/studio/components/interfaces/Home/NewProjectPanel/APIKeys.tsx
+++ b/studio/components/interfaces/Home/NewProjectPanel/APIKeys.tsx
@@ -150,7 +150,7 @@ const APIKeys = () => {
/>
</Panel.Content>
<div className="border-t border-panel-border-interior-light dark:border-panel-border-interior-dark">
- <div className="flex items-center bg-scale-200">
+ <div className="flex items-center bg-background">
{availableLanguages.map((language) => {
const isSelected = selectedLanguage.key === language.key
return (
@@ -158,7 +158,7 @@ const APIKeys = () => {
key={language.key}
className={[
'px-3 py-1 text-sm cursor-pointer transition',
- `${!isSelected ? 'bg-scale-200 text-foreground-light' : 'bg-scale-300'}`,
+ `${!isSelected ? 'bg-background text-foreground-light' : 'bg-surface-100'}`,
].join(' ')}
onClick={() => setSelectedLanguage(language)}
>
@@ -167,7 +167,7 @@ const APIKeys = () => {
)
})}
</div>
- <div className="bg-scale-300 px-4 py-6 min-h-[200px]">
+ <div className="bg-surface-100 px-4 py-6 min-h-[200px]">
<SimpleCodeBlock className={selectedLanguage.key}>
{selectedLanguageSnippet}
</SimpleCodeBlock>
diff --git a/studio/components/interfaces/Home/NewProjectPanel/GetStartedHero.tsx b/studio/components/interfaces/Home/NewProjectPanel/GetStartedHero.tsx
index fa8cf3096a3..900261c4bc5 100644
--- a/studio/components/interfaces/Home/NewProjectPanel/GetStartedHero.tsx
+++ b/studio/components/interfaces/Home/NewProjectPanel/GetStartedHero.tsx
@@ -3,7 +3,7 @@ const GetStartedHero = () => {
<div className="w-full h-full relative pointer-events-none">
<div
className={[
- 'w-[290px] lg:w-[400px] h-[180px] bg-scale-100 border border-scale-500',
+ 'w-[290px] lg:w-[400px] h-[180px] bg-alternative border border-default',
'rounded-t px-4 py-3 space-y-1 overflow-hidden',
].join(' ')}
>
@@ -56,116 +56,116 @@ const GetStartedHero = () => {
</div>
<div
className={[
- 'w-[260px] lg:w-[320px] h-[160px] lg:h-[220px] bg-scale-300 border border-scale-500',
+ 'w-[260px] lg:w-[320px] h-[160px] lg:h-[220px] bg-surface-100 border border-default',
'absolute right-0 top-[50px] lg:-top-[40px] rounded-t overflow-y-hidden',
].join(' ')}
>
- <div className="h-[24px] flex items-center border-b border-scale-500">
- <div className="w-[10%] h-full flex items-center border-r border-scale-500 px-2">
- <div className="w-3 h-3 rounded border border-scale-600" />
+ <div className="h-[24px] flex items-center border-b border-default">
+ <div className="w-[10%] h-full flex items-center border-r border-default px-2">
+ <div className="w-3 h-3 rounded border border-control" />
</div>
- <div className="w-[20%] h-full flex items-center border-r border-scale-500 px-2">
+ <div className="w-[20%] h-full flex items-center border-r border-default px-2">
<p className="text-xs">id</p>
</div>
- <div className="w-[40%] h-full flex items-center border-r border-scale-500 px-2">
+ <div className="w-[40%] h-full flex items-center border-r border-default px-2">
<p className="text-xs">name</p>
</div>
<div className="w-[30%] h-full flex items-center px-2">
<p className="text-xs">iso2</p>
</div>
</div>
- <div className="h-[30px] flex items-center bg-scale-200 border-b border-scale-500">
- <div className="w-[10%] h-full flex items-center border-r border-scale-500 px-2">
- <div className="w-3 h-3 rounded border border-scale-600" />
+ <div className="h-[30px] flex items-center bg-background border-b border-default">
+ <div className="w-[10%] h-full flex items-center border-r border-default px-2">
+ <div className="w-3 h-3 rounded border border-control" />
</div>
- <div className="w-[20%] h-full flex items-center border-r border-scale-500 px-2">
+ <div className="w-[20%] h-full flex items-center border-r border-default px-2">
<p className="text-xs">1</p>
</div>
- <div className="w-[40%] h-full flex items-center border-r border-scale-500 px-2">
+ <div className="w-[40%] h-full flex items-center border-r border-default px-2">
<p className="text-xs">Angola</p>
</div>
<div className="w-[30%] h-full flex items-center px-2">
<p className="text-xs">AO</p>
</div>
</div>
- <div className="h-[30px] flex items-center bg-scale-200 border-b border-scale-500">
- <div className="w-[10%] h-full flex items-center border-r border-scale-500 px-2">
- <div className="w-3 h-3 rounded border border-scale-600" />
+ <div className="h-[30px] flex items-center bg-background border-b border-default">
+ <div className="w-[10%] h-full flex items-center border-r border-default px-2">
+ <div className="w-3 h-3 rounded border border-control" />
</div>
- <div className="w-[20%] h-full flex items-center border-r border-scale-500 px-2">
+ <div className="w-[20%] h-full flex items-center border-r border-default px-2">
<p className="text-xs">2</p>
</div>
- <div className="w-[40%] h-full flex items-center border-r border-scale-500 px-2">
+ <div className="w-[40%] h-full flex items-center border-r border-default px-2">
<p className="text-xs">Timor-Leste</p>
</div>
<div className="w-[30%] h-full flex items-center px-2">
<p className="text-xs">TL</p>
</div>
</div>
- <div className="h-[30px] flex items-center bg-scale-200 border-b border-scale-500">
- <div className="w-[10%] h-full flex items-center border-r border-scale-500 px-2">
- <div className="w-3 h-3 rounded border border-scale-600" />
+ <div className="h-[30px] flex items-center bg-background border-b border-default">
+ <div className="w-[10%] h-full flex items-center border-r border-default px-2">
+ <div className="w-3 h-3 rounded border border-control" />
</div>
- <div className="w-[20%] h-full flex items-center border-r border-scale-500 px-2">
+ <div className="w-[20%] h-full flex items-center border-r border-default px-2">
<p className="text-xs">3</p>
</div>
- <div className="w-[40%] h-full flex items-center border-r border-scale-500 px-2">
+ <div className="w-[40%] h-full flex items-center border-r border-default px-2">
<p className="text-xs">Serbia</p>
</div>
<div className="w-[30%] h-full flex items-center px-2">
<p className="text-xs">RS</p>
</div>
</div>
- <div className="h-[30px] flex items-center bg-scale-200 border-b border-scale-500">
- <div className="w-[10%] h-full flex items-center border-r border-scale-500 px-2">
- <div className="w-3 h-3 rounded border border-scale-600" />
+ <div className="h-[30px] flex items-center bg-background border-b border-default">
+ <div className="w-[10%] h-full flex items-center border-r border-default px-2">
+ <div className="w-3 h-3 rounded border border-control" />
</div>
- <div className="w-[20%] h-full flex items-center border-r border-scale-500 px-2">
+ <div className="w-[20%] h-full flex items-center border-r border-default px-2">
<p className="text-xs">4</p>
</div>
- <div className="w-[40%] h-full flex items-center border-r border-scale-500 px-2">
+ <div className="w-[40%] h-full flex items-center border-r border-default px-2">
<p className="text-xs">Bahamas</p>
</div>
<div className="w-[30%] h-full flex items-center px-2">
<p className="text-xs">BS</p>
</div>
</div>
- <div className="h-[30px] flex items-center bg-scale-200 border-b border-scale-500">
- <div className="w-[10%] h-full flex items-center border-r border-scale-500 px-2">
- <div className="w-3 h-3 rounded border border-scale-600" />
+ <div className="h-[30px] flex items-center bg-background border-b border-default">
+ <div className="w-[10%] h-full flex items-center border-r border-default px-2">
+ <div className="w-3 h-3 rounded border border-control" />
</div>
- <div className="w-[20%] h-full flex items-center border-r border-scale-500 px-2">
+ <div className="w-[20%] h-full flex items-center border-r border-default px-2">
<p className="text-xs">5</p>
</div>
- <div className="w-[40%] h-full flex items-center border-r border-scale-500 px-2">
+ <div className="w-[40%] h-full flex items-center border-r border-default px-2">
<p className="text-xs">Chile</p>
</div>
<div className="w-[30%] h-full flex items-center px-2">
<p className="text-xs">CL</p>
</div>
</div>
- <div className="h-[30px] flex items-center bg-scale-200 border-b border-scale-500">
- <div className="w-[10%] h-full flex items-center border-r border-scale-500 px-2">
- <div className="w-3 h-3 rounded border border-scale-600" />
+ <div className="h-[30px] flex items-center bg-background border-b border-default">
+ <div className="w-[10%] h-full flex items-center border-r border-default px-2">
+ <div className="w-3 h-3 rounded border border-control" />
</div>
- <div className="w-[20%] h-full flex items-center border-r border-scale-500 px-2">
+ <div className="w-[20%] h-full flex items-center border-r border-default px-2">
<p className="text-xs">6</p>
</div>
- <div className="w-[40%] h-full flex items-center border-r border-scale-500 px-2">
+ <div className="w-[40%] h-full flex items-center border-r border-default px-2">
<p className="text-xs">Denmark</p>
</div>
<div className="w-[30%] h-full flex items-center px-2">
<p className="text-xs">DK</p>
</div>
</div>
- <div className="h-[30px] flex items-center bg-scale-200 border-b border-scale-500">
- <div className="w-[10%] h-full flex items-center border-r border-scale-500 px-2">
- <div className="w-3 h-3 rounded border border-scale-600" />
+ <div className="h-[30px] flex items-center bg-background border-b border-default">
+ <div className="w-[10%] h-full flex items-center border-r border-default px-2">
+ <div className="w-3 h-3 rounded border border-control" />
</div>
- <div className="w-[20%] h-full flex items-center border-r border-scale-500 px-2">
+ <div className="w-[20%] h-full flex items-center border-r border-default px-2">
<p className="text-xs">7</p>
</div>
- <div className="w-[40%] h-full flex items-center border-r border-scale-500 px-2">
+ <div className="w-[40%] h-full flex items-center border-r border-default px-2">
<p className="text-xs">Singapore</p>
</div>
<div className="w-[30%] h-full flex items-center px-2">
diff --git a/studio/components/interfaces/Home/NewProjectPanel/NewProjectPanel.tsx b/studio/components/interfaces/Home/NewProjectPanel/NewProjectPanel.tsx
index 0b7917e425a..4a88a217d31 100644
--- a/studio/components/interfaces/Home/NewProjectPanel/NewProjectPanel.tsx
+++ b/studio/components/interfaces/Home/NewProjectPanel/NewProjectPanel.tsx
@@ -113,7 +113,7 @@ const NewProjectPanel = () => {
<Panel>
<Panel.Content className="flex flex-col space-y-4 md:px-3">
<div className="flex items-center space-x-3">
- <div className="rounded bg-scale-600 p-1.5 text-foreground-light shadow-sm">
+ <div className="rounded bg-surface-300 p-1.5 text-foreground-light shadow-sm">
<IconKey strokeWidth={2} size={16} />
</div>
<h5>Authentication</h5>
@@ -149,7 +149,7 @@ const NewProjectPanel = () => {
<Panel>
<Panel.Content className="flex flex-col space-y-4 md:px-3">
<div className="flex items-center space-x-3">
- <div className="rounded bg-scale-600 p-1.5 text-foreground-light shadow-sm">
+ <div className="rounded bg-surface-300 p-1.5 text-foreground-light shadow-sm">
<IconArchive strokeWidth={2} size={16} />
</div>
<h5>Storage</h5>
@@ -185,7 +185,7 @@ const NewProjectPanel = () => {
<Panel>
<Panel.Content className="flex flex-col space-y-4 md:px-3">
<div className="flex items-center space-x-3">
- <div className="rounded bg-scale-600 p-1.5 text-foreground-light shadow-sm">
+ <div className="rounded bg-surface-300 p-1.5 text-foreground-light shadow-sm">
<IconCode strokeWidth={2} size={16} />
</div>
<h5>Edge Functions</h5>
@@ -220,7 +220,7 @@ const NewProjectPanel = () => {
<Panel>
<Panel.Content className="flex flex-col space-y-4 md:px-3">
<div className="flex items-center space-x-4">
- <div className="rounded bg-scale-600 p-1.5 text-foreground-light shadow-sm">
+ <div className="rounded bg-surface-300 p-1.5 text-foreground-light shadow-sm">
<IconActivity strokeWidth={2} size={16} />
</div>
<h5>Realtime</h5>
diff --git a/studio/components/interfaces/Home/ProjectList/PausedProjectCard.tsx b/studio/components/interfaces/Home/ProjectList/PausedProjectCard.tsx
index 8a9b8f0f8eb..fdf41e9e0a3 100644
--- a/studio/components/interfaces/Home/ProjectList/PausedProjectCard.tsx
+++ b/studio/components/interfaces/Home/ProjectList/PausedProjectCard.tsx
@@ -19,10 +19,10 @@ const PausedProjectCard = ({
<a className="col-span-3 w-full md:col-span-1 ">
<div
className={[
- 'bg-panel-header-light dark:bg-panel-header-dark',
- 'hover:bg-scale-200 dark:hover:bg-scale-200',
- 'border border-scale-700',
- 'hover:border-scale-900',
+ 'bg-surface-100',
+ 'hover:bg-background',
+ 'border border-strong',
+ 'hover:border-stronger',
'h-32 rounded p-4',
'flex flex-col justify-between transition duration-150 ease-in-out',
].join(' ')}
diff --git a/studio/components/interfaces/Home/ProjectList/ProjectCard.tsx b/studio/components/interfaces/Home/ProjectList/ProjectCard.tsx
index 741a6beafc3..0137fc6cefb 100644
--- a/studio/components/interfaces/Home/ProjectList/ProjectCard.tsx
+++ b/studio/components/interfaces/Home/ProjectList/ProjectCard.tsx
@@ -42,7 +42,7 @@ const ProjectCard = ({
<span className="text-sm lowercase text-foreground-light">{desc}</span>
<div className="flex items-center space-x-1.5">
{isVercelIntegrated && (
- <div className="w-fit p-1 border rounded-md flex items-center border-scale-600">
+ <div className="w-fit p-1 border rounded-md flex items-center border-controler">
<img
src={`${BASE_PATH}/img/icons/vercel-icon.svg`}
alt="Vercel Icon"
@@ -51,13 +51,13 @@ const ProjectCard = ({
</div>
)}
{isBranchingEnabled && (
- <div className="w-fit p-1 border rounded-md flex items-center border-scale-600">
+ <div className="w-fit p-1 border rounded-md flex items-center border-controler">
<GitBranch size={12} strokeWidth={1.5} />
</div>
)}
{isGithubIntegrated && (
<>
- <div className="w-fit p-1 border rounded-md flex items-center border-scale-600">
+ <div className="w-fit p-1 border rounded-md flex items-center border-controler">
<Github size={12} strokeWidth={1.5} />
</div>
<p className="text-xs !ml-2 text-foreground-light">{githubRepository}</p>
diff --git a/studio/components/interfaces/Home/ProjectList/ProjectCardStatus.tsx b/studio/components/interfaces/Home/ProjectList/ProjectCardStatus.tsx
index 0786f4a6163..bc049891786 100644
--- a/studio/components/interfaces/Home/ProjectList/ProjectCardStatus.tsx
+++ b/studio/components/interfaces/Home/ProjectList/ProjectCardStatus.tsx
@@ -102,8 +102,8 @@ export const ProjectCardStatus = ({
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">{alertDescription}</span>
diff --git a/studio/components/interfaces/Home/ProjectUsage.tsx b/studio/components/interfaces/Home/ProjectUsage.tsx
index a31e1ff36b8..bafdf635392 100644
--- a/studio/components/interfaces/Home/ProjectUsage.tsx
+++ b/studio/components/interfaces/Home/ProjectUsage.tsx
@@ -113,7 +113,7 @@ const ProjectUsage = () => {
<Panel.Content className="space-y-4">
<PanelHeader
icon={
- <div className="rounded bg-scale-600 p-1.5 text-foreground-light shadow-sm">
+ <div className="rounded bg-surface-300 p-1.5 text-foreground-light shadow-sm">
<IconDatabase strokeWidth={2} size={16} />
</div>
}
@@ -139,7 +139,7 @@ const ProjectUsage = () => {
<Panel.Content className="space-y-4">
<PanelHeader
icon={
- <div className="rounded bg-scale-600 p-1.5 text-foreground-light shadow-sm">
+ <div className="rounded bg-surface-300 p-1.5 text-foreground-light shadow-sm">
<IconKey strokeWidth={2} size={16} />
</div>
}
@@ -165,7 +165,7 @@ const ProjectUsage = () => {
<Panel.Content className="space-y-4">
<PanelHeader
icon={
- <div className="rounded bg-scale-600 p-1.5 text-foreground-light shadow-sm">
+ <div className="rounded bg-surface-300 p-1.5 text-foreground-light shadow-sm">
<IconArchive strokeWidth={2} size={16} />
</div>
}
@@ -191,7 +191,7 @@ const ProjectUsage = () => {
<Panel.Content className="space-y-4">
<PanelHeader
icon={
- <div className="rounded bg-scale-600 p-1.5 text-foreground-light shadow-sm">
+ <div className="rounded bg-surface-300 p-1.5 text-foreground-light shadow-sm">
<IconZap strokeWidth={2} size={16} />
</div>
}
diff --git a/studio/components/interfaces/Home/ServiceStatus.tsx b/studio/components/interfaces/Home/ServiceStatus.tsx
index 3953b3bc223..418ee8e0bab 100644
--- a/studio/components/interfaces/Home/ServiceStatus.tsx
+++ b/studio/components/interfaces/Home/ServiceStatus.tsx
@@ -94,7 +94,7 @@ const ServiceStatus = () => {
>
<div>
<p>{service.name}</p>
- <p className="text-light">
+ <p className="text-foreground-light">
{service.isLoading
? 'Checking status'
: service.isSuccess
diff --git a/studio/components/interfaces/Integrations/IntegrationConnection.tsx b/studio/components/interfaces/Integrations/IntegrationConnection.tsx
index d3d4e3ff2f3..b184fa6bf2c 100644
--- a/studio/components/interfaces/Integrations/IntegrationConnection.tsx
+++ b/studio/components/interfaces/Integrations/IntegrationConnection.tsx
@@ -131,7 +131,7 @@ const IntegrationConnectionItem = forwardRef<HTMLLIElement, IntegrationConnectio
onSelectConfirm={onConfirm}
>
<Modal.Content>
- <p className="py-4 text-sm text-light">
+ <p className="py-4 text-sm text-foreground-light">
{`This action cannot be undone. Are you sure you want to delete this connection?`}
</p>
</Modal.Content>
diff --git a/studio/components/interfaces/Integrations/IntegrationPanels.tsx b/studio/components/interfaces/Integrations/IntegrationPanels.tsx
index 3c2cc1271fa..a2d5331d23e 100644
--- a/studio/components/interfaces/Integrations/IntegrationPanels.tsx
+++ b/studio/components/interfaces/Integrations/IntegrationPanels.tsx
@@ -104,10 +104,10 @@ const IntegrationInstallation = React.forwardRef<HTMLLIElement, IntegrationInsta
</Badge>
</div>
<div className="flex flex-col gap-0">
- <span className="text-lighter text-xs">
+ <span className="text-foreground-lighter text-xs">
Created {dayjs(integration.inserted_at).fromNow()}
</span>
- <span className="text-lighter text-xs">
+ <span className="text-foreground-lighter text-xs">
Added by {integration?.added_by?.primary_email}
</span>
</div>
@@ -149,14 +149,10 @@ const IntegrationConnection = React.forwardRef<HTMLLIElement, IntegrationConnect
ref={ref}
key={connection.id}
{...props}
- className={cn(
- showNode && 'pl-8 ml-6 border-l border-scale-600 dark:border-scale-400',
- 'pb-2',
- 'relative'
- )}
+ className={cn(showNode && 'pl-8 ml-6 border-l border-muted', 'pb-2', 'relative')}
>
{showNode && (
- <div className="absolute w-8 rounded-bl-full border-b border-l border-scale-600 dark:border-scale-400 h-10 -left-px"></div>
+ <div className="absolute w-8 rounded-bl-full border-b border-l border-muted h-10 -left-px"></div>
)}
<div
className={cn(
@@ -227,7 +223,7 @@ const IntegrationConnectionOption = React.forwardRef<HTMLLIElement, IntegrationC
<span className="text-sm">{connection.metadata.name}</span>
</div>
- <span className="text-lighter text-xs">
+ <span className="text-foreground-lighter text-xs">
Connected {dayjs(connection.inserted_at).fromNow()}
</span>
</div>
@@ -259,12 +255,12 @@ const EmptyIntegrationConnection = React.forwardRef<
)}
>
{showNode && (
- <div className="absolute w-8 rounded-bl-full border-b border-l border-scale-600 dark:border-scale-400 h-10 -left-px"></div>
+ <div className="absolute w-8 rounded-bl-full border-b border-l border-muted h-10 -left-px"></div>
)}
<div
className={cn(
'w-full',
- 'border border-dashed bg-scale-300 dark:bg-scale-100 border-scale-600 dark:border-scale-400',
+ 'border border-dashed bg-surface-100 border-overlay',
'',
'flex h-20 px-10 rounded-lg justify-center items-center'
)}
@@ -290,7 +286,7 @@ const IntegrationConnectionHeader = React.forwardRef<HTMLDivElement, Integration
{...props}
ref={ref}
className={cn(
- showNode && 'border-l border-scale-600 dark:border-scale-400 ml-6 pl-8',
+ showNode && 'border-l border-muted ml-6 pl-8',
'pt-6 pb-3',
'prose text-sm',
className
diff --git a/studio/components/interfaces/Integrations/OrganizationPicker.tsx b/studio/components/interfaces/Integrations/OrganizationPicker.tsx
index 83b34d93d65..d23644e8dcf 100644
--- a/studio/components/interfaces/Integrations/OrganizationPicker.tsx
+++ b/studio/components/interfaces/Integrations/OrganizationPicker.tsx
@@ -79,7 +79,7 @@ const OrganizationPicker = ({
}
>
<div className="flex gap-2">
- <span className={cn('truncate', !selectedOrg && 'text-light')}>
+ <span className={cn('truncate', !selectedOrg && 'text-foreground-light')}>
{selectedOrg?.name ? selectedOrg?.name : 'Choose an organization'}
</span>
{selectedOrg && configurationId && installed[selectedOrg.slug] && (
diff --git a/studio/components/interfaces/Integrations/ProjectLinker.tsx b/studio/components/interfaces/Integrations/ProjectLinker.tsx
index 8978bf2265b..62a2780904b 100644
--- a/studio/components/interfaces/Integrations/ProjectLinker.tsx
+++ b/studio/components/interfaces/Integrations/ProjectLinker.tsx
@@ -165,7 +165,7 @@ const ProjectLinker = ({
) : noSupabaseProjects || noForeignProjects ? (
<div className="text-center">
<h5 className="text-foreground">No {missingEntity} Projects found</h5>
- <p className="text-light text-sm">
+ <p className="text-foreground-light text-sm">
You will need to create a {missingEntity} Project to link to a {oppositeMissingEntity}{' '}
Project.
<br />
@@ -253,7 +253,7 @@ const ProjectLinker = ({
</PopoverContent_Shadcn_>
</Popover_Shadcn_>
</Panel>
- <div className="border border-scale-1000 h-px w-16 border-dashed self-end mb-5"></div>
+ <div className="border border-foreground-lighter h-px w-16 border-dashed self-end mb-5"></div>
<Panel>
<div className="bg-black shadow rounded p-1 w-12 h-12 flex justify-center items-center">
{integrationIcon}
diff --git a/studio/components/interfaces/Organization/AuditLogs/AuditLogs.tsx b/studio/components/interfaces/Organization/AuditLogs/AuditLogs.tsx
index f0072da4573..9edad493831 100644
--- a/studio/components/interfaces/Organization/AuditLogs/AuditLogs.tsx
+++ b/studio/components/interfaces/Organization/AuditLogs/AuditLogs.tsx
@@ -189,7 +189,7 @@ const AuditLogs = () => {
/>
{isSuccess && (
<>
- <div className="h-[20px] border-r border-scale-700 !ml-4 !mr-2" />
+ <div className="h-[20px] border-r border-strong !ml-4 !mr-2" />
<p className="prose text-xs">Viewing {sortedLogs.length} logs in total</p>
</>
)}
@@ -249,13 +249,13 @@ const AuditLogs = () => {
{isSuccess && (
<>
{logs.length === 0 ? (
- <div className="bg-scale-100 dark:bg-scale-300 border rounded p-4 flex items-center justify-between">
+ <div className="bg-surface-100 border rounded p-4 flex items-center justify-between">
<p className="prose text-sm">
Your organization does not have any audit logs available yet
</p>
</div>
) : logs.length > 0 && sortedLogs.length === 0 ? (
- <div className="bg-scale-100 dark:bg-scale-300 border rounded p-4 flex items-center justify-between">
+ <div className="bg-surface-100 border rounded p-4 flex items-center justify-between">
<p className="prose text-sm">No audit logs found based on the filters applied</p>
</div>
) : (
@@ -294,8 +294,8 @@ const AuditLogs = () => {
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">
@@ -323,11 +323,11 @@ const AuditLogs = () => {
const hasStatusCode = log.action.metadata[0]?.status !== undefined
const userIcon =
user === undefined ? (
- <div className="flex h-[30px] w-[30px] flex items-center justify-center border-2 rounded-full border-scale-700">
+ <div className="flex h-[30px] w-[30px] items-center justify-center border-2 rounded-full border-strong">
<p>?</p>
</div>
) : user?.invited_id || user?.username === user?.primary_email ? (
- <div className="flex h-[30px] w-[30px] flex items-center justify-center border-2 rounded-full border-scale-700">
+ <div className="flex h-[30px] w-[30px] items-center justify-center border-2 rounded-full border-strong">
<IconUser size={18} strokeWidth={2} />
</div>
) : (
@@ -344,7 +344,7 @@ const AuditLogs = () => {
<Table.tr
key={log.occurred_at}
onClick={() => setSelectedLog(log)}
- className="cursor-pointer hover:!bg-scale-100 transition duration-100"
+ className="cursor-pointer hover:!bg-alternative transition duration-100"
>
<Table.td>
<div className="flex items-center space-x-4">
@@ -362,7 +362,7 @@ const AuditLogs = () => {
<Table.td className="max-w-[250px]">
<div className="flex items-center space-x-2">
{hasStatusCode && (
- <p className="bg-scale-400 rounded px-1 flex items-center justify-center text-xs font-mono border">
+ <p className="bg-surface-200 rounded px-1 flex items-center justify-center text-xs font-mono border">
{log.action.metadata[0].status}
</p>
)}
diff --git a/studio/components/interfaces/Organization/BillingSettings/BillingBreakdown/BillingMetric.tsx b/studio/components/interfaces/Organization/BillingSettings/BillingBreakdown/BillingMetric.tsx
index 5ff7e6d197e..9fca07b1202 100644
--- a/studio/components/interfaces/Organization/BillingSettings/BillingBreakdown/BillingMetric.tsx
+++ b/studio/components/interfaces/Organization/BillingSettings/BillingBreakdown/BillingMetric.tsx
@@ -48,7 +48,7 @@ const BillingMetric = ({ idx, slug, metric, usage, subscription }: BillingMetric
return (
<div
className={clsx(
- 'col-span-12 md:col-span-6 space-y-4 py-4 border-scale-400',
+ 'col-span-12 md:col-span-6 space-y-4 py-4 border-overlay',
idx % 2 === 0 ? 'md:border-r md:pr-4' : 'md:pl-4',
idx < BILLING_BREAKDOWN_METRICS.length - 3 && 'border-b'
)}
@@ -79,8 +79,8 @@ const BillingMetric = ({ idx, slug, metric, usage, subscription }: BillingMetric
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<div className="text-xs text-foreground">
@@ -134,8 +134,8 @@ const BillingMetric = ({ idx, slug, metric, usage, subscription }: BillingMetric
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<p className="text-xs text-foreground">
@@ -157,14 +157,14 @@ const BillingMetric = ({ idx, slug, metric, usage, subscription }: BillingMetric
value={usageMeta.usage ?? 0}
barClass={
!hasLimit && usageMeta.usage > 0
- ? 'bg-scale-1100'
+ ? 'bg-foreground-light'
: isExceededLimit && !isUsageBillingEnabled
? 'bg-red-900'
: isApproachingLimit && !isUsageBillingEnabled
? 'bg-amber-900'
- : 'bg-scale-1100'
+ : 'bg-foreground-light'
}
- bgClass="bg-gray-300 dark:bg-gray-600"
+ bgClass="bg-overlay-hover"
labelBottom={usageLabel}
labelBottomClass="!text-foreground-light"
labelTop={hasLimit ? percentageLabel : undefined}
diff --git a/studio/components/interfaces/Organization/BillingSettings/CostControl/CostControl.tsx b/studio/components/interfaces/Organization/BillingSettings/CostControl/CostControl.tsx
index 21476ea7f09..bcb2a284f69 100644
--- a/studio/components/interfaces/Organization/BillingSettings/CostControl/CostControl.tsx
+++ b/studio/components/interfaces/Organization/BillingSettings/CostControl/CostControl.tsx
@@ -159,7 +159,7 @@ const CostControl = ({}: CostControlProps) => {
<div className="flex space-x-6">
<div>
- <div className="rounded-md bg-scale-100 dark:bg-scale-400 w-[160px] h-[96px] shadow">
+ <div className="rounded-md bg-surface-200 w-[160px] h-[96px] shadow">
<Image
alt="Spend Cap"
width={160}
diff --git a/studio/components/interfaces/Organization/BillingSettings/CostControl/SpendCapSidePanel.tsx b/studio/components/interfaces/Organization/BillingSettings/CostControl/SpendCapSidePanel.tsx
index 02787deaba8..33335b51ec7 100644
--- a/studio/components/interfaces/Organization/BillingSettings/CostControl/SpendCapSidePanel.tsx
+++ b/studio/components/interfaces/Organization/BillingSettings/CostControl/SpendCapSidePanel.tsx
@@ -251,10 +251,10 @@ const SpendCapSidePanel = () => {
className={clsx(
'relative rounded-xl transition border bg-no-repeat bg-center bg-cover w-[160px] h-[96px]',
isSelected
- ? 'border-scale-1200'
- : 'border-scale-900 opacity-50 group-hover:border-scale-1000 group-hover:opacity-100',
+ ? 'border-foreground'
+ : 'border-foreground-muted opacity-50 group-hover:border-foreground-lighter group-hover:opacity-100',
!isFreePlan && 'cursor-pointer',
- !isFreePlan && !isSelected && 'group-hover:border-scale-1100'
+ !isFreePlan && !isSelected && 'group-hover:border-foreground-light'
)}
width={160}
height={96}
diff --git a/studio/components/interfaces/Organization/BillingSettings/PaymentMethods.tsx b/studio/components/interfaces/Organization/BillingSettings/PaymentMethods.tsx
index 023f6f732ea..13dc7f35b07 100644
--- a/studio/components/interfaces/Organization/BillingSettings/PaymentMethods.tsx
+++ b/studio/components/interfaces/Organization/BillingSettings/PaymentMethods.tsx
@@ -202,8 +202,8 @@ const PaymentMethods = () => {
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow', // background
- 'w-48 border border-scale-200 text-center', //border
+ 'rounded bg-alternative py-1 px-2 leading-none shadow', // background
+ 'w-48 border border-background text-center', //border
].join(' ')}
>
<span className="text-xs text-foreground">
diff --git a/studio/components/interfaces/Organization/BillingSettings/ProjectUpdateDisabledTooltip.tsx b/studio/components/interfaces/Organization/BillingSettings/ProjectUpdateDisabledTooltip.tsx
index 49bbd403f18..e50dd0dfd24 100644
--- a/studio/components/interfaces/Organization/BillingSettings/ProjectUpdateDisabledTooltip.tsx
+++ b/studio/components/interfaces/Organization/BillingSettings/ProjectUpdateDisabledTooltip.tsx
@@ -22,8 +22,8 @@ const ProjectUpdateDisabledTooltip = ({
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">
diff --git a/studio/components/interfaces/Organization/BillingSettings/Subscription/EnterpriseCard.tsx b/studio/components/interfaces/Organization/BillingSettings/Subscription/EnterpriseCard.tsx
index 9bf42adeefb..285c72443ec 100644
--- a/studio/components/interfaces/Organization/BillingSettings/Subscription/EnterpriseCard.tsx
+++ b/studio/components/interfaces/Organization/BillingSettings/Subscription/EnterpriseCard.tsx
@@ -12,7 +12,7 @@ const EnterpriseCard = ({ plan, isCurrentPlan }: EnterpriseCardProps) => {
<div
key={plan.id}
className={clsx(
- 'grid grid-cols-1 md:grid-cols-3 border rounded-md bg-scale-200',
+ 'grid grid-cols-1 md:grid-cols-3 border rounded-md bg-background',
'py-4 col-span-12 justify-between gap-x-8'
)}
>
@@ -20,11 +20,11 @@ const EnterpriseCard = ({ plan, isCurrentPlan }: EnterpriseCardProps) => {
<div className="flex items-center space-x-2">
<p className={clsx('text-brand text-sm uppercase')}>{plan.name}</p>
{isCurrentPlan ? (
- <div className="text-xs bg-scale-500 text-foreground-light rounded px-2 py-0.5">
+ <div className="text-xs bg-surface-300 text-foreground-light rounded px-2 py-0.5">
Current plan
</div>
) : plan.nameBadge ? (
- <div className="text-xs bg-brand-400 text-brand rounded px-2 py-0.5">
+ <div className="text-xs bg-surface-200 text-brand rounded px-2 py-0.5">
{plan.nameBadge}
</div>
) : null}
diff --git a/studio/components/interfaces/Organization/BillingSettings/Subscription/ExitSurveyModal.tsx b/studio/components/interfaces/Organization/BillingSettings/Subscription/ExitSurveyModal.tsx
index 910d5a291da..f44ccfc31ac 100644
--- a/studio/components/interfaces/Organization/BillingSettings/Subscription/ExitSurveyModal.tsx
+++ b/studio/components/interfaces/Organization/BillingSettings/Subscription/ExitSurveyModal.tsx
@@ -157,8 +157,8 @@ const ExitSurveyModal = ({ visible, subscription, onClose }: ExitSurveyModalProp
shadow-sm transition-all duration-100
${
active
- ? ` bg-scale-1200 text-scale-100 opacity-100 hover:bg-opacity-75`
- : ` bg-scale-700 text-foreground opacity-25 hover:opacity-50`
+ ? ` bg-foreground text-background opacity-100 hover:bg-opacity-75`
+ : ` bg-border-strong text-foreground opacity-25 hover:opacity-50`
}
`}
>
diff --git a/studio/components/interfaces/Organization/BillingSettings/Subscription/PaymentMethodSelection.tsx b/studio/components/interfaces/Organization/BillingSettings/Subscription/PaymentMethodSelection.tsx
index 2b827ea5c6a..d9ec63e6538 100644
--- a/studio/components/interfaces/Organization/BillingSettings/Subscription/PaymentMethodSelection.tsx
+++ b/studio/components/interfaces/Organization/BillingSettings/Subscription/PaymentMethodSelection.tsx
@@ -74,12 +74,12 @@ const PaymentMethodSelection = ({
<>
<div>
{isLoading ? (
- <div className="flex items-center px-4 py-2 space-x-4 border rounded-md border-scale-700 bg-scale-400">
+ <div className="flex items-center px-4 py-2 space-x-4 border rounded-md border-strong bg-surface-200">
<IconLoader className="animate-spin" size={14} />
<p className="text-sm text-foreground-light">Retrieving payment methods</p>
</div>
) : paymentMethods.length === 0 ? (
- <div className="flex items-center justify-between px-4 py-2 border border-dashed rounded-md bg-scale-100">
+ <div className="flex items-center justify-between px-4 py-2 border border-dashed rounded-md bg-alternative">
<div className="flex items-center space-x-4 text-foreground-light">
<IconAlertCircle size={16} strokeWidth={1.5} />
<p className="text-sm">No saved payment methods</p>
@@ -103,8 +103,8 @@ const PaymentMethodSelection = ({
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow', // background
- 'w-48 border border-scale-200 text-center', //border
+ 'rounded bg-alternative py-1 px-2 leading-none shadow', // background
+ 'w-48 border border-background text-center', //border
].join(' ')}
>
<span className="text-xs text-foreground">
@@ -149,7 +149,7 @@ const PaymentMethodSelection = ({
)
})}
<div
- className="flex items-center px-3 py-2 space-x-2 transition cursor-pointer group hover:bg-scale-500"
+ className="flex items-center px-3 py-2 space-x-2 transition cursor-pointer group hover:bg-surface-300"
onClick={() => setShowAddNewPaymentMethodModal(true)}
>
<IconPlus size={16} />
diff --git a/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanUpdateSidePanel.tsx b/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanUpdateSidePanel.tsx
index 53b28f6be0f..7f4779735d0 100644
--- a/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanUpdateSidePanel.tsx
+++ b/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanUpdateSidePanel.tsx
@@ -172,14 +172,14 @@ const PlanUpdateSidePanel = () => {
className={clsx(
'border rounded-md px-4 py-4 flex flex-col items-start justify-between',
plan.id === 'tier_enterprise' ? 'col-span-12' : 'col-span-12 md:col-span-4',
- plan.id === 'tier_enterprise' ? 'bg-scale-200' : 'bg-scale-300'
+ plan.id === 'tier_enterprise' ? 'bg-background' : 'bg-surface-200'
)}
>
<div className="w-full">
<div className="flex items-center space-x-2">
<p className={clsx('text-brand text-sm uppercase')}>{plan.name}</p>
{isCurrentPlan ? (
- <div className="text-xs bg-scale-500 text-foreground-light rounded px-2 py-0.5">
+ <div className="text-xs bg-surface-300 text-foreground-light rounded px-2 py-0.5">
Current plan
</div>
) : plan.nameBadge ? (
@@ -202,7 +202,7 @@ const PlanUpdateSidePanel = () => {
<p className="text-foreground-light text-sm">{tierMeta?.costUnit}</p>
</div>
<div className={clsx('flex mt-1 mb-4', !tierMeta?.warning && 'opacity-0')}>
- <div className="bg-scale-200 text-brand-600 border shadow-sm rounded-md bg-opacity-30 py-0.5 px-2 text-xs">
+ <div className="bg-background text-brand-600 border shadow-sm rounded-md bg-opacity-30 py-0.5 px-2 text-xs">
{tierMeta?.warning}
</div>
</div>
@@ -249,8 +249,8 @@ const PlanUpdateSidePanel = () => {
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">
diff --git a/studio/components/interfaces/Organization/BillingSettings/Subscription/Subscription.tsx b/studio/components/interfaces/Organization/BillingSettings/Subscription/Subscription.tsx
index 3405bc0f9d9..349303c71c8 100644
--- a/studio/components/interfaces/Organization/BillingSettings/Subscription/Subscription.tsx
+++ b/studio/components/interfaces/Organization/BillingSettings/Subscription/Subscription.tsx
@@ -210,11 +210,11 @@ const Subscription = () => {
type="horizontal"
value={daysWithinCycle - daysToCycleEnd}
max={daysWithinCycle}
- barClass="bg-scale-1200"
+ barClass="bg-foreground"
labelBottom={`Current billing cycle (${billingCycleStart.format(
'MMM DD'
)} - ${billingCycleEnd.format('MMM DD')})`}
- bgClass="bg-gray-300 dark:bg-gray-600"
+ bgClass="bg-surface-300"
labelBottomClass="!text-foreground-light pb-1"
labelTop={`${daysToCycleEnd} days remaining`}
/>
diff --git a/studio/components/interfaces/Organization/IntegrationSettings/IntegrationSettings.tsx b/studio/components/interfaces/Organization/IntegrationSettings/IntegrationSettings.tsx
index 91fe4e7d572..028ffd15ca0 100644
--- a/studio/components/interfaces/Organization/IntegrationSettings/IntegrationSettings.tsx
+++ b/studio/components/interfaces/Organization/IntegrationSettings/IntegrationSettings.tsx
@@ -234,7 +234,7 @@ You can change the scope of the access for Supabase by configuring
</div>
)}
{VercelContentSectionBottom && (
- <Markdown content={VercelContentSectionBottom} className="text-lighter" />
+ <Markdown content={VercelContentSectionBottom} className="text-foreground-lighter" />
)}
</ScaffoldSectionContent>
</ScaffoldSection>
diff --git a/studio/components/interfaces/Organization/IntegrationSettings/SidePanelGitHubRepoLinker.tsx b/studio/components/interfaces/Organization/IntegrationSettings/SidePanelGitHubRepoLinker.tsx
index 2c1da9cf54d..9e57024f779 100644
--- a/studio/components/interfaces/Organization/IntegrationSettings/SidePanelGitHubRepoLinker.tsx
+++ b/studio/components/interfaces/Organization/IntegrationSettings/SidePanelGitHubRepoLinker.tsx
@@ -116,7 +116,7 @@ const SidePanelGitHubRepoLinker = ({ projectRef }: SidePanelGitHubRepoLinkerProp
hideFooter
onCancel={() => sidePanelStateSnapshot.setGithubConnectionsOpen(false)}
>
- <div className="py-10 flex flex-col gap-6 bg-body h-full">
+ <div className="py-10 flex flex-col gap-6 bg-background h-full">
<SidePanel.Content>
<Markdown
content={`
diff --git a/studio/components/interfaces/Organization/IntegrationSettings/SidePanelVercelProjectLinker.tsx b/studio/components/interfaces/Organization/IntegrationSettings/SidePanelVercelProjectLinker.tsx
index 67fcc1b78fd..4f40f24f2cd 100644
--- a/studio/components/interfaces/Organization/IntegrationSettings/SidePanelVercelProjectLinker.tsx
+++ b/studio/components/interfaces/Organization/IntegrationSettings/SidePanelVercelProjectLinker.tsx
@@ -128,7 +128,7 @@ const SidePanelVercelProjectLinker = () => {
hideFooter
onCancel={() => sidePanelStateSnapshot.setVercelConnectionsOpen(false)}
>
- <div className="py-10 flex flex-col gap-6 bg-body h-full">
+ <div className="py-10 flex flex-col gap-6 bg-background h-full">
<SidePanel.Content>
<Markdown
content={`
diff --git a/studio/components/interfaces/Organization/OAuthApps/AuthorizeRequesterDetails.tsx b/studio/components/interfaces/Organization/OAuthApps/AuthorizeRequesterDetails.tsx
index c826d2555ce..1befc1cdc16 100644
--- a/studio/components/interfaces/Organization/OAuthApps/AuthorizeRequesterDetails.tsx
+++ b/studio/components/interfaces/Organization/OAuthApps/AuthorizeRequesterDetails.tsx
@@ -59,7 +59,7 @@ const AuthorizeRequesterDetails = ({
<div className="flex flex-row space-x-4">
<div className="flex items-center">
<div
- className="w-14 h-14 md:w-16 md:h-16 bg-center bg-no-repeat bg-cover flex items-center justify-center rounded-md border border-scale-600"
+ className="w-14 h-14 md:w-16 md:h-16 bg-center bg-no-repeat bg-cover flex items-center justify-center rounded-md border border-control"
style={{
backgroundImage: icon !== null ? `url('${icon}')` : 'none',
}}
diff --git a/studio/components/interfaces/Organization/OAuthApps/AuthorizedAppRow.tsx b/studio/components/interfaces/Organization/OAuthApps/AuthorizedAppRow.tsx
index cad1e1fc667..3402be2d4d7 100644
--- a/studio/components/interfaces/Organization/OAuthApps/AuthorizedAppRow.tsx
+++ b/studio/components/interfaces/Organization/OAuthApps/AuthorizedAppRow.tsx
@@ -13,7 +13,7 @@ const AuthorizedAppRow = ({ app, onSelectRevoke }: AuthorizedAppRowProps) => {
<Table.tr>
<Table.td>
<div
- className="w-[30px] h-[30px] rounded-full bg-no-repeat bg-cover bg-center border border-scale-600 flex items-center justify-center"
+ className="w-[30px] h-[30px] rounded-full bg-no-repeat bg-cover bg-center border border-control flex items-center justify-center"
style={{ backgroundImage: app.icon ? `url('${app.icon}')` : 'none' }}
>
{!!app.icon ? '' : `${app.name[0]}`}
diff --git a/studio/components/interfaces/Organization/OAuthApps/OAuthAppRow.tsx b/studio/components/interfaces/Organization/OAuthApps/OAuthAppRow.tsx
index 16cf1f0ee18..b906ddc904d 100644
--- a/studio/components/interfaces/Organization/OAuthApps/OAuthAppRow.tsx
+++ b/studio/components/interfaces/Organization/OAuthApps/OAuthAppRow.tsx
@@ -30,7 +30,7 @@ const OAuthAppRow = ({ app, onSelectEdit, onSelectDelete }: OAuthAppRowProps) =>
<Table.tr>
<Table.td>
<div
- className="w-[30px] h-[30px] rounded-full bg-no-repeat bg-cover bg-center border border-scale-600 flex items-center justify-center"
+ className="w-[30px] h-[30px] rounded-full bg-no-repeat bg-cover bg-center border border-control flex items-center justify-center"
style={{ backgroundImage: app.icon ? `url('${app.icon}')` : 'none' }}
>
{!!app.icon ? '' : `${app.name[0]}`}
diff --git a/studio/components/interfaces/Organization/OAuthApps/OAuthApps.tsx b/studio/components/interfaces/Organization/OAuthApps/OAuthApps.tsx
index 75cfa26c204..199205ea534 100644
--- a/studio/components/interfaces/Organization/OAuthApps/OAuthApps.tsx
+++ b/studio/components/interfaces/Organization/OAuthApps/OAuthApps.tsx
@@ -124,7 +124,7 @@ const OAuthApps = () => {
{isSuccessPublishedApps && (
<>
{(publishedApps?.length ?? 0) === 0 ? (
- <div className="bg-scale-100 dark:bg-scale-300 border rounded p-4 flex items-center justify-between mt-4">
+ <div className="bg-surface-100 border rounded p-4 flex items-center justify-between mt-4">
<p className="prose text-sm">You do not have any published applications yet</p>
</div>
) : (
@@ -176,7 +176,7 @@ const OAuthApps = () => {
{isSuccessAuthorizedApps && (
<>
{(authorizedApps.length ?? 0) === 0 ? (
- <div className="bg-scale-100 dark:bg-scale-300 border rounded p-4 flex items-center justify-between">
+ <div className="bg-surface-100 border rounded p-4 flex items-center justify-between">
<p className="prose text-sm">You do not have any authorized applications yet</p>
</div>
) : (
diff --git a/studio/components/interfaces/Organization/OAuthApps/PublishAppSidePanel/Scopes.tsx b/studio/components/interfaces/Organization/OAuthApps/PublishAppSidePanel/Scopes.tsx
index 089cec3ff1b..9e56acdc8ea 100644
--- a/studio/components/interfaces/Organization/OAuthApps/PublishAppSidePanel/Scopes.tsx
+++ b/studio/components/interfaces/Organization/OAuthApps/PublishAppSidePanel/Scopes.tsx
@@ -65,7 +65,7 @@ const Scope = ({
return (
<div
- className="flex flex-row justify-between p-4 border border-scale-300 dark:border-scale-500 first:rounded-t last:rounded-b"
+ className="flex flex-row justify-between p-4 border first:rounded-t last:rounded-b"
key={title}
>
<div className="flex flex-col">
diff --git a/studio/components/interfaces/Organization/OAuthApps/PublishAppSidePanel/index.tsx b/studio/components/interfaces/Organization/OAuthApps/PublishAppSidePanel/index.tsx
index 0febdfe63f5..a7a59759e0c 100644
--- a/studio/components/interfaces/Organization/OAuthApps/PublishAppSidePanel/index.tsx
+++ b/studio/components/interfaces/Organization/OAuthApps/PublishAppSidePanel/index.tsx
@@ -279,7 +279,7 @@ const PublishAppSidePanel = ({
) : (
<div
className={clsx(
- 'border border-scale-700 transition opacity-75 hover:opacity-100',
+ 'border border-strong transition opacity-75 hover:opacity-100',
'mt-4 mr-4 space-y-2 rounded-full h-[120px] w-[120px] flex flex-col items-center justify-center cursor-pointer'
)}
onClick={() => {
@@ -414,7 +414,7 @@ const PublishAppSidePanel = ({
<p className="prose text-sm">
Select an organization to grant API access to
</p>
- <div className="border border-scale-600 text-foreground-light rounded px-4 py-2 text-sm bg-scale-400">
+ <div className="border border-control text-foreground-light rounded px-4 py-2 text-sm bg-surface-200">
Organizations that you have access to will be listed here
</div>
</div>
diff --git a/studio/components/interfaces/Organization/TeamSettings/InviteMemberButton.tsx b/studio/components/interfaces/Organization/TeamSettings/InviteMemberButton.tsx
index 6ebf036a62b..ad20c07186f 100644
--- a/studio/components/interfaces/Organization/TeamSettings/InviteMemberButton.tsx
+++ b/studio/components/interfaces/Organization/TeamSettings/InviteMemberButton.tsx
@@ -104,8 +104,8 @@ const InviteMemberButton = ({
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">
diff --git a/studio/components/interfaces/Organization/TeamSettings/MemberActions.tsx b/studio/components/interfaces/Organization/TeamSettings/MemberActions.tsx
index d6a9bc5079c..41228bbec36 100644
--- a/studio/components/interfaces/Organization/TeamSettings/MemberActions.tsx
+++ b/studio/components/interfaces/Organization/TeamSettings/MemberActions.tsx
@@ -131,8 +131,8 @@ const MemberActions = ({ member, roles }: MemberActionsProps) => {
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow', // background
- 'border border-scale-200 ', //border
+ 'rounded bg-alternative py-1 px-2 leading-none shadow', // background
+ 'border border-background', //border
].join(' ')}
>
<span className="text-xs text-foreground">
diff --git a/studio/components/interfaces/Organization/TeamSettings/MembersView.tsx b/studio/components/interfaces/Organization/TeamSettings/MembersView.tsx
index 303b85f4ce8..b6556ac4d49 100644
--- a/studio/components/interfaces/Organization/TeamSettings/MembersView.tsx
+++ b/studio/components/interfaces/Organization/TeamSettings/MembersView.tsx
@@ -169,11 +169,11 @@ const MembersView = ({ searchString }: MembersViewProps) => {
<div className="flex items-center space-x-4">
<div>
{x.invited_id ? (
- <span className="flex p-2 border-2 rounded-full border-scale-700">
+ <span className="flex p-2 border-2 rounded-full border-strong">
<IconUser size={20} strokeWidth={2} />
</span>
) : isEmailUser ? (
- <div className="w-[40px] h-[40px] bg-scale-300 border border-scale-400 rounded-full text-foreground-lighter flex items-center justify-center">
+ <div className="w-[40px] h-[40px] bg-surface-100 border border-overlay rounded-full text-foreground-lighter flex items-center justify-center">
<IconUser strokeWidth={1.5} />
</div>
) : (
@@ -238,8 +238,8 @@ const MembersView = ({ searchString }: MembersViewProps) => {
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow', // background
- 'border border-scale-200 ', //border
+ 'rounded bg-alternative py-1 px-2 leading-none shadow', // background
+ 'border border-background', //border
].join(' ')}
>
<span className="text-xs text-foreground">
@@ -255,8 +255,8 @@ const MembersView = ({ searchString }: MembersViewProps) => {
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow', // background
- 'border border-scale-200 ', //border
+ 'rounded bg-alternative py-1 px-2 leading-none shadow', // background
+ 'border border-background', //border
].join(' ')}
>
<span className="text-xs text-foreground">
@@ -281,8 +281,8 @@ const MembersView = ({ searchString }: MembersViewProps) => {
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow', // background
- 'border border-scale-200 ', //border
+ 'rounded bg-alternative py-1 px-2 leading-none shadow', // background
+ 'border border-background', //border
].join(' ')}
>
<span className="text-xs text-foreground">
diff --git a/studio/components/interfaces/Organization/TeamSettings/RolesHelperModal/RolesHelperModal.tsx b/studio/components/interfaces/Organization/TeamSettings/RolesHelperModal/RolesHelperModal.tsx
index cdb4996658b..7496767dcc4 100644
--- a/studio/components/interfaces/Organization/TeamSettings/RolesHelperModal/RolesHelperModal.tsx
+++ b/studio/components/interfaces/Organization/TeamSettings/RolesHelperModal/RolesHelperModal.tsx
@@ -9,7 +9,7 @@ const RolesHelperModal = () => {
const permissionColumnClassName = 'w-[40%] text-sm pl-4 font-bold'
const roleColumnClassName =
- 'w-[12%] text-sm h-8 flex items-center justify-center border-l border-scale-600 font-bold'
+ 'w-[12%] text-sm h-8 flex items-center justify-center border-l border-control font-bold'
const accessTooltip = (
<Tooltip.Root delayDuration={0}>
@@ -21,8 +21,8 @@ const RolesHelperModal = () => {
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow', // background
- 'border border-scale-200 ', //border
+ 'rounded bg-alternative py-1 px-2 leading-none shadow', // background
+ 'border border-background', //border
].join(' ')}
>
<span className="text-xs text-foreground">Only available in Team/Enterprise plan.</span>
@@ -56,8 +56,8 @@ const RolesHelperModal = () => {
</p>
</Modal.Content>
<Modal.Content>
- <div className="rounded border border-scale-500 bg-scale-400">
- <div className="flex items-center border-b border-scale-600">
+ <div className="rounded border border-default bg-surface-200">
+ <div className="flex items-center border-b border-control">
<div className={permissionColumnClassName}>Permissions</div>
<div className={roleColumnClassName}>Owner</div>
<div className={roleColumnClassName}>Adminstrator</div>
@@ -69,13 +69,13 @@ const RolesHelperModal = () => {
<div className="max-h-[425px] overflow-y-auto">
{PERMISSIONS_MAPPING.map((group) => (
<Fragment key={group.title}>
- <div className="flex items-center border-b border-scale-600 py-2 px-4 last:border-none">
+ <div className="flex items-center border-b border-control py-2 px-4 last:border-none">
<div className="w-[100%] text-sm">{group.title}</div>
</div>
{group.actions.map((action, idx) => (
<div
key={`${group.title}-${idx}`}
- className="flex items-center border-b border-scale-600 bg-scale-500 last:border-none"
+ className="flex items-center border-b border-control bg-overlay-hover last:border-none"
>
<div className={permissionColumnClassName}>{action.description}</div>
<div className={roleColumnClassName}>
diff --git a/studio/components/interfaces/Organization/TeamSettings/TeamSettings.tsx b/studio/components/interfaces/Organization/TeamSettings/TeamSettings.tsx
index 983933745f0..0b274077a69 100644
--- a/studio/components/interfaces/Organization/TeamSettings/TeamSettings.tsx
+++ b/studio/components/interfaces/Organization/TeamSettings/TeamSettings.tsx
@@ -123,8 +123,8 @@ const TeamSettings = () => {
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">
diff --git a/studio/components/interfaces/Organization/Usage/Usage.constants.tsx b/studio/components/interfaces/Organization/Usage/Usage.constants.tsx
index 1f7b77f13dd..29448815c20 100644
--- a/studio/components/interfaces/Organization/Usage/Usage.constants.tsx
+++ b/studio/components/interfaces/Organization/Usage/Usage.constants.tsx
@@ -5,7 +5,7 @@ import { OrgUsageResponse } from 'data/usage/org-usage-query'
import { Alert } from 'ui'
export const COLOR_MAP = {
- white: { bar: 'fill-scale-1200', marker: 'bg-scale-1200' },
+ white: { bar: 'fill-foreground', marker: 'bg-foreground' },
green: { bar: 'fill-green-1000', marker: 'bg-green-1000' },
blue: { bar: 'fill-blue-1000', marker: 'bg-blue-1000' },
yellow: { bar: 'fill-amber-1000', marker: 'bg-amber-1000' },
diff --git a/studio/components/interfaces/Organization/Usage/Usage.tsx b/studio/components/interfaces/Organization/Usage/Usage.tsx
index 3b183340184..6fd28587f65 100644
--- a/studio/components/interfaces/Organization/Usage/Usage.tsx
+++ b/studio/components/interfaces/Organization/Usage/Usage.tsx
@@ -101,7 +101,7 @@ const Usage = () => {
return (
<>
- <ScaffoldContainer className="sticky top-0 border-b bg-scale-200 z-10 overflow-hidden">
+ <ScaffoldContainer className="sticky top-0 border-b bg-background z-10 overflow-hidden">
<div className="py-4 flex items-center space-x-4">
{isLoadingSubscription && <ShimmeringLoader className="w-[250px]" />}
diff --git a/studio/components/interfaces/Organization/Usage/UsageBarChart.tsx b/studio/components/interfaces/Organization/Usage/UsageBarChart.tsx
index d2253be4ccf..aa5e7047f70 100644
--- a/studio/components/interfaces/Organization/Usage/UsageBarChart.tsx
+++ b/studio/components/interfaces/Organization/Usage/UsageBarChart.tsx
@@ -45,7 +45,11 @@ const UsageBarChart = ({
<div className="w-full h-[200px]">
<ResponsiveContainer width="100%" height={200}>
<ComposedChart data={data} margin={{ top: 0, right: 0, left: yLeftMargin, bottom: 0 }}>
- <CartesianGrid vertical={false} strokeDasharray="3 3" className="stroke-scale-800" />
+ <CartesianGrid
+ vertical={false}
+ strokeDasharray="3 3"
+ className="stroke-border-stronger"
+ />
<XAxis dataKey="periodStartFormatted" />
<YAxis
width={40}
@@ -63,7 +67,7 @@ const UsageBarChart = ({
return (
<div
className={clsx(
- 'border bg-scale-300 rounded-md px-2 py-2',
+ 'border bg-surface-100 rounded-md px-2 py-2',
attributes.length > 1 && !isAfterToday ? 'w-[250px]' : 'w-[170px]'
)}
>
diff --git a/studio/components/interfaces/Organization/Usage/UsageSection/AttributeUsage.tsx b/studio/components/interfaces/Organization/Usage/UsageSection/AttributeUsage.tsx
index 31067597203..88075ee71fa 100644
--- a/studio/components/interfaces/Organization/Usage/UsageSection/AttributeUsage.tsx
+++ b/studio/components/interfaces/Organization/Usage/UsageSection/AttributeUsage.tsx
@@ -130,8 +130,8 @@ const AttributeUsage = ({
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<p className="text-xs text-foreground">
@@ -166,14 +166,14 @@ const AttributeUsage = ({
barClass={clsx(
usageRatio >= 1
? usageBasedBilling
- ? 'bg-scale-1100'
+ ? 'bg-foreground-light'
: 'bg-red-900'
: usageBasedBilling === false &&
usageRatio >= USAGE_APPROACHING_THRESHOLD
? 'bg-amber-900'
- : 'bg-scale-1100'
+ : 'bg-foreground-light'
)}
- bgClass="bg-gray-300 dark:bg-gray-600"
+ bgClass="bg-surface-300"
value={usageMeta?.usage ?? 0}
max={usageMeta?.pricing_free_units || 1}
/>
diff --git a/studio/components/interfaces/ProjectAPIDocs/ContentSnippet.tsx b/studio/components/interfaces/ProjectAPIDocs/ContentSnippet.tsx
index a21840d3975..3e3c9bab310 100644
--- a/studio/components/interfaces/ProjectAPIDocs/ContentSnippet.tsx
+++ b/studio/components/interfaces/ProjectAPIDocs/ContentSnippet.tsx
@@ -37,7 +37,7 @@ const ContentSnippet = ({
<h2 className="doc-heading">{snippet.title}</h2>
{snippet.description !== undefined && (
<div className="doc-section">
- <article className="text text-sm text-light">
+ <article className="text text-sm text-foreground-light">
<Markdown
className="max-w-none"
content={snippet.description.replaceAll('[ref]', projectRef ?? '_')}
diff --git a/studio/components/interfaces/ProjectAPIDocs/FirstLevelNav.tsx b/studio/components/interfaces/ProjectAPIDocs/FirstLevelNav.tsx
index a6deeb2ba56..6f8bde06fa3 100644
--- a/studio/components/interfaces/ProjectAPIDocs/FirstLevelNav.tsx
+++ b/studio/components/interfaces/ProjectAPIDocs/FirstLevelNav.tsx
@@ -65,7 +65,7 @@ const FirstLevelNav = () => {
<p
key={section.key}
title={section.title}
- className="text-sm text-light px-4 hover:text-foreground transition cursor-pointer"
+ className="text-sm text-foreground-light px-4 hover:text-foreground transition cursor-pointer"
onClick={() => {
snap.setActiveDocsSection([item.key])
navigateToSection(section.key)
@@ -81,7 +81,7 @@ const FirstLevelNav = () => {
<p
key={table.name}
title={table.name}
- className="text-sm text-light px-4 hover:text-foreground transition cursor-pointer"
+ className="text-sm text-foreground-light px-4 hover:text-foreground transition cursor-pointer"
onClick={() => snap.setActiveDocsSection([item.key, table.name])}
>
{table.name}
@@ -96,7 +96,7 @@ const FirstLevelNav = () => {
<p
key={fn.name}
title={fn.name}
- className="text-sm text-light px-4 hover:text-foreground transition cursor-pointer"
+ className="text-sm text-foreground-light px-4 hover:text-foreground transition cursor-pointer"
onClick={() => snap.setActiveDocsSection([item.key, fn.name])}
>
{fn.name}
@@ -111,7 +111,7 @@ const FirstLevelNav = () => {
<p
key={bucket.name}
title={bucket.name}
- className="text-sm text-light px-4 hover:text-foreground transition cursor-pointer"
+ className="text-sm text-foreground-light px-4 hover:text-foreground transition cursor-pointer"
onClick={() => snap.setActiveDocsSection([item.key, bucket.name])}
>
{bucket.name}
@@ -126,7 +126,7 @@ const FirstLevelNav = () => {
<p
key={fn.name}
title={fn.name}
- className="text-sm text-light px-4 hover:text-foreground transition cursor-pointer"
+ className="text-sm text-foreground-light px-4 hover:text-foreground transition cursor-pointer"
onClick={() => snap.setActiveDocsSection([item.key, fn.name])}
>
{fn.name}
diff --git a/studio/components/interfaces/ProjectAPIDocs/ResourceContent.tsx b/studio/components/interfaces/ProjectAPIDocs/ResourceContent.tsx
index 7a71cb23b6c..3594a34e489 100644
--- a/studio/components/interfaces/ProjectAPIDocs/ResourceContent.tsx
+++ b/studio/components/interfaces/ProjectAPIDocs/ResourceContent.tsx
@@ -34,7 +34,7 @@ const ResourceContent = ({ selectedLanguage, snippet, codeSnippets }: ResourceCo
</div>
{snippet.description !== undefined && (
<div className="doc-section">
- <article className="text text-sm text-light">
+ <article className="text text-sm text-foreground-light">
<Markdown
className="max-w-none"
content={snippet.description.replaceAll('[ref]', projectRef ?? '_')}
diff --git a/studio/components/interfaces/ProjectAPIDocs/SecondLevelNav.tsx b/studio/components/interfaces/ProjectAPIDocs/SecondLevelNav.tsx
index 05418acee24..f156d2eee35 100644
--- a/studio/components/interfaces/ProjectAPIDocs/SecondLevelNav.tsx
+++ b/studio/components/interfaces/ProjectAPIDocs/SecondLevelNav.tsx
@@ -131,7 +131,7 @@ const SecondLevelNav = () => {
<p
key={item.key}
title={item.title}
- className="text-sm text-light px-4 hover:text-foreground transition cursor-pointer"
+ className="text-sm text-foreground-light px-4 hover:text-foreground transition cursor-pointer"
onClick={() => navigateToSection(item.key)}
>
{item.title}
diff --git a/studio/components/interfaces/Reports/GridResize.tsx b/studio/components/interfaces/Reports/GridResize.tsx
index 5f5abac8f9e..a81806f2778 100644
--- a/studio/components/interfaces/Reports/GridResize.tsx
+++ b/studio/components/interfaces/Reports/GridResize.tsx
@@ -40,7 +40,7 @@ const GridResize = ({ startDate, endDate, interval, editableReport, setEditableR
<div
key={x.id}
data-grid={{ ...x, minH: 4, maxH: 4, minW: 8 }}
- className="react-grid-layout__report-item bg-panel-body-light dark:bg-panel-body-dark border-panel-border-light dark:border-panel-border-dark group relative rounded border px-6 py-4 shadow-sm hover:border-green-900 dark:hover:border-green-900"
+ className="react-grid-layout__report-item bg-surface-100 border-overlay group relative rounded border px-6 py-4 shadow-sm hover:border-green-900 dark:hover:border-green-900"
>
<ChartHandler
startDate={startDate}
diff --git a/studio/components/interfaces/Reports/ReportFilterBar.tsx b/studio/components/interfaces/Reports/ReportFilterBar.tsx
index 87e586dcd45..912eae7b765 100644
--- a/studio/components/interfaces/Reports/ReportFilterBar.tsx
+++ b/studio/components/interfaces/Reports/ReportFilterBar.tsx
@@ -207,7 +207,7 @@ const ReportFilterBar = ({
.map((filter) => (
<div
key={`${filter.key}-${filter.compare}-${filter.value}`}
- className="text-xs rounded border border-scale-1000 bg-scale-500 px-2 h-7 flex flex-row justify-center gap-1 items-center"
+ className="text-xs rounded border border-foreground-lighter bg-surface-300 px-2 h-7 flex flex-row justify-center gap-1 items-center"
>
{filter.key} {filter.compare} {filter.value}
<Button
diff --git a/studio/components/interfaces/Reports/ReportWidget.tsx b/studio/components/interfaces/Reports/ReportWidget.tsx
index 32fc0fc1056..1ca3b517f0c 100644
--- a/studio/components/interfaces/Reports/ReportWidget.tsx
+++ b/studio/components/interfaces/Reports/ReportWidget.tsx
@@ -58,8 +58,8 @@ const ReportWidget: React.FC<ReportWidgetProps> = (props) => {
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 max-w-xs leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 max-w-xs leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">{props.tooltip}</span>
@@ -107,8 +107,8 @@ const ReportWidget: React.FC<ReportWidgetProps> = (props) => {
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 max-w-xs leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 max-w-xs leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">
diff --git a/studio/components/interfaces/Reports/Reports.tsx b/studio/components/interfaces/Reports/Reports.tsx
index 6470d3033cd..bd953217e10 100644
--- a/studio/components/interfaces/Reports/Reports.tsx
+++ b/studio/components/interfaces/Reports/Reports.tsx
@@ -382,8 +382,8 @@ const Reports = () => {
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">
diff --git a/studio/components/interfaces/Reports/renderers/ApiRenderers.tsx b/studio/components/interfaces/Reports/renderers/ApiRenderers.tsx
index ac0bdaf5e9c..60d7c8bce73 100644
--- a/studio/components/interfaces/Reports/renderers/ApiRenderers.tsx
+++ b/studio/components/interfaces/Reports/renderers/ApiRenderers.tsx
@@ -111,7 +111,7 @@ export const TopApiRoutesRenderer = (
const [showMore, setShowMore] = useState(false)
if (props.data.length === 0) return null
- const headerClasses = '!text-xs !py-2 p-0 font-bold !bg-scale-400'
+ const headerClasses = '!text-xs !py-2 p-0 font-bold !bg-surface-200'
const cellClasses = '!text-xs !py-2'
return (
@@ -280,7 +280,10 @@ const RouteTdContent = (datum: RouteTdContentProps) => (
/>
</span>
</Button>
- <TextFormatter className="w-10 h-4 text-center rounded bg-scale-500" value={datum.method} />
+ <TextFormatter
+ className="w-10 h-4 text-center rounded bg-surface-300"
+ value={datum.method}
+ />
{datum.status_code && (
<TextFormatter
className={`w-10 h-4 text-center rounded ${
@@ -304,7 +307,7 @@ const RouteTdContent = (datum: RouteTdContentProps) => (
</Collapsible.Trigger>
<Collapsible.Content className="pt-2">
{datum.search ? (
- <pre className={`syntax-highlight overflow-auto rounded bg-scale-300 p-2 !text-xs`}>
+ <pre className={`syntax-highlight overflow-auto rounded bg-surface-100 p-2 !text-xs`}>
<div
className="text-wrap"
dangerouslySetInnerHTML={{
diff --git a/studio/components/interfaces/Reports/renderers/StorageRenderers.tsx b/studio/components/interfaces/Reports/renderers/StorageRenderers.tsx
index 112341de0f5..68943f982ea 100644
--- a/studio/components/interfaces/Reports/renderers/StorageRenderers.tsx
+++ b/studio/components/interfaces/Reports/renderers/StorageRenderers.tsx
@@ -45,7 +45,7 @@ export const TopCacheMissesRenderer = (
}>
) => {
if (props.data.length === 0) return null
- const headerClasses = '!text-xs !py-2 p-0 font-bold !bg-scale-400'
+ const headerClasses = '!text-xs !py-2 p-0 font-bold !bg-surface-200'
const cellClasses = '!text-xs !py-2'
return (
diff --git a/studio/components/interfaces/SQLEditor/AISchemaSuggestionPopover.tsx b/studio/components/interfaces/SQLEditor/AISchemaSuggestionPopover.tsx
index 5183c0765de..b688a2569f2 100644
--- a/studio/components/interfaces/SQLEditor/AISchemaSuggestionPopover.tsx
+++ b/studio/components/interfaces/SQLEditor/AISchemaSuggestionPopover.tsx
@@ -63,8 +63,8 @@ const AISchemaSuggestionPopover = ({
initial="hidden"
animate="visible"
>
- <Popover.Arrow className="fill-scale-300 dark:fill-scale-500" />
- <div className="flex flex-col gap-2 border border-scale-300 dark:border-scale-500 rounded-md p-4 bg-scale-300 shadow-xl">
+ <Popover.Arrow className="fill-background-surface-300" />
+ <div className="flex flex-col gap-2 border border-background-surface-100 dark:border-default rounded-md p-4 bg-surface-100 shadow-xl">
<div className="flex flex-row items-center gap-4 max-w-md">
<IconInfo className="w-6 h-6" />
<p className="text-sm">
diff --git a/studio/components/interfaces/SQLEditor/UtilityPanel/SavingIndicator.tsx b/studio/components/interfaces/SQLEditor/UtilityPanel/SavingIndicator.tsx
index fa74f184829..c38be8a8523 100644
--- a/studio/components/interfaces/SQLEditor/UtilityPanel/SavingIndicator.tsx
+++ b/studio/components/interfaces/SQLEditor/UtilityPanel/SavingIndicator.tsx
@@ -53,8 +53,8 @@ const SavingIndicator = ({ id }: SavingIndicatorProps) => {
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'bg-scale-100 rounded py-1 px-2 leading-none shadow',
- 'border-scale-200 border ',
+ 'bg-alternative rounded py-1 px-2 leading-none shadow',
+ 'border-background border ',
].join(' ')}
>
<span className="text-foreground text-xs">All changes saved</span>
@@ -70,8 +70,8 @@ const SavingIndicator = ({ id }: SavingIndicatorProps) => {
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'bg-scale-100 rounded py-1 px-2 leading-none shadow',
- 'border-scale-200 border',
+ 'bg-alternative rounded py-1 px-2 leading-none shadow',
+ 'border-background border',
].join(' ')}
>
<span className="text-foreground text-xs">Saving changes...</span>
@@ -87,8 +87,8 @@ const SavingIndicator = ({ id }: SavingIndicatorProps) => {
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'bg-scale-100 rounded py-1 px-2 leading-none shadow',
- 'border-scale-200 border ',
+ 'bg-alternative rounded py-1 px-2 leading-none shadow',
+ 'border-background border ',
].join(' ')}
>
<span className="text-foreground text-xs">Failed to save changes</span>
diff --git a/studio/components/interfaces/SQLEditor/UtilityPanel/SizeToggleButton.tsx b/studio/components/interfaces/SQLEditor/UtilityPanel/SizeToggleButton.tsx
index 9bc2349fa68..030ea2e2e78 100644
--- a/studio/components/interfaces/SQLEditor/UtilityPanel/SizeToggleButton.tsx
+++ b/studio/components/interfaces/SQLEditor/UtilityPanel/SizeToggleButton.tsx
@@ -30,8 +30,8 @@ const SizeToggleButton = ({ id }: SizeToggleButton) => {
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">Show results</span>
@@ -54,8 +54,8 @@ const SizeToggleButton = ({ id }: SizeToggleButton) => {
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">Collapse results</span>
diff --git a/studio/components/interfaces/SQLEditor/UtilityPanel/UtilityActions.tsx b/studio/components/interfaces/SQLEditor/UtilityPanel/UtilityActions.tsx
index 198e4732515..c8e29827545 100644
--- a/studio/components/interfaces/SQLEditor/UtilityPanel/UtilityActions.tsx
+++ b/studio/components/interfaces/SQLEditor/UtilityPanel/UtilityActions.tsx
@@ -42,8 +42,8 @@ const UtilityActions = ({
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">Prettify SQL</span>
diff --git a/studio/components/interfaces/Settings/API/JWTSettings.tsx b/studio/components/interfaces/Settings/API/JWTSettings.tsx
index 7e7f018a3dc..231581a9db1 100644
--- a/studio/components/interfaces/Settings/API/JWTSettings.tsx
+++ b/studio/components/interfaces/Settings/API/JWTSettings.tsx
@@ -124,7 +124,7 @@ const JWTSettings = () => {
layout="horizontal"
/>
<div className="space-y-3">
- <div className="p-3 px-6 border rounded-md shadow-sm bg-scale-200 dark:border-dark dark:bg-scale-200">
+ <div className="p-3 px-6 border rounded-md shadow-sm bg-background">
{isUpdatingJwtSecret ? (
<div className="flex items-center space-x-2">
<IconLoader className="animate-spin" size={14} />
@@ -158,8 +158,8 @@ const JWTSettings = () => {
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">
diff --git a/studio/components/interfaces/Settings/Addons/Addons.tsx b/studio/components/interfaces/Settings/Addons/Addons.tsx
index 33268e24f8a..5fcedbfe40c 100644
--- a/studio/components/interfaces/Settings/Addons/Addons.tsx
+++ b/studio/components/interfaces/Settings/Addons/Addons.tsx
@@ -177,7 +177,7 @@ const Addons = () => {
<ScaffoldSectionContent>
<div className="flex space-x-6">
<div>
- <div className="rounded-md bg-scale-100 dark:bg-scale-400 w-[160px] h-[96px] shadow">
+ <div className="rounded-md bg-surface-200 w-[160px] h-[96px] shadow">
<Image
alt="Optimized Compute"
width={160}
@@ -366,7 +366,7 @@ const Addons = () => {
<ScaffoldSectionContent>
<div className="flex space-x-6">
<div>
- <div className="rounded-md bg-scale-100 dark:bg-scale-400 w-[160px] h-[96px] shadow">
+ <div className="rounded-md bg-surface-200 w-[160px] h-[96px] shadow">
<Image
alt="Point-In-Time-Recovery"
width={160}
@@ -461,7 +461,7 @@ const Addons = () => {
<ScaffoldSectionContent>
<div className="flex space-x-6">
<div>
- <div className="rounded-md bg-scale-100 dark:bg-scale-400 w-[160px] h-[96px] shadow">
+ <div className="rounded-md bg-surface-200 w-[160px] h-[96px] shadow">
<img
alt="Custom Domain"
width={160}
diff --git a/studio/components/interfaces/Settings/Addons/ComputeInstanceSidePanel.tsx b/studio/components/interfaces/Settings/Addons/ComputeInstanceSidePanel.tsx
index 79d4c53ae04..e94557a7c2c 100644
--- a/studio/components/interfaces/Settings/Addons/ComputeInstanceSidePanel.tsx
+++ b/studio/components/interfaces/Settings/Addons/ComputeInstanceSidePanel.tsx
@@ -243,8 +243,8 @@ const ComputeInstanceSidePanel = () => {
className={clsx(
'relative rounded-xl transition border bg-no-repeat bg-center bg-cover cursor-pointer w-[160px] h-[96px]',
isSelected
- ? 'border-scale-1200'
- : 'border-scale-900 opacity-50 group-hover:border-scale-1000 group-hover:opacity-100'
+ ? 'border-foreground'
+ : 'border-foreground-muted opacity-50 group-hover:border-foreground-lighter group-hover:opacity-100'
)}
width={160}
height={96}
@@ -302,7 +302,7 @@ const ComputeInstanceSidePanel = () => {
value={option.identifier}
>
<div className="w-full group">
- <div className="border-b border-scale-500 px-4 py-2">
+ <div className="border-b border-default px-4 py-2">
<p className="text-sm">{option.name}</p>
</div>
<div className="px-4 py-2">
@@ -339,8 +339,8 @@ const ComputeInstanceSidePanel = () => {
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<div className="flex items-center space-x-1">
diff --git a/studio/components/interfaces/Settings/Addons/CustomDomainSidePanel.tsx b/studio/components/interfaces/Settings/Addons/CustomDomainSidePanel.tsx
index 287776db6c3..b79c34369dc 100644
--- a/studio/components/interfaces/Settings/Addons/CustomDomainSidePanel.tsx
+++ b/studio/components/interfaces/Settings/Addons/CustomDomainSidePanel.tsx
@@ -190,7 +190,7 @@ const CustomDomainSidePanel = () => {
value="cd_none"
>
<div className="w-full group">
- <div className="border-b border-scale-500 px-4 py-2 group-hover:border-scale-600">
+ <div className="border-b border-default px-4 py-2 group-hover:border-control">
<p className="text-sm">No custom domain</p>
</div>
<div className="px-4 py-2">
@@ -215,7 +215,7 @@ const CustomDomainSidePanel = () => {
value={option.identifier}
>
<div className="w-full group">
- <div className="border-b border-scale-500 px-4 py-2 group-hover:border-scale-600">
+ <div className="border-b border-default px-4 py-2 group-hover:border-control">
<p className="text-sm">{option.name}</p>
</div>
<div className="px-4 py-2">
diff --git a/studio/components/interfaces/Settings/Addons/PITRSidePanel.tsx b/studio/components/interfaces/Settings/Addons/PITRSidePanel.tsx
index 87d53f17845..ef265ce30f8 100644
--- a/studio/components/interfaces/Settings/Addons/PITRSidePanel.tsx
+++ b/studio/components/interfaces/Settings/Addons/PITRSidePanel.tsx
@@ -203,8 +203,8 @@ const PITRSidePanel = () => {
className={clsx(
'relative rounded-xl transition border bg-no-repeat bg-center bg-cover cursor-pointer w-[160px] h-[96px]',
isSelected
- ? 'border-scale-1200'
- : 'border-scale-900 opacity-50 group-hover:border-scale-1000 group-hover:opacity-100'
+ ? 'border-foreground'
+ : 'border-foreground-muted opacity-50 group-hover:border-foreground-lighter group-hover:opacity-100'
)}
width={160}
height={96}
@@ -282,7 +282,7 @@ const PITRSidePanel = () => {
value={option.identifier}
>
<div className="w-full group">
- <div className="border-b border-scale-500 px-4 py-2">
+ <div className="border-b border-default px-4 py-2">
<p className="text-sm">{option.name}</p>
</div>
<div className="px-4 py-2">
diff --git a/studio/components/interfaces/Settings/Database/BannedIPs.tsx b/studio/components/interfaces/Settings/Database/BannedIPs.tsx
index f4ecd669482..0ecad78bf00 100644
--- a/studio/components/interfaces/Settings/Database/BannedIPs.tsx
+++ b/studio/components/interfaces/Settings/Database/BannedIPs.tsx
@@ -83,7 +83,7 @@ const BannedIPs = () => {
ipList.banned_ipv4_addresses.map((ip) => (
<div key={ip} className="px-8 py-4 flex items-center justify-between">
<div className="flex items-center space-x-5">
- <IconGlobe size={16} className="text-scale-1000" />
+ <IconGlobe size={16} className="text-foreground-lighter" />
<p className="text-sm font-mono">{ip}</p>
</div>
<div>
@@ -94,7 +94,7 @@ const BannedIPs = () => {
</div>
))
) : (
- <p className="text-scale-1100 text-sm px-8 py-4">
+ <p className="text-foreground-light text-sm px-8 py-4">
There are no banned IP addresses for your project.
</p>
)}
diff --git a/studio/components/interfaces/Settings/Database/DatabaseSettings/ResetDbPassword.tsx b/studio/components/interfaces/Settings/Database/DatabaseSettings/ResetDbPassword.tsx
index e7192c94fe4..3ea359eb3c9 100644
--- a/studio/components/interfaces/Settings/Database/DatabaseSettings/ResetDbPassword.tsx
+++ b/studio/components/interfaces/Settings/Database/DatabaseSettings/ResetDbPassword.tsx
@@ -127,8 +127,8 @@ const ResetDbPassword = ({ disabled = false }) => {
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow', // background
- 'border border-scale-200 ', //border
+ 'rounded bg-alternative py-1 px-2 leading-none shadow', // background
+ 'border border-background', //border
].join(' ')}
>
<span className="text-xs text-foreground">
diff --git a/studio/components/interfaces/Settings/Database/DiskSizeConfiguration.tsx b/studio/components/interfaces/Settings/Database/DiskSizeConfiguration.tsx
index b94c349ad33..d40c42651b2 100644
--- a/studio/components/interfaces/Settings/Database/DiskSizeConfiguration.tsx
+++ b/studio/components/interfaces/Settings/Database/DiskSizeConfiguration.tsx
@@ -118,8 +118,8 @@ const DiskSizeConfiguration = ({ disabled = false }: DiskSizeConfigurationProps)
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow', // background
- 'border border-scale-200 ', //border
+ 'rounded bg-alternative py-1 px-2 leading-none shadow', // background
+ 'border border-background', //border
].join(' ')}
>
<span className="text-xs text-foreground">
diff --git a/studio/components/interfaces/Settings/Database/NetworkRestrictions/AddRestrictionModal.tsx b/studio/components/interfaces/Settings/Database/NetworkRestrictions/AddRestrictionModal.tsx
index 696287438f4..55edd6406ba 100644
--- a/studio/components/interfaces/Settings/Database/NetworkRestrictions/AddRestrictionModal.tsx
+++ b/studio/components/interfaces/Settings/Database/NetworkRestrictions/AddRestrictionModal.tsx
@@ -154,8 +154,8 @@ const AddRestrictionModal = ({
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200 w-[300px]',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background w-[300px]',
].join(' ')}
>
<span className="text-xs text-foreground">
diff --git a/studio/components/interfaces/Settings/Database/NetworkRestrictions/NetworkRestrictions.tsx b/studio/components/interfaces/Settings/Database/NetworkRestrictions/NetworkRestrictions.tsx
index 2e1b95a7f01..d2d0576e4ea 100644
--- a/studio/components/interfaces/Settings/Database/NetworkRestrictions/NetworkRestrictions.tsx
+++ b/studio/components/interfaces/Settings/Database/NetworkRestrictions/NetworkRestrictions.tsx
@@ -34,8 +34,8 @@ const AllowAllAccessButton = ({ disabled, onClick }: AccessButtonProps) => (
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200 w-[250px]',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background w-[250px]',
].join(' ')}
>
<span className="text-xs text-foreground">
@@ -61,8 +61,8 @@ const DisallowAllAccessButton = ({ disabled, onClick }: AccessButtonProps) => (
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200 w-[250px]',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background w-[250px]',
].join(' ')}
>
<span className="text-xs text-foreground">
@@ -134,8 +134,8 @@ const NetworkRestrictions = ({}) => {
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200 w-[250px]',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background w-[250px]',
].join(' ')}
>
<span className="text-xs text-foreground">
diff --git a/studio/components/interfaces/Settings/Database/SSLConfiguration.tsx b/studio/components/interfaces/Settings/Database/SSLConfiguration.tsx
index d3cee860ecb..2100baba38f 100644
--- a/studio/components/interfaces/Settings/Database/SSLConfiguration.tsx
+++ b/studio/components/interfaces/Settings/Database/SSLConfiguration.tsx
@@ -150,8 +150,8 @@ const SSLConfiguration = () => {
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200 w-[250px]',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background w-[250px]',
].join(' ')}
>
<span className="text-xs text-foreground text-center flex items-center justify-center">
@@ -197,8 +197,8 @@ const SSLConfiguration = () => {
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200 w-[250px]',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background w-[250px]',
].join(' ')}
>
<span className="text-xs text-foreground">
diff --git a/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainActivate.tsx b/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainActivate.tsx
index 557633ceb3b..018df72f070 100644
--- a/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainActivate.tsx
+++ b/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainActivate.tsx
@@ -95,7 +95,7 @@ const CustomDomainActivate = ({ projectRef, customDomain }: CustomDomainActivate
</div>
</Panel.Content>
- <div className="w-full border-t border-scale-400" />
+ <div className="w-full border-t border-muted" />
<Panel.Content className="w-full">
<div className="flex items-center justify-between">
diff --git a/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainDelete.tsx b/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainDelete.tsx
index ae7938c9968..08a759c2ccd 100644
--- a/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainDelete.tsx
+++ b/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainDelete.tsx
@@ -46,7 +46,7 @@ const CustomDomainDelete = ({ projectRef, customDomain }: CustomDomainDeleteProp
</div>
</Panel.Content>
- <div className="w-full border-t border-scale-400" />
+ <div className="w-full border-t border-muted" />
<Panel.Content className="w-full">
<div className="flex items-center justify-between">
diff --git a/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainVerify.tsx b/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainVerify.tsx
index 29eeaa76250..b183374a17e 100644
--- a/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainVerify.tsx
+++ b/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainVerify.tsx
@@ -203,7 +203,7 @@ const CustomDomainVerify = ({ projectRef, customDomain, settings }: CustomDomain
</div>
</Panel.Content>
- <div className="border-t border-scale-400" />
+ <div className="border-t border-muted" />
<Panel.Content>
<div className="flex items-center justify-between">
diff --git a/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainsShimmerLoader.tsx b/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainsShimmerLoader.tsx
index 3caaa3b1b2c..c4f5af2aeb3 100644
--- a/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainsShimmerLoader.tsx
+++ b/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainsShimmerLoader.tsx
@@ -2,11 +2,11 @@ const CustomDomainsShimmerLoader = () => {
return (
<div className="grid grid-cols-12 gap-6 px-8 py-8">
<div className="col-span-12 lg:col-span-5">
- <div className="h-6 w-1/3 bg-scale-1000 rounded shimmering-loader" />
+ <div className="h-6 w-1/3 bg-foreground-lighter rounded shimmering-loader" />
</div>
<div className="col-span-12 lg:col-span-7">
- <div className="h-[38px] w-full bg-scale-1000 rounded shimmering-loader" />
+ <div className="h-[38px] w-full bg-foreground-lighter rounded shimmering-loader" />
</div>
</div>
)
diff --git a/studio/components/interfaces/Settings/General/DeleteProjectPanel/DeleteProjectButton.tsx b/studio/components/interfaces/Settings/General/DeleteProjectPanel/DeleteProjectButton.tsx
index 243af0b0fb5..bcf11f92f51 100644
--- a/studio/components/interfaces/Settings/General/DeleteProjectPanel/DeleteProjectButton.tsx
+++ b/studio/components/interfaces/Settings/General/DeleteProjectPanel/DeleteProjectButton.tsx
@@ -105,8 +105,8 @@ const DeleteProjectButton = ({ type = 'danger' }: DeleteProjectButtonProps) => {
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow', // background
- 'border border-scale-200 ', //border
+ 'rounded bg-alternative py-1 px-2 leading-none shadow', // background
+ 'border border-background', //border
].join(' ')}
>
<span className="text-xs text-foreground">
@@ -164,8 +164,8 @@ const DeleteProjectButton = ({ type = 'danger' }: DeleteProjectButtonProps) => {
'pl-2 pr-3 text-center text-sm shadow-sm transition-all duration-100',
`${
active
- ? ` bg-scale-1200 text-scale-100 opacity-100 hover:bg-opacity-75`
- : ` bg-scale-700 text-foreground opacity-25 hover:opacity-50`
+ ? ` bg-foreground text-background opacity-100 hover:bg-opacity-75`
+ : ` bg-border-strong text-foreground opacity-25 hover:opacity-50`
}`,
].join(' ')}
>
diff --git a/studio/components/interfaces/Settings/General/Infrastructure/Infrastructure.tsx b/studio/components/interfaces/Settings/General/Infrastructure/Infrastructure.tsx
index 44d4ca6de9c..44063957396 100644
--- a/studio/components/interfaces/Settings/General/Infrastructure/Infrastructure.tsx
+++ b/studio/components/interfaces/Settings/General/Infrastructure/Infrastructure.tsx
@@ -65,7 +65,7 @@ const Infrastructure = ({}: InfrastructureProps) => {
{isFreeProject && (
<>
- <div className="border-t border-scale-400" />
+ <div className="border-t border-muted" />
<div className="flex w-full items-center justify-between px-8 py-4">
<div>
<p className="text-sm">Pause project</p>
@@ -111,8 +111,8 @@ const Infrastructure = ({}: InfrastructureProps) => {
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200 w-[200px]',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background w-[200px]',
].join(' ')}
>
<span className="text-xs text-foreground">
diff --git a/studio/components/interfaces/Settings/General/Infrastructure/PauseProjectButton.tsx b/studio/components/interfaces/Settings/General/Infrastructure/PauseProjectButton.tsx
index 64defec19e0..cebd734d567 100644
--- a/studio/components/interfaces/Settings/General/Infrastructure/PauseProjectButton.tsx
+++ b/studio/components/interfaces/Settings/General/Infrastructure/PauseProjectButton.tsx
@@ -68,8 +68,8 @@ const PauseProjectButton = () => {
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow', // background
- 'border border-scale-200 ', //border
+ 'rounded bg-alternative py-1 px-2 leading-none shadow', // background
+ 'border border-background', //border
].join(' ')}
>
<span className="text-xs text-foreground">
@@ -98,7 +98,7 @@ const PauseProjectButton = () => {
onSelectConfirm={requestPauseProject}
>
<Modal.Content className="py-4">
- <p className="text-light text-sm">
+ <p className="text-foreground-light text-sm">
Are you sure you want to pause this project? It will not be accessible until you unpause
it.
</p>
diff --git a/studio/components/interfaces/Settings/General/Infrastructure/RestartServerButton.tsx b/studio/components/interfaces/Settings/General/Infrastructure/RestartServerButton.tsx
index 070d979d2c2..fca3ad83388 100644
--- a/studio/components/interfaces/Settings/General/Infrastructure/RestartServerButton.tsx
+++ b/studio/components/interfaces/Settings/General/Infrastructure/RestartServerButton.tsx
@@ -142,8 +142,8 @@ const RestartServerButton = () => {
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow', // background
- 'border border-scale-200 ', //border
+ 'rounded bg-alternative py-1 px-2 leading-none shadow', // background
+ 'border border-background', //border
].join(' ')}
>
<span className="text-xs text-foreground">
diff --git a/studio/components/interfaces/Settings/General/TransferProjectPanel/TransferProjectButton.tsx b/studio/components/interfaces/Settings/General/TransferProjectPanel/TransferProjectButton.tsx
index 4740e8915c0..50336a35afb 100644
--- a/studio/components/interfaces/Settings/General/TransferProjectPanel/TransferProjectButton.tsx
+++ b/studio/components/interfaces/Settings/General/TransferProjectPanel/TransferProjectButton.tsx
@@ -99,8 +99,8 @@ const TransferProjectButton = () => {
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow', // background
- 'border border-scale-200 ', //border
+ 'rounded bg-alternative py-1 px-2 leading-none shadow', // background
+ 'border border-background', //border
].join(' ')}
>
<span className="text-xs text-foreground">
@@ -197,7 +197,7 @@ const TransferProjectButton = () => {
{organizations && (
<div className="mt-8 mx-4 border-t pt-4 space-y-2">
{organizations.length === 0 ? (
- <div className="flex items-center gap-2 bg-scale-400 p-3 text-sm">
+ <div className="flex items-center gap-2 bg-surface-200 p-3 text-sm">
<IconAlertCircle /> You do not have any organizations with an organization-based
subscription.
</div>
@@ -254,7 +254,7 @@ const TransferProjectButton = () => {
<Modal.Content>
<div className="px-4">
{transferPreviewData && transferPreviewData.valid && (
- <div className="text-sm text-foreground-light p-4 bg-scale-400">
+ <div className="text-sm text-foreground-light p-4 bg-surface-200">
{transferPreviewData.source_subscription_plan !==
transferPreviewData.target_subscription_plan ? (
<div>
diff --git a/studio/components/interfaces/Settings/Infrastructure/InfrastructureActivity.tsx b/studio/components/interfaces/Settings/Infrastructure/InfrastructureActivity.tsx
index 13b5249182a..f6ad95d3f03 100644
--- a/studio/components/interfaces/Settings/Infrastructure/InfrastructureActivity.tsx
+++ b/studio/components/interfaces/Settings/Infrastructure/InfrastructureActivity.tsx
@@ -181,7 +181,7 @@ const InfrastructureActivity = () => {
</div>
</div>
</ScaffoldContainer>
- <ScaffoldContainer className="sticky top-0 py-6 border-b bg-scale-200 z-10">
+ <ScaffoldContainer className="sticky top-0 py-6 border-b bg-background z-10">
<div className="flex items-center space-x-4">
{!isLoadingSubscription && (
<>
diff --git a/studio/components/interfaces/Settings/Infrastructure/InfrastructureInfo.tsx b/studio/components/interfaces/Settings/Infrastructure/InfrastructureInfo.tsx
index 82a361ff923..7bd438555d6 100644
--- a/studio/components/interfaces/Settings/Infrastructure/InfrastructureInfo.tsx
+++ b/studio/components/interfaces/Settings/Infrastructure/InfrastructureInfo.tsx
@@ -118,8 +118,8 @@ const InfrastructureInfo = () => {
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200 w-[200px]',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background w-[200px]',
].join(' ')}
>
<span className="text-xs text-foreground">
diff --git a/studio/components/interfaces/Settings/Integrations/GithubIntegration/GitHubIntegrationConnectionForm.tsx b/studio/components/interfaces/Settings/Integrations/GithubIntegration/GitHubIntegrationConnectionForm.tsx
index 42dda4b0656..e61121f43b6 100644
--- a/studio/components/interfaces/Settings/Integrations/GithubIntegration/GitHubIntegrationConnectionForm.tsx
+++ b/studio/components/interfaces/Settings/Integrations/GithubIntegration/GitHubIntegrationConnectionForm.tsx
@@ -134,7 +134,7 @@ const GitHubIntegrationConnectionForm = ({
<div className="flex flex-col gap-6 px-8 py-8">
<div>
<Label_Shadcn_ className="text-foreground">Production branch</Label_Shadcn_>
- <p className="text-xs text-light mb-3">
+ <p className="text-xs text-foreground-light mb-3">
All other branches will be treated as Preview branches
</p>
@@ -158,7 +158,7 @@ const GitHubIntegrationConnectionForm = ({
ref={comboBoxRef}
className={cn(
'justify-start w-64',
- productionPreviewBranch?.git_branch === undefined ? 'text-light' : 'text'
+ productionPreviewBranch?.git_branch === undefined ? 'text-foreground-light' : 'text'
)}
icon={
productionPreviewBranch?.git_branch && (
@@ -220,7 +220,7 @@ const GitHubIntegrationConnectionForm = ({
<Form_Shadcn_ {...form}>
<form onSubmit={form.handleSubmit(onSubmit)}>
<FormLabel_Shadcn_ className="!text">Supabase directory</FormLabel_Shadcn_>
- <FormDescription_Shadcn_ className="text-xs text-lighter mb-3">
+ <FormDescription_Shadcn_ className="text-xs text-foreground-lighter mb-3">
Migration and seed SQL files will be run from this directory.
</FormDescription_Shadcn_>
@@ -252,7 +252,7 @@ const GitHubIntegrationConnectionForm = ({
/>
<RotateCcw
className={cn(
- 'text-lighter transition hover:text cursor-pointer',
+ 'text-foreground-lighter transition hover:text cursor-pointer',
'w-4 h-4 absolute right-3 top-3',
'duration-150',
isUpdatingGithubConnection ||
diff --git a/studio/components/interfaces/Settings/Integrations/VercelIntegration/VercelIntegrationConnectionForm.tsx b/studio/components/interfaces/Settings/Integrations/VercelIntegration/VercelIntegrationConnectionForm.tsx
index 12a25a39737..fa313707ef2 100644
--- a/studio/components/interfaces/Settings/Integrations/VercelIntegration/VercelIntegrationConnectionForm.tsx
+++ b/studio/components/interfaces/Settings/Integrations/VercelIntegration/VercelIntegrationConnectionForm.tsx
@@ -120,7 +120,7 @@ const VercelIntegrationConnectionForm = ({
<FormLabel_Shadcn_ className="!text">
Sync environment variables for Vercel Production deployments
</FormLabel_Shadcn_>
- <FormDescription_Shadcn_ className="text-xs text-lighter">
+ <FormDescription_Shadcn_ className="text-xs text-foreground-lighter">
Deploy Edge Functions when merged into Production Branch
</FormDescription_Shadcn_>
</div>
@@ -147,7 +147,7 @@ const VercelIntegrationConnectionForm = ({
<FormLabel_Shadcn_ className="!text">
Auto update Auth Redirect URIs for Vercel Production Deployments
</FormLabel_Shadcn_>
- <FormDescription_Shadcn_ className="text-xs text-lighter">
+ <FormDescription_Shadcn_ className="text-xs text-foreground-lighter">
Deploy Edge Functions when merged into Production Branch
</FormDescription_Shadcn_>
</div>
@@ -177,7 +177,7 @@ const VercelIntegrationConnectionForm = ({
<FormLabel_Shadcn_ className="!text">
Sync environment variables for Vercel Preview Deployments
</FormLabel_Shadcn_>
- <FormDescription_Shadcn_ className="text-xs text-lighter">
+ <FormDescription_Shadcn_ className="text-xs text-foreground-lighter">
Preview deployments will be able to connect to Supabase Database Preview
branches
</FormDescription_Shadcn_>
@@ -204,7 +204,7 @@ const VercelIntegrationConnectionForm = ({
<FormLabel_Shadcn_ className="!text">
Auto update Auth Redirect URIs for Vercel Preview Deployments
</FormLabel_Shadcn_>
- <FormDescription_Shadcn_ className="text-xs text-lighter">
+ <FormDescription_Shadcn_ className="text-xs text-foreground-lighter">
Deploy Edge Functions when merged into Production Branch
</FormDescription_Shadcn_>
</div>
diff --git a/studio/components/interfaces/Settings/Integrations/VercelIntegration/VercelSection.tsx b/studio/components/interfaces/Settings/Integrations/VercelIntegration/VercelSection.tsx
index f4eed0be0eb..6ce319c7812 100644
--- a/studio/components/interfaces/Settings/Integrations/VercelIntegration/VercelSection.tsx
+++ b/studio/components/interfaces/Settings/Integrations/VercelIntegration/VercelSection.tsx
@@ -149,7 +149,7 @@ You can change the scope of the access for Supabase by configuring
onDeleteConnection={onDeleteVercelConnection}
className="!rounded-b-none !mb-0"
/>
- <div className="relative pl-8 ml-6 border-l border-scale-600 dark:border-scale-400 pb-6">
+ <div className="relative pl-8 ml-6 border-l border-muted pb-6">
<div className="border-b border-l border-r rounded-b-lg">
<VercelIntegrationConnectionForm
connection={connection}
@@ -188,7 +188,7 @@ You can change the scope of the access for Supabase by configuring
</div>
)}
{VercelContentSectionBottom && (
- <Markdown content={VercelContentSectionBottom} className="text-lighter" />
+ <Markdown content={VercelContentSectionBottom} className="text-foreground-lighter" />
)}
</ScaffoldSectionContent>
</ScaffoldSection>
diff --git a/studio/components/interfaces/Settings/Logs/LogSelection.tsx b/studio/components/interfaces/Settings/Logs/LogSelection.tsx
index 9b2d0e49faf..0f317f36980 100644
--- a/studio/components/interfaces/Settings/Logs/LogSelection.tsx
+++ b/studio/components/interfaces/Settings/Logs/LogSelection.tsx
@@ -99,14 +99,14 @@ ${JSON.stringify(fullLog.metadata, null, 2)}
<div
className={[
'relative flex h-full flex-grow flex-col border border-l',
- 'border-panel-border-light dark:border-panel-border-dark',
- 'overflow-y-scroll bg-gray-200',
+ 'border-overlay',
+ 'overflow-y-scroll bg-background',
].join(' ')}
>
<div
className={
`absolute flex
- h-full w-full flex-col items-center justify-center gap-2 overflow-y-scroll bg-scale-200 text-center opacity-0 transition-all ` +
+ h-full w-full flex-col items-center justify-center gap-2 overflow-y-scroll bg-background text-center opacity-0 transition-all ` +
(partialLog ? 'z-0 opacity-0' : 'z-10 opacity-100')
}
>
@@ -126,8 +126,8 @@ ${JSON.stringify(fullLog.metadata, null, 2)}
(partialLog || isLoading ? 'mt-0 scale-95 opacity-0' : 'mt-8 scale-100 opacity-100')
}
>
- <div className="relative flex h-4 w-32 items-center rounded border border-scale-600 px-2 dark:border-scale-400">
- <div className="h-0.5 w-2/3 rounded-full bg-scale-600 dark:bg-scale-500"></div>
+ <div className="relative flex h-4 w-32 items-center rounded border border-control px-2">
+ <div className="h-0.5 w-2/3 rounded-full bg-surface-300"></div>
<div className="absolute right-1 -bottom-4">
<svg
xmlns="http://www.w3.org/2000/svg"
@@ -154,7 +154,7 @@ ${JSON.stringify(fullLog.metadata, null, 2)}
</div>
</div>
</div>
- <div className="relative h-px flex-grow bg-scale-300">
+ <div className="relative h-px flex-grow bg-surface-100">
<div className="pt-4 px-4 flex flex-col gap-4">
<div className="flex flex-row justify-between items-center">
<div className={`transition ${!isLoading ? 'opacity-100' : 'opacity-0'}`}>
@@ -168,10 +168,10 @@ ${JSON.stringify(fullLog.metadata, null, 2)}
<IconX size={14} strokeWidth={2} className="text-foreground-lighter" />
</Button>
</div>
- <div className="h-px w-full bg-scale-600 rounded " />
+ <div className="h-px w-full bg-selection rounded " />
</div>
{isLoading && <Connecting />}
- <div className="flex flex-col space-y-6 bg-scale-300 py-4">
+ <div className="flex flex-col space-y-6 bg-surface-100 py-4">
{!isLoading && <Formatter />}
</div>
</div>
diff --git a/studio/components/interfaces/Settings/Logs/LogTable.tsx b/studio/components/interfaces/Settings/Logs/LogTable.tsx
index 79e76291833..7b748cc5b60 100644
--- a/studio/components/interfaces/Settings/Logs/LogTable.tsx
+++ b/studio/components/interfaces/Settings/Logs/LogTable.tsx
@@ -161,7 +161,7 @@ const LogTable = ({
}
const LogsExplorerTableHeader = () => (
- <div className="flex w-full items-center justify-between rounded-tl rounded-tr border-t border-l border-r bg-scale-100 px-5 py-2 dark:bg-scale-300">
+ <div className="flex w-full items-center justify-between rounded-tl rounded-tr border-t border-l border-r bg-surface-100 px-5 py-2">
<div className="flex items-center gap-2">
{data && data.length ? (
<>
@@ -216,8 +216,8 @@ const LogTable = ({
const renderNoResultAlert = () => (
<div className="mt-16 flex scale-100 flex-col items-center justify-center gap-6 text-center opacity-100">
<div className="flex flex-col gap-1">
- <div className="relative flex h-4 w-32 items-center rounded border border-dashed border-scale-600 px-2 dark:border-scale-900"></div>
- <div className="relative flex h-4 w-32 items-center rounded border border-dashed border-scale-600 px-2 dark:border-scale-900">
+ <div className="relative flex h-4 w-32 items-center rounded border border-dashed border-stronger px-2"></div>
+ <div className="relative flex h-4 w-32 items-center rounded border border-dashed border-stronger px-2">
<div className="absolute right-1 -bottom-4 text-foreground-light">
<svg
xmlns="http://www.w3.org/2000/svg"
@@ -273,8 +273,8 @@ const LogTable = ({
[
'font-mono tracking-tight',
isEqual(row, focusedLog)
- ? '!bg-scale-800 rdg-row--focused'
- : ' !bg-scale-200 hover:!bg-scale-300 cursor-pointer',
+ ? '!bg-border-stronger rdg-row--focused'
+ : ' !bg-background hover:!bg-surface-100 cursor-pointer',
].join(' ')
}
rows={logDataRows}
diff --git a/studio/components/interfaces/Settings/Logs/Logs.SavedQueriesItem.tsx b/studio/components/interfaces/Settings/Logs/Logs.SavedQueriesItem.tsx
index 65cb8967e58..e1a9861eb03 100644
--- a/studio/components/interfaces/Settings/Logs/Logs.SavedQueriesItem.tsx
+++ b/studio/components/interfaces/Settings/Logs/Logs.SavedQueriesItem.tsx
@@ -53,7 +53,7 @@ const SavedQueriesItem = ({ item }: SavedQueriesItemProps) => {
<Table.td
className={`${
expand ? ' h-auto opacity-100' : 'h-0 opacity-0'
- } expanded-row-content border-l border-r bg-scale-100 !pt-0 !pb-0 transition-all`}
+ } expanded-row-content border-l border-r bg-alternative !pt-0 !pb-0 transition-all`}
colSpan={5}
>
{expand && <SqlSnippetCode>{item.content.sql}</SqlSnippetCode>}
diff --git a/studio/components/interfaces/Settings/Logs/LogsFilterPopover.tsx b/studio/components/interfaces/Settings/Logs/LogsFilterPopover.tsx
index 019fd19e3e9..9ea68f0d0e2 100644
--- a/studio/components/interfaces/Settings/Logs/LogsFilterPopover.tsx
+++ b/studio/components/interfaces/Settings/Logs/LogsFilterPopover.tsx
@@ -65,7 +65,7 @@ const LogsFilterPopover: React.FC<Props> = ({
</React.Fragment>
))}
</div>
- <div className="flex items-center justify-end gap-2 border-t border-scale-400 bg-scale-200 py-2 px-3 dark:border-scale-500 dark:bg-scale-400 ">
+ <div className="flex items-center justify-end gap-2 border-t border-default bg-background py-2 px-3">
<Button size="tiny" type="default" onClick={handleReset} htmlType="button">
Clear
</Button>
diff --git a/studio/components/interfaces/Settings/Logs/LogsFormatters.tsx b/studio/components/interfaces/Settings/Logs/LogsFormatters.tsx
index 28a737de33d..4e4841d043e 100644
--- a/studio/components/interfaces/Settings/Logs/LogsFormatters.tsx
+++ b/studio/components/interfaces/Settings/Logs/LogsFormatters.tsx
@@ -60,7 +60,7 @@ export const ResponseCodeFormatter = ({ value }: any) => {
if (!value) {
return (
<div>
- <label className="text-xs text-scale-800">No data</label>
+ <label className="text-xs text-border-stronger">No data</label>
</div>
)
}
@@ -73,11 +73,7 @@ export const ResponseCodeFormatter = ({ value }: any) => {
case '2':
return (
<div className="flex h-full items-center">
- <div
- className="relative flex h-6 items-center justify-center rounded border bg-scale-500 px-2
- py-1 text-center dark:bg-scale-400
- "
- >
+ <div className="relative flex h-6 items-center justify-center rounded border bg-surface-200 px-2 py-1 text-center">
<label className="block font-mono text-sm text-foreground-lighter">{value}</label>
</div>
</div>
@@ -121,7 +117,7 @@ export const ResponseCodeFormatter = ({ value }: any) => {
return (
<div className="flex h-full items-center">
<div
- className="relative flex h-6 items-center justify-center rounded bg-scale-300 px-2 py-1
+ className="relative flex h-6 items-center justify-center rounded bg-surface-100 px-2 py-1
text-center
"
@@ -150,7 +146,7 @@ export const SeverityFormatter = ({
if (!value) {
return (
<div>
- <label className="text-xs text-scale-800">No data</label>
+ <label className="text-xs text-border-stronger">No data</label>
</div>
)
}
@@ -216,7 +212,7 @@ export const SeverityFormatter = ({
default:
return (
<Layout>
- <div className="relative rounded px-2 py-1 text-center h-6 flex justify-center items-center bg-scale-300">
+ <div className="relative rounded px-2 py-1 text-center h-6 flex justify-center items-center bg-surface-100">
<label className="block font-mono text-sm text-foreground-lighter">{text}</label>
</div>
</Layout>
diff --git a/studio/components/interfaces/Settings/Logs/LogsQueryPanel.tsx b/studio/components/interfaces/Settings/Logs/LogsQueryPanel.tsx
index 245e9211ddc..4e95691ef33 100644
--- a/studio/components/interfaces/Settings/Logs/LogsQueryPanel.tsx
+++ b/studio/components/interfaces/Settings/Logs/LogsQueryPanel.tsx
@@ -78,7 +78,7 @@ const LogsQueryPanel = ({
.map(([, value]) => value)
return (
- <div className="rounded rounded-bl-none rounded-br-none border border-panel-border-light bg-panel-header-light dark:border-panel-border-dark dark:bg-panel-header-dark">
+ <div className="rounded rounded-bl-none rounded-br-none border border-overlay bg-surface-100">
<div className="flex w-full items-center justify-between px-5 py-2">
<div className="flex w-full flex-row items-center justify-between gap-x-4">
<div className="flex items-center gap-2">
@@ -181,8 +181,8 @@ const LogsQueryPanel = ({
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">
diff --git a/studio/components/interfaces/Settings/Logs/RecentQueriesItem.tsx b/studio/components/interfaces/Settings/Logs/RecentQueriesItem.tsx
index 89ca5bcd51b..11925c422cd 100644
--- a/studio/components/interfaces/Settings/Logs/RecentQueriesItem.tsx
+++ b/studio/components/interfaces/Settings/Logs/RecentQueriesItem.tsx
@@ -15,7 +15,7 @@ const RecentQueriesItem: React.FC<Props> = ({ item }) => {
return (
<Table.tr key={item.sql}>
<Table.td
- className={`expanded-row-content border-l border-r bg-scale-100 !px-3 !pt-0 !pb-0 transition-all`}
+ className={`expanded-row-content border-l border-r bg-alternative !px-3 !pt-0 !pb-0 transition-all`}
>
<SqlSnippetCode>{item.sql}</SqlSnippetCode>
</Table.td>
diff --git a/studio/components/interfaces/Settings/Logs/UpgradePrompt.tsx b/studio/components/interfaces/Settings/Logs/UpgradePrompt.tsx
index 9c985f50de8..bddf214365d 100644
--- a/studio/components/interfaces/Settings/Logs/UpgradePrompt.tsx
+++ b/studio/components/interfaces/Settings/Logs/UpgradePrompt.tsx
@@ -29,7 +29,7 @@ const UpgradePrompt: React.FC<Props> = ({ show, setShowUpgradePrompt }) => {
Logs can be retained up to a duration of 3 months depending on the plan that your
project is on.
</p>
- <div className="border-scale-600 bg-scale-500 rounded border">
+ <div className="border-control bg-surface-300 rounded border">
<div className="flex items-center px-4 pt-2 pb-1">
<p className="text-foreground-light w-[40%] text-sm">Plan</p>
<p className="text-foreground-light w-[60%] text-sm">Retention duration</p>
diff --git a/studio/components/interfaces/Settings/Vault/Keys/EncryptionKeysManagement.tsx b/studio/components/interfaces/Settings/Vault/Keys/EncryptionKeysManagement.tsx
index 3968441d78c..7c2d5d03e29 100644
--- a/studio/components/interfaces/Settings/Vault/Keys/EncryptionKeysManagement.tsx
+++ b/studio/components/interfaces/Settings/Vault/Keys/EncryptionKeysManagement.tsx
@@ -165,8 +165,8 @@ const EncryptionKeysManagement = () => {
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">
@@ -181,7 +181,7 @@ const EncryptionKeysManagement = () => {
</div>
{/* Table of keys */}
- <div className="border border-scale-500 rounded">
+ <div className="border rounded">
{!vault.isLoaded ? (
<div className="px-6 py-6 space-x-2 flex items-center justify-center">
<IconLoader
@@ -232,8 +232,8 @@ const EncryptionKeysManagement = () => {
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">
diff --git a/studio/components/interfaces/Settings/Vault/Secrets/SecretRow.tsx b/studio/components/interfaces/Settings/Vault/Secrets/SecretRow.tsx
index 1c7d1a14382..1ed7152dd87 100644
--- a/studio/components/interfaces/Settings/Vault/Secrets/SecretRow.tsx
+++ b/studio/components/interfaces/Settings/Vault/Secrets/SecretRow.tsx
@@ -133,8 +133,8 @@ const SecretRow = ({ secret, onSelectEdit, onSelectRemove }: SecretRowProps) =>
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">
@@ -154,7 +154,7 @@ const SecretRow = ({ secret, onSelectEdit, onSelectRemove }: SecretRowProps) =>
onClick={() => onSelectRemove(secret)}
>
<IconTrash stroke="red" size="tiny" />
- <p className="text-light">Delete</p>
+ <p className="text-foreground-light">Delete</p>
</DropdownMenuItem>
</Tooltip.Trigger>
{!canManageSecrets && (
@@ -163,8 +163,8 @@ const SecretRow = ({ secret, onSelectEdit, onSelectRemove }: SecretRowProps) =>
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">
diff --git a/studio/components/interfaces/Settings/Vault/Secrets/SecretsManagement.tsx b/studio/components/interfaces/Settings/Vault/Secrets/SecretsManagement.tsx
index 22ca0db7859..8179a6cf27d 100644
--- a/studio/components/interfaces/Settings/Vault/Secrets/SecretsManagement.tsx
+++ b/studio/components/interfaces/Settings/Vault/Secrets/SecretsManagement.tsx
@@ -127,8 +127,8 @@ const SecretsManagement = () => {
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">
@@ -143,7 +143,7 @@ const SecretsManagement = () => {
</div>
{/* Table of secrets */}
- <div className="border border-scale-500 rounded">
+ <div className="border border-default rounded">
{!vault.isLoaded ? (
<div className="px-6 py-6 space-x-2 flex items-center justify-center">
<IconLoader
diff --git a/studio/components/interfaces/Settings/Vault/VaultToggle.tsx b/studio/components/interfaces/Settings/Vault/VaultToggle.tsx
index 234b4459e21..7c5efa618a9 100644
--- a/studio/components/interfaces/Settings/Vault/VaultToggle.tsx
+++ b/studio/components/interfaces/Settings/Vault/VaultToggle.tsx
@@ -60,7 +60,7 @@ const VaultToggle = () => {
return (
<div>
<div
- className="px-12 py-12 w-full bg-white dark:bg-scale-200 border border-scale-500 rounded bg-no-repeat"
+ className="px-12 py-12 w-full bg-background border rounded bg-no-repeat"
style={{
backgroundSize: isNotAvailable ? '50%' : '40%',
backgroundPosition: '100% 24%',
@@ -80,7 +80,7 @@ const VaultToggle = () => {
</div>
{isNotAvailable ? (
<div className="space-y-4">
- <div className="rounded border border-scale-500 px-4 py-2 flex items-center justify-between">
+ <div className="rounded border px-4 py-2 flex items-center justify-between">
<div>
<p className="text-foreground-light text-sm">
Vault is not available for this project yet.
@@ -133,8 +133,8 @@ const VaultToggle = () => {
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">
diff --git a/studio/components/interfaces/Storage/CreateBucketModal.tsx b/studio/components/interfaces/Storage/CreateBucketModal.tsx
index a9ad0db92fd..26ac9636e9b 100644
--- a/studio/components/interfaces/Storage/CreateBucketModal.tsx
+++ b/studio/components/interfaces/Storage/CreateBucketModal.tsx
@@ -158,7 +158,7 @@ const CreateBucketModal = ({ visible, onClose }: CreateBucketModalProps) => {
onOpenChange={() => setShowConfiguration(!showConfiguration)}
>
<Collapsible.Trigger asChild>
- <div className="w-full cursor-pointer py-3 px-5 flex items-center justify-between border-t border-scale-500">
+ <div className="w-full cursor-pointer py-3 px-5 flex items-center justify-between border-t border-default">
<p className="text-sm">Additional configuration</p>
<IconChevronDown
size={18}
@@ -239,7 +239,7 @@ const CreateBucketModal = ({ visible, onClose }: CreateBucketModalProps) => {
</div>
</Collapsible.Content>
</Collapsible>
- <div className="w-full border-t border-scale-500 !mt-0" />
+ <div className="w-full border-t border-default !mt-0" />
<Modal.Content>
<div className="flex items-center space-x-2 justify-end">
<Button
diff --git a/studio/components/interfaces/Storage/EditBucketModal.tsx b/studio/components/interfaces/Storage/EditBucketModal.tsx
index 6e3bfc72e52..4cd82df1fe9 100644
--- a/studio/components/interfaces/Storage/EditBucketModal.tsx
+++ b/studio/components/interfaces/Storage/EditBucketModal.tsx
@@ -163,7 +163,7 @@ const EditBucketModal = ({ visible, bucket, onClose }: EditBucketModalProps) =>
onOpenChange={() => setShowConfiguration(!showConfiguration)}
>
<Collapsible.Trigger asChild>
- <div className="w-full cursor-pointer py-3 px-5 flex items-center justify-between border-t border-scale-500">
+ <div className="w-full cursor-pointer py-3 px-5 flex items-center justify-between border-t border-default">
<p className="text-sm">Additional configuration</p>
<IconChevronDown
size={18}
@@ -245,7 +245,7 @@ const EditBucketModal = ({ visible, bucket, onClose }: EditBucketModalProps) =>
</div>
</Collapsible.Content>
</Collapsible>
- <div className="w-full border-t border-scale-500 !mt-0" />
+ <div className="w-full border-t border-default !mt-0" />
<Modal.Content>
<div className="flex items-center space-x-2 justify-end">
<Button type="default" disabled={isUpdating} onClick={() => onClose()}>
diff --git a/studio/components/interfaces/Support/SupportForm.tsx b/studio/components/interfaces/Support/SupportForm.tsx
index a2f1d7676cf..6c724f2e3c8 100644
--- a/studio/components/interfaces/Support/SupportForm.tsx
+++ b/studio/components/interfaces/Support/SupportForm.tsx
@@ -550,7 +550,7 @@ const SupportForm = ({ setSentCategory }: SupportFormProps) => {
return (
<div
key={library.name}
- className="w-[230px] min-w-[230px] min-h-[128px] rounded border border-scale-600 bg-scale-300 space-y-3 px-4 py-3"
+ className="w-[230px] min-w-[230px] min-h-[128px] rounded border border-control bg-surface-100 space-y-3 px-4 py-3"
>
<div className="space-y-1">
<p className="text-sm">{library.name}</p>
@@ -574,7 +574,7 @@ const SupportForm = ({ setSentCategory }: SupportFormProps) => {
})}
<div
className={[
- 'px-4 py-3 rounded border border-scale-600 bg-scale-300',
+ 'px-4 py-3 rounded border border-control bg-surface-100',
'w-[230px] min-w-[230px] min-h-[128px] flex flex-col justify-between space-y-3',
].join(' ')}
>
@@ -678,7 +678,7 @@ const SupportForm = ({ setSentCategory }: SupportFormProps) => {
{uploadedFiles.length < MAX_ATTACHMENTS && (
<div
className={[
- 'border border-scale-800 opacity-50 transition hover:opacity-100',
+ 'border border-stronger opacity-50 transition hover:opacity-100',
'group flex h-14 w-14 cursor-pointer items-center justify-center rounded',
].join(' ')}
onClick={() => {
diff --git a/studio/components/interfaces/TableGridEditor/GridHeaderActions.tsx b/studio/components/interfaces/TableGridEditor/GridHeaderActions.tsx
index 38397dcf28b..366343a7e91 100644
--- a/studio/components/interfaces/TableGridEditor/GridHeaderActions.tsx
+++ b/studio/components/interfaces/TableGridEditor/GridHeaderActions.tsx
@@ -116,7 +116,7 @@ const GridHeaderActions = ({ table, openAPIDocsPanel, refreshDocs }: GridHeaderA
{isReadOnly && (
<Tooltip.Root delayDuration={0}>
<Tooltip.Trigger className="w-full">
- <div className="border border-scale-700 rounded bg-scale-500 px-3 py-1 text-xs">
+ <div className="border border-strong rounded bg-overlay-hover px-3 py-1 text-xs">
Viewing as read-only
</div>
</Tooltip.Trigger>
@@ -125,8 +125,8 @@ const GridHeaderActions = ({ table, openAPIDocsPanel, refreshDocs }: GridHeaderA
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">
@@ -164,7 +164,7 @@ const GridHeaderActions = ({ table, openAPIDocsPanel, refreshDocs }: GridHeaderA
icon={
<MousePointer2
size={14}
- className={isRealtimeEnabled ? 'text-brand' : 'text-lighter'}
+ className={isRealtimeEnabled ? 'text-brand' : 'text-foreground-lighter'}
/>
}
onClick={() => setShowEnableRealtime(true)}
diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/ActionBar.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/ActionBar.tsx
index d2982076bf7..c2cc35bd3c6 100644
--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/ActionBar.tsx
+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/ActionBar.tsx
@@ -35,7 +35,7 @@ const ActionBar = ({
}
return (
- <div className="flex w-full justify-end space-x-3 border-t border-scale-500 px-3 py-4">
+ <div className="flex w-full justify-end space-x-3 border-t border-default px-3 py-4">
<Button
size="small"
type="default"
diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/InputWithSuggestions.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/InputWithSuggestions.tsx
index c8d6642170a..7c3828f155b 100644
--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/InputWithSuggestions.tsx
+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/InputWithSuggestions.tsx
@@ -108,8 +108,8 @@ const InputWithSuggestions = ({
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'bg-scale-100 rounded py-1 px-2 leading-none shadow',
- 'border-scale-200 border',
+ 'bg-alternative rounded py-1 px-2 leading-none shadow',
+ 'border-background border',
].join(' ')}
>
<span className="text-foreground text-xs">
diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/ForeignKeySelector/ForeignKeySelector.utils.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/ForeignKeySelector/ForeignKeySelector.utils.tsx
index 85c2820d204..16226850d80 100644
--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/ForeignKeySelector/ForeignKeySelector.utils.tsx
+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/ForeignKeySelector/ForeignKeySelector.utils.tsx
@@ -43,8 +43,8 @@ export const generateCascadeActionDescription = (
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'w-[300px] space-y-2 border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'w-[300px] space-y-2 border border-background',
].join(' ')}
>
<p className="text-xs text-foreground">
diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ForeignRowSelector/ForeignRowSelector.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ForeignRowSelector/ForeignRowSelector.tsx
index 3425573402d..d4e213bdc52 100644
--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ForeignRowSelector/ForeignRowSelector.tsx
+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ForeignRowSelector/ForeignRowSelector.tsx
@@ -163,7 +163,7 @@ const ForeignRowSelector = ({
onRowSelect={(row) => onSelect(row[columnName ?? ''])}
/>
) : (
- <div className="flex h-full items-center justify-center border-b border-t border-scale-500">
+ <div className="flex h-full items-center justify-center border-b border-t border-default">
<span className="text-foreground-light text-sm">No Rows Found</span>
</div>
)}
diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ForeignRowSelector/SelectorGrid.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ForeignRowSelector/SelectorGrid.tsx
index 5af042fd449..d27be3f85ce 100644
--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ForeignRowSelector/SelectorGrid.tsx
+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ForeignRowSelector/SelectorGrid.tsx
@@ -27,7 +27,7 @@ const columnRender = (name: string, isPrimaryKey = false) => {
<Tooltip.Portal>
<Tooltip.Content side="bottom">
<Tooltip.Arrow className="radix-tooltip-arrow" />
- <div className="rounded bg-scale-100 py-1 px-2 leading-none shadow border border-scale-200">
+ <div className="rounded bg-alternative py-1 px-2 leading-none shadow border border-background">
<span className="text-xs text-foreground">Primary key</span>
</div>
</Tooltip.Content>
diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImportPreview.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImportPreview.tsx
index 5fb93a5d7ff..31fae8ea413 100644
--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImportPreview.tsx
+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImportPreview.tsx
@@ -101,7 +101,7 @@ const SpreadsheetImportPreview = ({
{previewHeaders.length > 0 && previewRows.length > 0 ? (
<SpreadsheetPreviewGrid height={350} headers={previewHeaders} rows={previewRows} />
) : (
- <div className="flex items-center justify-center py-4 border border-scale-600 rounded-md space-x-2">
+ <div className="flex items-center justify-center py-4 border border-control rounded-md space-x-2">
<IconAlertCircle size={16} strokeWidth={1.5} className="text-foreground-light" />
<p className="text-sm text-foreground-light">
{previewHeaders.length === 0
@@ -130,7 +130,7 @@ const SpreadsheetImportPreview = ({
<div className="space-y-2">
<div className="flex items-start space-x-2">
<div className="w-[14px] h-[14px] flex items-center justify-center translate-y-[3px]">
- <div className="w-[6px] h-[6px] rounded-full bg-scale-1000" />
+ <div className="w-[6px] h-[6px] rounded-full bg-foreground-lighter" />
</div>
<p className="text-sm">
This CSV <span className="text-red-900">cannot</span> be imported into your
@@ -160,7 +160,7 @@ const SpreadsheetImportPreview = ({
/>
) : (
<div className="w-[14px] h-[14px] flex items-center justify-center">
- <div className="w-[6px] h-[6px] rounded-full bg-scale-1000" />
+ <div className="w-[6px] h-[6px] rounded-full bg-foreground-lighter" />
</div>
)}
{error.data !== undefined && (
diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/Column.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/Column.tsx
index a1c31a019ae..731a07f64d9 100644
--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/Column.tsx
+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/Column.tsx
@@ -107,8 +107,8 @@ const Column = ({
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow', // background
- 'border border-scale-200 ', //border
+ 'rounded bg-alternative py-1 px-2 leading-none shadow', // background
+ 'border border-background', //border
].join(' ')}
>
{column.foreignKey === undefined ? (
@@ -262,7 +262,7 @@ const Column = ({
>
<div className="group flex items-center -space-x-1">
{settingsCount > 0 && (
- <div className="rounded-full bg-scale-1200 py-0.5 px-2 text-xs text-scale-100 dark:bg-scale-100 dark:text-foreground-light">
+ <div className="rounded-full bg-foreground py-0.5 px-2 text-xs text-background">
{settingsCount}
</div>
)}
diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ColumnManagement.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ColumnManagement.tsx
index e5323822217..ddf764cd3e4 100644
--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ColumnManagement.tsx
+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ColumnManagement.tsx
@@ -206,8 +206,8 @@ const ColumnManagement = ({
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow', // background
- 'border border-scale-200 ', //border
+ 'rounded bg-alternative py-1 px-2 leading-none shadow', // background
+ 'border border-background', //border
].join(' ')}
>
<span className="text-xs text-foreground">
@@ -236,8 +236,8 @@ const ColumnManagement = ({
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow', // background
- 'border border-scale-200 ', //border
+ 'rounded bg-alternative py-1 px-2 leading-none shadow', // background
+ 'border border-background', //border
].join(' ')}
>
<span className="text-xs text-foreground">
@@ -266,7 +266,7 @@ const ColumnManagement = ({
{(droppableProvided: DroppableProvided) => (
<div
ref={droppableProvided.innerRef}
- className={`space-y-2 rounded-md bg-gray-400 px-3 py-2 ${
+ className={`space-y-2 rounded-md bg-surface-200 px-3 py-2 ${
isNewRecord ? '' : '-mx-3'
}`}
>
diff --git a/studio/components/interfaces/TableGridEditor/TableDefinition.tsx b/studio/components/interfaces/TableGridEditor/TableDefinition.tsx
index 7e2747b48ba..57a4efd12ec 100644
--- a/studio/components/interfaces/TableGridEditor/TableDefinition.tsx
+++ b/studio/components/interfaces/TableGridEditor/TableDefinition.tsx
@@ -102,7 +102,7 @@ const TableDefinition = ({ id }: TableDefinitionProps) => {
}
return (
- <div className="flex-grow overflow-y-auto border-t border-scale-400 relative">
+ <div className="flex-grow overflow-y-auto border-t border-muted relative">
<Button asChild type="default" className="absolute top-2 right-5 z-10">
<Link
href={`/project/${ref}/sql/new?content=${encodeURIComponent(formattedDefinition ?? '')}`}
diff --git a/studio/components/interfaces/TableGridEditor/TableGridEditor.tsx b/studio/components/interfaces/TableGridEditor/TableGridEditor.tsx
index 8797b9a1d1c..83f77f49a8e 100644
--- a/studio/components/interfaces/TableGridEditor/TableGridEditor.tsx
+++ b/studio/components/interfaces/TableGridEditor/TableGridEditor.tsx
@@ -342,7 +342,7 @@ const TableGridEditor = ({
{(isTableSelected || isViewSelected) && (
<>
{canEditViaTableEditor && (
- <div className="h-[20px] w-px border-r border-scale-600"></div>
+ <div className="h-[20px] w-px border-r border-control"></div>
)}
<div>
<TwoOptionToggle
diff --git a/studio/components/layouts/AccountLayout/SidebarItem.tsx b/studio/components/layouts/AccountLayout/SidebarItem.tsx
index 4970c20657a..76892132a1e 100644
--- a/studio/components/layouts/AccountLayout/SidebarItem.tsx
+++ b/studio/components/layouts/AccountLayout/SidebarItem.tsx
@@ -46,7 +46,7 @@ const SidebarItem = ({
<Link href={href || ''} className="block" target={isExternal ? '_blank' : '_self'}>
<button
className={[
- 'group border-scale-500 ring-scale-1200 group-hover:border-scale-900',
+ 'group border-default ring-foreground group-hover:border-foreground-muted',
'flex max-w-full cursor-pointer items-center space-x-2 py-1 font-normal',
'outline-none focus-visible:z-10 focus-visible:ring-1',
].join(' ')}
diff --git a/studio/components/layouts/AccountLayout/WithSidebar.tsx b/studio/components/layouts/AccountLayout/WithSidebar.tsx
index 2698722a9fa..8fec61cb930 100644
--- a/studio/components/layouts/AccountLayout/WithSidebar.tsx
+++ b/studio/components/layouts/AccountLayout/WithSidebar.tsx
@@ -50,13 +50,13 @@ const WithSidebar = ({
id="with-sidebar"
style={{ height: maxHeight, maxHeight }}
className={[
- 'h-full bg-body',
- 'hide-scrollbar w-64 overflow-auto border-r border-scale-500',
+ 'h-full bg-background',
+ 'hide-scrollbar w-64 overflow-auto border-r border-default',
].join(' ')}
>
{title && (
<div className="mb-2">
- <div className="flex h-12 max-h-12 items-center border-b px-6 border-scale-500">
+ <div className="flex h-12 max-h-12 items-center border-b px-6 border-default">
<h4 className="mb-0 text-lg truncate" title={title}>
{title}
</h4>
@@ -76,7 +76,7 @@ const WithSidebar = ({
subitemsParentKey={subitemsParentKey}
/>
) : (
- <div className="border-b py-5 px-6 border-scale-400" key={section.key}>
+ <div className="border-b py-5 px-6 border-default" key={section.key}>
<SidebarItem
links={section.links}
subitems={subitems}
@@ -105,7 +105,7 @@ interface SectionWithHeadersProps {
}
const SectionWithHeaders = ({ section, subitems, subitemsParentKey }: SectionWithHeadersProps) => (
- <div key={section.heading} className="border-b py-5 px-6 border-scale-500">
+ <div key={section.heading} className="border-b py-5 px-6 border-default">
{section.heading && <Menu.Group title={section.heading} />}
{section.versionLabel && (
<div className="mb-1 px-3">
@@ -207,7 +207,7 @@ const SidebarLinkItem = ({
return (
<Link href={href || ''} className="block" target={isExternal ? '_blank' : '_self'}>
- <span className="group flex max-w-full cursor-pointer items-center space-x-2 border-scale-500 py-1 font-normal outline-none ring-scale-1200 focus-visible:z-10 focus-visible:ring-1 group-hover:border-scale-900">
+ <span className="group flex max-w-full cursor-pointer items-center space-x-2 border-default py-1 font-normal outline-none ring-foreground focus-visible:z-10 focus-visible:ring-1 group-hover:border-foreground-muted">
{isExternal && (
<span className="truncate text-sm text-foreground-lighter transition group-hover:text-foreground-light">
<IconArrowUpRight size={'tiny'} />
diff --git a/studio/components/layouts/AppLayout/AppHeader.tsx b/studio/components/layouts/AppLayout/AppHeader.tsx
index 0ffea0c2378..fc1e317dd74 100644
--- a/studio/components/layouts/AppLayout/AppHeader.tsx
+++ b/studio/components/layouts/AppLayout/AppHeader.tsx
@@ -24,7 +24,7 @@ const AppHeader = () => {
project?.is_branch_enabled === true || project?.parent_project_ref !== undefined
return (
- <div className="flex items-center justify-between px-4 py-1 bg-scale-200 border-b">
+ <div className="flex items-center justify-between px-4 py-1 bg-background border-b">
<div className="flex items-center space-x-1">
<Link
href={organization !== undefined ? `/org/${organization?.slug}` : '/'}
diff --git a/studio/components/layouts/AppLayout/EnableBranchingButton/BranchingWaitlistPopover.tsx b/studio/components/layouts/AppLayout/EnableBranchingButton/BranchingWaitlistPopover.tsx
index ee1139cc016..b8ce7ed1e49 100644
--- a/studio/components/layouts/AppLayout/EnableBranchingButton/BranchingWaitlistPopover.tsx
+++ b/studio/components/layouts/AppLayout/EnableBranchingButton/BranchingWaitlistPopover.tsx
@@ -34,7 +34,7 @@ const BranchingWaitlistPopover = ({ isNewNav = false }: BranchingWaitlistPopover
<IconGitBranch strokeWidth={2} />
<p>Database Branching</p>
</div>
- <p className="text-xs text-light">
+ <p className="text-xs text-foreground-light">
Register for early access and you'll be contacted by email when your organization is
enrolled in database branching.
</p>
diff --git a/studio/components/layouts/AppLayout/EnableBranchingButton/EnableBranchingModal.tsx b/studio/components/layouts/AppLayout/EnableBranchingButton/EnableBranchingModal.tsx
index b35f761c6e9..ca7f49af6e3 100644
--- a/studio/components/layouts/AppLayout/EnableBranchingButton/EnableBranchingModal.tsx
+++ b/studio/components/layouts/AppLayout/EnableBranchingButton/EnableBranchingModal.tsx
@@ -120,7 +120,7 @@ const EnableBranchingModal = () => {
<IconGitBranch strokeWidth={2} size={20} />
<div>
<p className="text-foreground">Enable database branching</p>
- <p className="text-sm text-light">Manage environments in Supabase</p>
+ <p className="text-sm text-foreground-light">Manage environments in Supabase</p>
</div>
</Modal.Content>
@@ -155,7 +155,7 @@ const EnableBranchingModal = () => {
)}
<Modal.Content className="px-7 py-6 flex flex-col gap-3">
- <p className="text-sm text-light">Please keep in mind the following:</p>
+ <p className="text-sm text-foreground-light">Please keep in mind the following:</p>
<div className="flex flex-row gap-4">
<div>
<figure className="w-10 h-10 rounded-md bg-warning-200 border border-warning-300 flex items-center justify-center">
@@ -166,7 +166,7 @@ const EnableBranchingModal = () => {
<p className="text-sm text-foreground">
You will not be able to use the dashboard to make changes to the database
</p>
- <p className="text-sm text-light">
+ <p className="text-sm text-foreground-light">
Schema changes for database preview branches must be done via Git. We are
nonetheless working on allowing the dashboard to make schema changes for preview
branches.
diff --git a/studio/components/layouts/AppLayout/EnableBranchingButton/GithubRepositorySelection.tsx b/studio/components/layouts/AppLayout/EnableBranchingButton/GithubRepositorySelection.tsx
index 62f6e1d8393..05e34dbde57 100644
--- a/studio/components/layouts/AppLayout/EnableBranchingButton/GithubRepositorySelection.tsx
+++ b/studio/components/layouts/AppLayout/EnableBranchingButton/GithubRepositorySelection.tsx
@@ -72,7 +72,7 @@ const GithubRepositorySelection = ({
<p>Git Connection</p>
<Badge color="amber">Required</Badge>
</div>
- <p className="text-sm text-light !mb-4">
+ <p className="text-sm text-foreground-light !mb-4">
{githubConnection !== undefined
? 'Your database preview branches will be based on the branches in the following repository that your project is connected with:'
: 'Your database preview branches will be based on the branches in the Git repository that your project is connected with.'}
diff --git a/studio/components/layouts/AppLayout/EnableBranchingButton/VercelProjectSelection.tsx b/studio/components/layouts/AppLayout/EnableBranchingButton/VercelProjectSelection.tsx
index 82fe1fcb783..ea04603e0bb 100644
--- a/studio/components/layouts/AppLayout/EnableBranchingButton/VercelProjectSelection.tsx
+++ b/studio/components/layouts/AppLayout/EnableBranchingButton/VercelProjectSelection.tsx
@@ -21,7 +21,7 @@ const VercelProjectSelection = ({ integration }: VercelProjectSelectionProps) =>
<p>Frontend Cloud Previews</p>
<Badge color="gray">Optional</Badge>
</div>
- <p className="text-sm text-light">
+ <p className="text-sm text-foreground-light">
Previews can be available by connecting your Supabase project to a Vercel project.
</p>
{!integration && (
diff --git a/studio/components/layouts/AppLayout/IncidentBanner.tsx b/studio/components/layouts/AppLayout/IncidentBanner.tsx
index 49aedbd5722..9b661f3c384 100644
--- a/studio/components/layouts/AppLayout/IncidentBanner.tsx
+++ b/studio/components/layouts/AppLayout/IncidentBanner.tsx
@@ -4,7 +4,7 @@ import { IconExternalLink } from 'ui'
const IncidentBanner = () => {
return (
<Link href="https://status.supabase.com" target="_blank" rel="noreferrer">
- <div className="flex cursor-pointer items-center justify-center space-x-2 bg-green-900 py-3 text-scale-400 transition hover:bg-green-1000 dark:text-foreground">
+ <div className="flex cursor-pointer items-center justify-center space-x-2 bg-green-900 py-3 transition hover:bg-green-1000 text-foreground">
<p className="text-sm font-medium">
We are currently investigating a technical issue, follow status.supabase.com for updates
</p>
diff --git a/studio/components/layouts/AppLayout/SettingsButton.tsx b/studio/components/layouts/AppLayout/SettingsButton.tsx
index 36a909d44ac..6e29d9e4f91 100644
--- a/studio/components/layouts/AppLayout/SettingsButton.tsx
+++ b/studio/components/layouts/AppLayout/SettingsButton.tsx
@@ -19,8 +19,8 @@ const SettingsButton = () => {
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">Organization settings</span>
diff --git a/studio/components/layouts/BillingLayout.tsx b/studio/components/layouts/BillingLayout.tsx
index 29019c6f295..1060cbab0a9 100644
--- a/studio/components/layouts/BillingLayout.tsx
+++ b/studio/components/layouts/BillingLayout.tsx
@@ -24,10 +24,10 @@ const BillingLayout = ({ children }: PropsWithChildren<BillingLayoutProps>) => {
</Link>
<div className="flex items-center space-x-6">
<h1 className="text-sm text-foreground">Customize your plan</h1>
- <div className="h-6 w-px bg-scale-600"></div>
+ <div className="h-6 w-px bg-selection"></div>
<div className="flex items-center space-x-3">
<p className="text-sm text-foreground-light">{selectedOrganization?.name}</p>
- <span className="text-scale-800">
+ <span className="text-border-stronger">
<svg
viewBox="0 0 24 24"
width="16"
diff --git a/studio/components/layouts/IntegrationsLayout/IntegrationWindowLayout.tsx b/studio/components/layouts/IntegrationsLayout/IntegrationWindowLayout.tsx
index bffc38dd6bd..d0c4944c62b 100644
--- a/studio/components/layouts/IntegrationsLayout/IntegrationWindowLayout.tsx
+++ b/studio/components/layouts/IntegrationsLayout/IntegrationWindowLayout.tsx
@@ -28,13 +28,13 @@ const IntegrationWindowLayout = ({
<Header title={title} integrationIcon={integrationIcon} />
<LoadingLine loading={loading} />
<main className="overflow-auto flex flex-col h-full bg">{children}</main>
- <ScaffoldContainer className="bg-body flex flex-row gap-6 py-6 border-t">
+ <ScaffoldContainer className="bg-background flex flex-row gap-6 py-6 border-t">
{docsHref && (
<Link
href={docsHref}
target="_blank"
rel="noopener noreferrer"
- className="flex items-center gap-2 text-xs text-light hover:text"
+ className="flex items-center gap-2 text-xs text-foreground-light hover:text"
>
<IconBook size={16} />
Docs
@@ -74,7 +74,7 @@ const Header = ({ title, integrationIcon }: HeaderProps) => {
<div className="bg-white shadow border rounded p-1 w-8 h-8 flex justify-center items-center">
<img src={`${BASE_PATH}/img/supabase-logo.svg`} alt="Supabase" className="w-4" />
</div>
- <IconX className="text-scale-800" strokeWidth={2} size={16} />
+ <IconX className="text-border-stronger" strokeWidth={2} size={16} />
{integrationIcon}
</div>
<span className="text-sm" title={title}>
diff --git a/studio/components/layouts/ProjectLayout/ConnectingState.tsx b/studio/components/layouts/ProjectLayout/ConnectingState.tsx
index 9743731dd06..4848563293c 100644
--- a/studio/components/layouts/ProjectLayout/ConnectingState.tsx
+++ b/studio/components/layouts/ProjectLayout/ConnectingState.tsx
@@ -52,7 +52,7 @@ const ConnectingState = ({ project }: ConnectingStateProps) => {
</Badge>
</div>
</div>
- <div className="flex h-[500px] items-center justify-center rounded border border-scale-400 bg-scale-300 p-8">
+ <div className="flex h-[500px] items-center justify-center rounded border border-overlay bg-surface-100 p-8">
<div className="w-[440px] space-y-4">
<div className="mx-auto flex max-w-[300px] items-center justify-center">
<div>
@@ -70,7 +70,7 @@ const ConnectingState = ({ project }: ConnectingStateProps) => {
<div className="space-y-1">
<p className="text-center">Connecting to {project.name}</p>
- <p className="text-center text-sm text-light">
+ <p className="text-center text-sm text-foreground-light">
If you are unable to connect after a few minutes, check your project's health to
verify if it's running into any resource constraints.
</p>
diff --git a/studio/components/layouts/ProjectLayout/LayoutHeader/BreadcrumbsView.tsx b/studio/components/layouts/ProjectLayout/LayoutHeader/BreadcrumbsView.tsx
index 47ace2f2963..1dfd39dce30 100644
--- a/studio/components/layouts/ProjectLayout/LayoutHeader/BreadcrumbsView.tsx
+++ b/studio/components/layouts/ProjectLayout/LayoutHeader/BreadcrumbsView.tsx
@@ -11,7 +11,7 @@ const BreadcrumbsView = ({ defaultValue: breadcrumbs }: BreadcrumbsViewProps) =>
{breadcrumbs?.length
? breadcrumbs.map((breadcrumb: any) => (
<Fragment key={breadcrumb.key}>
- <span className="text-scale-800 dark:text-scale-700">
+ <span className="text-border-stronger dark:text-border-strong">
<svg
viewBox="0 0 24 24"
width="16"
diff --git a/studio/components/layouts/ProjectLayout/LayoutHeader/FeedbackDropdown/FeedbackWidget.tsx b/studio/components/layouts/ProjectLayout/LayoutHeader/FeedbackDropdown/FeedbackWidget.tsx
index bc48ae8fe9d..f20c218c99c 100644
--- a/studio/components/layouts/ProjectLayout/LayoutHeader/FeedbackDropdown/FeedbackWidget.tsx
+++ b/studio/components/layouts/ProjectLayout/LayoutHeader/FeedbackDropdown/FeedbackWidget.tsx
@@ -156,7 +156,7 @@ const FeedbackWidget = ({
const blobUrl = URL.createObjectURL(blob)
window.open(blobUrl, '_blank')
}}
- className="cursor-pointer rounded h-[26px] w-[30px] border border-scale-600 relative bg-cover bg-center bg-no-repeat"
+ className="cursor-pointer rounded h-[26px] w-[30px] border border-control relative bg-cover bg-center bg-no-repeat"
>
<button
className={[
diff --git a/studio/components/layouts/ProjectLayout/LayoutHeader/HelpPopover.tsx b/studio/components/layouts/ProjectLayout/LayoutHeader/HelpPopover.tsx
index dbc51fba5d8..c24fed9a3d3 100644
--- a/studio/components/layouts/ProjectLayout/LayoutHeader/HelpPopover.tsx
+++ b/studio/components/layouts/ProjectLayout/LayoutHeader/HelpPopover.tsx
@@ -55,8 +55,8 @@ const HelpPopover = ({ alt = false }: HelpPopoverProps) => {
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'space-y-2 border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'space-y-2 border border-background',
].join(' ')}
>
<p className="text-xs text-foreground">Help</p>
diff --git a/studio/components/layouts/ProjectLayout/LayoutHeader/LayoutHeader.tsx b/studio/components/layouts/ProjectLayout/LayoutHeader/LayoutHeader.tsx
index 9bf3ebcc7af..1902a5935cd 100644
--- a/studio/components/layouts/ProjectLayout/LayoutHeader/LayoutHeader.tsx
+++ b/studio/components/layouts/ProjectLayout/LayoutHeader/LayoutHeader.tsx
@@ -51,7 +51,7 @@ const LayoutHeader = ({ customHeaderComponents, breadcrumbs = [], headerBorder =
return (
<div
className={`flex h-12 max-h-12 items-center justify-between py-2 px-5 ${
- headerBorder ? 'border-b border-scale-500' : ''
+ headerBorder ? 'border-b border-default' : ''
}`}
>
<div className="-ml-2 flex items-center text-sm">
@@ -62,7 +62,7 @@ const LayoutHeader = ({ customHeaderComponents, breadcrumbs = [], headerBorder =
{projectRef && (
<>
- <span className="text-scale-800 dark:text-scale-700">
+ <span className="text-border-stronger dark:text-border-strong">
<svg
viewBox="0 0 24 24"
width="16"
@@ -92,7 +92,7 @@ const LayoutHeader = ({ customHeaderComponents, breadcrumbs = [], headerBorder =
{selectedProject && enableBranchManagement && (
<>
- <span className="text-scale-800 dark:text-scale-700">
+ <span className="text-border-stronger dark:text-border-strong">
<svg
viewBox="0 0 24 24"
width="16"
diff --git a/studio/components/layouts/ProjectLayout/LayoutHeader/NotificationsPopover/index.tsx b/studio/components/layouts/ProjectLayout/LayoutHeader/NotificationsPopover/index.tsx
index 72cd52436a9..840a04b7869 100644
--- a/studio/components/layouts/ProjectLayout/LayoutHeader/NotificationsPopover/index.tsx
+++ b/studio/components/layouts/ProjectLayout/LayoutHeader/NotificationsPopover/index.tsx
@@ -157,7 +157,7 @@ const NotificationsPopover = ({ alt = false }: NotificationsPopoverProps) => {
onOpenChange={onOpenChange}
overlay={
<div className="w-[400px] lg:w-[700px]">
- <div className="flex items-center justify-between border-b border-gray-500 bg-gray-400 px-4 py-2">
+ <div className="flex items-center justify-between border-b border-default bg-surface-200 px-4 py-2">
<p className="text-sm">Notifications</p>
{/* Area for improvement: Paginate notifications and show in a side panel */}
{/* <p className="text-foreground-light hover:text-foreground cursor-pointer text-sm transition">
@@ -219,7 +219,9 @@ const NotificationsPopover = ({ alt = false }: NotificationsPopoverProps) => {
icon={
hasNewNotifications ? (
<div className="-mr-3.5 z-10 h-4 w-4 flex items-center justify-center rounded-full bg-black dark:bg-white">
- <p className="text-xs text-scale-100">{newNotifications.length}</p>
+ <p className="text-xs text-background-alternative">
+ {newNotifications.length}
+ </p>
</div>
) : alt ? (
<IconInbox size={18} strokeWidth={1.5} className="text-foreground-light" />
@@ -248,8 +250,8 @@ const NotificationsPopover = ({ alt = false }: NotificationsPopoverProps) => {
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200 flex items-center space-x-1',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background flex items-center space-x-1',
].join(' ')}
>
<span className="text-xs text-foreground">Notifications</span>
diff --git a/studio/components/layouts/ProjectLayout/NavigationBar/NavigationBar.tsx b/studio/components/layouts/ProjectLayout/NavigationBar/NavigationBar.tsx
index 89cefe2f49c..9012ce5bb95 100644
--- a/studio/components/layouts/ProjectLayout/NavigationBar/NavigationBar.tsx
+++ b/studio/components/layouts/ProjectLayout/NavigationBar/NavigationBar.tsx
@@ -74,7 +74,7 @@ const NavigationBar = () => {
<div
className={[
'flex w-14 flex-col justify-between overflow-y-hidden p-2',
- 'border-r bg-body border-scale-500',
+ 'border-r bg-background border-default',
].join(' ')}
>
<ul className="flex flex-col space-y-2">
@@ -96,7 +96,7 @@ const NavigationBar = () => {
link: `/project/${projectRef}`,
}}
/>
- <div className="bg-scale-500 h-px w-full" />
+ <div className="bg-border h-px w-full" />
{toolRoutes.map((route) => (
<NavigationIconButton
key={route.key}
@@ -104,7 +104,7 @@ const NavigationBar = () => {
isActive={activeRoute === route.key}
/>
))}
- <div className="bg-scale-500 h-px w-full"></div>
+ <div className="bg-border h-px w-full"></div>
{productRoutes.map((route) => (
<NavigationIconButton
@@ -113,7 +113,7 @@ const NavigationBar = () => {
isActive={activeRoute === route.key}
/>
))}
- <div className="h-px w-full bg-scale-500"></div>
+ <div className="h-px w-full bg-border"></div>
{otherRoutes.map((route) => (
<NavigationIconButton
key={route.key}
@@ -144,7 +144,7 @@ const NavigationBar = () => {
<div
className={[
'rounded py-1 px-2 leading-none shadow text-xs',
- 'border border-scale-200 flex items-center space-x-1',
+ 'border border-background flex items-center space-x-1',
].join(' ')}
>
Project API Docs
@@ -173,7 +173,7 @@ const NavigationBar = () => {
<div
className={[
'rounded py-1 px-2 leading-none shadow',
- 'border border-scale-200 flex items-center space-x-1',
+ 'border border-background flex items-center space-x-1',
].join(' ')}
>
{os === 'macos' ? (
diff --git a/studio/components/layouts/ProjectLayout/NavigationBar/NavigationIconButton.tsx b/studio/components/layouts/ProjectLayout/NavigationBar/NavigationIconButton.tsx
index d603779556a..ee6c1a57b15 100644
--- a/studio/components/layouts/ProjectLayout/NavigationBar/NavigationIconButton.tsx
+++ b/studio/components/layouts/ProjectLayout/NavigationBar/NavigationIconButton.tsx
@@ -21,9 +21,9 @@ const NavigationIconButton = ({ route, isActive = false }: NavigationIconButtonP
className={[
'transition-colors duration-200',
'flex items-center justify-center h-10 w-10 rounded', // Layout
- 'bg-scale-200 hover:bg-scale-500', // Light mode
+ 'bg-background hover:bg-overlay-hover', // Light mode
'text-foreground-lighter hover:text-foreground ', // Dark mode
- `${isActive ? 'bg-scale-500 shadow-sm text-foreground' : ''}`,
+ `${isActive ? 'bg-selection shadow-sm text-foreground' : ''}`,
].join(' ')}
>
{route.icon}
@@ -36,8 +36,8 @@ const NavigationIconButton = ({ route, isActive = false }: NavigationIconButtonP
<div
className={[
- 'bg-scale-100 shadow-lg shadow-scale-700 dark:shadow-scale-300 py-1.5 px-3 rounded leading-none', // background
- 'border border-scale-500 ', //border
+ 'bg-alternative shadow-lg shadow-background-surface-100 py-1.5 px-3 rounded leading-none', // background
+ 'border border-default', //border
].join(' ')}
>
<span className="text-foreground text-xs">{route.label}</span>
diff --git a/studio/components/layouts/ProjectLayout/PausingState.tsx b/studio/components/layouts/ProjectLayout/PausingState.tsx
index eaea7241326..3be75c16106 100644
--- a/studio/components/layouts/ProjectLayout/PausingState.tsx
+++ b/studio/components/layouts/ProjectLayout/PausingState.tsx
@@ -53,7 +53,7 @@ const PausingState = ({ project }: PausingStateProps) => {
</div>
</div>
<div className="mx-auto mt-8 mb-16 w-full max-w-7xl">
- <div className="mx-6 flex h-[500px] items-center justify-center rounded border border-scale-400 bg-scale-300 p-8">
+ <div className="mx-6 flex h-[500px] items-center justify-center rounded border border-overlay bg-surface-100 p-8">
<div className="grid w-[380px] gap-4">
<div className="relative mx-auto max-w-[300px]">
<div className="absolute flex h-full w-full items-center justify-center">
diff --git a/studio/components/layouts/ProjectLayout/ProductMenuBar.tsx b/studio/components/layouts/ProjectLayout/ProductMenuBar.tsx
index 35f9456eb82..7cd3eed3316 100644
--- a/studio/components/layouts/ProjectLayout/ProductMenuBar.tsx
+++ b/studio/components/layouts/ProjectLayout/ProductMenuBar.tsx
@@ -9,8 +9,8 @@ const ProductMenuBar = ({ title, children }: PropsWithChildren<ProductMenuBarPro
<div
className={[
'hide-scrollbar flex w-64 flex-col border-r', // Layout
- 'bg-scale-200', // Light mode
- 'dark:border-dark ', // Dark mode
+ 'bg-background',
+ 'border-default ',
].join(' ')}
>
<div
diff --git a/studio/components/layouts/ProjectLayout/ProjectPausedState.tsx b/studio/components/layouts/ProjectLayout/ProjectPausedState.tsx
index 0c98998cf96..e56195f1871 100644
--- a/studio/components/layouts/ProjectLayout/ProjectPausedState.tsx
+++ b/studio/components/layouts/ProjectLayout/ProjectPausedState.tsx
@@ -73,7 +73,7 @@ const ProjectPausedState = ({ product }: ProjectPausedStateProps) => {
<>
<div className="space-y-4">
<div className="w-full mx-auto mb-16 max-w-7xl">
- <div className="mx-6 flex h-[500px] items-center justify-center rounded border border-scale-400 bg-scale-300 p-8">
+ <div className="mx-6 flex h-[500px] items-center justify-center rounded border border-overlay bg-surface-100 p-8">
<div className="grid w-[480px] gap-4">
<div className="mx-auto flex max-w-[300px] items-center justify-center space-x-4 lg:space-x-8">
<IconPauseCircle className="text-foreground-light" size={50} strokeWidth={1.5} />
@@ -135,8 +135,8 @@ const ProjectPausedState = ({ product }: ProjectPausedStateProps) => {
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow', // background
- 'border border-scale-200 ', //border
+ 'rounded bg-alternative py-1 px-2 leading-none shadow', // background
+ 'border border-background', //border
].join(' ')}
>
<span className="text-xs text-foreground">
diff --git a/studio/components/layouts/ProjectLayout/RestoringState.tsx b/studio/components/layouts/ProjectLayout/RestoringState.tsx
index 982a8717239..e91aa97e4f2 100644
--- a/studio/components/layouts/ProjectLayout/RestoringState.tsx
+++ b/studio/components/layouts/ProjectLayout/RestoringState.tsx
@@ -55,7 +55,7 @@ const RestoringState = () => {
return (
<div className="flex items-center justify-center h-full">
- <div className="bg-scale-300 border border-scale-400 rounded-md w-3/4 lg:w-1/2">
+ <div className="bg-surface-100 border border-overlay rounded-md w-3/4 lg:w-1/2">
{isCompleted ? (
<div className="space-y-6 pt-6">
<div className="flex px-8 space-x-8">
@@ -69,7 +69,7 @@ const RestoringState = () => {
</p>
</div>
</div>
- <div className="border-t border-scale-400 flex items-center justify-end py-4 px-8">
+ <div className="border-t border-overlay flex items-center justify-end py-4 px-8">
<Button disabled={loading} loading={loading} onClick={onConfirm}>
Return to project
</Button>
@@ -90,7 +90,7 @@ const RestoringState = () => {
</div>
</div>
{isFailed && (
- <div className="border-t border-scale-400 flex items-center justify-end py-4 px-8">
+ <div className="border-t border-overlay flex items-center justify-end py-4 px-8">
<Button asChild type="default">
<Link
href={`/support/new?category=Database_unresponsive&ref=${project?.ref}&subject=Restoration%20failed%20for%20project`}
diff --git a/studio/components/layouts/ProjectLayout/UpgradingState/UpgradingState.tsx b/studio/components/layouts/ProjectLayout/UpgradingState/UpgradingState.tsx
index 3c96da075a1..bbbfae28bb5 100644
--- a/studio/components/layouts/ProjectLayout/UpgradingState/UpgradingState.tsx
+++ b/studio/components/layouts/ProjectLayout/UpgradingState/UpgradingState.tsx
@@ -72,7 +72,7 @@ const UpgradingState = () => {
<h1 className="text-3xl">{project?.name}</h1>
</div>
<div className="w-full mx-auto mt-8 mb-16 max-w-7xl">
- <div className="flex h-[500px] items-center justify-center rounded border border-scale-400 bg-scale-300 p-8">
+ <div className="flex h-[500px] items-center justify-center rounded border border-muted bg-surface-100 p-8">
{isCompleted ? (
<div className="grid gap-4">
<div className="relative mx-auto max-w-[300px]">
@@ -184,7 +184,7 @@ const UpgradingState = () => {
<IconCheck size={12} className="text-white" strokeWidth={3} />
</div>
) : (
- <div className="flex items-center justify-center w-5 h-5 border rounded-full bg-scale-600" />
+ <div className="flex items-center justify-center w-5 h-5 border rounded-full bg-overlay-hover" />
)}
<p
className={`text-sm ${
@@ -219,8 +219,8 @@ const UpgradingState = () => {
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow', // background
- 'border border-scale-200 ', //border
+ 'rounded bg-alternative py-1 px-2 leading-none shadow', // background
+ 'border border-background', //border
].join(' ')}
>
<span className="text-xs text-foreground">{initiatedAt}</span>
diff --git a/studio/components/layouts/SQLEditorLayout/QueryItem.tsx b/studio/components/layouts/SQLEditorLayout/QueryItem.tsx
index a968bbcad78..e79f528a590 100644
--- a/studio/components/layouts/SQLEditorLayout/QueryItem.tsx
+++ b/studio/components/layouts/SQLEditorLayout/QueryItem.tsx
@@ -63,7 +63,7 @@ const QueryItem = ({ tabInfo }: QueryItemProps) => {
key={id}
className={clsx(
'flex items-center justify-between rounded-md group',
- isActive && 'text-foreground bg-scale-400 dark:bg-scale-600 -active'
+ isActive && 'text-foreground bg-surface-300 -active'
)}
ref={isActive ? (activeItemRef as React.RefObject<HTMLDivElement>) : null}
>
@@ -207,8 +207,8 @@ const QueryItemActions = observer(({ tabInfo, activeId }: QueryItemActionsProps)
className={clsx(
'rounded p-1',
isActive
- ? 'text-foreground-light hover:bg-scale-800'
- : 'text-scale-300 dark:text-scale-200 hover:bg-scale-500 group-hover:text-foreground-light'
+ ? 'text-foreground-light hover:bg-border-stronger'
+ : 'text-background hover:bg-overlay-hover group-hover:text-foreground-light'
)}
>
<IconChevronDown size="tiny" strokeWidth={2} />
diff --git a/studio/components/layouts/SQLEditorLayout/SQLEditorMenu.tsx b/studio/components/layouts/SQLEditorLayout/SQLEditorMenu.tsx
index 18ce87eecfa..17f03702f1b 100644
--- a/studio/components/layouts/SQLEditorLayout/SQLEditorMenu.tsx
+++ b/studio/components/layouts/SQLEditorLayout/SQLEditorMenu.tsx
@@ -218,7 +218,7 @@ const SideBarContent = observer(() => {
</div>
) : (
<div className="text-foreground text-sm h-32 border border-dashed flex flex-col gap-3 items-center justify-center px-3 mx-3 rounded">
- <span className="text-lighter">No queries found</span>
+ <span className="text-foreground-lighter">No queries found</span>
</div>
)}
</div>
@@ -287,7 +287,7 @@ const SideBarContent = observer(() => {
</div>
) : (
<div className="text-foreground text-sm h-32 border border-dashed flex flex-col gap-3 items-center justify-center px-3 mx-3 rounded">
- <span className="text-lighter">No queries found</span>
+ <span className="text-foreground-lighter">No queries found</span>
</div>
)}
</div>
@@ -354,7 +354,7 @@ const SideBarContent = observer(() => {
) : (
<div className="text-foreground text-sm h-32 border border-dashed flex flex-col gap-3 items-center justify-center px-3 mx-3 rounded">
{filteredFavoriteSnippets.length === 0 && (
- <span className="text-lighter">No queries found</span>
+ <span className="text-foreground-lighter">No queries found</span>
)}
<Button type="default" onClick={() => handleNewQuery()}>
New Query
diff --git a/studio/components/layouts/Scaffold.tsx b/studio/components/layouts/Scaffold.tsx
index e86c3ace300..71d3ea68279 100644
--- a/studio/components/layouts/Scaffold.tsx
+++ b/studio/components/layouts/Scaffold.tsx
@@ -31,7 +31,7 @@ const ScaffoldContainer = React.forwardRef<HTMLDivElement, React.HTMLAttributes<
const ScaffoldDivider = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(
({ className, ...props }, ref) => {
- return <div ref={ref} {...props} className={cn('w-full h-px bg-scale-400', className)} />
+ return <div ref={ref} {...props} className={cn('w-full h-px bg-muted', className)} />
}
)
diff --git a/studio/components/layouts/SignInLayout/ForgotPasswordLayout.tsx b/studio/components/layouts/SignInLayout/ForgotPasswordLayout.tsx
index e943936d202..cdb7ff7beda 100644
--- a/studio/components/layouts/SignInLayout/ForgotPasswordLayout.tsx
+++ b/studio/components/layouts/SignInLayout/ForgotPasswordLayout.tsx
@@ -22,7 +22,7 @@ const ForgotPasswordLayout = ({
const { resolvedTheme } = useTheme()
return (
- <div className="flex-1 bg-scale-200 flex flex-col gap-8 lg:gap-16 xl:gap-32">
+ <div className="flex-1 bg-background flex flex-col gap-8 lg:gap-16 xl:gap-32">
<div className="sticky top-0 mx-auto w-full max-w-7xl px-8 pt-6 sm:px-6 lg:px-8">
<nav className="relative flex items-center justify-between sm:h-10">
<div className="flex flex-shrink-0 flex-grow items-center lg:flex-grow-0">
diff --git a/studio/components/layouts/SignInLayout/SignInLayout.tsx b/studio/components/layouts/SignInLayout/SignInLayout.tsx
index a81cbeb2b47..b1aec969f91 100644
--- a/studio/components/layouts/SignInLayout/SignInLayout.tsx
+++ b/studio/components/layouts/SignInLayout/SignInLayout.tsx
@@ -88,7 +88,7 @@ const SignInLayout = ({
return (
<>
- <div className="flex flex-col flex-1 bg-scale-100">
+ <div className="flex flex-col flex-1 bg-alternative">
<div
className={`absolute top-0 w-full px-8 mx-auto sm:px-6 lg:px-8 ${
ongoingIncident ? 'pt-16' : 'pt-6'
@@ -123,7 +123,7 @@ const SignInLayout = ({
</div>
<div className="flex flex-1">
- <main className="flex flex-col items-center flex-1 flex-shrink-0 px-5 pt-16 pb-8 border-r shadow-lg bg-scale-200 border-scale-500">
+ <main className="flex flex-col items-center flex-1 flex-shrink-0 px-5 pt-16 pb-8 border-r shadow-lg bg-background border-default">
<div className="flex-1 flex flex-col justify-center w-[330px] sm:w-[384px]">
<div className="mb-10">
<h1 className="mt-8 mb-2 text-2xl lg:text-3xl">{heading}</h1>
@@ -160,7 +160,7 @@ const SignInLayout = ({
{quote !== null && (
<div className="relative flex flex-col gap-6">
<div className="absolute select-none -top-12 -left-11">
- <span className="text-[160px] leading-none text-scale-600">{'“'}</span>
+ <span className="text-[160px] leading-none text-foreground-muted/30">{'“'}</span>
</div>
<blockquote className="z-10 max-w-lg text-3xl">{quote.text}</blockquote>
diff --git a/studio/components/layouts/StorageLayout/BucketRow.tsx b/studio/components/layouts/StorageLayout/BucketRow.tsx
index 9973f728dae..19c5bb209e9 100644
--- a/studio/components/layouts/StorageLayout/BucketRow.tsx
+++ b/studio/components/layouts/StorageLayout/BucketRow.tsx
@@ -41,7 +41,7 @@ const BucketRow = ({
key={bucket.id}
className={clsx(
'group flex items-center justify-between rounded-md',
- isSelected && 'text-foreground bg-scale-300'
+ isSelected && 'text-foreground bg-surface-100'
)}
>
{/* Even though we trim whitespaces from bucket names, there may be some existing buckets with trailing whitespaces. */}
diff --git a/studio/components/layouts/StorageLayout/StorageMenu.tsx b/studio/components/layouts/StorageLayout/StorageMenu.tsx
index b5c9b7d1aa4..3ef5e6bf05a 100644
--- a/studio/components/layouts/StorageLayout/StorageMenu.tsx
+++ b/studio/components/layouts/StorageLayout/StorageMenu.tsx
@@ -61,8 +61,8 @@ const StorageMenu = () => {
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">
@@ -121,7 +121,7 @@ const StorageMenu = () => {
)}
</div>
</div>
- <div className="h-px w-full bg-scale-500"></div>
+ <div className="h-px w-full bg-border"></div>
<div className="">
<Menu.Group title="Configuration" />
<Link href={`/project/${ref}/storage/policies`} legacyBehavior>
diff --git a/studio/components/layouts/TableEditorLayout/EntityListItem.tsx b/studio/components/layouts/TableEditorLayout/EntityListItem.tsx
index 0f0a71ad216..024afb76456 100644
--- a/studio/components/layouts/TableEditorLayout/EntityListItem.tsx
+++ b/studio/components/layouts/TableEditorLayout/EntityListItem.tsx
@@ -114,7 +114,7 @@ const EntityListItem = ({ id, projectRef, item: entity, isLocked }: EntityListIt
<div
className={clsx(
'group flex items-center justify-between rounded-md',
- isActive && 'text-foreground bg-scale-300'
+ isActive && 'text-foreground bg-surface-100'
)}
>
<Link
@@ -148,7 +148,7 @@ const EntityListItem = ({ id, projectRef, item: entity, isLocked }: EntityListIt
entity.type === ENTITY_TYPE.FOREIGN_TABLE && 'text-yellow-900 bg-yellow-500',
entity.type === ENTITY_TYPE.MATERIALIZED_VIEW && 'text-purple-1000 bg-purple-500',
entity.type === ENTITY_TYPE.PARTITIONED_TABLE &&
- 'text-foreground-light bg-scale-800'
+ 'text-foreground-light bg-border-stronger'
)}
>
{Object.entries(ENTITY_TYPE)
@@ -162,8 +162,8 @@ const EntityListItem = ({ id, projectRef, item: entity, isLocked }: EntityListIt
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground capitalize">
@@ -185,8 +185,8 @@ const EntityListItem = ({ id, projectRef, item: entity, isLocked }: EntityListIt
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">{entity.name}</span>
diff --git a/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsx b/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsx
index 220d087b7ff..af73302086d 100644
--- a/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsx
+++ b/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsx
@@ -135,8 +135,8 @@ const TableEditorMenu = () => {
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">
@@ -199,14 +199,14 @@ const TableEditorMenu = () => {
<p className="text-sm text-foreground-light">Loading entities...</p>
</div>
) : searchText.length === 0 && (entityTypes?.length ?? 0) === 0 ? (
- <div className="mx-4 space-y-1 rounded-md border border-scale-400 bg-scale-300 py-3 px-4">
+ <div className="mx-4 space-y-1 rounded-md border border-muted bg-surface-100 py-3 px-4">
<p className="text-xs">No entities available</p>
<p className="text-xs text-foreground-light">
This schema has no entities available yet
</p>
</div>
) : searchText.length > 0 && (entityTypes?.length ?? 0) === 0 ? (
- <div className="mx-4 space-y-1 rounded-md border border-scale-400 bg-scale-300 py-3 px-4">
+ <div className="mx-4 space-y-1 rounded-md border border-muted bg-surface-100 py-3 px-4">
<p className="text-xs">No results found</p>
<p className="text-xs text-foreground-light">
There are no entities that match your search
@@ -244,8 +244,8 @@ const TableEditorMenu = () => {
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs">Sort By</span>
diff --git a/studio/components/to-be-cleaned/Charts/ChartHandler.tsx b/studio/components/to-be-cleaned/Charts/ChartHandler.tsx
index 5185b6a5d22..4ec7435dd11 100644
--- a/studio/components/to-be-cleaned/Charts/ChartHandler.tsx
+++ b/studio/components/to-be-cleaned/Charts/ChartHandler.tsx
@@ -121,7 +121,7 @@ const ChartHandler = ({
if (loading) {
return (
<div className="flex h-52 w-full flex-col items-center justify-center space-y-4">
- <IconLoader className="animate-spin text-scale-700" />
+ <IconLoader className="animate-spin text-border-strong" />
<p className="text-xs text-foreground-lighter">Loading data for {label}</p>
</div>
)
@@ -130,7 +130,7 @@ const ChartHandler = ({
if (isUndefined(chartData)) {
return (
<div className="flex h-52 w-full flex-col items-center justify-center space-y-4">
- <IconAlertCircle className="text-scale-700" />
+ <IconAlertCircle className="text-border-strong" />
<p className="text-xs text-foreground-lighter">Unable to load data for {label}</p>
</div>
)
diff --git a/studio/components/to-be-cleaned/ProductEmptyState.tsx b/studio/components/to-be-cleaned/ProductEmptyState.tsx
index 412a5243f73..224a96b4c18 100644
--- a/studio/components/to-be-cleaned/ProductEmptyState.tsx
+++ b/studio/components/to-be-cleaned/ProductEmptyState.tsx
@@ -30,7 +30,7 @@ const ProductEmptyState = ({
return (
<div className="flex h-full w-full items-center justify-center">
- <div className="flex space-x-4 rounded border border-panel-border-light bg-panel-body-light p-6 shadow-md dark:border-panel-border-dark dark:bg-panel-body-dark">
+ <div className="flex space-x-4 rounded border border-overlay bg-surface-100 p-6 shadow-md">
{/* A graphic can probably be placed here as a sibling to the div below*/}
<div className="flex flex-col">
<div className={`${size === 'medium' ? 'w-80' : 'w-[400px]'} space-y-4`}>
@@ -56,8 +56,8 @@ const ProductEmptyState = ({
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">{disabledMessage}</span>
diff --git a/studio/components/to-be-cleaned/Storage/StorageExplorer/CustomExpiryModal.tsx b/studio/components/to-be-cleaned/Storage/StorageExplorer/CustomExpiryModal.tsx
index 82697ff1ce1..323f90fef72 100644
--- a/studio/components/to-be-cleaned/Storage/StorageExplorer/CustomExpiryModal.tsx
+++ b/studio/components/to-be-cleaned/Storage/StorageExplorer/CustomExpiryModal.tsx
@@ -60,7 +60,7 @@ const CustomExpiryModal = ({ onCopyUrl }: CustomExpiryModalProps) => {
<>
<div className="pt-4 pb-2">
<Modal.Content>
- <p className="text-sm text-light mb-2">
+ <p className="text-sm text-foreground-light mb-2">
Enter the duration for which the URL will be valid for:
</p>
<div className="flex items-center space-x-2">
@@ -81,7 +81,7 @@ const CustomExpiryModal = ({ onCopyUrl }: CustomExpiryModalProps) => {
</Listbox>
</div>
{values.expiresIn !== '' && (
- <p className="text-sm text-light mt-2">
+ <p className="text-sm text-foreground-light mt-2">
URL will expire on{' '}
{dayjs().add(values.expiresIn, values.units).format(DATETIME_FORMAT)}
</p>
diff --git a/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerColumn.tsx b/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerColumn.tsx
index 4cb6b132812..e448786b004 100644
--- a/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerColumn.tsx
+++ b/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerColumn.tsx
@@ -148,11 +148,7 @@ const FileExplorerColumn = ({
<div
ref={fileExplorerColumnRef}
className={`
- ${
- fullWidth
- ? 'w-full'
- : 'w-64 border-r border-panel-border-light dark:border-panel-border-dark'
- }
+ ${fullWidth ? 'w-full' : 'w-64 border-r border-overlay'}
${view === STORAGE_VIEWS.COLUMNS ? '' : ''}
hide-scrollbar relative flex flex-shrink-0 flex-col overflow-auto
`}
@@ -189,8 +185,8 @@ const FileExplorerColumn = ({
<div
className="
sticky top-0
- z-10 flex min-w-min items-center border-b border-panel-border-light bg-panel-footer-light px-2.5
- py-2 dark:border-panel-border-dark dark:bg-panel-footer-dark
+ z-10 flex min-w-min items-center border-b border-overlay bg-surface-100 px-2.5
+ py-2
"
>
<div className="flex w-[40%] min-w-[250px] items-center">
@@ -208,7 +204,7 @@ const FileExplorerColumn = ({
{column.status === STORAGE_ROW_STATUS.LOADING && (
<div
className={`
- ${fullWidth ? 'w-full' : 'w-64 border-r border-gray-500'}
+ ${fullWidth ? 'w-full' : 'w-64 border-r border-default'}
px-2 py-1 my-1 flex flex-shrink-0 flex-col space-y-2 overflow-auto
`}
>
@@ -258,7 +254,7 @@ const FileExplorerColumn = ({
column.status !== STORAGE_ROW_STATUS.LOADING && (
<div className="h-full w-full flex flex-col items-center justify-center">
<p className="text-sm my-3 text-foreground">No results found in this folder</p>
- <p className="w-40 text-center text-sm text-light">
+ <p className="w-40 text-center text-sm text-foreground-light">
Your search for "{itemSearchString}" did not return any results
</p>
</div>
diff --git a/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerHeader.tsx b/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerHeader.tsx
index 3729d8b559a..c35cc4ea11b 100644
--- a/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerHeader.tsx
+++ b/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerHeader.tsx
@@ -280,7 +280,7 @@ const FileExplorerHeader = ({
className="
flex h-[40px] pl-2
items-center justify-between
- rounded-t-md border-b border-panel-border-light bg-panel-header-light dark:border-panel-border-dark dark:bg-panel-header-dark"
+ rounded-t-md border-b border-overlay bg-surface-100"
>
{/* Navigation */}
<div className={`flex items-center ${isEditingPath ? 'w-1/2' : ''}`}>
@@ -511,7 +511,7 @@ const FileExplorerHeader = ({
)}
</div>
- <div className="h-6 border-r border-scale-600" />
+ <div className="h-6 border-r border-control" />
<div className="flex items-center space-x-1 px-2">
<div className="hidden">
{/* @ts-ignore */}
@@ -534,8 +534,8 @@ const FileExplorerHeader = ({
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">
@@ -563,8 +563,8 @@ const FileExplorerHeader = ({
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">
@@ -577,7 +577,7 @@ const FileExplorerHeader = ({
</Tooltip.Root>
</div>
- <div className="h-6 border-r border-scale-600" />
+ <div className="h-6 border-r border-control" />
<div className="flex items-center px-2">
{snap.isSearching ? (
<Input
@@ -612,7 +612,7 @@ const FileExplorerHeader = ({
{isNewAPIDocsEnabled && (
<>
- <div className="h-6 border-r border-scale-600" />
+ <div className="h-6 border-r border-control" />
<Button
size="tiny"
className="mx-2"
diff --git a/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerRow.tsx b/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerRow.tsx
index a757a343082..5f7f2118b03 100644
--- a/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerRow.tsx
+++ b/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerRow.tsx
@@ -321,7 +321,7 @@ const FileExplorerRow = ({
className={[
'storage-row group flex h-full items-center px-2.5',
'hover:bg-panel-footer-light dark:hover:bg-panel-footer-dark',
- `${isOpened ? 'bg-scale-400' : ''}`,
+ `${isOpened ? 'bg-surface-200' : ''}`,
`${isPreviewed ? 'bg-green-500 hover:bg-green-500 dark:hover:bg-green-500' : ''}`,
`${item.status !== STORAGE_ROW_STATUS.LOADING ? 'cursor-pointer' : ''}`,
].join(' ')}
@@ -382,8 +382,8 @@ const FileExplorerRow = ({
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">
diff --git a/studio/components/to-be-cleaned/Storage/StorageExplorer/PreviewPane.tsx b/studio/components/to-be-cleaned/Storage/StorageExplorer/PreviewPane.tsx
index 6ec524b2fd8..02cedfe0fae 100644
--- a/studio/components/to-be-cleaned/Storage/StorageExplorer/PreviewPane.tsx
+++ b/studio/components/to-be-cleaned/Storage/StorageExplorer/PreviewPane.tsx
@@ -137,7 +137,7 @@ const PreviewPane = ({ onCopyUrl }: PreviewPaneProps) => {
<div
className="
h-full border-l
- border-panel-border-light bg-panel-header-light p-4 dark:border-panel-border-dark dark:bg-panel-header-dark"
+ border-overlay bg-surface-100 p-4"
style={{ width }}
>
{/* Preview Header */}
@@ -151,7 +151,7 @@ const PreviewPane = ({ onCopyUrl }: PreviewPaneProps) => {
</div>
{/* Preview Thumbnail*/}
- <div className="my-4 border border-panel-border-light dark:border-panel-border-dark">
+ <div className="my-4 border border-overlay">
<div className="flex h-56 w-full items-center 2xl:h-72">
<PreviewFile mimeType={mimeType} previewUrl={file.previewUrl} />
</div>
@@ -190,7 +190,7 @@ const PreviewPane = ({ onCopyUrl }: PreviewPaneProps) => {
</div>
{/* Actions */}
- <div className="flex space-x-2 border-b border-panel-border-light pb-4 dark:border-panel-border-dark">
+ <div className="flex space-x-2 border-b border-overlay pb-4">
<Button
type="default"
icon={<IconDownload size={16} strokeWidth={2} />}
@@ -273,8 +273,8 @@ const PreviewPane = ({ onCopyUrl }: PreviewPaneProps) => {
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">
diff --git a/studio/components/to-be-cleaned/Storage/StorageExplorer/StorageExplorer.tsx b/studio/components/to-be-cleaned/Storage/StorageExplorer/StorageExplorer.tsx
index 5dee9047a6e..0ec2083583d 100644
--- a/studio/components/to-be-cleaned/Storage/StorageExplorer/StorageExplorer.tsx
+++ b/studio/components/to-be-cleaned/Storage/StorageExplorer/StorageExplorer.tsx
@@ -203,8 +203,8 @@ const StorageExplorer = ({ bucket }: StorageExplorerProps) => {
<div
ref={storageExplorerRef}
className="
- bg-scale-200
- border-panel-border-light dark:border-panel-border-dark flex
+ bg-background
+ border-overlay flex
h-full w-full flex-col rounded-md border"
>
{selectedItems.length === 0 ? (
diff --git a/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesBucketRow.js b/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesBucketRow.js
index f1079fc3b75..dbc726e3e8d 100644
--- a/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesBucketRow.js
+++ b/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesBucketRow.js
@@ -24,7 +24,7 @@ const PolicyRow = ({
const { name, command } = policy
return (
<div className="group">
- <Panel.Content className="flex justify-between gap-2 border-b border-panel-border-light py-4 dark:border-panel-border-dark">
+ <Panel.Content className="flex justify-between gap-2 border-b border-overlay py-4">
<div className="flex flex-col gap-3 lg:flex-row lg:items-center">
<div className="font-mono text-xs text-foreground-lighter">{command}</div>
<div className="flex flex-col gap-2 lg:flex-row">
diff --git a/studio/components/to-be-cleaned/Storage/StorageSettings/StorageSettings.tsx b/studio/components/to-be-cleaned/Storage/StorageSettings/StorageSettings.tsx
index bf803f8c5c0..2e9ea99e09c 100644
--- a/studio/components/to-be-cleaned/Storage/StorageSettings/StorageSettings.tsx
+++ b/studio/components/to-be-cleaned/Storage/StorageSettings/StorageSettings.tsx
@@ -117,12 +117,12 @@ const StorageConfig = ({ config, projectRef, organizationSlug }: any) => {
<div className="space-y-20">
<div
className={[
- 'bg-scale-100 dark:bg-scale-300',
- 'overflow-hidden border-scale-400',
+ 'bg-surface-100',
+ 'overflow-hidden border-muted',
'rounded-md border shadow',
].join(' ')}
>
- <div className="flex flex-col gap-0 divide-y divide-scale-400">
+ <div className="flex flex-col gap-0 divide-y divide-border-muted">
<div className="grid grid-cols-12 gap-6 px-8 py-8 lg:gap-12">
<div className="relative flex flex-col col-span-12 gap-6 lg:col-span-4">
<p className="text-sm">Upload file size limit</p>
@@ -185,7 +185,7 @@ const StorageConfig = ({ config, projectRef, organizationSlug }: any) => {
/>
</div>
)}
- <div className="border-t border-scale-400" />
+ <div className="border-t border-overlay" />
<div className="flex justify-between px-8 py-4">
<div className="flex items-center justify-between w-full gap-2">
{!canUpdateStorageSettings ? (
diff --git a/studio/components/to-be-cleaned/forms/SchemaFormPanel.js b/studio/components/to-be-cleaned/forms/SchemaFormPanel.js
index bf405416218..bf602a1ab6e 100644
--- a/studio/components/to-be-cleaned/forms/SchemaFormPanel.js
+++ b/studio/components/to-be-cleaned/forms/SchemaFormPanel.js
@@ -46,8 +46,9 @@ export default function SchemaFormPanel({
className="
flex h-12
items-center overflow-hidden
- border-b border-panel-border-light bg-panel-header-light
- px-6 dark:border-panel-border-dark dark:bg-panel-header-dark"
+ border-b px-6
+ border-overlay bg-surface-100
+ "
>
<div className="flex-1 text-left">
<h6>{title || ''}</h6>
diff --git a/studio/components/ui/CardButton.tsx b/studio/components/ui/CardButton.tsx
index e3c5abc14cb..62e8521c44a 100644
--- a/studio/components/ui/CardButton.tsx
+++ b/studio/components/ui/CardButton.tsx
@@ -54,7 +54,7 @@ const CardButton = ({
containerClasses = [
...containerClasses,
'cursor-pointer',
- 'hover:bg-surface-200',
+ 'hover:bg-overlay-hover',
'hover:border-control',
]
}
diff --git a/studio/components/ui/Charts/Charts.constants.ts b/studio/components/ui/Charts/Charts.constants.ts
index d712b2e5a43..a8bb2e8aca5 100644
--- a/studio/components/ui/Charts/Charts.constants.ts
+++ b/studio/components/ui/Charts/Charts.constants.ts
@@ -3,8 +3,8 @@
// For ChartHandler
export const CHART_COLORS = {
- TICK: 'var(--colors-scale6)',
- AXIS: 'var(--colors-scale6)',
+ TICK: 'hsl(var(--background-overlay-hover))',
+ AXIS: 'hsl(var(--background-overlay-hover))',
GREEN_1: 'hsl(var(--brand-default))', // #3ECF8E
GREEN_2: 'hsl(var(--brand-500))',
}
diff --git a/studio/components/ui/Charts/EmptyState.tsx b/studio/components/ui/Charts/EmptyState.tsx
index eceb65857c0..b7f791c7bd8 100644
--- a/studio/components/ui/Charts/EmptyState.tsx
+++ b/studio/components/ui/Charts/EmptyState.tsx
@@ -13,8 +13,8 @@ const EmptyState = ({
className="
flex h-full
w-full flex-col items-center
- justify-center space-y-2 space-y-2 border
- border-dashed border-scale-600 py-4 text-center
+ justify-center space-y-2 border
+ border-dashed border-control py-4 text-center
"
>
<IconBarChart2 className="text-foreground-light" />
diff --git a/studio/components/ui/Charts/NoDataPlaceholder.tsx b/studio/components/ui/Charts/NoDataPlaceholder.tsx
index b9708e59e6a..ec8599b9907 100644
--- a/studio/components/ui/Charts/NoDataPlaceholder.tsx
+++ b/studio/components/ui/Charts/NoDataPlaceholder.tsx
@@ -17,13 +17,13 @@ const NoDataPlaceholder: React.FC<Props> = ({
return (
<div
className={
- 'border-scale-600 flex flex-grow w-full flex-col items-center justify-center space-y-2 border border-dashed text-center ' +
+ 'border-control flex flex-grow w-full flex-col items-center justify-center space-y-2 border border-dashed text-center ' +
className
}
// extra 20 px for the x ticks
style={{ minHeight: minHeight + 20 }}
>
- <IconBarChart2 className="text-scale-800" />
+ <IconBarChart2 className="text-border-stronger" />
<div>
<p className="text-foreground-light text-xs">{title}</p>
{message && <p className="text-foreground-lighter text-xs">{message}</p>}
diff --git a/studio/components/ui/Charts/Sparkline.stories.tsx b/studio/components/ui/Charts/Sparkline.stories.tsx
index a305d48416a..4aff9ed6d79 100644
--- a/studio/components/ui/Charts/Sparkline.stories.tsx
+++ b/studio/components/ui/Charts/Sparkline.stories.tsx
@@ -43,10 +43,5 @@ export const Sparkline = () => (
)
const ExampleName: React.FC<React.PropsWithChildren> = ({ children }) => (
- <h1
- className="font-bold text-scale-
- 1100"
- >
- {children}
- </h1>
+ <h1 className="font-bold text-light">{children}</h1>
)
diff --git a/studio/components/ui/Charts/StackedBarChart.stories.tsx b/studio/components/ui/Charts/StackedBarChart.stories.tsx
index 419b1b94522..edf38164bda 100644
--- a/studio/components/ui/Charts/StackedBarChart.stories.tsx
+++ b/studio/components/ui/Charts/StackedBarChart.stories.tsx
@@ -78,10 +78,5 @@ export const StackedBarChart = () => (
)
const ExampleName: React.FC<React.PropsWithChildren> = ({ children }) => (
- <h1
- className="font-bold text-scale-
- 1100"
- >
- {children}
- </h1>
+ <h1 className="font-bold text-light">{children}</h1>
)
diff --git a/studio/components/ui/ClientLoadingError.tsx b/studio/components/ui/ClientLoadingError.tsx
index ed4ebe8146d..043f182c96e 100644
--- a/studio/components/ui/ClientLoadingError.tsx
+++ b/studio/components/ui/ClientLoadingError.tsx
@@ -11,7 +11,7 @@ const ClientLoadingError = ({
description = 'An error has occurred',
}: ClientLoadingErrorProps) => {
return (
- <div className="px-6 py-4 bg-scale-400 border border-scale-600 rounded flex justify-between items-center">
+ <div className="px-6 py-4 bg-surface-200 border border-overlay rounded flex justify-between items-center">
<div className="flex space-x-4">
<IconAlertCircle strokeWidth={1.5} className="text-foreground-light" />
<div className="space-y-1">
diff --git a/studio/components/ui/DatePicker/TimeSplitInput.tsx b/studio/components/ui/DatePicker/TimeSplitInput.tsx
index c2db5875d18..b86024b611c 100644
--- a/studio/components/ui/DatePicker/TimeSplitInput.tsx
+++ b/studio/components/ui/DatePicker/TimeSplitInput.tsx
@@ -161,8 +161,8 @@ const TimeSplitInput = ({
<div
className={`
flex h-7 items-center justify-center
- gap-0 rounded border border-scale-700 bg-scale-100 text-xs text-foreground-light dark:bg-scaleA-300
- ${focus && ' border-scale-800 outline outline-2 outline-scale-500'}
+ gap-0 rounded border border-strong bg-surface-100 text-xs text-foreground-light
+ ${focus && ' border-stronger outline outline-2 outline-border'}
`}
>
<div className="mr-1 text-foreground-lighter">
diff --git a/studio/components/ui/Divider.tsx b/studio/components/ui/Divider.tsx
index 60d9eef5637..50ad397a0cc 100644
--- a/studio/components/ui/Divider.tsx
+++ b/studio/components/ui/Divider.tsx
@@ -1,3 +1,3 @@
export default function Divider({ light }: { light: Boolean }) {
- return <div className="h-px w-full bg-scale-400"></div>
+ return <div className="h-px w-full bg-muted"></div>
}
diff --git a/studio/components/ui/FormBoxEmpty.tsx b/studio/components/ui/FormBoxEmpty.tsx
index b8c9852bc00..ba6e22eb5a4 100644
--- a/studio/components/ui/FormBoxEmpty.tsx
+++ b/studio/components/ui/FormBoxEmpty.tsx
@@ -8,7 +8,7 @@ interface Props {
const FormBoxEmpty = ({ icon, text }: Props) => {
return (
<div className="flex items-center justify-center flex-row py-4 space-x-2">
- <div className="relative bg-scale-300 text-foreground-lighter w-6 h-6 rounded-full flex items-center justify-center">
+ <div className="relative bg-surface-100 text-foreground-lighter w-6 h-6 rounded-full flex items-center justify-center">
{icon}
</div>
<p className="text-foreground-light">{text}</p>
diff --git a/studio/components/ui/Forms/FormPanel.tsx b/studio/components/ui/Forms/FormPanel.tsx
index 49c49375e0c..a2a58fe81d0 100644
--- a/studio/components/ui/Forms/FormPanel.tsx
+++ b/studio/components/ui/Forms/FormPanel.tsx
@@ -11,17 +11,16 @@ interface Props {
const FormPanel = ({ children, header, footer }: Props) => (
<div
className="
- bg-scale-100
- dark:bg-scale-300
- border-scale-400
+ bg-surface-100
+ border-default
overflow-hidden
rounded-md border shadow"
>
- {header && <div className=" border-scale-400 border-b px-8 py-4">{header}</div>}
- <div className="divide-scale-400 flex flex-col gap-0 divide-y">{children}</div>
+ {header && <div className="border-default border-b px-8 py-4">{header}</div>}
+ <div className="divide-border flex flex-col gap-0 divide-y">{children}</div>
{footer && (
<>
- <div className="border-scale-400 border-t"></div>
+ <div className="border-default border-t"></div>
{footer}
</>
)}
diff --git a/studio/components/ui/InformationBox.tsx b/studio/components/ui/InformationBox.tsx
index abcaf4ff5d7..f29f1735242 100644
--- a/studio/components/ui/InformationBox.tsx
+++ b/studio/components/ui/InformationBox.tsx
@@ -32,7 +32,7 @@ const InformationBox = ({
return (
<div
className={`${block ? 'block w-full' : ''}
- block w-full rounded border border-scale-600 bg-scale-100 py-3 dark:border-scale-500 dark:bg-scale-400 ${className}`}
+ block w-full rounded border bg-surface-200 py-3 ${className}`}
>
<div className="flex flex-col px-4">
<div className="flex items-center justify-between">
diff --git a/studio/components/ui/Logs/LogsExplorerHeader.tsx b/studio/components/ui/Logs/LogsExplorerHeader.tsx
index 59697b68dcc..2202d62f3cc 100644
--- a/studio/components/ui/Logs/LogsExplorerHeader.tsx
+++ b/studio/components/ui/Logs/LogsExplorerHeader.tsx
@@ -165,8 +165,8 @@ const Field = ({
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">Copied</span>
@@ -184,8 +184,8 @@ const Field = ({
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">Copy value</span>
diff --git a/studio/components/ui/MultiSelect/Badges.tsx b/studio/components/ui/MultiSelect/Badges.tsx
index becb862e832..f4b0deee2f1 100644
--- a/studio/components/ui/MultiSelect/Badges.tsx
+++ b/studio/components/ui/MultiSelect/Badges.tsx
@@ -22,7 +22,7 @@ export const BadgeSelected = ({
<div
className={[
'text-typography-body-light dark:text-typography-body-dark',
- 'flex items-center space-x-2 rounded bg-gray-500',
+ 'flex items-center space-x-2 rounded bg-surface-300',
'py-0.5 px-2 text-sm',
].join(' ')}
onClick={(e: any) => e.preventDefault()}
diff --git a/studio/components/ui/MultiSelect/index.tsx b/studio/components/ui/MultiSelect/index.tsx
index ae9c46d292d..a6ea6314937 100644
--- a/studio/components/ui/MultiSelect/index.tsx
+++ b/studio/components/ui/MultiSelect/index.tsx
@@ -134,8 +134,8 @@ export default function MultiSelect({
<div
className={[
'form-control form-control--multi-select',
- 'border border-scale-700 bg-scaleA-200',
- 'multi-select relative block w-full w-full space-x-1 overflow-auto rounded',
+ 'border border-strong bg-background',
+ 'multi-select relative block w-full space-x-1 overflow-auto rounded',
`${error !== undefined ? 'border-red-800 bg-red-100' : ''}`,
].join(' ')}
ref={ref}
@@ -211,7 +211,7 @@ export default function MultiSelect({
className={[
'text-typography-body-light dark:text-typography-body-dark',
'group flex cursor-pointer items-center justify-between transition',
- 'space-x-1 rounded bg-transparent p-2 px-4 text-sm hover:bg-gray-600',
+ 'space-x-1 rounded bg-transparent p-2 px-4 text-sm hover:bg-overlay-hover',
`${active ? ' dark:bg-green-600 dark:bg-opacity-25' : ''}`,
].join(' ')}
>
diff --git a/studio/components/ui/NoPermission.tsx b/studio/components/ui/NoPermission.tsx
index 06377fe605f..ab96619caca 100644
--- a/studio/components/ui/NoPermission.tsx
+++ b/studio/components/ui/NoPermission.tsx
@@ -10,8 +10,7 @@ const NoPermission = ({ resourceText, isFullPage = false }: NoPermissionProps) =
<div
className={[
'block w-full rounded border border-opacity-20 py-4 px-6',
- 'border-gray-600 bg-gray-100',
- 'dark:border-gray-300 dark:bg-gray-400',
+ 'border-overlay bg-surface-200',
].join(' ')}
>
<div className="flex space-x-3">
diff --git a/studio/components/ui/NoSearchResults.tsx b/studio/components/ui/NoSearchResults.tsx
index 2d232ce32f2..45f87d03076 100644
--- a/studio/components/ui/NoSearchResults.tsx
+++ b/studio/components/ui/NoSearchResults.tsx
@@ -7,7 +7,7 @@ export interface NoSearchResultsProps {
const NoSearchResults = ({ searchString, onResetFilter }: NoSearchResultsProps) => {
return (
- <div className="bg-scale-100 dark:bg-scale-300 border border-scale-300 dark:border-scale-500 px-6 py-4 rounded flex items-center justify-between">
+ <div className="bg-surface-100 border border-default px-6 py-4 rounded flex items-center justify-between">
<div className="space-y-1">
<p className="text-sm text-foreground-light">No results found</p>
<p className="text-sm text-foreground-light">
diff --git a/studio/components/ui/Panel.tsx b/studio/components/ui/Panel.tsx
index 8f95e01be11..2c9d36c60f1 100644
--- a/studio/components/ui/Panel.tsx
+++ b/studio/components/ui/Panel.tsx
@@ -16,40 +16,26 @@ function Panel(props: PropsWithChildren<PanelProps>) {
let headerClasses: string[] = []
if (!props.hideHeaderStyling) {
- headerClasses = [
- `
- bg-panel-header-light dark:bg-panel-header-dark
- border-b border-panel-border-light dark:border-panel-border-dark`,
- ]
+ headerClasses = [`bg-surface-100 border-b border-overlay`]
} else {
- headerClasses = [
- `
- bg-panel-body-light dark:bg-panel-body-dark`,
- ]
+ headerClasses = [`bg-surface-100`]
}
const content = (
<div
className={`
${props.noHideOverflow ? '' : 'overflow-hidden'} rounded-md border
- border-panel-border-light shadow-sm
- dark:border-panel-border-dark ${props.noMargin ? '' : 'mb-8'} ${props.className}`}
+ border-overlay shadow-sm ${props.noMargin ? '' : 'mb-8'} ${props.className}`}
>
{props.title && (
<div className={headerClasses.join(' ')}>
<div className="flex items-center px-6 py-4">{props.title}</div>
</div>
)}
- <div className={`bg-panel-body-light dark:bg-panel-body-dark ${props.bodyClassName || ''}`}>
- {props.children}
- </div>
+ <div className={`bg-surface-100 ${props.bodyClassName || ''}`}>{props.children}</div>
{props.footer && (
- <div
- className="
- border-t border-panel-border-interior-light
- bg-panel-footer-light dark:border-panel-border-interior-dark dark:bg-panel-footer-dark"
- >
+ <div className="bg-surface-100 border-t border-overlay">
<div className="flex h-12 items-center px-6">{props.footer}</div>
</div>
)}
diff --git a/studio/components/ui/PasswordStrengthBar.tsx b/studio/components/ui/PasswordStrengthBar.tsx
index 38ba5a101fd..54d898af52d 100644
--- a/studio/components/ui/PasswordStrengthBar.tsx
+++ b/studio/components/ui/PasswordStrengthBar.tsx
@@ -22,7 +22,7 @@ const PasswordStrengthBar = ({
aria-valuenow={(PASSWORD_STRENGTH_PERCENTAGE as any)[passwordStrengthScore]}
aria-valuetext={(PASSWORD_STRENGTH_PERCENTAGE as any)[passwordStrengthScore]}
role="progressbar"
- className="mb-2 overflow-hidden transition-all border rounded bg-scale-200 dark:bg-scale-200 dark:border-dark"
+ className="mb-2 overflow-hidden transition-all border rounded bg-background"
>
<div
style={{
diff --git a/studio/components/ui/ProductMenu/ProductMenu.tsx b/studio/components/ui/ProductMenu/ProductMenu.tsx
index ded04b416f5..92bdf07f5b6 100644
--- a/studio/components/ui/ProductMenu/ProductMenu.tsx
+++ b/studio/components/ui/ProductMenu/ProductMenu.tsx
@@ -43,7 +43,7 @@ const ProductMenu = ({ page, menu }: ProductMenuProps) => {
</div>
</div>
</div>
- {idx !== menu.length - 1 && <div className="h-px w-full bg-scale-500"></div>}
+ {idx !== menu.length - 1 && <div className="h-px w-full bg-overlay"></div>}
</div>
))}
</Menu>
diff --git a/studio/components/ui/SchemaSelector.tsx b/studio/components/ui/SchemaSelector.tsx
index f90227b9e9f..5e84e4977bc 100644
--- a/studio/components/ui/SchemaSelector.tsx
+++ b/studio/components/ui/SchemaSelector.tsx
@@ -68,7 +68,7 @@ const SchemaSelector = ({
icon={<IconLoader className="animate-spin" size={12} />}
>
<div className="w-full flex space-x-3 py-0.5">
- <p className="text-xs text-light">Loading schemas...</p>
+ <p className="text-xs text-foreground-light">Loading schemas...</p>
</div>
</Button>
)}
@@ -99,7 +99,7 @@ const SchemaSelector = ({
}
>
<div className="w-full flex space-x-3 py-0.5">
- <p className="text-xs text-light">schema</p>
+ <p className="text-xs text-foreground-light">schema</p>
<p className="text-xs">
{selectedSchemaName === '*' ? 'All schemas' : selectedSchemaName}
</p>
diff --git a/studio/components/ui/SparkBar.tsx b/studio/components/ui/SparkBar.tsx
index 0c64a00d001..44c31d56bee 100644
--- a/studio/components/ui/SparkBar.tsx
+++ b/studio/components/ui/SparkBar.tsx
@@ -48,7 +48,7 @@ const SparkBar = ({
)}
<div
className={`relative rounded h-1 overflow-hidden w-full border p-0 ${
- bgClass ? bgClass : 'bg-gray-100 dark:bg-gray-600'
+ bgClass ? bgClass : 'bg-overlay-hover'
} ${borderClass ? borderClass : 'border-none'}`}
>
<div
diff --git a/studio/components/ui/States/EmptyListState.tsx b/studio/components/ui/States/EmptyListState.tsx
index 616aad74ce2..20c44a8e372 100644
--- a/studio/components/ui/States/EmptyListState.tsx
+++ b/studio/components/ui/States/EmptyListState.tsx
@@ -10,8 +10,8 @@ const EmptyListState = ({ title, description }: { title: string; description: st
"
>
<div className="flex flex-col gap-1">
- <div className="border-scale-600 dark:border-scale-500 relative flex h-4 w-32 items-center rounded border border-dashed px-2"></div>
- <div className="border-scale-600 dark:border-scale-500 relative flex h-4 w-32 items-center rounded border border-dashed px-2">
+ <div className="relative flex h-4 w-32 items-center rounded border border-dashed px-2"></div>
+ <div className="relative flex h-4 w-32 items-center rounded border border-dashed px-2">
<div className="absolute right-1 -bottom-4">
<svg
xmlns="http://www.w3.org/2000/svg"
diff --git a/studio/components/ui/TwoOptionToggle.tsx b/studio/components/ui/TwoOptionToggle.tsx
index 8495cf8d0bb..bd076338e88 100644
--- a/studio/components/ui/TwoOptionToggle.tsx
+++ b/studio/components/ui/TwoOptionToggle.tsx
@@ -13,14 +13,14 @@ const TwoOptionToggle = ({
width = 50,
activeOption,
onClickOption,
- borderOverride = 'border-gray-600 dark:border-gray-800',
+ borderOverride = 'border-stronger',
}: TwoOptionToggleProps) => {
const buttonStyle = (
isActive: boolean
) => `absolute top-0 z-1 text-xs inline-flex h-full items-center justify-center font-medium
${
- isActive ? 'hover:text-foreground-light dark:hover:text-white' : 'hover:text-gray-600'
- } dark:hover:text-white focus:z-10 focus:outline-none focus:border-blue-300 focus:ring-blue
+ isActive ? 'hover:text-foreground-light hover:text-foreground' : 'hover:text-foreground'
+ } hover:text-foreground focus:z-10 focus:outline-none focus:border-blue-300 focus:ring-blue
transition ease-in-out duration-150`
return (
@@ -32,8 +32,8 @@ const TwoOptionToggle = ({
style={{ width, translate: activeOption === options[1] ? '0px' : `${width - 2}px` }}
aria-hidden="true"
className={clsx(
- 'z-0 inline-block rounded h-full bg-scale-200 dark:bg-scale-600 shadow transform',
- 'transition-all ease-in-out border border-scale-700'
+ 'z-0 inline-block rounded h-full bg-overlay-hover shadow transform',
+ 'transition-all ease-in-out border border-strong'
)}
></span>
{options.map((option: any, index: number) => (
diff --git a/studio/components/ui/UpgradeToPro.tsx b/studio/components/ui/UpgradeToPro.tsx
index a20a8fd6544..95e46d86f7d 100644
--- a/studio/components/ui/UpgradeToPro.tsx
+++ b/studio/components/ui/UpgradeToPro.tsx
@@ -37,8 +37,7 @@ const UpgradeToPro = ({
<div
className={[
'block w-full rounded border border-opacity-20 py-4 px-6',
- 'border-gray-600 bg-gray-100',
- 'dark:border-gray-300 dark:bg-gray-400',
+ 'border-overlay bg-surface-200',
].join(' ')}
>
<div className="flex space-x-3">
@@ -70,8 +69,8 @@ const UpgradeToPro = ({
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'border border-scale-200 text-center', //border
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow', // background
+ 'border border-background text-center', //border
+ 'rounded bg-alternative py-1 px-2 leading-none shadow', // background
].join(' ')}
>
<span className="text-xs text-foreground">
diff --git a/studio/components/ui/WarningBanner.tsx b/studio/components/ui/WarningBanner.tsx
index 5ca30d5092f..7b656fb54cd 100644
--- a/studio/components/ui/WarningBanner.tsx
+++ b/studio/components/ui/WarningBanner.tsx
@@ -2,16 +2,14 @@ import { IconAlertCircle } from 'ui'
const WarningBanner = ({ title, description }: { title: string; description?: string }) => {
return (
- <div className="rounded bg-yellow-900 px-6 py-3">
+ <div className="rounded bg-warning-200 px-6 py-3">
<div className="flex flex-row gap-4">
- <div className="mt-1 text-yellow-1100 dark:text-yellow-800">
+ <div className="mt-1 text-warning">
<IconAlertCircle size={14} strokeWidth={2} />
</div>
<div className="flex flex-col items-start gap-x-3 xl:flex-row xl:items-center">
- <h2 className="text-sm text-foreground dark:text-scale-100">{title}</h2>
- {description && (
- <p className="text-xs text-yellow-1200 dark:text-yellow-800">{description}</p>
- )}
+ <h2 className="text-sm text-foreground">{title}</h2>
+ {description && <p className="text-xs text-warning">{description}</p>}
</div>
</div>
</div>
diff --git a/studio/package.json b/studio/package.json
index 60d6dcb265a..bce7724b70a 100644
--- a/studio/package.json
+++ b/studio/package.json
@@ -48,7 +48,9 @@
"common-tags": "^1.8.2",
"config": "*",
"configcat-js": "^7.0.0",
+ "dat.gui": "^0.7.9",
"dayjs": "^1.11.10",
+ "eslint-config-next": "^13.3.0",
"file-saver": "^2.0.5",
"framer-motion": "^6.5.1",
"generate-password": "^1.7.0",
diff --git a/studio/pages/_app.tsx b/studio/pages/_app.tsx
index 46ef0021370..f2784017dcd 100644
--- a/studio/pages/_app.tsx
+++ b/studio/pages/_app.tsx
@@ -21,7 +21,7 @@ import { SessionContextProvider } from '@supabase/auth-helpers-react'
import { createClient } from '@supabase/supabase-js'
import { Hydrate, QueryClientProvider } from '@tanstack/react-query'
import { ReactQueryDevtools } from '@tanstack/react-query-devtools'
-import { ThemeProvider } from 'common'
+import { ThemeProvider, useThemeSandbox } from 'common'
import dayjs from 'dayjs'
import customParseFormat from 'dayjs/plugin/customParseFormat'
import relativeTime from 'dayjs/plugin/relativeTime'
@@ -143,6 +143,8 @@ function CustomApp({ Component, pageProps }: AppPropsWithLayout) {
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [])
+ useThemeSandbox()
+
return (
<QueryClientProvider client={queryClient}>
<Hydrate state={pageProps.dehydratedState}>
diff --git a/studio/pages/account/security.tsx b/studio/pages/account/security.tsx
index f7db473474f..37855cffc83 100644
--- a/studio/pages/account/security.tsx
+++ b/studio/pages/account/security.tsx
@@ -7,12 +7,11 @@ import { FormHeader } from 'components/ui/Forms'
import { useMfaListFactorsQuery } from 'data/profile/mfa-list-factors-query'
const collapsibleClasses = [
- 'bg-scale-100 dark:bg-scale-300',
- 'hover:bg-scale-200 dark:hover:bg-scale-500',
- 'data-open:bg-scale-200 dark:data-open:bg-scale-500',
- 'border-scale-300',
- 'dark:border-scale-500 hover:border-scale-500',
- 'dark:hover:border-scale-700 data-open:border-scale-700',
+ 'bg-surface-100',
+ 'hover:bg-overlay-hover',
+ 'data-open:bg-selection',
+ 'border-default',
+ 'hover:border-strong data-open:border-strong',
'data-open:pb-px col-span-12 rounded',
'-space-y-px overflow-hidden',
'border shadow',
@@ -49,7 +48,7 @@ const Security: NextPageWithLayout = () => {
) : null}
</button>
</Collapsible.Trigger>
- <Collapsible.Content className="group border-t border-scale-500 bg-scale-100 py-6 px-6 text-foreground dark:bg-scale-300">
+ <Collapsible.Content className="group border-t border-default bg-surface-100 py-6 px-6 text-foreground">
<TOTPFactors />
</Collapsible.Content>
</Collapsible>
diff --git a/studio/pages/integrations/github/[integrationId]/choose-project.tsx b/studio/pages/integrations/github/[integrationId]/choose-project.tsx
index 875eb39ec69..47888d52e28 100644
--- a/studio/pages/integrations/github/[integrationId]/choose-project.tsx
+++ b/studio/pages/integrations/github/[integrationId]/choose-project.tsx
@@ -108,7 +108,7 @@ This Supabase integration will allow you to link a Supabase project to a GitHub
<ScaffoldDivider />
</main>
- <ScaffoldContainer className="bg-body flex flex-row gap-6 py-6 border-t">
+ <ScaffoldContainer className="bg-background flex flex-row gap-6 py-6 border-t">
<div className="flex items-center gap-2 text-xs text-foreground-lighter">
<IconBook size={16} /> Docs
</div>
diff --git a/studio/pages/integrations/github/install.tsx b/studio/pages/integrations/github/install.tsx
index 71c75de64ce..f1f63c635b1 100644
--- a/studio/pages/integrations/github/install.tsx
+++ b/studio/pages/integrations/github/install.tsx
@@ -178,7 +178,7 @@ const GitHubIntegration: NextPageWithLayout = () => {
<ScaffoldDivider />
</main>
- <ScaffoldContainer className="bg-body flex flex-row gap-6 py-6">
+ <ScaffoldContainer className="bg-background flex flex-row gap-6 py-6">
<div className="flex items-center gap-2 text-xs text-foreground-lighter">
<IconBook size={16} /> Docs
</div>
diff --git a/studio/pages/join/index.tsx b/studio/pages/join/index.tsx
index 03e25f19a2f..a4a188f45ea 100644
--- a/studio/pages/join/index.tsx
+++ b/studio/pages/join/index.tsx
@@ -189,7 +189,7 @@ const JoinOrganizationPage = () => {
</div>
<div
- className={['border-t border-scale-400', isError ? 'bg-scale-100' : 'bg-transparent'].join(
+ className={['border-t border-muted', isError ? 'bg-alternative' : 'bg-transparent'].join(
' '
)}
>
@@ -236,7 +236,7 @@ const JoinOrganizationPage = () => {
return (
<div
className={[
- 'flex h-full min-h-screen bg-scale-200',
+ 'flex h-full min-h-screen bg-background',
'w-full flex-col place-items-center',
'items-center justify-center gap-8 px-5',
].join(' ')}
@@ -251,7 +251,7 @@ const JoinOrganizationPage = () => {
<div
className="
mx-auto overflow-hidden rounded-md border
- border-scale-400 bg-scale-100 text-center shadow
+ border-muted bg-alternative text-center shadow
md:w-[400px]
"
>
diff --git a/studio/pages/project/[ref]/auth/policies.tsx b/studio/pages/project/[ref]/auth/policies.tsx
index ad05297811a..f1e64851cfc 100644
--- a/studio/pages/project/[ref]/auth/policies.tsx
+++ b/studio/pages/project/[ref]/auth/policies.tsx
@@ -115,7 +115,7 @@ const AuthPoliciesPage: NextPageWithLayout = () => {
<Input
size="small"
placeholder="Filter tables and policies"
- className="block w-64 text-sm placeholder-gray-400"
+ className="block w-64 text-sm placeholder-border-muted"
value={searchString}
onChange={(e) => setSearchString(e.target.value)}
icon={<IconSearch size="tiny" />}
diff --git a/studio/pages/project/[ref]/database/schemas.tsx b/studio/pages/project/[ref]/database/schemas.tsx
index 47d5fa2d712..5563db13520 100644
--- a/studio/pages/project/[ref]/database/schemas.tsx
+++ b/studio/pages/project/[ref]/database/schemas.tsx
@@ -32,9 +32,9 @@ const SchemasPage: NextPageWithLayout = () => {
return (
<>
<div className="flex w-full h-full flex-col">
- <div className="p-4 border-b border-scale-500">
+ <div className="p-4 border-b border-default">
{isLoading && (
- <div className="h-[34px] w-[260px] bg-scale-1000 rounded shimmering-loader" />
+ <div className="h-[34px] w-[260px] bg-foreground-lighter rounded shimmering-loader" />
)}
{isError && <AlertError error={error} subject="Failed to retrieve schemas" />}
diff --git a/studio/pages/project/[ref]/logs/explorer/index.tsx b/studio/pages/project/[ref]/logs/explorer/index.tsx
index ce6a24559b2..1cdfc2bc3fd 100644
--- a/studio/pages/project/[ref]/logs/explorer/index.tsx
+++ b/studio/pages/project/[ref]/logs/explorer/index.tsx
@@ -279,7 +279,7 @@ export const LogsExplorerPage: NextPageWithLayout = () => {
</div>
</Modal.Content>
</div>
- <div className="py-3 border-t bg-scale-300">
+ <div className="py-3 border-t bg-surface-100">
<Modal.Content>
<div className="flex items-center justify-end gap-2">
<Button
diff --git a/studio/pages/project/[ref]/logs/explorer/templates.tsx b/studio/pages/project/[ref]/logs/explorer/templates.tsx
index 6df2e55ec40..320e8643f9f 100644
--- a/studio/pages/project/[ref]/logs/explorer/templates.tsx
+++ b/studio/pages/project/[ref]/logs/explorer/templates.tsx
@@ -38,8 +38,8 @@ const Template = ({ projectRef, template }: { projectRef?: string; template: Log
icon={
<div
className="duration-400 flex h-6 w-6 items-center justify-center rounded
- bg-scale-1200
- text-scale-100
+ bg-foreground
+ text-background
transition-colors
group-hover:bg-brand
group-hover:text-brand-600
@@ -58,10 +58,10 @@ const Template = ({ projectRef, template }: { projectRef?: string; template: Log
<Popover
onOpenChange={setShowPreview}
open={showPreview}
- className="rounded-lg bg-scale-100"
+ className="rounded-lg bg-alternative"
size="content"
overlay={
- <pre className="whitespace-pre-line break-words rounded-lg bg-scale-100 p-4 text-sm">
+ <pre className="whitespace-pre-line break-words rounded-lg bg-alternative p-4 text-sm">
{template.searchString}
</pre>
}
diff --git a/studio/pages/project/[ref]/reports/query-performance.tsx b/studio/pages/project/[ref]/reports/query-performance.tsx
index 6e942110acc..15bc993b093 100644
--- a/studio/pages/project/[ref]/reports/query-performance.tsx
+++ b/studio/pages/project/[ref]/reports/query-performance.tsx
@@ -104,7 +104,7 @@ const QueryPerformanceReport: NextPageWithLayout = () => {
<Accordion
openBehaviour="multiple"
chevronAlign="right"
- className=" border p-2 bg-scale-300 rounded"
+ className="border p-2 bg-surface-100 rounded"
>
<Accordion.Item
header={
diff --git a/studio/pages/project/[ref]/settings/api.tsx b/studio/pages/project/[ref]/settings/api.tsx
index 99c3b18c49d..2289ea5c7b3 100644
--- a/studio/pages/project/[ref]/settings/api.tsx
+++ b/studio/pages/project/[ref]/settings/api.tsx
@@ -15,7 +15,7 @@ const ApiSettings: NextPageWithLayout = () => {
) : (
<div>
<h3 className="mb-6 text-xl text-foreground">API Settings</h3>
- <div className="flex items-center justify-center rounded border border-scale-400 bg-scale-300 p-8">
+ <div className="flex items-center justify-center rounded border border-overlay bg-surface-100 p-8">
<IconAlertCircle strokeWidth={1.5} />
<p className="text-sm text-foreground-light ml-2">
API settings are unavailable as the project is not active
diff --git a/studio/pages/project/[ref]/settings/vault/secrets.tsx b/studio/pages/project/[ref]/settings/vault/secrets.tsx
index 8b50c447ac0..39cd5429f99 100644
--- a/studio/pages/project/[ref]/settings/vault/secrets.tsx
+++ b/studio/pages/project/[ref]/settings/vault/secrets.tsx
@@ -30,7 +30,7 @@ const VaultSettingsSecrets: NextPageWithLayout = () => {
<div className="1xl:px-28 mx-auto flex flex-col px-5 py-6 lg:px-16 xl:px-24 2xl:px-32 ">
<FormHeader title="Vault" description="Application level encryption for your project" />
{isLoading ? (
- <div className="border rounded border-scale-500 p-12 space-y-2">
+ <div className="border rounded border-default p-12 space-y-2">
<ShimmeringLoader />
<ShimmeringLoader className="w-3/4" />
<ShimmeringLoader className="w-1/2" />
diff --git a/studio/pages/sign-in-mfa.tsx b/studio/pages/sign-in-mfa.tsx
index eaee6c12a22..d5eb973bc3f 100644
--- a/studio/pages/sign-in-mfa.tsx
+++ b/studio/pages/sign-in-mfa.tsx
@@ -61,7 +61,7 @@ const SignInMfaPage: NextPageWithLayout = () => {
if (loading) {
return (
- <div className="flex flex-col flex-1 bg-scale-100 h-full items-center justify-center">
+ <div className="flex flex-col flex-1 bg-alternative h-full items-center justify-center">
<Loading />
</div>
)
diff --git a/studio/pages/sign-in.tsx b/studio/pages/sign-in.tsx
index 1fc0fb40df0..8a1fbdf37a0 100644
--- a/studio/pages/sign-in.tsx
+++ b/studio/pages/sign-in.tsx
@@ -26,10 +26,10 @@ const SignInPage: NextPageWithLayout = () => {
<div className="relative">
<div className="absolute inset-0 flex items-center">
- <div className="w-full border-t border-scale-700" />
+ <div className="w-full border-t border-strong" />
</div>
<div className="relative flex justify-center text-sm">
- <span className="px-2 text-sm bg-scale-200 text-foreground">or</span>
+ <span className="px-2 text-sm bg-background text-foreground">or</span>
</div>
</div>
diff --git a/studio/pages/sign-up.tsx b/studio/pages/sign-up.tsx
index 99bce09b041..8f2379aadcd 100644
--- a/studio/pages/sign-up.tsx
+++ b/studio/pages/sign-up.tsx
@@ -12,10 +12,10 @@ const SignUpPage: NextPageWithLayout = () => {
<div className="relative">
<div className="absolute inset-0 flex items-center">
- <div className="w-full border-t border-scale-700" />
+ <div className="w-full border-t border-strong" />
</div>
<div className="relative flex justify-center text-sm">
- <span className="bg-scale-200 px-2 text-sm text-foreground">or</span>
+ <span className="bg-background px-2 text-sm text-foreground">or</span>
</div>
</div>
diff --git a/studio/pages/support/new.tsx b/studio/pages/support/new.tsx
index 55dd424239c..059a28f2458 100644
--- a/studio/pages/support/new.tsx
+++ b/studio/pages/support/new.tsx
@@ -71,8 +71,8 @@ const SupportPage = () => {
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div
className={[
- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',
- 'border border-scale-200',
+ 'rounded bg-alternative py-1 px-2 leading-none shadow',
+ 'border border-background',
].join(' ')}
>
<span className="text-xs text-foreground">Check Supabase status page</span>
diff --git a/studio/pages/vercel/integrate.tsx b/studio/pages/vercel/integrate.tsx
index c10f97a1fbf..1381fb38d64 100644
--- a/studio/pages/vercel/integrate.tsx
+++ b/studio/pages/vercel/integrate.tsx
@@ -276,7 +276,7 @@ const IntegrationProject = observer(() => {
</Select>
</div>
<div
- className="w-full rounded-sm border border-scale-700
+ className="w-full rounded-sm border border-strong
bg-panel-header-light dark:bg-panel-header-dark"
>
<div className="flex items-center justify-between p-6">
diff --git a/studio/styles/contextMenu.scss b/studio/styles/contextMenu.scss
index 2acf83d7d31..9608d8dc8e5 100644
--- a/studio/styles/contextMenu.scss
+++ b/studio/styles/contextMenu.scss
@@ -1,20 +1,20 @@
.react-contexify {
- @apply dark:bg-scale-300 border border-scale-500;
+ @apply bg-surface-100 border border-default;
.react-contexify__item {
.react-contexify__item__content {
@apply dark:text-white text-sm;
}
.react-contexify__submenu {
- @apply dark:bg-gray-300 border;
+ @apply bg-surface-100 border;
}
}
.react-contexify__item:not(.react-contexify__item--disabled):hover
> .react-contexify__item__content,
.react-contexify__item:not(.react-contexify__item--disabled):focus
> .react-contexify__item__content {
- @apply dark:bg-gray-600;
+ @apply dark:bg-overlay-hover;
}
.react-contexify__separator {
- @apply dark:bg-gray-500;
+ @apply dark:bg-overlay;
}
}
diff --git a/studio/styles/date-picker.scss b/studio/styles/date-picker.scss
index f4c101c5d46..898ec236389 100644
--- a/studio/styles/date-picker.scss
+++ b/studio/styles/date-picker.scss
@@ -1,11 +1,11 @@
/* // date picker */
.react-datepicker__input-container input {
- @apply block w-full text-base md:text-sm bg-white border border-scale-300 rounded shadow-sm;
+ @apply block w-full text-base md:text-sm bg-white border border-background-surface-100 rounded shadow-sm;
}
.react-datepicker-popper {
- @apply z-40 w-72 text-sm bg-scale-100 dark:bg-scale-300 shadow px-3 py-2 border-2 border-scale-200 rounded;
+ @apply z-40 w-72 text-sm bg-surface-100 shadow px-3 py-2 border-2 border-background rounded;
}
.react-datepicker-left {
@@ -17,7 +17,7 @@
}
.react-datepicker__portal {
- @apply absolute z-10 w-72 text-sm transform-none bg-white shadow px-3 py-2 top-12 right-0 border-2 border-scale-200 rounded;
+ @apply absolute z-10 w-72 text-sm transform-none bg-white shadow px-3 py-2 top-12 right-0 border-2 border-background rounded;
}
.react-datepicker__month-container {
@@ -30,7 +30,7 @@
}
.react-datepicker__current-month {
- @apply ml-2.5 text-lg font-semibold text-scale-800;
+ @apply ml-2.5 text-lg font-semibold text-border-stronger;
}
.react-datepicker__week {
@@ -50,18 +50,18 @@
}
.react-datepicker__navigation--previous {
- @apply right-12 w-10 h-10 rounded transition flex items-center justify-center hover:bg-scale-200;
+ @apply right-12 w-10 h-10 rounded transition flex items-center justify-center hover:bg-background;
}
.react-datepicker__navigation--next {
- @apply right-4 w-10 h-10 rounded transition flex items-center justify-center hover:bg-scale-200;
+ @apply right-4 w-10 h-10 rounded transition flex items-center justify-center hover:bg-background;
}
.react-datepicker__day {
@apply w-10 h-10 flex items-center font-normal justify-center text-sm leading-loose transition text-foreground-light;
/* @apply mb-1 py-1; */
@apply -space-y-px;
- @apply border border-scale-500;
+ @apply border border-default;
}
.react-datepicker__day--disabled {
@@ -69,7 +69,7 @@
}
.react-datepicker__day--outside-month {
- @apply text-scale-800;
+ @apply text-border-stronger;
}
.react-datepicker__day--in-range {
@@ -81,11 +81,11 @@
}
.react-datepicker__day--selecting-range-start {
- @apply bg-scale-200;
+ @apply bg-background;
}
.react-datepicker__day--selecting-range-end {
- @apply bg-scale-200;
+ @apply bg-background;
}
.react-datepicker__day--selected,
@@ -94,11 +94,11 @@
}
.react-datepicker__day--range-start {
- @apply bg-brand text-white hover:text-scale-700 hover:bg-white;
+ @apply bg-brand text-white hover:text-border-strong hover:bg-white;
}
.react-datepicker__day--range-end {
- @apply bg-brand text-white hover:text-scale-700 hover:bg-white;
+ @apply bg-brand text-white hover:text-border-strong hover:bg-white;
}
.react-datepicker__day--highlighted {
diff --git a/studio/styles/grid.scss b/studio/styles/grid.scss
index 151571178a7..3da741adae9 100644
--- a/studio/styles/grid.scss
+++ b/studio/styles/grid.scss
@@ -11,7 +11,7 @@
.rdg-cell {
@apply flex;
@apply text-grid;
- @apply border-scale-400 dark:border-scale-500 border-r border-b;
+ @apply border-default border-r border-b;
@apply text-foreground;
white-space: nowrap;
overflow: hidden;
@@ -29,7 +29,7 @@
}
.rdg-cell-frozen-last {
- @apply border-scale-400 dark:border-scale-500 border-r-4 shadow-none;
+ @apply border-default border-r-4 shadow-none;
}
.rdg-cell[aria-selected='true'] {
@@ -38,7 +38,7 @@
.rdg {
@apply box-border select-none overflow-x-auto overflow-y-scroll bg-transparent;
- @apply border-scale-400 dark:border-scale-500 border-t border-b border-r-0 border-l-0;
+ @apply border-default border-t border-b border-r-0 border-l-0;
contain: strict;
-webkit-user-select: none;
font-size: 14px;
@@ -71,7 +71,7 @@
*/
.rdg-header-row {
- @apply bg-table-header-light dark:bg-table-header-dark select-none border-none;
+ @apply bg-surface-200 select-none border-none;
}
.rdg-header-row {
@@ -81,7 +81,7 @@
}
.rdg-header-row .rdg-cell {
- @apply bg-table-header-light dark:bg-table-header-dark border-scale-400 dark:border-scale-500 border-b;
+ @apply bg-surface-200 border-default border-b;
}
.rdg-header-row .rdg-cell p {
@@ -91,13 +91,13 @@
@apply flex h-full items-center px-2 transition duration-100 ease-in-out;
}
.rdg-header-row .rdg-cell .react-contextmenu-wrapper:hover {
- @apply bg-scale-400;
+ @apply bg-surface-200;
}
.rdg-header-row .rdg-checkbox {
- @apply bg-table-header-light dark:bg-table-header-dark border-scale-400 dark:border-scale-500 rounded-sm border;
+ @apply bg-surface-200 border-default rounded-sm border;
}
.rdg-header-row .rdg-checkbox-input:checked + .rdg-checkbox {
- @apply border-scale-400 dark:border-scale-500 border-4 bg-green-900;
+ @apply border-default border-4 bg-green-900;
}
.rdg-header-row .rdg-checkbox-input:focus + .rdg-checkbox {
box-shadow: none;
@@ -132,8 +132,8 @@
/* select row */
.rdg-row[aria-selected='true'] {
- @apply bg-scale-300 dark:bg-scale-300;
- @apply hover:bg-scale-300 dark:bg-scale-300;
+ @apply bg-surface-100;
+ @apply hover:bg-surface-100;
}
.tab-cursor {
@@ -185,10 +185,10 @@
[type='checkbox'] {
@apply cursor-pointer rounded border border-solid;
- @apply text-brand-600 border-scale-400 transition-all;
+ @apply text-brand-600 border-default transition-all;
@apply hover:border-brand focus:ring-brand-300 focus:outline-none;
- @apply dark:border-scale-500 dark:bg-transparent dark:text-white;
+ @apply dark:bg-transparent dark:text-white;
@apply dark:hover:border-green-900;
margin-top: 2px;
@@ -274,21 +274,21 @@
}
.rdg__segmented-control {
- @apply border-scale-400 dark:border-scale-500 relative mx-2 h-8 rounded-md border;
+ @apply border-default relative mx-2 h-8 rounded-md border;
}
.rdg__segmented-control__button {
@apply absolute top-0 inline-flex h-full items-center justify-center;
@apply text-xs font-medium;
- @apply text-scale-400;
- @apply active:bg-scale-100 hover:text-white focus:z-10 focus:outline-none;
+ @apply text-border-muted;
+ @apply active:bg-alternative hover:text-white focus:z-10 focus:outline-none;
@apply transition duration-150 ease-in-out;
@apply cursor-pointer;
z-index: 1;
}
.rdg__segmented-control__button--option {
- @apply text-scale-200;
+ @apply text-background;
}
.rdg__segmented-control__button--right {
@@ -300,7 +300,7 @@
}
.rdg__segmented-control__label {
- @apply bg-scale-600 border-scale-600 z-0 inline-block h-full transform rounded border shadow transition duration-200 ease-in-out;
+ @apply bg-overlay-hover border-control z-0 inline-block h-full transform rounded border shadow transition duration-200 ease-in-out;
}
.rdg__segmented-control__label--left {
@@ -433,7 +433,7 @@
*/
.sb-grid-footer {
- @apply bg-scale-100 dark:bg-scale-300 flex h-10 items-center justify-between px-2;
+ @apply bg-surface-100 flex h-10 items-center justify-between px-2;
}
.sb-grid-footer__inner {
@@ -524,7 +524,7 @@
.sb-grid-select-cell__header__input {
/* @apply focus:ring-brand-300; */
- @apply border-scale-300;
+ @apply border-background-surface-100;
}
/*
@@ -532,7 +532,7 @@
*/
.sb-grid-header {
- @apply bg-scale-100 dark:bg-scale-300 flex h-10 justify-between px-2;
+ @apply bg-surface-100 flex h-10 justify-between px-2;
}
.sb-grid-header__inner {
diff --git a/studio/styles/main.scss b/studio/styles/main.scss
index 6cd6bb705b8..6ff7d014356 100644
--- a/studio/styles/main.scss
+++ b/studio/styles/main.scss
@@ -25,7 +25,7 @@ html,
body,
#__next,
.main {
- @apply bg-scale-200;
+ @apply bg-background;
@apply text-foreground;
height: 100%;
padding: 0;
@@ -72,11 +72,11 @@ input.form-control,
@apply border;
@apply focus:shadow-md;
- @apply focus:border-scale-900;
- @apply focus:ring-scale-400;
+ @apply focus:border-stronger;
+ @apply focus:ring-border-overlay;
- @apply bg-scale-200 dark:bg-scale-200;
- @apply border-scale-700 border;
+ @apply bg-background;
+ @apply border-strong border;
@apply outline-none;
@apply focus:ring-2 focus:ring-current;
diff --git a/studio/styles/react-data-grid-logs.scss b/studio/styles/react-data-grid-logs.scss
index ba3f2440cbd..aba75a87374 100644
--- a/studio/styles/react-data-grid-logs.scss
+++ b/studio/styles/react-data-grid-logs.scss
@@ -57,7 +57,7 @@
.syntax-highlight {
counter-reset: line-numbering;
font-family: Menlo, Monaco, monospace;
- color: var(--colors-scale10);
+ color: hsl(var(--foreground-lighter));
word-break: break-word;
}
@@ -66,7 +66,7 @@
counter-increment: line-numbering;
padding-right: 0px;
display: inline-block;
- color: var(--colors-scale8);
+ color: hsl(var(--border-stronger));
/* space after numbers */
width: 2rem;
text-align: left;
@@ -76,11 +76,11 @@
animation: shimmer 1.5s infinite linear;
background: linear-gradient(
to right,
- var(--colors-scale2) 0%,
+ hsl(var(--background-default)) 0%,
hsl(var(--brand-default)) 25%,
hsl(var(--brand-300)) 35%,
- var(--colors-scale2) 45%,
- var(--colors-scale3) 75%
+ hsl(var(--background-default)) 45%,
+ hsl(var(--background-surface-100)) 75%
);
background-size: 3000px 100%;
}
diff --git a/studio/styles/storage.scss b/studio/styles/storage.scss
index 92c6789701f..8cfc3fda8c8 100644
--- a/studio/styles/storage.scss
+++ b/studio/styles/storage.scss
@@ -52,9 +52,9 @@ button[aria-haspopup='menu']:focus-visible {
animation: shimmer 2s infinite linear;
background: linear-gradient(
to right,
- var(--colors-scale3) 4%,
- var(--colors-scale4) 25%,
- var(--colors-scale3) 36%
+ hsl(var(--background-surface-100)) 4%,
+ hsl(var(--background-surface-200)) 25%,
+ hsl(var(--background-surface-100)) 36%
);
background-size: 1000px 100%;
}
@@ -63,9 +63,9 @@ button[aria-haspopup='menu']:focus-visible {
animation: shimmer 2s infinite linear;
background: linear-gradient(
to right,
- var(--colors-scale5) 4%,
- var(--colors-scale6) 25%,
- var(--colors-scale5) 36%
+ hsl(var(--background-surface-300)) 4%,
+ hsl(var(--background-overlay-hover)) 25%,
+ hsl(var(--background-surface-300)) 36%
);
background-size: 1000px 100%;
}
diff --git a/studio/styles/ui.scss b/studio/styles/ui.scss
index 00cfe212e5b..07fb71d5fbd 100644
--- a/studio/styles/ui.scss
+++ b/studio/styles/ui.scss
@@ -69,7 +69,7 @@
}
.Form .form-help {
- @apply text-gray-400;
+ @apply text-border-muted;
}
.Form hr {
@@ -77,11 +77,11 @@
}
.section-block {
- @apply p-0 rounded bg-panel-body-light dark:bg-panel-body-dark border border-panel-border-light dark:border-panel-border-dark;
+ @apply p-0 rounded bg-surface-100 border border-overlay;
}
.section-block--header {
- @apply border-b border-panel-border-light dark:border-panel-border-dark;
+ @apply border-b border-overlay;
}
.section-block--header h1,
@@ -96,7 +96,7 @@
}
.section-block--footer {
- @apply bg-panel-footer-light dark:bg-panel-footer-dark border-t border-panel-border-light dark:border-panel-border-dark;
+ @apply border-overlay bg-surface-100;
}
.section-block--footer button:not(.mr-0) {
@@ -119,8 +119,8 @@
.table-container thead th {
@apply text-foreground-light font-normal text-sm;
- @apply bg-table-header-light dark:bg-table-header-dark;
- @apply border-t border-b border-table-border-light dark:border-table-border-dark;
+ @apply bg-surface-200;
+ @apply border-t border-b border-default;
}
.table-container thead th:first-child {
@@ -134,7 +134,7 @@
}
.table-container tbody tr {
- @apply bg-table-body-light dark:bg-table-body-dark;
+ @apply bg-surface-100;
}
.table-container tbody .tr--link {
@@ -142,19 +142,19 @@
}
.table-container tbody .tr--link:hover {
- @apply bg-table-header-light dark:bg-table-header-dark;
+ @apply bg-surface-200;
}
.table-container tbody td {
- @apply border-b p-3 px-4 text-sm text-gray-1100 border-table-border-light dark:border-table-border-dark;
+ @apply border-b p-3 px-4 text-sm text-gray-1100 border-default;
}
.table-container tbody td:first-child {
- @apply pl-6 border-b border-l border-table-border-light dark:border-table-border-dark;
+ @apply pl-6 border-b border-l border-default;
}
.table-container tbody td:last-child {
- @apply pr-6 border-b border-r border-table-border-light dark:border-table-border-dark;
+ @apply pr-6 border-b border-r border-default;
}
.table-container tbody tr:last-child td:first-child {
@@ -192,12 +192,20 @@
/* Docs */
.Docs {
&--inner-wrapper {
- background: linear-gradient(90deg, var(--colors-scale1) 50%, var(--colors-scale3) 50%);
+ background: linear-gradient(
+ 90deg,
+ hsl(var(--background-alternative)) 50%,
+ hsl(var(--background-surface-100)) 50%
+ );
width: 100%;
}
.dark &--inner-wrapper {
- background: linear-gradient(90deg, var(--colors-scale3) 50%, var(--colors-scale2) 50%);
+ background: linear-gradient(
+ 90deg,
+ hsl(var(--background-surface-100)) 50%,
+ hsl(var(--background-default)) 50%
+ );
}
// h1,
@@ -207,13 +215,13 @@
// }
.doc-heading {
- @apply text-black dark:text-white capitalize mt-4 px-6 w-1/2;
+ @apply text-foreground capitalize mt-4 px-6 w-1/2;
hyphens: auto;
max-width: 50%;
}
.doc-section {
- @apply border-b flex border-scale-500;
+ @apply border-b flex border-default;
}
&.Docs--table-editor .doc-section--introduction {
@@ -351,7 +359,7 @@
.radix-tooltip-arrow {
polygon {
- @apply fill-scale-100 dark:fill-scale-100;
+ @apply fill-background-alternative dark:fill-background-alternative;
// fill: #eeeeee;
}
}
@@ -368,37 +376,37 @@
.thin-scrollbars {
scrollbar-width: thin;
- scrollbar-color: var(--colors-slate9) var(--colors-slate1);
+ scrollbar-color: hsl(var(--foreground-muted)) hsl(var(--background-alternative));
.dark & {
- scrollbar-color: var(--colors-slate10) var(--colors-slate3o);
+ scrollbar-color: hsl(var(--foreground-lighter)) hsl(var(--background-surface-100));
}
::-webkit-scrollbar {
- background: var(--colors-slate2);
+ background: hsl(var(--background-default));
height: 3px;
width: 0px;
border-radius: 0;
.dark & {
- background: var(--colors-slate6);
+ background: hsl(var(--border-control));
}
}
::-webkit-scrollbar-track {
- -webkit-box-shadow: inset 0 0 6px var(--colors-slate6);
+ -webkit-box-shadow: inset 0 0 6px hsl(var(--border-control));
-webkit-border-radius: 5px;
border-radius: 5px;
.dark & {
- -webkit-box-shadow: inset 0 0 6px var(--colors-slate8);
+ -webkit-box-shadow: inset 0 0 6px hsl(var(--border-stronger));
}
}
::-webkit-scrollbar-thumb {
-webkit-border-radius: 5px;
border-radius: 5px;
- background: var(--colors-slate9);
+ background: hsl(var(--foreground-muted));
.dark & {
-webkit-box-shadow: inset 0 0 6px var(--colors-slate12);
@@ -438,6 +446,6 @@
}
.recharts-reference-line {
line {
- @apply stroke-scale-1000;
+ @apply stroke-foreground-lighter;
}
}
diff --git a/studio/tailwind.config.js b/studio/tailwind.config.js
index cce337bbd40..3ab956ef161 100644
--- a/studio/tailwind.config.js
+++ b/studio/tailwind.config.js
@@ -17,64 +17,64 @@ module.exports = config({
colors: {
/* typography */
'typography-body': {
- light: 'var(--colors-scale11)',
- dark: 'var(--colors-scale11)',
+ light: 'hsl(var(--foreground-light))',
+ dark: 'hsl(var(--foreground-light))',
},
'typography-body-secondary': {
- light: 'var(--colors-scale10)',
- dark: 'var(--colors-scale10)',
+ light: 'hsl(var(--foreground-lighter))',
+ dark: 'hsl(var(--foreground-lighter))',
},
'typography-body-strong': {
- light: 'var(--colors-scale12)',
- dark: 'var(--colors-scale12)',
+ light: 'hsl(var(--foreground-default))',
+ dark: 'hsl(var(--foreground-default))',
},
'typography-body-faded': {
- light: 'var(--colors-scale9)',
- dark: 'var(--colors-scale9)',
+ light: 'hsl(var(--foreground-muted))',
+ dark: 'hsl(var(--foreground-muted))',
},
/* Tables */
'table-body': {
- light: 'var(--colors-scale1)',
- dark: 'var(--colors-scale2)',
+ light: 'hsl(var(--background-default))',
+ dark: 'hsl(var(--background-default))',
},
'table-header': {
- light: 'var(--colors-scale2)', // gray[100],
- dark: 'var(--colors-scale3)', // '#1a1a1a', //gray[700],
+ light: 'hsl(var(--background-surface-100))',
+ dark: 'hsl(var(--background-surface-100))',
},
'table-footer': {
- light: 'var(--colors-scale2)', // gray[100],
- dark: 'var(--colors-scale4)', // '#1a1a1a',
+ light: 'hsl(var(--background-surface-100))',
+ dark: 'hsl(var(--background-surface-100))',
},
'table-border': {
- light: 'var(--colors-scale5)', // gray[100],
- dark: 'var(--colors-scale4)', // '#1a1a1a',
+ light: 'hsl(var(--border-default))',
+ dark: 'hsl(var(--border-default))',
},
/* Panels */
'panel-body': {
- light: 'var(--colors-scale1)',
- dark: 'var(--colors-scale3)',
+ light: 'hsl(var(--background-surface-100))',
+ dark: 'hsl(var(--background-surface-100))',
},
'panel-header': {
- light: 'var(--colors-scale1)',
- dark: 'var(--colors-scale3)',
+ light: 'hsl(var(--background-surface-100))',
+ dark: 'hsl(var(--background-surface-100))',
},
'panel-footer': {
- light: 'var(--colors-scale1)',
- dark: 'var(--colors-scale3)',
+ light: 'hsl(var(--background-surface-100))',
+ dark: 'hsl(var(--background-surface-100))',
},
'panel-border': {
- light: 'var(--colors-scale5)',
- dark: 'var(--colors-scale4)',
+ light: 'hsl(var(--border-default))',
+ dark: 'hsl(var(--border-default))',
},
'panel-border-interior': {
- light: 'var(--colors-scale4)',
- dark: 'var(--colors-scale4)',
+ light: 'hsl(var(--border-muted))',
+ dark: 'hsl(var(--border-muted))',
},
'panel-border-hover': {
- light: 'var(--colors-scale2)',
- dark: 'var(--colors-scale4)',
+ light: 'hsl(var(--border-muted))',
+ dark: 'hsl(var(--border-muted))',
},
},