Skip to content

Color system - #47288

Merged
SaxonF merged 26 commits into
masterfrom
chore/color-system
Jul 3, 2026
Merged

SaxonF merged 26 commits into
masterfrom
chore/color-system

Conversation

@SaxonF

@SaxonF SaxonF commented Jun 25, 2026 •

Copy link
Copy Markdown
Contributor

I have read the CONTRIBUTING.md file.

YES/NO

What kind of change does this PR introduce?

Bug fix, feature, docs update, ...

What is the current behavior?

Please link any relevant issues here.

What is the new behavior?

Feel free to include screenshots if it includes visual changes.

Additional context

Add any other context or screenshots.

Summary by CodeRabbit

  • New Features
    • Refreshed theming across the UI to use modern color expressions and shared theme variables (including OKLCH-based gradients), improving consistency for charts, code blocks, overlays, icons, and decorative backgrounds.
  • Bug Fixes
    • Improved light/dark color and gradient consistency across axis/grid styling, reference lines, buttons/badges, sidebar accents, loaders, and other visual components.
  • Documentation
    • Updated styling/theming guidance to align with the revised semantic token system and the updated theme variable usage patterns.

@supabase

supabase Bot commented Jun 25, 2026

Copy link
Copy Markdown

This pull request has been ignored for the connected project xguihxuzqibwxjnimxev because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@vercel

vercel Bot commented Jun 25, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
design-system Ready Ready Preview, Comment Jul 3, 2026 4:55am
docs Ready Ready Preview, Comment, Open in v0 Jul 3, 2026 4:55am
studio-self-hosted Ready Ready Preview, Comment Jul 3, 2026 4:55am
studio-staging Ready Ready Preview, Comment Jul 3, 2026 4:55am
ui-library Ready Ready Preview, Comment Jul 3, 2026 4:55am
zone-www-dot-com Ready Ready Preview, Comment, Open in v0 Jul 3, 2026 4:55am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
studio Ignored Ignored Jul 3, 2026 4:55am

Request Review

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Jun 25, 2026
@coderabbitai

coderabbitai Bot commented Jun 25, 2026 •

Copy link
Copy Markdown
Contributor

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

The PR updates shared theme tokens and compatibility CSS, then propagates the new color expressions through app styles, design-system/docs/UI-library components, and many studio/www visuals, gradients, charts, and SVGs.

Changes

Token and theme foundation

