diff --git a/README.md b/README.md index 0f2080c..84e8946 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ Applies a `linear-gradient` as the mask image. Opacity is set from 100% at the s #### Direction `mask-dir` -By default, the gradient is [directed](https://developer.mozilla.org/en-US/docs/Web/CSS/gradient/linear-gradient#values) to bottom. You can easily customize the direction with `mask-dir` utility, including arbitary values. +By default, the gradient is [directed](https://developer.mozilla.org/en-US/docs/Web/CSS/gradient/linear-gradient#values) to bottom. You can easily customize the direction with `mask-dir` utility, including arbitrary values. ```html
@@ -61,7 +61,7 @@ The `stops` API is similar to tailwind's [Gradient Color Stops](https://tailwind **But!** An important difference is that here you should use not `colors` but `opacity` values. -The `opacity` values are taken from your theme specified in the `tailwind.config.js`, but you obviously can use arbitary opacity values as well. +The `opacity` values are taken from your theme specified in the `tailwind.config.js`, but you obviously can use arbitrary opacity values as well. ```html @@ -95,7 +95,7 @@ Applies a `radial-gradient` as the mask image. Like for the `mask-linear` util, #### Position `mask-at` -By default, the gradient's position is `center`. You can use the same values as for the [`background-position` css prop](https://developer.mozilla.org/en-US/docs/Web/CSS/background-position#syntax) (`top`, `bottom left` etc), as well as arbitary values with explicit position. +By default, the gradient's position is `center`. You can use the same values as for the [`background-position` css prop](https://developer.mozilla.org/en-US/docs/Web/CSS/background-position#syntax) (`top`, `bottom left` etc), as well as arbitrary values with explicit position. ```html @@ -118,13 +118,13 @@ Besides *as-they-are* keyword-values, there are also a couple of aliases: - `mask-size-contain` for `closest-side` - `mask-size-cover` for `farthest-corner` -You can also use arbitary values: +You can also use arbitrary values: ```html ``` -![example for mask-size with arbitary values](examples/mask-size-arbitary.png) +![example for mask-size with arbitrary values](examples/mask-size-arbitrary.png) #### Stops @@ -148,16 +148,16 @@ This value matches `mask-image` css prop's default value so it makes no sense to ![mask-none example](examples/mask-none.png) -### Arbitary values +### Arbitrary values #### Images -The `mask-image` css prop accepts not only gradients but images as well. You can use arbitary values, for example, to apply `url()` as the mask image. +The `mask-image` css prop accepts not only gradients but images as well. You can use arbitrary values, for example, to apply `url()` as the mask image. ```html ``` -![arbitary mask image example](examples/arbitary-image.png) +![arbitrary mask image example](examples/arbitrary-image.png) In this case you can manage the [`mask-repeat` css property](https://developer.mozilla.org/en-US/docs/Web/CSS/mask-repeat) as well with the `mask-repeat` and `mask-no-repeat` utils. @@ -173,7 +173,7 @@ You can pass other types of the gradients, e.g. `conic-gradient` etc. ```html ``` -![arbitary conic-gradient mask example](examples/arbitary-conic-gradient.png) +![arbitrary conic-gradient mask example](examples/arbitrary-conic-gradient.png) Also, you may want not to use the API above even for `linear-gradient` or `radial-gradient` so you can pass them arbitrarily too. diff --git a/index.js b/index.js index 5730a82..1c5aa75 100644 --- a/index.js +++ b/index.js @@ -48,7 +48,7 @@ module.exports = plugin(({ theme, addUtilities, matchUtilities }) => { }) // - direction - // NOTE: Can accept angle as an arbitary value, e.g. `mask-dir-[30deg]` + // NOTE: Can accept angle as an arbitrary value, e.g. `mask-dir-[30deg]` matchUtilities( { 'mask-dir': (value) => ({ @@ -80,7 +80,7 @@ module.exports = plugin(({ theme, addUtilities, matchUtilities }) => { }) // - size - // NOTE: Can accept X Y size as an arbitary value, e.g. `mask-size-[25%_25%]` + // NOTE: Can accept X Y size as an arbitrary value, e.g. `mask-size-[25%_25%]` matchUtilities( { 'mask-size': (value) => ({ @@ -102,7 +102,7 @@ module.exports = plugin(({ theme, addUtilities, matchUtilities }) => { ) // - position - // NOTE: Can accept X Y position as an arbitary value, e.g. `mask-at-[50%_10px]` + // NOTE: Can accept X Y position as an arbitrary value, e.g. `mask-at-[50%_10px]` matchUtilities( { 'mask-at': (value) => ({ @@ -125,7 +125,7 @@ module.exports = plugin(({ theme, addUtilities, matchUtilities }) => { ) // - stops - // NOTE: Can accept custom opacity as an arbitary value, e.g. `mask-dir-[0.25]` + // NOTE: Can accept custom opacity as an arbitrary value, e.g. `mask-dir-[0.25]` matchUtilities( { 'mask-from': (value) => ({ diff --git a/playground/index.html b/playground/index.html index 77a0594..bb23b1a 100644 --- a/playground/index.html +++ b/playground/index.html @@ -90,7 +90,7 @@