Skip to content

fix: user config theme breakpoints order#784

Merged
antfu merged 2 commits intomainfrom
userquin/fix-breakpoints-order
Apr 1, 2022
Merged

fix: user config theme breakpoints order#784
antfu merged 2 commits intomainfrom
userquin/fix-breakpoints-order

Conversation

@userquin
Copy link
Member

@userquin userquin commented Mar 31, 2022

This PR fix the breakpoints from user config theme:

  • generator: add resolve breakpoints utilities => moved to src/utils/utilities on preset-mini
  • preset-mini: size and breakpoints
  • preset-wind: container
  • test: transformer-directive.test.ts (check last test custom breakpoints with custom generator)
  • add @unocss/preset-typography to root tsconfig.json

This PR doesn't solve the order problem, maybe we should document it or try to fix it later.

closes #778

@userquin userquin requested a review from antfu as a code owner March 31, 2022 09:34
@netlify
Copy link

netlify bot commented Mar 31, 2022

Deploy Preview for unocss ready!

Name Link
🔨 Latest commit e4b1d2a
🔍 Latest deploy log https://app.netlify.com/sites/unocss/deploys/6245832bdf4716000911468a
😎 Deploy Preview https://deploy-preview-784--unocss.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

antfu
antfu previously requested changes Mar 31, 2022
return breakpoints
}

resolveVerticalBreakpoints() {
Copy link
Member

Choose a reason for hiding this comment

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

Those two should belong to preset-mini instead of core. The core should be agnostic to how the theme object has been defined.

@userquin userquin requested a review from antfu March 31, 2022 10:33
@antfu antfu dismissed their stale review March 31, 2022 10:35

Dismiss

@antfu antfu merged commit b901524 into main Apr 1, 2022
@antfu antfu deleted the userquin/fix-breakpoints-order branch April 1, 2022 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Breakpoint variants are not sorted properly

2 participants