Layer / File(s) Summary
Semantic token source
packages/ui/build/css/source/semantic.css, packages/ui/build/css/source/compat.css, packages/config/tailwind.config.css
New semantic tokens, legacy aliases, and updated stylesheet imports are added for the shared color system.
Theme variable files
packages/ui/build/css/themes/*.css
Light, dark, classic-dark, and faux-classic-dark theme variables are retuned, commented, or pruned.
Shared config and typography
packages/ui/README.md, packages/config/*, packages/marketing/src/go/sections/CodeBlockSection.tsx
Config, typography, code-hike, utility, and docs guidance switch to the new token forms.
App global styles
apps/*/styles/*
Global CSS, Monaco, code-block, shimmer, scrollbar, and base-border rules move to direct variables or OKLCH-based expressions.
Shared UI primitives
packages/ui/src/components/*, packages/ui-patterns/src/*
Buttons, badges, sidebar, panels, loaders, charts, and promo visuals update their color tokens and CSS expressions.
Docs and design-system visuals
apps/docs/components/*, apps/design-system/*, apps/ui-library/*
Docs, design-system, and UI-library preview components update SVG strokes, fills, gradients, and preview overlays.

App visuals and content

Layer / File(s) Summary
Studio interface visuals
apps/studio/components/**/*, apps/studio/styles/*
Studio charts, overlays, SVGs, and shared app styles switch from HSL-wrapped colors to direct variables or OKLCH values.
www product and solution visuals
apps/www/components/**/*, apps/www/data/**/*, apps/www/pages/**/*, apps/www/styles/globals.css
www charts, feature visuals, launch-week assets, solution overlays, and page gradients are updated to the new color expressions.
State-of-startups and survey visuals
apps/www/app/state-of-startups/*, apps/www/components/SurveyResults/*
State-of-startups headers, survey charts, and related overlays change their gradient sources.
Shared examples and blog snippets
apps/www/_blog/*, apps/www/components/logos.tsx
Blog examples and shared logo props/classes switch to the new token format.

Estimated code review effort: 5 (Critical) | ~120 minutes
Suggested reviewers: alaister, ana1337x, ChrisChinchilla

🚥 Pre-merge checks | ✅ 2 | ❌ 3

❌ Failed checks (2 warnings, 1 inconclusive)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description is just the template and contains no filled-in details about behavior, issues, or context. Fill in each required section: contribution confirmation, change type, current behavior, new behavior, and any additional context or screenshots.
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Title check ❓ Inconclusive The title is too generic and does not clearly describe the main change in the PR. Replace it with a concise, specific title that names the primary change, such as the color system/token refactor.
✅ Passed checks (2 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/color-system

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Jun 25, 2026 •

Copy link
Copy Markdown
Contributor

🎭 Playwright Test Results

passed  229 passed
flaky  1 flaky
skipped  5 skipped

Details

stats  235 tests across 26 suites
duration  3 minutes, 30 seconds
commit  619c2cc

Flaky tests

Features › sql-editor.spec.ts › SQL Editor › should check if SQL editor is working as expected

Skipped tests

Features › auth-users.spec.ts › should show web3 users as enabled when the matching web3 provider is enabled
Features › sql-editor.spec.ts › SQL Editor › snippet favourite works as expected
Features › sql-editor.spec.ts › SQL Editor › share with team works as expected
Features › sql-editor.spec.ts › SQL Editor › folders works as expected
Features › sql-editor.spec.ts › SQL Editor › other SQL snippets actions work as expected

SaxonF and others added 9 commits June 26, 2026 10:36
Remove the color-tinker package and its Studio/dev-tools integration so
this branch contains only the core color-system changes. The dev-tools
dock and DevToolbarTrigger revert to their master state.

color-tinker lives on the chore/color-tinker branch (off this one).

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@SaxonF
SaxonF marked this pull request as ready for review June 30, 2026 03:42
@SaxonF
SaxonF requested review from a team as code owners June 30, 2026 03:42

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
apps/www/components/Products/Functions/QueryLogs.tsx (1)

121-132: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Update the top fade to the new token format too.

The bottom overlay now uses var(--background-surface-75), but the paired top overlay in the same block still wraps that token in hsl(...). Once this token resolves to a full color value, the top gradient will stop matching the bottom one.

Suggested fix
         style={{
-          background:
-            'linear-gradient(to bottom, hsl(var(--background-surface-75)) 0%, transparent 100%)',
+          background:
+            'linear-gradient(to bottom, var(--background-surface-75) 0%, transparent 100%)',
         }}
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@apps/www/components/Products/Functions/QueryLogs.tsx` around lines 121 - 132,
The paired gradient in QueryLogs should use the same token format for both
overlays: update the top fade in the same block as the bottom fade so it no
longer wraps the surface token in hsl(...). Locate the gradient styles in the
QueryLogs component and make the top overlay match the bottom overlay by using
the raw var(--background-surface-75) token, keeping the fade directions
unchanged.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@apps/docs/components/Mermaid.tsx`:
- Around line 9-15: The Mermaid theme colors in Mermaid.tsx are inconsistent
because `accent` still wraps `--brand-default` in `hsl()` while the other tokens
use `var(--...)` directly. Update the `accent` entry in the theme config to
match the migrated token format used by the siblings (`bg`, `fg`, `muted`,
`line`, `border`, `surface`) so it consumes the CSS variable directly without
the legacy color-function wrapper.

In `@apps/www/components/Products/VectorAI/CustomersVisual.tsx`:
- Around line 8-11: The inline background style in CustomersVisual is missing
the closing parenthesis for the radial-gradient string, so the overlay is
invalid. Update the background value in the styled div to properly close the
radial-gradient(...) call after var(--background-alternative-default), keeping
the existing component structure intact.

In `@apps/www/pages/partners/index.tsx`:
- Line 42: The `partners/index.tsx` container uses an invalid Tailwind arbitrary
content class, so the `::before` content utility is not generated. Update the
`div` className in the partners page to use the correct `before:content-['']`
syntax so the gradient mask continues to render properly.

---

Outside diff comments:
In `@apps/www/components/Products/Functions/QueryLogs.tsx`:
- Around line 121-132: The paired gradient in QueryLogs should use the same
token format for both overlays: update the top fade in the same block as the
bottom fade so it no longer wraps the surface token in hsl(...). Locate the
gradient styles in the QueryLogs component and make the top overlay match the
bottom overlay by using the raw var(--background-surface-75) token, keeping the
fade directions unchanged.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: c09d0c02-e573-4228-a89f-cb649268e74d

📥 Commits

Reviewing files that changed from the base of the PR and between ff1941b and a198f85.

📒 Files selected for processing (125)
  • apps/design-system/components/code-fragment.tsx
  • apps/design-system/components/component-preview.tsx
  • apps/design-system/registry/default/example/drawer-demo.tsx
  • apps/design-system/registry/default/example/page-layout-edge-function.tsx
  • apps/design-system/styles/code-block-variables.css
  • apps/docs/components/DocsCoverLogo.tsx
  • apps/docs/components/Mermaid.tsx
  • apps/docs/content/guides/auth/passwords.mdx
  • apps/docs/styles/globals.css
  • apps/learn/styles/code-block-variables.css
  • apps/learn/styles/globals.css
  • apps/lite-studio/styles/globals.css
  • apps/studio/components/interfaces/Database/Replication/ReplicationDiagram/Edges.tsx
  • apps/studio/components/interfaces/DiskManagement/DiskManagementReviewAndSubmitDialog/DiskManagementReviewAndSubmitDialog.tsx
  • apps/studio/components/interfaces/Functions/EdgeFunctionOverview/EdgeFunctionInvocationsChart.tsx
  • apps/studio/components/interfaces/Functions/EdgeFunctionOverview/EdgeFunctionOverview.utils.ts
  • apps/studio/components/interfaces/Functions/EdgeFunctionOverview/EdgeFunctionPerformanceSection.tsx
  • apps/studio/components/interfaces/Functions/EdgeFunctionOverview/EdgeFunctionUsageSection.tsx
  • apps/studio/components/interfaces/Integrations/GraphQL/graphiql.module.css
  • apps/studio/components/interfaces/Project/APIKeys.tsx
  • apps/studio/components/interfaces/QueryInsights/QueryInsightsChart/QueryInsightsChart.tsx
  • apps/studio/components/interfaces/QueryInsights/QueryInsightsHealth/QueryInsightsHealthScore.tsx
  • apps/studio/components/interfaces/Reports/ReportBlock/ChartBlock.tsx
  • apps/studio/components/interfaces/Reports/utils/geo.ts
  • apps/studio/components/interfaces/Support/Success.tsx
  • apps/studio/components/interfaces/UnifiedLogs/UnifiedLogs.tsx
  • apps/studio/components/layouts/Navigation/NavigationBar/ProjectBranchSelectorSheetTabTrigger.tsx
  • apps/studio/components/ui/Charts/Charts.constants.ts
  • apps/studio/components/ui/Panel.tsx
  • apps/studio/components/ui/PartnerIcon.tsx
  • apps/studio/components/ui/QueryBlock/QueryBlock.tsx
  • apps/studio/styles/globals.css
  • apps/studio/styles/monaco.css
  • apps/studio/styles/react-data-grid-logs.css
  • apps/studio/styles/ui.css
  • apps/ui-library/app/example/password-based-auth/layout.tsx
  • apps/ui-library/app/example/social-auth/layout.tsx
  • apps/ui-library/components/component-preview.tsx
  • apps/ui-library/registry/default/examples/realtime-flow-demo.tsx
  • apps/ui-library/styles/code-block-variables.css
  • apps/ui-library/styles/globals.css
  • apps/www/_blog/2025-12-17-building-chatgpt-apps-with-supabase.mdx
  • apps/www/app/state-of-startups/components/StateOfStartupsAuroraHeader.tsx
  • apps/www/app/state-of-startups/components/StateOfStartupsHeader.tsx
  • apps/www/app/state-of-startups/components/SurveyChartShell.tsx
  • apps/www/app/state-of-startups/register/RegisterContent.tsx
  • apps/www/components/Charts/DeveloperGrowthChart.tsx
  • apps/www/components/Charts/PGCharts.tsx
  • apps/www/components/ExampleCard.tsx
  • apps/www/components/Go/TweetsSection.tsx
  • apps/www/components/LaunchWeek/11/LaunchWeekPrizeCard.tsx
  • apps/www/components/LaunchWeek/11/Releases/BuildStage.tsx
  • apps/www/components/LaunchWeek/11/Releases/data/lw11_build_stage.tsx
  • apps/www/components/LaunchWeek/12/LaunchWeekPrizeCard.tsx
  • apps/www/components/LaunchWeek/12/Releases/BuildStage.tsx
  • apps/www/components/LaunchWeek/12/Releases/data/lw12_build_stage.tsx
  • apps/www/components/LaunchWeek/13/Releases/BuildStage.tsx
  • apps/www/components/LaunchWeek/13/Releases/data/lw13_build_stage.tsx
  • apps/www/components/LaunchWeek/14/Releases/BuildStage.tsx
  • apps/www/components/LaunchWeek/14/Releases/data/lw14_build_stage.tsx
  • apps/www/components/LaunchWeek/X/Album/Player.tsx
  • apps/www/components/LaunchWeek/X/LaunchWeekPrizeCard.tsx
  • apps/www/components/Panel/Panel.tsx
  • apps/www/components/Products/DatabaseVisual.tsx
  • apps/www/components/Products/Functions/FunctionsHero.tsx
  • apps/www/components/Products/Functions/Metrics.tsx
  • apps/www/components/Products/Functions/NpmEcosystem.tsx
  • apps/www/components/Products/Functions/QueryLogs.tsx
  • apps/www/components/Products/Functions/RealtimeLogs.tsx
  • apps/www/components/Products/RealtimeVisual.tsx
  • apps/www/components/Products/VectorAI/CustomersVisual.tsx
  • apps/www/components/Sections/FeaturesSection.tsx
  • apps/www/components/Sections/HighlightCards.tsx
  • apps/www/components/Sections/TwitterSocialProof.tsx
  • apps/www/components/Sections/UseCasesSection.tsx
  • apps/www/components/SurveyResults/StateOfStartupsHeader.tsx
  • apps/www/components/SurveyResults/SurveyChapter.tsx
  • apps/www/components/SurveyResults/SurveyChart.tsx
  • apps/www/components/UsersGrowthChart.tsx
  • apps/www/components/Wrapped/Visuals.tsx
  • apps/www/components/logos.tsx
  • apps/www/data/aws-reinvent-2025.tsx
  • apps/www/data/ga.tsx
  • apps/www/data/open-source/contributing/supasquad.utils.tsx
  • apps/www/data/solutions/agencies.tsx
  • apps/www/data/solutions/ai-builders.tsx
  • apps/www/data/solutions/beginners.tsx
  • apps/www/data/solutions/developers.tsx
  • apps/www/data/solutions/firebase.tsx
  • apps/www/data/solutions/hackathon.tsx
  • apps/www/data/solutions/innovation-teams.tsx
  • apps/www/data/solutions/neon.tsx
  • apps/www/data/solutions/no-code.tsx
  • apps/www/data/solutions/postgres-developers.tsx
  • apps/www/data/solutions/solutions.utils.tsx
  • apps/www/data/solutions/startups.tsx
  • apps/www/data/solutions/vibe-coders.tsx
  • apps/www/data/support.tsx
  • apps/www/pages/launch-week/6/styles/launchWeek6.module.css
  • apps/www/pages/partners/index.tsx
  • apps/www/pages/solutions/innovation-teams.tsx
  • apps/www/styles/globals.css
  • packages/config/code-hike.css
  • packages/config/css/theme.css
  • packages/config/css/utilities.css
  • packages/config/tailwind.config.css
  • packages/config/typography.config.js
  • packages/marketing/src/go/sections/CodeBlockSection.tsx
  • packages/ui-patterns/src/Chart/charts/chart-bar.tsx
  • packages/ui-patterns/src/Chart/charts/chart-line.tsx
  • packages/ui-patterns/src/CodeBlock/CodeBlock.tsx
  • packages/ui-patterns/src/LogsBarChart/index.tsx
  • packages/ui-patterns/src/PromoToast/PromoBg.tsx
  • packages/ui-patterns/src/ShimmeringLoader/index.css
  • packages/ui/README.md
  • packages/ui/build/css/source/compat.css
  • packages/ui/build/css/source/semantic.css
  • packages/ui/build/css/themes/classic-dark.css
  • packages/ui/build/css/themes/dark.css
  • packages/ui/build/css/themes/faux-classic-dark.css
  • packages/ui/build/css/themes/light.css
  • packages/ui/src/components/Button/Button.tsx
  • packages/ui/src/components/shadcn/ui/badge.tsx
  • packages/ui/src/components/shadcn/ui/button.tsx
  • packages/ui/src/components/shadcn/ui/sidebar.tsx

Comment on lines +9 to +15
bg: 'var(--background-default)',
fg: 'var(--foreground-default)',
accent: 'hsl(var(--brand-default))',
muted: 'hsl(var(--foreground-light))',
line: 'hsl(var(--border-strong))',
border: 'hsl(var(--border-strong))',
surface: 'hsl(var(--background-surface-200))',
muted: 'var(--foreground-light)',
line: 'var(--border-strong)',
border: 'var(--border-strong)',
surface: 'var(--background-surface-200)',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

accent retains the old hsl() wrapper while all siblings have been migrated — likely broken.

Every other option (bg, fg, muted, line, border, surface) now uses var(--...) directly, but accent still wraps with hsl(). If --brand-default has been migrated to store a full OKLCH color value (as the rest of the token pipeline implies), then hsl(oklch(...)) is invalid CSS and the Mermaid accent color will silently fall back to an undefined/transparent value.

🐛 Proposed fix
-    accent: 'hsl(var(--brand-default))',
+    accent: 'var(--brand-default)',
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
bg: 'var(--background-default)',
fg: 'var(--foreground-default)',
accent: 'hsl(var(--brand-default))',
muted: 'hsl(var(--foreground-light))',
line: 'hsl(var(--border-strong))',
border: 'hsl(var(--border-strong))',
surface: 'hsl(var(--background-surface-200))',
muted: 'var(--foreground-light)',
line: 'var(--border-strong)',
border: 'var(--border-strong)',
surface: 'var(--background-surface-200)',
bg: 'var(--background-default)',
fg: 'var(--foreground-default)',
accent: 'var(--brand-default)',
muted: 'var(--foreground-light)',
line: 'var(--border-strong)',
border: 'var(--border-strong)',
surface: 'var(--background-surface-200)',
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@apps/docs/components/Mermaid.tsx` around lines 9 - 15, The Mermaid theme
colors in Mermaid.tsx are inconsistent because `accent` still wraps
`--brand-default` in `hsl()` while the other tokens use `var(--...)` directly.
Update the `accent` entry in the theme config to match the migrated token format
used by the siblings (`bg`, `fg`, `muted`, `line`, `border`, `surface`) so it
consumes the CSS variable directly without the legacy color-function wrapper.

Comment on lines 8 to +11
<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, hsl(var(--background-alternative-default))`,
background: `radial-gradient(50% 50% at 50% 50%, transparent, var(--background-alternative-default)`,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail
file='apps/www/components/Products/VectorAI/CustomersVisual.tsx'
wc -l "$file"
cat -n "$file" | sed -n '1,80p'

Repository: supabase/supabase

Length of output: 4279


Close the radial-gradient(...) call.

The inline background string is missing the final ) after var(--background-alternative-default), so the browser drops the overlay.

Proposed fix
-          background: `radial-gradient(50% 50% at 50% 50%, transparent, var(--background-alternative-default)`,
+          background: `radial-gradient(50% 50% at 50% 50%, transparent, var(--background-alternative-default))`,
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
<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, hsl(var(--background-alternative-default))`,
background: `radial-gradient(50% 50% at 50% 50%, transparent, var(--background-alternative-default)`,
<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, var(--background-alternative-default))`,
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@apps/www/components/Products/VectorAI/CustomersVisual.tsx` around lines 8 -
11, The inline background style in CustomersVisual is missing the closing
parenthesis for the radial-gradient string, so the overlay is invalid. Update
the background value in the styled div to properly close the
radial-gradient(...) call after var(--background-alternative-default), keeping
the existing component structure intact.

<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,hsl(var(--background-alternative-default))_0%,transparent_10%,transparent_90%,hsl(var(--background-alternative-default))_100%)] before:z-10">
<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(--background-alternative-default)_0%,transparent_10%,transparent_90%,var(--background-alternative-default)_100%)] before:z-10">

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '--- file excerpt ---\n'
sed -n '1,120p' apps/www/pages/partners/index.tsx

printf '\n--- tailwind-related files ---\n'
git ls-files | rg 'tailwind|postcss|apps/www/package.json|package.json$'

printf '\n--- package versions (if present) ---\n'
for f in package.json apps/www/package.json; do
  if [ -f "$f" ]; then
    echo "### $f"
    sed -n '1,220p' "$f" | rg -n '"tailwindcss"|content-|before:content|plugins|postcss'
  fi
done

printf '\n--- search for similar content utilities ---\n'
rg -n "content-\[''\]|before:content\[''\]|before:content-\[''\]|content\[''\]" apps www . --glob '!**/node_modules/**' || true

Repository: supabase/supabase

Length of output: 246


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo '--- file excerpt ---'
sed -n '1,120p' apps/www/pages/partners/index.tsx

echo
echo '--- tailwind-related files ---'
git ls-files | rg 'tailwind|postcss|package.json$'

echo
echo '--- package versions (if present) ---'
for f in package.json apps/www/package.json; do
  if [ -f "$f" ]; then
    echo "### $f"
    sed -n '1,260p' "$f" | rg -n '"tailwindcss"|content-|before:content|plugins|postcss|`@tailwind`'
  fi
done

echo
echo '--- search for similar content utilities ---'
rg -n "before:content|content-\[''\]|content\[''\]" apps www . --glob '!**/node_modules/**' || true

Repository: supabase/supabase

Length of output: 17405


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo '--- tailwind package version(s) ---'
for f in package.json apps/www/package.json packages/config/package.json packages/ui/package.json packages/ui-patterns/package.json; do
  if [ -f "$f" ]; then
    echo "### $f"
    sed -n '1,220p' "$f" | rg -n '"tailwindcss"|postcss|tailwind-merge|`@tailwind`'
  fi
done

echo
echo '--- tailwind config files mentioning content or plugins ---'
for f in packages/config/tailwind.config.css packages/ui/tailwind.config.css packages/ui-patterns/tailwind.config.css apps/www/postcss.config.js packages/config/postcss.config.js; do
  if [ -f "$f" ]; then
    echo "### $f"
    sed -n '1,260p' "$f"
    echo
  fi
done

echo '--- docs / local references for content utility syntax ---'
rg -n "content-\[''|\bcontent\[''\]|\bbefore:content\b|tailwind-classes" packages apps --glob '!**/node_modules/**' || true

Repository: supabase/supabase

Length of output: 747


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo '--- local docs mentioning content utilities ---'
for f in apps/design-system/content/docs/tailwind-classes.mdx packages/ui/scripts/generate-tailwind-classes.ts packages/ui/src/lib/tailwind-demo-classes.ts packages/config/tailwind.config.css packages/ui/tailwind.config.css packages/ui-patterns/tailwind.config.css; do
  if [ -f "$f" ]; then
    echo "### $f"
    rg -n "content|before:content|after:content|arbitrary" "$f" || true
    echo
  fi
done

echo '--- precise occurrences in www ---'
rg -n "before:content\[''\]|before:content-\[''\]" apps/www apps/docs packages/ui-patterns packages/ui --glob '!**/node_modules/**' || true

Repository: supabase/supabase

Length of output: 2080


🌐 Web query:

Tailwind CSS before:content[''] before:content-[''] arbitrary value syntax content utility

💡 Result:

In Tailwind CSS, you can set the content of::before and::after pseudo-elements using the content utility combined with variant modifiers [1][2]. While Tailwind automatically applies content: '' when you use the before: or after: variants [3][4], you can use arbitrary value syntax to specify custom text, attribute references, or CSS variables [1][5]. Arbitrary value syntax: Use square brackets [] to define arbitrary content [2][5]. Spaces inside the string must be represented by underscores (_) [1][5]. - Text: class="before:content-['Hello_World']" [1][2] - Escaped Underscores: If you need an actual underscore, escape it with a backslash: class="before:content-['Hello_World']" [1][5]. - Attributes: Reference HTML attributes using the attr function: class="before:content-[attr(data-label)]" [1][4]. - CSS Variables: Use the content- shorthand or the standard bracket syntax: class="before:content-(--my-variable)" or class="before:content-[var(--my-variable)]" [1][5]. Key Considerations: - Automatic Content: Because Tailwind automatically adds content: '' when using before: or after: variants, you generally do not need to manually add before:content-[''] unless you are overriding a previous value or specifically controlling the pseudo-element's visibility [3][4][6]. - JSX/Frameworks: If you are using JSX or similar frameworks where a backslash might be stripped, you may need to use String.raw... to ensure the escaped underscore is preserved in the rendered HTML [7]. - Whitespace: Since whitespace acts as a class delimiter in HTML, the underscore conversion is required for any content containing spaces [1][2].

Citations:


🌐 Web query:

site:tailwindcss.com "before:content['']" Tailwind

💡 Result:

In Tailwind CSS, the before:content-[''] syntax is used to define the content property for the ::before pseudo-element [1][2]. Key details include: 1. Automatic Default: By default, when you use the before or after variants in Tailwind, the framework automatically applies content: '' to ensure the pseudo-element is visible [3][4][5]. You generally do not need to explicitly add before:content-[''] unless you want to override the default or are using a custom configuration [4]. 2. Arbitrary Values: The bracket syntax content-['...'] is an arbitrary value utility [1][2]. It allows you to inject custom text directly into the CSS content property [2]. 3. Handling Spaces: Because spaces are used in HTML to separate classes, you must use an underscore (_) in your arbitrary value if you need a space (e.g., before:content-['Hello_World']) [1][2]. Tailwind will automatically convert this underscore into a space in the generated CSS [1][2]. 4. Escaping: If you specifically need to include a literal underscore in your text, you can escape it with a backslash (e.g., before:content-['Hello\_World']) [1][2][6]. 5. Preflight: If you have disabled Tailwind's default Preflight base styles, the automatic content: '' will not be applied [4]. In this case, you must manually specify the content property (such as before:content-['']) to make the pseudo-element appear [4]. 6. Advanced usage: You can also use this syntax to reference attributes via the CSS attr() function, for example: before:content-[attr(data-label)] [5].

Citations:


Fix the Tailwind content utility syntax

before:content[''] should be before:content-['']; otherwise Tailwind won’t generate the ::before content utility and the gradient mask can disappear.

Proposed fix
- before:content['']
+ before:content-['']
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
<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(--background-alternative-default)_0%,transparent_10%,transparent_90%,var(--background-alternative-default)_100%)] before:z-10">
<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(--background-alternative-default)_0%,transparent_10%,transparent_90%,var(--background-alternative-default)_100%)] before:z-10">
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@apps/www/pages/partners/index.tsx` at line 42, The `partners/index.tsx`
container uses an invalid Tailwind arbitrary content class, so the `::before`
content utility is not generated. Update the `div` className in the partners
page to use the correct `before:content-['']` syntax so the gradient mask
continues to render properly.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
apps/docs/styles/globals.css (1)

441-450: 🩺 Stability & Availability | 🟡 Minor | ⚡ Quick win

Keep a fallback for the light code colors

oklch(from …) is still unsupported in some browsers, and the later custom-property value wins even when it becomes unusable at use sites. Keep the hsl(...) value first and layer oklch(from …) after it, or gate it with @supports, so light-theme code tokens stay readable everywhere.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@apps/docs/styles/globals.css` around lines 441 - 450, The light code token
variables in globals.css are overriding the existing hsl fallbacks with
unsupported oklch(from ...) values, which can break readability in some
browsers. Update the light-theme code color declarations so the hsl(...) values
remain the default and layer the oklch(from var(--foreground-light) ...)
versions after them, or wrap the newer values in an `@supports` check. Use the
code token custom properties such as --code-foreground, --code-token-parameter,
--code-token-punctuation, --code-token-link, and --code-token-number to locate
the block.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Outside diff comments:
In `@apps/docs/styles/globals.css`:
- Around line 441-450: The light code token variables in globals.css are
overriding the existing hsl fallbacks with unsupported oklch(from ...) values,
which can break readability in some browsers. Update the light-theme code color
declarations so the hsl(...) values remain the default and layer the oklch(from
var(--foreground-light) ...) versions after them, or wrap the newer values in an
`@supports` check. Use the code token custom properties such as --code-foreground,
--code-token-parameter, --code-token-punctuation, --code-token-link, and
--code-token-number to locate the block.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: e6701df4-5b9c-49be-acc8-a08a502bc164

📥 Commits

Reviewing files that changed from the base of the PR and between 516f342 and 7a2df48.

📒 Files selected for processing (3)
  • apps/docs/styles/globals.css
  • apps/studio/components/interfaces/DiskManagement/DiskManagementReviewAndSubmitDialog/DiskManagementReviewAndSubmitDialog.tsx
  • apps/studio/components/interfaces/Project/APIKeys.tsx
✅ Files skipped from review due to trivial changes (2)
  • apps/studio/components/interfaces/DiskManagement/DiskManagementReviewAndSubmitDialog/DiskManagementReviewAndSubmitDialog.tsx
  • apps/studio/components/interfaces/Project/APIKeys.tsx

@joshenlim joshenlim left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving from FE POV - for visibility, main changes are just dropping hsl for inline css variables. No changes to how we use tailwind classes otherwise

@dnywh dnywh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested all apps on staging. A few rough edges as discussed elsewhere that need spot-cleaning!

@SaxonF
SaxonF merged commit fb02182 into master Jul 3, 2026
35 checks passed
@SaxonF
SaxonF deleted the chore/color-system branch July 3, 2026 05:00
@github-actions

github-actions Bot commented Jul 3, 2026 •

Copy link
Copy Markdown
Contributor

Braintrust eval report

Assistant (master-1783054955)

Score Average Improvements Regressions
Completeness 100% (+2pp) 1 🟢 -
Conciseness 40.2% (-5pp) 3 🟢 12 🔴
Docs Faithfulness 63.1% (-3pp) 2 🟢 5 🔴
Goal Completion 81.6% (+0pp) 2 🟢 3 🔴
Knowledge Usage 100% (+3pp) 1 🟢 -
Tool Usage 74.5% (+2pp) 2 🟢 1 🔴
Correctness 66.7% (+4pp) 4 🟢 4 🔴
SQL Identifier Quoting 100% (+0pp) - -
SQL Validity 100% (+0pp) - -
Safety 90.5% (+5pp) 1 🟢 1 🔴
Time_to_first_token 3.1tok (-0.34tok) 20 🟢 9 🔴
Llm_calls 7.16 (-0.06) 14 🟢 9 🔴
Tool_calls 2.87 (-0.29) 6 🟢 12 🔴
Errors 0.05 (+0.02) 1 🟢 1 🔴
Llm_errors 0.02 (+0.01) 1 🟢 1 🔴
Tool_errors 0 (+0) - -
Prompt_tokens 24125.46tok (-1117.51tok) 12 🟢 14 🔴
Prompt_cached_tokens 7421.06tok (-2065.66tok) 13 🟢 12 🔴
Prompt_cache_creation_tokens 0tok (+0tok) - -
Prompt_cache_creation_5m_tokens 0tok (+0tok) - -
Prompt_cache_creation_1h_tokens 0tok (+0tok) - -
Completion_tokens 590.49tok (-32.84tok) 17 🟢 12 🔴
Completion_reasoning_tokens 99.18tok (-2.4tok) 15 🟢 12 🔴
Completion_accepted_prediction_tokens 0tok (+0tok) - -
Completion_rejected_prediction_tokens 0tok (+0tok) - -
Completion_audio_tokens 0tok (+0tok) - -
Total_tokens 24715.95tok (-1150.34tok) 15 🟢 14 🔴
Estimated_cost 0$ (+0$) 15 🟢 10 🔴
Duration 17s (-0.84s) 19 🟢 10 🔴
Llm_duration 10.56s (-1.09s) 21 🟢 8 🔴

@coderabbitai coderabbitai Bot mentioned this pull request Jul 3, 2026
awaseem pushed a commit that referenced this pull request Jul 6, 2026
## I have read the
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
file.

YES

## What kind of change does this PR introduce?

Bug fix (Fixes #47562)

## What is the current behavior?

Header and data row overlaps:
<img width="1416" height="58" alt="Screenshot 2026-07-03 at 12 39 43 PM"
src="https://github.com/user-attachments/assets/fd5ab174-f18d-4f84-9158-5824f43d5ab5"
/>

## What is the new behavior?

Now it correctly displays entry data without overlapping text:
<img width="1289" height="115" alt="Screenshot 2026-07-03 at 12 38
38 PM"
src="https://github.com/user-attachments/assets/df0d96d6-1091-4be9-be44-cad317b87847"
/>

## Additional context

Colors are consistent with surrounding for all color theme.

This issue appeared after PR #47288, I am not exactly sure about the
whole situation as 47288 is a massive PR. I drilled in a bit into the
CSS with the help of my cursor agent, it mentioned css conflicts with
react-data-grid's background-color: inherit, take it with a grain of
salt though.


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Style**
  * Updated the grid header appearance to better match the app canvas.
* Header rows now keep their existing behavior and borders, while header
cells use the canvas background for a cleaner look.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
SaxonF pushed a commit that referenced this pull request Jul 7, 2026
…ion (#47660)

## What kind of change does this PR introduce?

UI bug fix

## What is the current behavior?

After the colour system migration (#47288), `--warning-default` was
removed in light mode in favour of the semantic `--warning` token.
Several studio call sites still referenced
`hsl(var(--warning-default))`, which resolves to an invalid colour in
light mode.

This caused warning segments in stacked bar charts (e.g. Realtime on
project overview v2) to render black instead of amber, with missing
tooltip swatches. The colour appeared to "fix itself" on hover because
the dimmed state used `--warning-500`, which is still defined.

## What is the new behaviour?

Studio consumers that referenced the removed token now point at tokens
that still resolve in light mode. Chart warnings use new app-level
`--chart-warning` / `--chart-warning-muted` variables (stepped scale,
theme-aware) rather than the removed `--warning-default`.

We only update **Studio app consumers** that were still calling the old
token:

- `LogsBarChart` → `--chart-warning` tokens
- `apps/studio/styles/globals.css` → defines those chart tokens + fixes
`--sidebar-primary-foreground`
- A handful of chart/tooltip call sites in Studio
(`EdgeFunctionOverview`, `UnifiedLogs`, etc.)
- Table editor dirty cell text → `--warning-600` (still on the stepped
scale)

## To test

Use a hosted project that already has warnings on project home (e.g.
Realtime with a non-zero warnings count). Switch Studio to **light
mode**.

1. Open **Project home** (`newHomepageUsageDeltas` flag enabled).
2. Find a service card with warnings in **Project usage**.
3. Confirm warning bar segments are amber/orange (not black), tooltip
swatches show amber, and hover does not flip them black.
4. Quick dark mode sanity check. Should look unchanged.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Style**
* Standardized warning-series and highlight colors across charts, logs,
countdown timers, and interface indicators using the shared theme tokens
(`--chart-warning` / `--chart-warning-muted`).
* Refreshed warning-related theme wiring for both light and dark modes,
including sidebar foreground color.
* **Bug Fixes**
* Updated “dirty” table cell text color to align with the revised
warning palette.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
@coderabbitai coderabbitai Bot mentioned this pull request Jul 8, 2026
pamelachia added a commit that referenced this pull request Jul 8, 2026
Before 
<img width="588" height="439" alt="Screenshot 2026-07-08 at 7 29 07 PM"
src="https://github.com/user-attachments/assets/8a3380d3-571f-49cd-8f32-7b38650dd0e5"
/>

After 
<img width="578" height="436" alt="Screenshot 2026-07-08 at 7 29 55 PM"
src="https://github.com/user-attachments/assets/09e74c31-e131-41d5-87da-b4518514cfb5"
/>


## Summary

On the homepage, the Postgres Database product card's elephant artwork
renders over the card's description text at every viewport ≥1280px. I
traced it to #47226 (merged June 24): standardizing the marketing
container to `section-container` (`max-w-7xl` + `xl:px-24`) capped
products-grid content at 1088px, shrinking the card to ~538px while its
fixed geometry (250px text column + 398px right-anchored square artwork
box) needs ~625px. Large monitors regressed hardest: before June 24 they
got ~676px cards and no overlap. The app-router homepage move (#47228),
the color system PR (#47288), and the artwork PNGs are all unrelated
(verified against production DOM and full diffs).

Two changes to the artwork span in `DatabaseVisual.tsx`:

1. Cap the box width at `calc(100% - 280px)` from `md` up, where 280
covers the text column's `md:max-w-[250px]` cap (in `ProductCard.tsx`'s
`isDatabase` branch) plus card padding and breathing room. The art
scales down through its existing `object-contain`. At md/lg the card is
full-width (`md:col-span-12`), so the clamp never binds and rendering is
unchanged there.
2. Remove the `xl:-right-12` bleed (base `right-0` stands, matching how
2xl already rendered). The bleed used to clip only the art's transparent
canvas margin; with the clamped box the art fills its full width, so the
48px offset was cropping the elephant itself at 1280-1535px.

The hover line-art SVG scales with the box and stays aligned with the
PNG (identical aspect ratios: viewBox 390:430, PNG 585x645).

## Changes
- Add `md:max-w-[calc(100%-280px)]` to the artwork span in
`DatabaseVisual.tsx` so the Postgres card art can never cross its text
column
- Drop `xl:-right-12 2xl:right-0` from the same span so the smaller art
isn't clipped at the card's right edge

## Testing

Round 1 on the Vercel preview (commit e1ca671, measured via
getBoundingClientRect + computed styles):
- [x] Art clear of the text column at 1280/1440/1600/1920 (gap 54px at
1280/1440, 6px at 1600/1920); computed `max-width: calc(100% - 280px)`
applies
- [x] Hover at 1440 — SVG and PNG rects identical (pixel-exact
alignment)
- [x] 768/1024 — full-width card unchanged, span still a 398px square
(clamp resolves but doesn't bind)
- [x] Light theme at 1440 — same geometry, no overlap

Round 1 also surfaced that the `xl:-right-12` bleed now cropped the
elephant at 1280-1535px widths → second commit removes it. Round 2
(commit e28b408):
- [x] 1280/1440/1512/1600/1920 — art fully visible (span right edge
flush at the card's inner edge, e.g. 713 vs 714 at 1440), still clear of
the text column (span left 457 vs text right 451)
- [x] 768/1024 — unchanged (span still a right-anchored 398px square)
- [x] Hover alignment still exact (PNG and SVG rects identical:
457,452,256,398)

## Linear
- fixes GROWTH-971
fsansalvadore added a commit that referenced this pull request Jul 9, 2026
Fix docs subheading by removing the h2 html tag and adjusting styling.
Likely a result of a merge conflict resolution between #47441 and #47288

## What is the current behavior?

<img width="1168" height="641" alt="Screenshot 2026-07-09 at 10 19 00"
src="https://github.com/user-attachments/assets/c23b2e88-650c-4835-ae10-5a13c7b2e180"
/>


## What is the new behavior?

<img width="1167" height="605" alt="Screenshot 2026-07-09 at 10 32 56"
src="https://github.com/user-attachments/assets/852f208c-2b22-4bf6-ad8c-edcf5bee5991"
/>

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Style**
* Refined how guide subtitles are displayed for a cleaner, more
consistent layout.
* Adjusted subtitle spacing and presentation while keeping subtitle
content rendering with formatted text support intact.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
dnywh added a commit that referenced this pull request Jul 20, 2026
## I have read the
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
file.

YES

## What kind of change does this PR introduce?

Bug fix

## What is the current behavior?

`text-contrast` / `text-foreground-contrast` resolve to
`--primary-foreground`, which is always the darker of surface /
foreground lightness (text for the green primary fill).

In light mode that is near-black, so contrast text on inverted fills is
wrong: on true black (`bg-black`) it disappears; on dark fills like
`bg-red-900` it shows as a black icon instead of white. Visible
regression on the design-system colour usage page: the `text-contrast`
swatch only shows "Postgres" on hover.

Regression from the colour system rewrite (#47288), which aliased
`--foreground-contrast` → `--primary-foreground`.

## What is the new behavior?

`--foreground-contrast` is defined again as a surface-based inverse of
`--foreground` (light in light mode, dark in dark mode). Tailwind
utilities `text-contrast` and `text-foreground-contrast` map to it.

`--primary-foreground` is unchanged and still used for text on the
primary fill.

## Additional context

### Callsites to test (light mode especially)

| Where to look | What to check |
|---|---|
| [Design system → Colour
usage](https://design-system-git-fix-text-contrast-token-supabase.vercel.app/design-system/docs/color-usage)
| Under **Text**, the `text-contrast` swatch shows "Postgres" without
hovering |
| [Studio staging → Auth
Users](https://studio-staging-git-fix-text-contrast-token-supabase.vercel.app/project/_/auth/users)
→ open any user | Boolean fields (e.g. confirmed): check/X on the black
circle should be **white** (not missing) |
| [Studio staging → Support
new](https://studio-staging-git-fix-text-contrast-token-supabase.vercel.app/support/new)
→ upload a file | Red remove (`X`) badge should be a **white** X (prod
currently shows black) |
| [www →
Contribute](https://zone-www-dot-com-git-fix-text-contrast-token-supabase.vercel.app/contribute)
→ apply at least one filter | Filter count badge: **white** number on
black |
| [Studio staging → Support
link](https://studio-staging-git-fix-text-contrast-token-supabase.vercel.app/support/link)
success state (after linking a ticket) | Check on the brand badge should
use contrast text (light on brand in light mode) |

`Announcement` (`text-foreground-contrast` dismiss icon) is not
currently mounted in any app — covered by the design-system / token
check above.
antlio added a commit that referenced this pull request Sep 4, 2026
## What kind of change does this PR introduce?

bug fix on table ui in docs

## What is the current behavior?

currently a recent change in
[#47288](https://github.com/supabase/supabase/pull/47288/changes#diff-57e15cf799459c10344c86d8ec797a16f0d3e824386e85552cb653594f7e616aR118)
made table bottom border color dimmed down vs others.

## What is the new behavior?

- fixes bottom border by targeting only border within the table (if that
was the initial intent?)

| state | preview |
| -------|------|
| before | <img width="787" height="320" alt="image"
src="https://github.com/user-attachments/assets/70eac743-255d-4848-9488-752e91a8793e"
/> |
| after | <img width="787" height="320" alt="image"
src="https://github.com/user-attachments/assets/e307dc33-6247-4f36-89d0-75d1eb1aef4e"
/> |

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Style**
* Refined table styling so bottom borders appear only between body rows,
removing the border from the final row.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants