Repository navigation
Color system - #47288
Color system#47288
Conversation
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Note Reviews pausedIt 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 Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughThe 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. ChangesToken and theme foundation
App visuals and content
Estimated code review effort: 5 (Critical) | ~120 minutes 🚥 Pre-merge checks | ✅ 2 | ❌ 3❌ Failed checks (2 warnings, 1 inconclusive)
✅ Passed checks (2 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
🎭 Playwright Test ResultsDetails
Flaky testsFeatures › sql-editor.spec.ts › SQL Editor › should check if SQL editor is working as expected Skipped testsFeatures › auth-users.spec.ts › should show web3 users as enabled when the matching web3 provider is enabled |
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]>
There was a problem hiding this comment.
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 winUpdate 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 inhsl(...). 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
📒 Files selected for processing (125)
apps/design-system/components/code-fragment.tsxapps/design-system/components/component-preview.tsxapps/design-system/registry/default/example/drawer-demo.tsxapps/design-system/registry/default/example/page-layout-edge-function.tsxapps/design-system/styles/code-block-variables.cssapps/docs/components/DocsCoverLogo.tsxapps/docs/components/Mermaid.tsxapps/docs/content/guides/auth/passwords.mdxapps/docs/styles/globals.cssapps/learn/styles/code-block-variables.cssapps/learn/styles/globals.cssapps/lite-studio/styles/globals.cssapps/studio/components/interfaces/Database/Replication/ReplicationDiagram/Edges.tsxapps/studio/components/interfaces/DiskManagement/DiskManagementReviewAndSubmitDialog/DiskManagementReviewAndSubmitDialog.tsxapps/studio/components/interfaces/Functions/EdgeFunctionOverview/EdgeFunctionInvocationsChart.tsxapps/studio/components/interfaces/Functions/EdgeFunctionOverview/EdgeFunctionOverview.utils.tsapps/studio/components/interfaces/Functions/EdgeFunctionOverview/EdgeFunctionPerformanceSection.tsxapps/studio/components/interfaces/Functions/EdgeFunctionOverview/EdgeFunctionUsageSection.tsxapps/studio/components/interfaces/Integrations/GraphQL/graphiql.module.cssapps/studio/components/interfaces/Project/APIKeys.tsxapps/studio/components/interfaces/QueryInsights/QueryInsightsChart/QueryInsightsChart.tsxapps/studio/components/interfaces/QueryInsights/QueryInsightsHealth/QueryInsightsHealthScore.tsxapps/studio/components/interfaces/Reports/ReportBlock/ChartBlock.tsxapps/studio/components/interfaces/Reports/utils/geo.tsapps/studio/components/interfaces/Support/Success.tsxapps/studio/components/interfaces/UnifiedLogs/UnifiedLogs.tsxapps/studio/components/layouts/Navigation/NavigationBar/ProjectBranchSelectorSheetTabTrigger.tsxapps/studio/components/ui/Charts/Charts.constants.tsapps/studio/components/ui/Panel.tsxapps/studio/components/ui/PartnerIcon.tsxapps/studio/components/ui/QueryBlock/QueryBlock.tsxapps/studio/styles/globals.cssapps/studio/styles/monaco.cssapps/studio/styles/react-data-grid-logs.cssapps/studio/styles/ui.cssapps/ui-library/app/example/password-based-auth/layout.tsxapps/ui-library/app/example/social-auth/layout.tsxapps/ui-library/components/component-preview.tsxapps/ui-library/registry/default/examples/realtime-flow-demo.tsxapps/ui-library/styles/code-block-variables.cssapps/ui-library/styles/globals.cssapps/www/_blog/2025-12-17-building-chatgpt-apps-with-supabase.mdxapps/www/app/state-of-startups/components/StateOfStartupsAuroraHeader.tsxapps/www/app/state-of-startups/components/StateOfStartupsHeader.tsxapps/www/app/state-of-startups/components/SurveyChartShell.tsxapps/www/app/state-of-startups/register/RegisterContent.tsxapps/www/components/Charts/DeveloperGrowthChart.tsxapps/www/components/Charts/PGCharts.tsxapps/www/components/ExampleCard.tsxapps/www/components/Go/TweetsSection.tsxapps/www/components/LaunchWeek/11/LaunchWeekPrizeCard.tsxapps/www/components/LaunchWeek/11/Releases/BuildStage.tsxapps/www/components/LaunchWeek/11/Releases/data/lw11_build_stage.tsxapps/www/components/LaunchWeek/12/LaunchWeekPrizeCard.tsxapps/www/components/LaunchWeek/12/Releases/BuildStage.tsxapps/www/components/LaunchWeek/12/Releases/data/lw12_build_stage.tsxapps/www/components/LaunchWeek/13/Releases/BuildStage.tsxapps/www/components/LaunchWeek/13/Releases/data/lw13_build_stage.tsxapps/www/components/LaunchWeek/14/Releases/BuildStage.tsxapps/www/components/LaunchWeek/14/Releases/data/lw14_build_stage.tsxapps/www/components/LaunchWeek/X/Album/Player.tsxapps/www/components/LaunchWeek/X/LaunchWeekPrizeCard.tsxapps/www/components/Panel/Panel.tsxapps/www/components/Products/DatabaseVisual.tsxapps/www/components/Products/Functions/FunctionsHero.tsxapps/www/components/Products/Functions/Metrics.tsxapps/www/components/Products/Functions/NpmEcosystem.tsxapps/www/components/Products/Functions/QueryLogs.tsxapps/www/components/Products/Functions/RealtimeLogs.tsxapps/www/components/Products/RealtimeVisual.tsxapps/www/components/Products/VectorAI/CustomersVisual.tsxapps/www/components/Sections/FeaturesSection.tsxapps/www/components/Sections/HighlightCards.tsxapps/www/components/Sections/TwitterSocialProof.tsxapps/www/components/Sections/UseCasesSection.tsxapps/www/components/SurveyResults/StateOfStartupsHeader.tsxapps/www/components/SurveyResults/SurveyChapter.tsxapps/www/components/SurveyResults/SurveyChart.tsxapps/www/components/UsersGrowthChart.tsxapps/www/components/Wrapped/Visuals.tsxapps/www/components/logos.tsxapps/www/data/aws-reinvent-2025.tsxapps/www/data/ga.tsxapps/www/data/open-source/contributing/supasquad.utils.tsxapps/www/data/solutions/agencies.tsxapps/www/data/solutions/ai-builders.tsxapps/www/data/solutions/beginners.tsxapps/www/data/solutions/developers.tsxapps/www/data/solutions/firebase.tsxapps/www/data/solutions/hackathon.tsxapps/www/data/solutions/innovation-teams.tsxapps/www/data/solutions/neon.tsxapps/www/data/solutions/no-code.tsxapps/www/data/solutions/postgres-developers.tsxapps/www/data/solutions/solutions.utils.tsxapps/www/data/solutions/startups.tsxapps/www/data/solutions/vibe-coders.tsxapps/www/data/support.tsxapps/www/pages/launch-week/6/styles/launchWeek6.module.cssapps/www/pages/partners/index.tsxapps/www/pages/solutions/innovation-teams.tsxapps/www/styles/globals.csspackages/config/code-hike.csspackages/config/css/theme.csspackages/config/css/utilities.csspackages/config/tailwind.config.csspackages/config/typography.config.jspackages/marketing/src/go/sections/CodeBlockSection.tsxpackages/ui-patterns/src/Chart/charts/chart-bar.tsxpackages/ui-patterns/src/Chart/charts/chart-line.tsxpackages/ui-patterns/src/CodeBlock/CodeBlock.tsxpackages/ui-patterns/src/LogsBarChart/index.tsxpackages/ui-patterns/src/PromoToast/PromoBg.tsxpackages/ui-patterns/src/ShimmeringLoader/index.csspackages/ui/README.mdpackages/ui/build/css/source/compat.csspackages/ui/build/css/source/semantic.csspackages/ui/build/css/themes/classic-dark.csspackages/ui/build/css/themes/dark.csspackages/ui/build/css/themes/faux-classic-dark.csspackages/ui/build/css/themes/light.csspackages/ui/src/components/Button/Button.tsxpackages/ui/src/components/shadcn/ui/badge.tsxpackages/ui/src/components/shadcn/ui/button.tsxpackages/ui/src/components/shadcn/ui/sidebar.tsx
| 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)', |
There was a problem hiding this comment.
🎯 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.
| 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.
| <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)`, |
There was a problem hiding this comment.
🎯 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.
| <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"> |
There was a problem hiding this comment.
🎯 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/**' || trueRepository: 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/**' || trueRepository: 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/**' || trueRepository: 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/**' || trueRepository: 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:
- 1: https://tailwindcss.com/docs/content
- 2: https://v3.tailwindcss.com/docs/content
- 3: JIT: Add support for before/after pseudo-elements tailwindlabs/tailwindcss#4461
- 4: https://stevekinney.com/courses/tailwind/before-and-after-pseudo-selectors
- 5: https://v3.tailwindcss.com/docs/adding-custom-styles
- 6: https://frontend-hero.com/tailwind-content-cheatsheet
- 7: https://tailwindcss.com/docs/adding-custom-styles
🌐 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:
- 1: https://tailwindcss.com/docs/content
- 2: https://v3.tailwindcss.com/docs/content
- 3: https://tailwindcss.com/docs/hover-focus-and-other-states
- 4: https://v3.tailwindcss.com/docs/hover-focus-and-other-states
- 5: https://tailwindcss.com/docs/just-in-time-mode
- 6: https://tailwindcss.com/docs/adding-custom-styles
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.
| <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.
There was a problem hiding this comment.
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 winKeep 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 thehsl(...)value first and layeroklch(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
📒 Files selected for processing (3)
apps/docs/styles/globals.cssapps/studio/components/interfaces/DiskManagement/DiskManagementReviewAndSubmitDialog/DiskManagementReviewAndSubmitDialog.tsxapps/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
left a comment
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
Tested all apps on staging. A few rough edges as discussed elsewhere that need spot-cleaning!
Braintrust eval report
|
## 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 -->
…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 -->
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
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 -->
## 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.
## 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 -->
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