Repository navigation
Modernize Precursor theming, primitives, and releases - #71
Conversation
🦋 Changeset detectedLatest commit: e7fb55b The changes in this PR will be included in the next version bump. This PR includes changesets to release 37 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e7fb55b88e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| "react": ">=16.8.0" | ||
| }, | ||
| "repository": "https://github.com/danieldelcore/precursor/tree/master/packages/theming/theme" | ||
| "react": "^19.0.0" |
There was a problem hiding this comment.
Require a React version that provides useEffectEvent
Consumers using React 19.0 or 19.1 satisfy this peer dependency, but ThemeProvider now imports and unconditionally calls useEffectEvent, which was introduced in React 19.2. Those supported installations therefore fail when importing or rendering the provider. Raise the minimum React peer version to 19.2, or implement the error callback without that newer hook.
Useful? React with 👍 / 👎.
| const scopeStyles = css({ | ||
| display: 'contents', | ||
| color: 'var(--color-text)', |
There was a problem hiding this comment.
Apply a matching background when selecting dark colors
When a consumer wraps ordinary content in a dark ThemeProvider without supplying its own background, this scope sets light text colors but leaves the page background white. The previous Globals implementation painted the body background; its replacement no longer does, and this display: contents scope cannot paint a background itself. Consequently, plain text and headings become nearly unreadable in explicit dark mode or auto mode on a dark-preferring system. Provide a matching scoped surface or restore an appropriate root background treatment.
Useful? React with 👍 / 👎.
Summary
Verification
yarn install --immutable,yarn validate, andyarn storybook buildpassed locally.