Commit Graph
1 Commits
Author SHA1 Message Date
Danny White f3c8ea07e4 feat(ui): add opt-in shared inline code defaults (#51980)
## Problem

Apps repeat inline-code styles in classes and Markdown renderers, so
code looks different across apps. See
[DEPR-707](https://linear.app/supabase/issue/DEPR-707/apply-shared-default-styling-to-inline-code).

## Solution

Add `packages/config/inline-code.css` for apps to import. It gives
inline code a border and background, uses the default foreground colour,
inherits the surrounding weight, and scales code from 12.5px beside 14px
text to 14px beside 16px text, with a `0.75rem` minimum (normally 12px).
Long values wrap only when needed.

Code blocks, highlighted code and editors keep their own styles.
`data-code-style="plain"` excludes other custom displays. Tailwind
classes can override the defaults.

No app imports the file yet, so this PR has no visual changes. 

Later PRs in the stack enable it per app, then #51986 removes the old
styles. #51904 remains the full backup and should not merge alongside
this stack. See that #51904 draft for what it looks like at the end.

## Review instructions

Review the shared CSS in this one-file diff. App-specific changes and
visual checks belong to the later PRs, up the stack.
2026-10-22 00:48:56 +00:00