Skip to content

Conversation

@jbroma
Copy link
Member

@jbroma jbroma commented Nov 3, 2025

Summary

This PR makes styles.css optional for the preset to work

Test plan

  • - tester works

Note

Conditionally resolve globalStyles via a new helper so theme/styles.css is optional.

  • Preset config (packages/preset/src/preset.ts):
    • Add getGlobalStyles(context) to return theme/styles.css path only if it exists.
    • Update globalStyles to use getGlobalStyles(context), making global styles optional.

Written by Cursor Bugbot for commit 489e089. This will update automatically on new commits. Configure here.

@jbroma jbroma changed the title fix: check if styles.css exists before including it fix: check if theme/styles.css exists before including it Nov 3, 2025
@github-actions github-actions bot added the release: bug fix Bug Fix label Nov 3, 2025
@jbroma jbroma merged commit 1b253d1 into main Nov 3, 2025
9 checks passed
@jbroma jbroma deleted the fix/make-styles-optional branch November 3, 2025 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants