The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Chore/theme switcher vars (#17864)
Terry Sutton6db6182e0aae
diff --git a/apps/www/components/AuthWidget/AuthWidgetSection.tsx b/apps/www/components/AuthWidget/AuthWidgetSection.tsxindex 23b750e693d..406247fe73c 100644--- a/apps/www/components/AuthWidget/AuthWidgetSection.tsx+++ b/apps/www/components/AuthWidget/AuthWidgetSection.tsx@@ -15,7 +15,7 @@ const supabase = createClient()function AuthWidgetSection() {- const { theme } = useTheme()+ const { resolvedTheme } = useTheme()const { basePath } = useRouter()const [radius, setRadius] = useState('4px')const [brandColor, setBrandColor] = useState({@@ -84,7 +84,7 @@ function AuthWidgetSection() {<Auth// @ts-ignoresocialLayout={layout}- theme={theme === 'dark' ? 'dark' : 'default'}+ theme={resolvedTheme === 'dark' ? 'dark' : 'default'}providers={['google', 'facebook', 'twitter']}supabaseClient={supabase}localization={{diff --git a/apps/www/components/OpenSource/OSSHero.tsx b/apps/www/components/OpenSource/OSSHero.tsxindex 56ddbd858a7..b05136f1485 100644--- a/apps/www/components/OpenSource/OSSHero.tsx+++ b/apps/www/components/OpenSource/OSSHero.tsx@@ -30,12 +30,12 @@ const OSSHero = () => ()const HeroGrid = () => {- const { theme } = useTheme()+ const { resolvedTheme } = useTheme()const { width } = useWindowSize()const isSm = useBreakpoint(640)const svgGridOptions = {- color: theme === 'dark' ? '#00d4ad' : '#015a42',+ color: resolvedTheme === 'dark' ? '#00d4ad' : '#015a42',boxWidth: width ? width * 7 : 7500,boxHeight: width ? width * 5 : 6000,xLines: isSm ? 20 : 49,diff --git a/apps/www/components/Pricing/ComputePricingModal.tsx b/apps/www/components/Pricing/ComputePricingModal.tsxindex f9fd1de21ee..0e1853a72a9 100644--- a/apps/www/components/Pricing/ComputePricingModal.tsx+++ b/apps/www/components/Pricing/ComputePricingModal.tsx@@ -5,6 +5,7 @@ import { IconXCircle, Modal } from 'ui'import pricingAddOn from '~/data/PricingAddOnTable.json'import { IconPricingIncludedCheck, IconPricingMinus } from './PricingIcons'import Link from 'next/link'+import Image from 'next/image'interface Props {showComputeModal: boolean@@ -13,7 +14,7 @@ interface Props {export default function ComputePricingModal({ showComputeModal, setShowComputeModal }: Props) {const { basePath } = useRouter()- const { theme } = useTheme()+ const { resolvedTheme } = useTheme()const columnNames = useMemo(() =>pricingAddOn.database.rows.map((row) =>@@ -38,10 +39,12 @@ export default function ComputePricingModal({ showComputeModal, setShowComputeMo<div className="grid lg:flex gap-8"><div className="prose"><div className="bg-brand-200 dark:bg-brand-200 rounded-xl w-12 h-12 flex justify-center items-center">- <img+ <Image+ width={24}+ height={24}className="w-6"src={`${basePath}/images/pricing/compute-upgrade${- theme === 'dark' ? '-green' : ''+ resolvedTheme === 'dark' ? '-green' : '-light'}.svg`}/></div>diff --git a/apps/www/components/Products/VectorAI/DeployGlobally.tsx b/apps/www/components/Products/VectorAI/DeployGlobally.tsxindex 3bbaf9bb6de..18adf0ccb38 100644--- a/apps/www/components/Products/VectorAI/DeployGlobally.tsx+++ b/apps/www/components/Products/VectorAI/DeployGlobally.tsx@@ -9,12 +9,12 @@ function getRandomNumber(min: number, max: number) {}const DeployGlobally = ({ isHovered }: { isHovered: boolean }) => {- const { theme } = useTheme()+ const { resolvedTheme } = useTheme()const ref = React.useRef<any>()const states = ['1', '2', '3']const colors = {- green: theme === 'dark' ? '#1CF7C3' : '#00B99F',- gray: theme === 'dark' ? '#151918' : '#D3D3D3',+ green: resolvedTheme === 'dark' ? '#1CF7C3' : '#00B99F',+ gray: resolvedTheme === 'dark' ? '#151918' : '#D3D3D3',}const transitionDuration = 250diff --git a/apps/www/components/Products/VectorAI/OpenAIImage.tsx b/apps/www/components/Products/VectorAI/OpenAIImage.tsxindex b28b4944411..81c0ca4d23b 100644--- a/apps/www/components/Products/VectorAI/OpenAIImage.tsx+++ b/apps/www/components/Products/VectorAI/OpenAIImage.tsx@@ -4,7 +4,7 @@ import { useTheme } from 'next-themes'import { LazyMotion, domAnimation, m, useInView } from 'framer-motion'const OpenAIImage = ({ isHovered }: { isHovered: boolean }) => {- const { theme } = useTheme()+ const { resolvedTheme } = useTheme()const lineVariants = {animate: {@@ -23,17 +23,17 @@ const OpenAIImage = ({ isHovered }: { isHovered: boolean }) => {}const colors = {- glow: theme === 'dark' ? '#009C77' : '#00FFD9',- rectStart: theme === 'dark' ? '#17FDDF' : '#49615E',- rectEnd: theme === 'dark' ? '#10FFE0' : '#202020',- cardBgStart: theme === 'dark' ? '#171717' : 'white',- cardBgEnd: theme === 'dark' ? '#171717' : 'white',- openAIStart: theme === 'dark' ? '#89FFCA' : '#4FD7B6',- openAIEnd: theme === 'dark' ? '#D0FAE6' : '#4F7362',- openAIStrokeStart: theme === 'dark' ? '#A5FFD6' : '#5F5F5F',- openAIStrokeEnd: theme === 'dark' ? '#D0FAE6' : '#D6D6D6',- openAIAltStart: theme === 'dark' ? '#00DBA7' : '#00DBA7',- openAIAltEnd: theme === 'dark' ? '#171717' : '#DFDFDF',+ glow: resolvedTheme === 'dark' ? '#009C77' : '#00FFD9',+ rectStart: resolvedTheme === 'dark' ? '#17FDDF' : '#49615E',+ rectEnd: resolvedTheme === 'dark' ? '#10FFE0' : '#202020',+ cardBgStart: resolvedTheme === 'dark' ? '#171717' : 'white',+ cardBgEnd: resolvedTheme === 'dark' ? '#171717' : 'white',+ openAIStart: resolvedTheme === 'dark' ? '#89FFCA' : '#4FD7B6',+ openAIEnd: resolvedTheme === 'dark' ? '#D0FAE6' : '#4F7362',+ openAIStrokeStart: resolvedTheme === 'dark' ? '#A5FFD6' : '#5F5F5F',+ openAIStrokeEnd: resolvedTheme === 'dark' ? '#D0FAE6' : '#D6D6D6',+ openAIAltStart: resolvedTheme === 'dark' ? '#00DBA7' : '#00DBA7',+ openAIAltEnd: resolvedTheme === 'dark' ? '#171717' : '#DFDFDF',}return (@@ -41,7 +41,7 @@ const OpenAIImage = ({ isHovered }: { isHovered: boolean }) => {<div className="w-[44%] h-[44%] -translate-x-[2px] absolute z-10 inset-0 top-auto bottom-[16%] m-auto"><Imagesrc={- theme === 'dark'+ resolvedTheme === 'dark'? '/images/product/vector/openai-logo-dark.png': '/images/product/vector/openai-logo-light.png'}diff --git a/apps/www/components/Products/VectorAI/SecureAndScalableImg.tsx b/apps/www/components/Products/VectorAI/SecureAndScalableImg.tsxindex 17079bdfafe..75ab6475312 100644--- a/apps/www/components/Products/VectorAI/SecureAndScalableImg.tsx+++ b/apps/www/components/Products/VectorAI/SecureAndScalableImg.tsx@@ -3,17 +3,17 @@ import { useTheme } from 'next-themes'import { DEFAULT_EASE } from '~/lib/animations'const SecureAndScalableImg = ({ isHovered }: { isHovered: boolean }) => {- const { theme } = useTheme()+ const { resolvedTheme } = useTheme()const shieldsRef = useRef<any>()const mainRef = useRef<any>()const colors = {- shieldsStroke: theme === 'dark' ? '#494949' : '#D5D5D5',- cardBg: theme === 'dark' ? '#161616' : '#F8F9FA',- bgGlow: theme === 'dark' ? '#009C77' : '#00FFD9',- iconBg: theme === 'dark' ? '#112B25' : '#DCDCDC',- smallIcon: theme === 'dark' ? '#1DF7C3' : '#00826A',- cardLine: theme === 'dark' ? '#1DF7C3' : '#00826A',+ shieldsStroke: resolvedTheme === 'dark' ? '#494949' : '#D5D5D5',+ cardBg: resolvedTheme === 'dark' ? '#161616' : '#F8F9FA',+ bgGlow: resolvedTheme === 'dark' ? '#009C77' : '#00FFD9',+ iconBg: resolvedTheme === 'dark' ? '#112B25' : '#DCDCDC',+ smallIcon: resolvedTheme === 'dark' ? '#1DF7C3' : '#00826A',+ cardLine: resolvedTheme === 'dark' ? '#1DF7C3' : '#00826A',}useEffect(() => {@@ -142,13 +142,13 @@ const SecureAndScalableImg = ({ isHovered }: { isHovered: boolean }) => {/><pathd="M90.8516 115.565H193.852"- stroke={theme === 'dark' ? '#F3F3F3' : 'black'}+ stroke={resolvedTheme === 'dark' ? '#F3F3F3' : 'black'}strokeOpacity="0.1"strokeWidth="0.845575"/><pathd="M97.6961 128.263H97.0285C96.9788 128.015 96.8888 127.785 96.7586 127.574C96.6308 127.361 96.4698 127.175 96.2757 127.017C96.0815 126.858 95.8614 126.735 95.6151 126.647C95.3689 126.56 95.1026 126.516 94.8161 126.516C94.3569 126.516 93.9378 126.636 93.559 126.875C93.1826 127.114 92.8808 127.465 92.6535 127.929C92.4286 128.391 92.3161 128.957 92.3161 129.627C92.3161 130.302 92.4286 130.87 92.6535 131.331C92.8808 131.793 93.1826 132.143 93.559 132.383C93.9378 132.619 94.3569 132.738 94.8161 132.738C95.1026 132.738 95.3689 132.694 95.6151 132.606C95.8614 132.519 96.0815 132.397 96.2757 132.241C96.4698 132.082 96.6308 131.896 96.7586 131.683C96.8888 131.47 96.9788 131.239 97.0285 130.991H97.6961C97.6369 131.324 97.5257 131.636 97.3623 131.924C97.2013 132.211 96.9954 132.462 96.7444 132.677C96.4958 132.893 96.2094 133.061 95.885 133.182C95.5607 133.302 95.2044 133.363 94.8161 133.363C94.2053 133.363 93.6632 133.21 93.1897 132.905C92.7162 132.597 92.3445 132.164 92.0747 131.605C91.8071 131.046 91.6734 130.387 91.6734 129.627C91.6734 128.867 91.8071 128.208 92.0747 127.649C92.3445 127.09 92.7162 126.658 93.1897 126.353C93.6632 126.045 94.2053 125.891 94.8161 125.891C95.2044 125.891 95.5607 125.951 95.885 126.072C96.2094 126.191 96.4958 126.359 96.7444 126.576C96.9954 126.792 97.2013 127.043 97.3623 127.329C97.5257 127.616 97.6369 127.927 97.6961 128.263ZM101.33 133.377C100.821 133.377 100.38 133.258 100.009 133.022C99.6371 132.783 99.3495 132.452 99.1459 132.031C98.9446 131.607 98.844 131.12 98.844 130.568C98.844 130.019 98.9446 129.531 99.1459 129.105C99.3495 128.676 99.63 128.341 99.9875 128.1C100.347 127.856 100.763 127.734 101.234 127.734C101.53 127.734 101.815 127.789 102.09 127.897C102.364 128.004 102.611 128.169 102.828 128.391C103.049 128.611 103.223 128.889 103.35 129.226C103.478 129.559 103.542 129.955 103.542 130.412V130.724H99.2808V130.167H102.896C102.896 129.816 102.825 129.501 102.683 129.222C102.543 128.94 102.348 128.718 102.097 128.554C101.848 128.391 101.561 128.309 101.234 128.309C100.888 128.309 100.584 128.402 100.321 128.586C100.059 128.771 99.8525 129.015 99.7034 129.318C99.5566 129.621 99.482 129.952 99.4797 130.312V130.646C99.4797 131.079 99.5542 131.458 99.7034 131.782C99.8549 132.104 100.069 132.354 100.346 132.532C100.623 132.709 100.951 132.798 101.33 132.798C101.588 132.798 101.814 132.758 102.008 132.677C102.205 132.597 102.369 132.489 102.502 132.354C102.637 132.217 102.738 132.066 102.807 131.903L103.407 132.098C103.324 132.328 103.188 132.54 102.999 132.734C102.812 132.928 102.577 133.084 102.296 133.203C102.016 133.319 101.694 133.377 101.33 133.377ZM104.935 133.263V127.809H105.549V128.647H105.596C105.705 128.372 105.894 128.151 106.164 127.983C106.436 127.812 106.744 127.727 107.087 127.727C107.139 127.727 107.197 127.728 107.261 127.731C107.325 127.733 107.378 127.735 107.421 127.738V128.38C107.392 128.376 107.343 128.369 107.272 128.359C107.201 128.35 107.124 128.345 107.041 128.345C106.757 128.345 106.504 128.405 106.281 128.526C106.061 128.644 105.887 128.809 105.759 129.02C105.631 129.23 105.567 129.471 105.567 129.741V133.263H104.935ZM110.99 127.809V128.359H108.387V127.809H110.99ZM109.2 126.502H109.836V131.839C109.836 132.066 109.875 132.245 109.953 132.375C110.031 132.503 110.133 132.594 110.258 132.649C110.384 132.701 110.517 132.727 110.66 132.727C110.742 132.727 110.813 132.722 110.873 132.713C110.932 132.701 110.984 132.689 111.029 132.677L111.164 133.249C111.102 133.273 111.026 133.294 110.937 133.313C110.847 133.334 110.735 133.345 110.603 133.345C110.371 133.345 110.147 133.294 109.932 133.192C109.718 133.09 109.543 132.939 109.406 132.738C109.269 132.536 109.2 132.287 109.2 131.988V126.502ZM112.432 133.263V127.809H113.068V133.263H112.432ZM112.756 126.871C112.625 126.871 112.514 126.827 112.422 126.74C112.329 126.65 112.283 126.542 112.283 126.417C112.283 126.291 112.329 126.185 112.422 126.097C112.514 126.007 112.625 125.962 112.756 125.962C112.886 125.962 112.997 126.007 113.089 126.097C113.182 126.185 113.228 126.291 113.228 126.417C113.228 126.542 113.182 126.65 113.089 126.74C112.997 126.827 112.886 126.871 112.756 126.871ZM116.984 127.809V128.359H114.303V127.809H116.984ZM115.141 133.263V127.01C115.141 126.716 115.209 126.469 115.343 126.267C115.481 126.066 115.66 125.914 115.88 125.809C116.1 125.705 116.333 125.653 116.579 125.653C116.745 125.653 116.882 125.667 116.991 125.696C117.102 125.722 117.19 125.748 117.254 125.774L117.069 126.328C117.022 126.314 116.964 126.297 116.895 126.278C116.827 126.259 116.74 126.25 116.636 126.25C116.361 126.25 116.15 126.327 116 126.481C115.851 126.634 115.777 126.855 115.777 127.141L115.773 133.263H115.141ZM118.253 133.263V127.809H118.888V133.263H118.253ZM118.576 126.871C118.446 126.871 118.334 126.827 118.242 126.74C118.15 126.65 118.104 126.542 118.104 126.417C118.104 126.291 118.15 126.185 118.242 126.097C118.334 126.007 118.446 125.962 118.576 125.962C118.706 125.962 118.817 126.007 118.91 126.097C119.002 126.185 119.048 126.291 119.048 126.417C119.048 126.542 119.002 126.65 118.91 126.74C118.817 126.827 118.706 126.871 118.576 126.871ZM122.765 133.377C122.256 133.377 121.816 133.258 121.444 133.022C121.073 132.783 120.785 132.452 120.581 132.031C120.38 131.607 120.28 131.12 120.28 130.568C120.28 130.019 120.38 129.531 120.581 129.105C120.785 128.676 121.066 128.341 121.423 128.1C121.783 127.856 122.198 127.734 122.669 127.734C122.965 127.734 123.251 127.789 123.525 127.897C123.8 128.004 124.046 128.169 124.264 128.391C124.484 128.611 124.658 128.889 124.786 129.226C124.914 129.559 124.978 129.955 124.978 130.412V130.724H120.716V130.167H124.331C124.331 129.816 124.26 129.501 124.118 129.222C123.979 128.94 123.783 128.718 123.532 128.554C123.284 128.391 122.996 128.309 122.669 128.309C122.324 128.309 122.02 128.402 121.757 128.586C121.494 128.771 121.288 129.015 121.139 129.318C120.992 129.621 120.918 129.952 120.915 130.312V130.646C120.915 131.079 120.99 131.458 121.139 131.782C121.29 132.104 121.505 132.354 121.782 132.532C122.059 132.709 122.387 132.798 122.765 132.798C123.023 132.798 123.249 132.758 123.444 132.677C123.64 132.597 123.805 132.489 123.937 132.354C124.072 132.217 124.174 132.066 124.243 131.903L124.843 132.098C124.76 132.328 124.624 132.54 124.434 132.734C124.247 132.928 124.013 133.084 123.731 133.203C123.452 133.319 123.13 133.377 122.765 133.377ZM128.334 133.377C127.887 133.377 127.495 133.258 127.159 133.022C126.823 132.785 126.56 132.455 126.371 132.031C126.184 131.607 126.09 131.114 126.09 130.55C126.09 129.989 126.184 129.498 126.371 129.076C126.56 128.653 126.824 128.324 127.163 128.089C127.501 127.852 127.895 127.734 128.345 127.734C128.677 127.734 128.952 127.793 129.172 127.912C129.393 128.028 129.569 128.172 129.702 128.345C129.834 128.518 129.937 128.686 130.011 128.849H130.067V125.991H130.703V133.263H130.085V132.251H130.011C129.937 132.417 129.833 132.587 129.698 132.763C129.563 132.935 129.384 133.081 129.162 133.199C128.942 133.318 128.666 133.377 128.334 133.377ZM128.409 132.798C128.762 132.798 129.062 132.702 129.311 132.51C129.56 132.316 129.749 132.05 129.879 131.711C130.012 131.37 130.078 130.98 130.078 130.54C130.078 130.104 130.013 129.719 129.883 129.385C129.753 129.049 129.563 128.786 129.315 128.597C129.066 128.405 128.764 128.309 128.409 128.309C128.044 128.309 127.737 128.409 127.486 128.608C127.237 128.804 127.048 129.071 126.918 129.407C126.79 129.743 126.726 130.12 126.726 130.54C126.726 130.963 126.791 131.346 126.921 131.687C127.051 132.027 127.241 132.299 127.489 132.5C127.74 132.699 128.047 132.798 128.409 132.798Z"- fill={theme === 'dark' ? 'white' : 'black'}+ fill={resolvedTheme === 'dark' ? 'white' : 'black'}/><rectx="177.543"@@ -531,8 +531,12 @@ const SecureAndScalableImg = ({ isHovered }: { isHovered: boolean }) => {y2="131.024"gradientUnits="userSpaceOnUse">- <stop stopColor={theme === 'dark' ? 'white' : '#1CB199'} />- <stop offset="1" stopColor={theme === 'dark' ? 'white' : '#494949'} stopOpacity="0" />+ <stop stopColor={resolvedTheme === 'dark' ? 'white' : '#1CB199'} />+ <stop+ offset="1"+ stopColor={resolvedTheme === 'dark' ? 'white' : '#494949'}+ stopOpacity="0"+ /></linearGradient><linearGradientid="paint1_linear_4346_100010"@@ -542,8 +546,12 @@ const SecureAndScalableImg = ({ isHovered }: { isHovered: boolean }) => {y2="155.033"gradientUnits="userSpaceOnUse">- <stop stopColor={theme === 'dark' ? '#1DF7C3' : '#3AFFE5'} stopOpacity="0.86" />- <stop offset="1" stopColor={theme === 'dark' ? '#161616' : '#38BBAA'} stopOpacity="0" />+ <stop stopColor={resolvedTheme === 'dark' ? '#1DF7C3' : '#3AFFE5'} stopOpacity="0.86" />+ <stop+ offset="1"+ stopColor={resolvedTheme === 'dark' ? '#161616' : '#38BBAA'}+ stopOpacity="0"+ /></linearGradient><radialGradientid="paint2_radial_4346_100010"@@ -553,8 +561,12 @@ const SecureAndScalableImg = ({ isHovered }: { isHovered: boolean }) => {gradientUnits="userSpaceOnUse"gradientTransform="translate(144.569 41.4294) rotate(90) scale(84.0463 63.1218)">- <stop stopColor={theme === 'dark' ? '#3AFFE5' : '#109079'} />- <stop offset="1" stopColor={theme === 'dark' ? '#38BBAA' : '#3DCB8C'} stopOpacity="0" />+ <stop stopColor={resolvedTheme === 'dark' ? '#3AFFE5' : '#109079'} />+ <stop+ offset="1"+ stopColor={resolvedTheme === 'dark' ? '#38BBAA' : '#3DCB8C'}+ stopOpacity="0"+ /></radialGradient><linearGradientid="paint3_linear_4346_100010"@@ -564,8 +576,12 @@ const SecureAndScalableImg = ({ isHovered }: { isHovered: boolean }) => {y2="79.1828"gradientUnits="userSpaceOnUse">- <stop stopColor={theme === 'dark' ? '#1CF7C3' : '#109179'} />- <stop offset="1" stopColor={theme === 'dark' ? '#3DCB8C' : '#0B0B0B'} stopOpacity="0" />+ <stop stopColor={resolvedTheme === 'dark' ? '#1CF7C3' : '#109179'} />+ <stop+ offset="1"+ stopColor={resolvedTheme === 'dark' ? '#3DCB8C' : '#0B0B0B'}+ stopOpacity="0"+ /></linearGradient></defs></svg>diff --git a/apps/www/pages/404.tsx b/apps/www/pages/404.tsxindex 54ce0279c8c..109db0f955e 100644--- a/apps/www/pages/404.tsx+++ b/apps/www/pages/404.tsx@@ -12,7 +12,7 @@ import * as supabaseLogoWordmarkLight from 'common/assets/images/supabase-logo-wconst Error404 = () => {const [show404, setShow404] = useState<boolean>(false)- const { theme } = useTheme()+ const { resolvedTheme } = useTheme()useEffect(() => {setTimeout(() => {@@ -29,7 +29,11 @@ const Error404 = () => {<div className="flex w-full items-center justify-between md:w-auto"><a href="/"><Image- src={theme === 'dark' ? supabaseLogoWordmarkDark : supabaseLogoWordmarkLight}+ src={+ resolvedTheme === 'dark'+ ? supabaseLogoWordmarkDark+ : supabaseLogoWordmarkLight+ }alt="supabase logo"height={24}width={120}diff --git a/apps/www/pages/careers/index.tsx b/apps/www/pages/careers/index.tsxindex 3028f1db5d9..82bbf98a347 100644--- a/apps/www/pages/careers/index.tsx+++ b/apps/www/pages/careers/index.tsx@@ -76,7 +76,7 @@ export async function getStaticProps() {}const CareerPage: NextPage = ({ jobs, contributors }: any) => {- const { theme } = useTheme()+ const { resolvedTheme } = useTheme()const { basePath } = useRouter()const meta_title = 'Careers | Supabase'@@ -282,7 +282,7 @@ const CareerPage: NextPage = ({ jobs, contributors }: any) => {<div className="relative w-full h-full mx-auto"><Imagesrc={`/images/career/icons/${human.icon}${- theme === 'dark' ? '-dark' : '-light'+ resolvedTheme === 'dark' ? '-dark' : '-light'}.svg`}className="w-12 h-12 sm:w-10 sm:h-10 lg:w-12 lg:h-12"alt={`${human.icon} icon`}@@ -307,7 +307,7 @@ const CareerPage: NextPage = ({ jobs, contributors }: any) => {<div className="relative w-full h-full mx-auto"><Imagesrc={`/images/career/icons/open_source${- theme === 'dark' ? '-dark' : '-light'+ resolvedTheme === 'dark' ? '-dark' : '-light'}.svg`}alt="open source icon"layout="fill"@@ -397,7 +397,7 @@ const CareerPage: NextPage = ({ jobs, contributors }: any) => {<div className="relative w-full h-full mx-auto"><Imagesrc={`/images/career/icons/${benefits.icon}${- theme === 'dark' ? '-dark' : '-light'+ resolvedTheme === 'dark' ? '-dark' : '-light'}.svg`}alt={`${benefits.icon} icon`}layout="fill"@@ -423,7 +423,9 @@ const CareerPage: NextPage = ({ jobs, contributors }: any) => {<div className="w-14 h-14 rounded-lg flex items-center mx-auto mb-6"><div className="relative w-full h-full mx-auto"><Image- src={`/images/career/icons/jobs${theme === 'dark' ? '-dark' : '-light'}.svg`}+ src={`/images/career/icons/jobs${+ resolvedTheme === 'dark' ? '-dark' : '-light'+ }.svg`}alt="jobs icon"layout="fill"objectFit="cover"diff --git a/apps/www/pages/launch-week/7/tickets/[username].tsx b/apps/www/pages/launch-week/7/tickets/[username].tsxindex 3d60b470f56..10cad1475ab 100644--- a/apps/www/pages/launch-week/7/tickets/[username].tsx+++ b/apps/www/pages/launch-week/7/tickets/[username].tsx@@ -28,7 +28,7 @@ const supabaseAdmin = createClient()export default function UsernamePage({ user, users, ogImageUrl }: Props) {- const { theme } = useTheme()+ const { resolvedTheme } = useTheme()const { username, ticketNumber, name, golden, referrals, bg_image_id } = userconst TITLE = `${name ? name + '’s' : 'Get your'} #SupaLaunchWeek Ticket`const DESCRIPTION = 'Supabase Launch Week 7 | 10–14 April 2023 | Generate your ticket. Win swag.'@@ -46,7 +46,7 @@ export default function UsernamePage({ user, users, ogImageUrl }: Props) {document.body.className = '!dark bg-[#1C1C1C]'return () => {- document.body.className = theme === 'dark' ? 'dark' : 'light'+ document.body.className = resolvedTheme === 'dark' ? 'dark' : 'light'}}, [])diff --git a/apps/www/pages/launch-week/7/tickets/index.tsx b/apps/www/pages/launch-week/7/tickets/index.tsxindex d7f79aa483b..1deb4719978 100644--- a/apps/www/pages/launch-week/7/tickets/index.tsx+++ b/apps/www/pages/launch-week/7/tickets/index.tsx@@ -41,7 +41,7 @@ export default function TicketsPage({ users }: Props) {const DESCRIPTION = 'Supabase Launch Week 7 | 10–14 April 2023'const OG_IMAGE = `${SITE_ORIGIN}/images/launchweek/seven/launch-week-7-teaser.jpg`- const { theme } = useTheme()+ const { resolvedTheme } = useTheme()const [isLoading, setIsLoading] = useState(false)const [offset, setOffset] = useState(1)const [isLast, setIsLast] = useState(false)@@ -86,7 +86,7 @@ export default function TicketsPage({ users }: Props) {window.addEventListener('scroll', handleDebouncedScroll)return () => {- document.body.className = theme === 'dark' ? 'dark' : 'light'+ document.body.className = resolvedTheme === 'dark' ? 'dark' : 'light'window.removeEventListener('scroll', handleDebouncedScroll)}}, [])