The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
update var(--*) values
Jonathan Summers-Muir568e76dcdf23
diff --git a/apps/docs/styles/main.scss b/apps/docs/styles/main.scssindex ec6e38a814e..ece45d88688 100644--- a/apps/docs/styles/main.scss+++ b/apps/docs/styles/main.scss@@ -169,7 +169,7 @@ pre[class*='language-'] {// ToC styles.toc__menu-item--active {- color: var(--colors-brand9) !important;+ color: hsl(var(--brand-default)) !important;}.video-container {diff --git a/apps/www/components/AuthWidget/AuthWidgetSection.tsx b/apps/www/components/AuthWidget/AuthWidgetSection.tsxindex fe3099cf041..6d840b80c68 100644--- a/apps/www/components/AuthWidget/AuthWidgetSection.tsx+++ b/apps/www/components/AuthWidget/AuthWidgetSection.tsx@@ -19,9 +19,9 @@ function AuthWidgetSection() {const { basePath } = useRouter()const [radius, setRadius] = useState('4px')const [brandColor, setBrandColor] = useState({- brand: 'var(--colors-brand9)',- brandAccent: 'var(--colors-brand11)',- brandAccent2: 'var(--colors-brand3)',+ brand: 'hsl(var(--brand-default))',+ brandAccent: 'hsl(var(--brand-500))',+ brandAccent2: 'hsl(var(--brand-200))',})const [layout, setLayout] = useState('horizontal')@@ -140,14 +140,14 @@ function AuthWidgetSection() {<buttononClick={() =>setBrandColor({- brand: 'var(--colors-brand9)',- brandAccent: 'var(--colors-brand11)',- brandAccent2: 'var(--colors-brand3)',+ brand: 'hsl(var(--brand-default))',+ brandAccent: 'hsl(var(--brand-500))',+ brandAccent2: 'hsl(var(--brand-200))',})}className={['bg-brand-300 border-brand h-10 w-10 rounded-full border-2 transition hover:scale-105',- brandColor.brand === 'var(--colors-brand9)'+ brandColor.brand === 'hsl(var(--brand-default))'? ' !bg-brand ring-scale-400 border-scale-800 ring-2 drop-shadow-lg dark:ring-white': '',].join(' ')}diff --git a/apps/www/components/Charts/PGCharts.tsx b/apps/www/components/Charts/PGCharts.tsxindex f73e0454b2f..982c1097fc9 100644--- a/apps/www/components/Charts/PGCharts.tsx+++ b/apps/www/components/Charts/PGCharts.tsx@@ -7,7 +7,7 @@ import * as data from '~/data/blog/PostgresFTSComparison'import remarkGfm from 'remark-gfm'const barColors = {- pg: 'var(--colors-brand11)',+ pg: 'hsl(var(--brand-600))',meilisearch: 'var(--colors-blue11)',typesense: 'var(--colors-violet11)','sqlite-disk': 'var(--colors-orange11)',diff --git a/apps/www/components/InteractiveShimmerCard/index.tsx b/apps/www/components/InteractiveShimmerCard/index.tsxindex 3e11c07bd46..d6017544f96 100644--- a/apps/www/components/InteractiveShimmerCard/index.tsx+++ b/apps/www/components/InteractiveShimmerCard/index.tsx@@ -34,9 +34,9 @@ const InteractiveShimmerCard = ({const isActive = x > -3 && x < width + 3 && y > -3 && y < height + 3const activeGlow =hasActiveOnHover && isActive- ? `radial-gradient(65rem circle at ${x}px ${y}px, var(--colors-brand9), transparent), `+ ? `radial-gradient(65rem circle at ${x}px ${y}px, hsl(var(--brand-default)), transparent), `: ''- outerElement.style.background = isActive ? `var(--colors-brand9)` : `var(--colors-scale3)`+ outerElement.style.background = isActive ? `hsl(var(--brand-default))` : `var(--colors-scale3)`outerElement.style.backgroundImage = `${activeGlow}radial-gradient(30rem circle at ${x}px ${y}px, ${shimmerFromColor ?? 'var(--colors-scale8)'diff --git a/apps/www/components/LaunchWeek/7/Ticket/form.module.css b/apps/www/components/LaunchWeek/7/Ticket/form.module.cssindex 5b6a078561b..1bdf317bbc9 100644--- a/apps/www/components/LaunchWeek/7/Ticket/form.module.css+++ b/apps/www/components/LaunchWeek/7/Ticket/form.module.css@@ -130,8 +130,8 @@height: 56px;margin-top: var(--space-4x);border-radius: var(--space-2x);- border: 1px solid var(--brand);- background: var(--brand);+ border: 1px solid hsl(var(--brand-default));+ background: hsl(var(--brand-default));cursor: pointer;font-family: inherit;font-size: var(--text-md);@@ -170,7 +170,7 @@.submit.default:hover,.submit.default:focus {background: black;- color: var(--brand);+ color: hsl(var(--brand-default));}.submit.default.generate-with-github:hover path,diff --git a/apps/www/components/LaunchWeek/8/Ticket/form.module.css b/apps/www/components/LaunchWeek/8/Ticket/form.module.cssindex 5b6a078561b..d982d30f265 100644--- a/apps/www/components/LaunchWeek/8/Ticket/form.module.css+++ b/apps/www/components/LaunchWeek/8/Ticket/form.module.css@@ -130,8 +130,8 @@height: 56px;margin-top: var(--space-4x);border-radius: var(--space-2x);- border: 1px solid var(--brand);- background: var(--brand);+ border: 1px solid hsl(var(--brand-default));+ background: hsl(var(--brand-default));cursor: pointer;font-family: inherit;font-size: var(--text-md);@@ -170,12 +170,12 @@.submit.default:hover,.submit.default:focus {background: black;- color: var(--brand);+ color: hsl(var(--brand-default));}.submit.default.generate-with-github:hover path,.submit.default.generate-with-github:focus path {- fill: var(--brand);+ fill: hsl(var(--brand-default));}.submit.error:hover,diff --git a/apps/www/styles/index.css b/apps/www/styles/index.cssindex be88c51f50f..a2cbaec35c7 100644--- a/apps/www/styles/index.css+++ b/apps/www/styles/index.css@@ -328,7 +328,7 @@ launch week*/.launch-week-timeline-border--approaching {- border-image: linear-gradient(to bottom, var(--colors-brand9), var(--colors-purple7)) 1 100%;+ border-image: linear-gradient(to bottom, hsl(var(--brand-default)), var(--colors-purple7)) 1 100%;}.launch-week-gradientBg {@@ -472,9 +472,9 @@ launch weekfilter: blur(calc(var(--auth-ui-card-height) / 6));background-image: linear-gradient(var(--rotate),- var(--colors-brand),+ hsl(var(--brand-default)),#3c67e3 43%,- var(--colors-brand)+ hsl(var(--brand-default)));opacity: 1;transition: opacity 0.5s;@@ -674,19 +674,26 @@ launch week}[class*='gradient-text-']::selection {- background-color: var(--colors-brand9);+ background-color: hsl(var(--brand-default));background-clip: unset;-webkit-text-fill-color: white;}@layer utilities {.gradient-text-brand-100 {- background-image: linear-gradient(45deg, var(--colors-brand8) 0%, var(--colors-brand9) 100%);+ background-image: linear-gradient(+ 45deg,+ hsl(var(--brand-500)) 0%,+ hsl(var(--brand-default)) 100%+ );}.gradient-text-brand-300 {- background-image: linear-gradient(45deg, var(--colors-brand8) 0%, var(--colors-brand9) 100%);+ background-image: linear-gradient(+ 45deg,+ hsl(var(--brand-500)) 0%,+ hsl(var(--brand-default)) 100%+ );}-.gradient-text-scale-100 {background-image: -webkit-linear-gradient(45deg, #fff 0%, var(--colors-green12) 100%);}diff --git a/packages/config/code-hike.scss b/packages/config/code-hike.scssindex abae362e750..e022649d777 100644--- a/packages/config/code-hike.scss+++ b/packages/config/code-hike.scss@@ -5,9 +5,9 @@--ch-3: #ffcda1;--ch-4: #f8f8f2;--ch-5: #bda4ff;- --ch-6: var(--colors-brand10);+ --ch-6: hsl(var(--brand-600));--ch-7: #569cd6;- --ch-8: var(--colors-brand9);+ --ch-8: hsl(var(--brand-default));--ch-9: #ffa198;--ch-10: #f0f6fc;--ch-11: #490202;@@ -15,7 +15,7 @@--ch-13: #5a1e02;--ch-14: #161b22;--ch-15: #8b949e;- --ch-16: var(--colors-scale1);+ --ch-16: hsl(var(--foreground-lighter));--ch-17: #264f78;--ch-18: #3794ff;--ch-19: #ffffff0b;@@ -34,9 +34,9 @@--ch-3: #953800;--ch-4: #24292f;--ch-5: #8250df;- --ch-6: var(--colors-brand10);+ --ch-6: hsl(var(--brand-600));--ch-7: #cf222e;- --ch-8: var(--colors-brand9);+ --ch-8: hsl(var(--brand-default));--ch-9: #82071e;--ch-10: #f6f8fa;--ch-11: #ffebe9;@@ -44,7 +44,7 @@--ch-13: #ffd8b5;--ch-14: #eaeef2;--ch-15: #57606a;- --ch-16: var(--colors-scale1);+ --ch-16: hsl(var(--foreground-lighter));--ch-17: #add6ff;--ch-18: #1a85ff;--ch-19: #fdff0033;diff --git a/packages/config/default-colors.js b/packages/config/default-colors.jsindex 0fecc7196f1..3373e649d3b 100644--- a/packages/config/default-colors.js+++ b/packages/config/default-colors.js@@ -28,8 +28,8 @@ module.exports = {brand12: 'hsla(153, 60%, 95%, 1)',},contrast: {- 'brand-hiContrast': 'var(--colors-brand-9)',- 'brand-loContrast': 'var(--colors-brand-4)',+ 'brand-hiContrast': 'hsl(var(--brand-default))',+ 'brand-loContrast': 'hsl(var(--brand-300))',},scale: {scale1: 'var(--colors-slate1)',diff --git a/packages/config/tailwind.config.js b/packages/config/tailwind.config.jsindex a089a489db7..68a6d2a82b8 100644--- a/packages/config/tailwind.config.js+++ b/packages/config/tailwind.config.js@@ -216,12 +216,12 @@ const uiConfig = ui({fontWeight: '400',color: 'var(--colors-scale12)',textDecorationLine: 'underline',- textDecorationColor: 'var(--colors-brand7)',+ textDecorationColor: 'hsl(var(--brand-400))',textDecorationThickness: '1px',textUnderlineOffset: '4px',},'a:hover': {- textDecorationColor: 'var(--colors-brand9)',+ textDecorationColor: 'hsl(var(--brand-default))',},figcaption: {color: 'var(--colors-scale9)',diff --git a/packages/ui/src/components/GlassPanel/GlassPanel.tsx b/packages/ui/src/components/GlassPanel/GlassPanel.tsxindex 1d9425b936d..043d9daf007 100644--- a/packages/ui/src/components/GlassPanel/GlassPanel.tsx+++ b/packages/ui/src/components/GlassPanel/GlassPanel.tsx@@ -37,7 +37,9 @@ const GlassPanel = ({<divclassName={['shrink-0',- showIconBg ? 'bg-green-600 w-8 h-8 flex items-center justify-center rounded' : '',+ showIconBg+ ? 'bg-brand-300 border border-brand-400 w-8 h-8 flex items-center justify-center rounded'+ : '',].join(' ')}>{props.children}diff --git a/packages/ui/src/components/Icon/IconBackground.tsx b/packages/ui/src/components/Icon/IconBackground.tsxindex 4b73319ba46..703fcb59848 100644--- a/packages/ui/src/components/Icon/IconBackground.tsx+++ b/packages/ui/src/components/Icon/IconBackground.tsx@@ -1,5 +1,5 @@export const IconBackground: React.FC = (props) => (- <div className="shrink-0 bg-green-600 w-8 h-8 flex items-center justify-center rounded">+ <div className="shrink-0 bg-brand-300 border border-brand-400 w-8 h-8 flex items-center justify-center rounded">{props.children}</div>)diff --git a/packages/ui/src/lib/theme/defaultTheme.ts b/packages/ui/src/lib/theme/defaultTheme.tsindex 11626d99435..832713fae83 100644--- a/packages/ui/src/lib/theme/defaultTheme.ts+++ b/packages/ui/src/lib/theme/defaultTheme.ts@@ -210,13 +210,13 @@ export default {*/badge: {- base: 'inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-opacity-10',+ base: 'inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-normal bg-opacity-10',size: {large: 'px-3 py-0.5 rounded-full text-sm',},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',+ brand: 'bg-brand-500 text-brand-600 border border-brand-400',scale: 'bg-scale-200 text-scale-1100 border border-scale-700',tomato: `bg-tomato-200 text-tomato-1100 border border-tomato-700`,red: `bg-red-200 text-red-1100 border border-red-700`,diff --git a/studio/components/ui/Charts/Charts.constants.ts b/studio/components/ui/Charts/Charts.constants.tsindex 7aa3a6de752..d760c7bf7e6 100644--- a/studio/components/ui/Charts/Charts.constants.ts+++ b/studio/components/ui/Charts/Charts.constants.ts@@ -5,8 +5,8 @@export const CHART_COLORS = {TICK: 'var(--colors-scale6)',AXIS: 'var(--colors-scale6)',- GREEN_1: 'var(--colors-brand9)', // #3ECF8E- GREEN_2: 'var(--colors-brand6)',+ GREEN_1: 'hsl(var(--brand-default))', // #3ECF8E+ GREEN_2: 'hsl(var(--brand-500))',}// refer to packages/ui/radix-colors.js for full list of colors@@ -25,8 +25,8 @@ export const STACK_COLORS = [}))export const USAGE_COLORS = {- 200: 'var(--colors-brand9)',- 201: 'var(--colors-brand8)',+ 200: 'hsl(var(--brand-default))',+ 201: 'hsl(var(--brand-500))',400: 'var(--colors-amber9)',401: 'var(--colors-amber8)',404: 'var(--colors-amber7)',diff --git a/studio/styles/react-data-grid-logs.scss b/studio/styles/react-data-grid-logs.scssindex c995bb72232..723030f95b7 100644--- a/studio/styles/react-data-grid-logs.scss+++ b/studio/styles/react-data-grid-logs.scss@@ -77,8 +77,8 @@background: linear-gradient(to right,var(--colors-scale2) 0%,- var(--colors-brand9) 25%,- var(--colors-brand4) 35%,+ hsl(var(--brand-default)) 25%,+ hsl(var(--brand-300)) 35%,var(--colors-scale2) 45%,var(--colors-scale3) 75%);