@vinicunca/unocss-preset 1.43.0 → 1.44.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.mjs +20 -5
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -57,6 +57,7 @@ const resetCSS = `
57
57
  5. Use the user's configured \`sans\` font-feature-settings by default.
58
58
  6. Use the user's configured \`sans\` font-variation-settings by default.
59
59
  7. Disable tap highlights on iOS.
60
+ 8. Improve text rendering.
60
61
  */
61
62
 
62
63
  html,
@@ -78,6 +79,7 @@ html,
78
79
  font-feature-settings: var(--defaults-font-feature-settings, normal); /* 5 */
79
80
  font-variation-settings: var(--defaults-font-variation-settings, normal); /* 6 */
80
81
  -webkit-tap-highlight-color: transparent; /* 7 */
82
+ -webkit-font-smoothing: antialiased; /* 8 */
81
83
  }
82
84
 
83
85
  /*
@@ -123,6 +125,23 @@ h6 {
123
125
  font-weight: inherit;
124
126
  }
125
127
 
128
+ /*
129
+ Avoid text overflows
130
+ */
131
+ p, h1, h2, h3, h4, h5, h6 {
132
+ overflow-wrap: break-word;
133
+ }
134
+
135
+ /*
136
+ Improve line wrapping
137
+ */
138
+ p {
139
+ text-wrap: pretty;
140
+ }
141
+ h1, h2, h3, h4, h5, h6 {
142
+ text-wrap: balance;
143
+ }
144
+
126
145
  /*
127
146
  Reset links to optimize for opt-in styling instead of opt-out.
128
147
  */
@@ -248,7 +267,6 @@ menu {
248
267
  2. Add \`vertical-align: middle\` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
249
268
  This can trigger a poorly considered lint error in some tools but is included by design.
250
269
  */
251
-
252
270
  img,
253
271
  svg,
254
272
  video,
@@ -264,9 +282,7 @@ object {
264
282
  /*
265
283
  Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
266
284
  */
267
-
268
- img,
269
- video {
285
+ img, picture, video, canvas, svg {
270
286
  max-width: 100%;
271
287
  height: auto;
272
288
  }
@@ -277,7 +293,6 @@ video {
277
293
  3. Remove background color in all browsers.
278
294
  4. Ensure consistent opacity for disabled states in all browsers.
279
295
  */
280
-
281
296
  button,
282
297
  input,
283
298
  optgroup,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vinicunca/unocss-preset",
3
3
  "type": "module",
4
- "version": "1.43.0",
4
+ "version": "1.44.0",
5
5
  "description": "Opinionated UnoCSS preset",
6
6
  "author": "praburangki<https://github.com/praburangki>",
7
7
  "license": "MIT",
@@ -73,7 +73,7 @@
73
73
  "unocss": "66.6.6",
74
74
  "vite": "^7.3.1",
75
75
  "vitest": "^4.0.17",
76
- "@vinicunca/unocss-preset": "1.43.0"
76
+ "@vinicunca/unocss-preset": "1.44.0"
77
77
  },
78
78
  "devDependencies": {
79
79
  "culori": "^4.0.2"