8000 feat(packages-preset): new preset for `preset-wind4` by zyyv · Pull Request #4439 · unocss/unocss · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(packages-preset): new preset for preset-wind4 #4439

Merged
merged 13 commits into from
Feb 21, 2025
Merged

feat(packages-preset): new preset for preset-wind4 #4439

merged 13 commits into from
Feb 21, 2025

Conversation

zyyv
Copy link
Member
@zyyv zyyv commented Feb 19, 2025

We have aligned with Tailwind4 in many rules, but we have made some adjustments in some rules to better fit the design philosophy of UnoCSS. Here are some of the adjusted rules:

  • Align with Tailwind4 rules & variants
  • In some rules, we removed the xxx-none rule
  • Remove theme color short key, don't support bg-red-4, text-blue-4 etc
  • Different from Tailwind4, we retain support for color opacity. For example: bg-op-50, text-op-50 etc
  • Output theme to css variables as preflight
  • Support css nested output - feat(core)!: switch to nested css output #4435
  • Rebuild the theme key to make it clearer
  • Some are yet to be completed. etc.
Click to see the theme changes

Removed Properties

  • width
  • height
  • maxWidth
  • maxHeight
  • minWidth
  • minHeight
  • inlineSize
  • blockSize
  • maxInlineSize
  • maxBlockSize
  • minInlineSize
  • minBlockSize
  • borderColor
  • backgroundColor
  • textColor
  • shadowColor
  • accentColor
  • fontFamily
  • fontSize
  • lineHeight
  • letterSpacing
  • wordSpacing
  • boxShadow
  • textIndent
  • textStrokeWidth
  • ringWidth
  • lineWidth
  • zIndex
  • blur
  • dropShadow
  • easing
  • transitionProperty
  • media
  • supports
  • containers
  • gridAutoColumn
  • gridAutoRow
  • gridColumn
  • gridRow
  • gridTemplateColumn
  • gridTemplateRow
  • preflightRoot
  • preflightBase

Renamed Properties

  • breakpoints to breakpoint
  • verticalBreakpoints to verticalBreakpoint
  • borderRadius to radius
  • boxShadow to shadow
  • easing to ease
  • animation to animate
  • blur to blur
  • transitionProperty to property

Restructured Properties

  • text now includes fontSize, lineHeight, and letterSpacing as nested properties.
  • container is now a nested object under containers.

Added Properties

  • font
  • tracking
  • leading
  • insetShadow
  • perspective
  • defaults

@zyyv zyyv requested a review from antfu as a code owner February 19, 2025 06:30
@zyyv zyyv self-assigned this Feb 19, 2025
@zyyv zyyv marked this pull request as draft February 19, 2025 06:30
Copy link
netlify bot commented Feb 19, 2025

Deploy Preview for unocss failed.

Name Link
🔨 Latest commit 6ba26c5
🔍 Latest deploy log https://app.netlify.com/sites/unocss/deploys/67b57a762953f300089e6399

Copy link
netlify bot commented Feb 19, 2025

Deploy Preview for unocss ready!

Name Link
🔨 Latest commit 834d9d2
🔍 Latest deploy log https://app.netlify.com/sites/unocss/deploys/67b7f577d48a1a0009d04b66
😎 Deploy Preview https://deploy-preview-4439--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 configuration.

@zyyv zyyv changed the title feat(packages-preset): new preset for preset-wind4 feat(packages-preset): new preset for preset-wind4 Feb 19, 2025
@zyyv zyyv linked an issue Feb 19, 2025 that may be closed by this pull request
@zyyv zyyv marked this pull request as ready for review February 19, 2025 09:26
@zyyv zyyv merged commit 355558b into main Feb 21, 2025
8 of 11 checks passed
@zyyv zyyv deleted the preset-wind4 branch February 21, 2025 06:16
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.

Move @zyyv's new implementation to the monorepo as @unocss/preset-wind4
1 participant
0