Skip to content

Commit

Permalink
chore: typos (#1625)
Browse files Browse the repository at this point in the history
  • Loading branch information
sudongyuer committed Sep 22, 2022
1 parent 093e927 commit 8abebfd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -390,7 +390,7 @@ Let's have a tour of what happened when matching for `hover:m-2`:
- the result `m-2` will be used for the next round of variants matching
- if no other variant is matched, `m-2` will then goes to match the rules
- our first rule get matched and generates `.m-2 { margin: 0.5rem; }`
- finally, we apply our variants transformation to the generated CSS. In this case, we prepended `:hover` to the `selector` hook
- finally, we apply our variants' transformation to the generated CSS. In this case, we prepended `:hover` to the `selector` hook

As a result, the following CSS will be generated:

Expand All @@ -404,7 +404,7 @@ The variant system is very powerful and can't be covered fully in this guide, yo

### Extend Theme

UnoCSS also supports the theming system that you might be familiar with in Tailwind / Windi. At the user level, you can specify the `theme` property in your config and it will be deep merged to the default theme.
UnoCSS also supports the theming system that you might be familiar with in Tailwind / Windi. At the user level, you can specify the `theme` property in your config, and it will be deep merged to the default theme.

<!--eslint-skip-->

Expand Down Expand Up @@ -529,7 +529,7 @@ preprocess(matcher) {

Please note that UnoCSS works **at build time**, meaning only statically presented utilities will be generated and shipped to your app. Utilities that used dynamically or fetched from external resources at runtime might not be applied.

By default UnoCSS will extract the utilities usage from files in your build pipeline with extension `.jsx`, `.tsx`, `.vue`, `.md`, `.html`, `.svelte`, `.astro`. And then generate the CSS on demand.
By default, UnoCSS will extract the utilities usage from files in your build pipeline with extension `.jsx`, `.tsx`, `.vue`, `.md`, `.html`, `.svelte`, `.astro`. And then generate the CSS on demand.

`.js` and `.ts` files are **NOT included by default**. You can add `@unocss-include`, per-file basis, anywhere in the file that you want UnoCSS to scan, or add `*.js` or `*.ts` in the configuration to include all js/ts files as scan targets. Similarly, you can also add `@unocss-ignore` to bypass the scanning and transforming for a file.

Expand All @@ -547,7 +547,7 @@ Due the fact that UnoCSS works in build time using static extracting, at the com
safelist: 'p-1 p-2 p-3 p-4'.split(' ')
```

the corresponding CSS will be always generated:
the corresponding CSS will always be generated:

```css
.p-1 { padding: 0.25rem; }
Expand Down
6 changes: 3 additions & 3 deletions packages/core/src/types.ts
Expand Up @@ -321,7 +321,7 @@ export interface ConfigBase<Theme extends {} = {}> {

/**
* Rules to exclude the selectors for your design system (to narrow down the possibilities).
* Combining `warnExcluded` options it can also helps you identify wrong usages.
* Combining `warnExcluded` options it can also help you identify wrong usages.
*/
blocklist?: BlocklistRule[]

Expand Down Expand Up @@ -362,7 +362,7 @@ export interface ConfigBase<Theme extends {} = {}> {
preprocess?: Arrayable<Preprocessor>

/**
* Process the generate utils object
* Postprocess the generate utils object
*/
postprocess?: Arrayable<Postprocessor>

Expand Down Expand Up @@ -584,7 +584,7 @@ export interface PluginOptions {
configFile?: string | false

/**
* List of files that will also triggers config reloads
* List of files that will also trigger config reloads
*/
configDeps?: string[]

Expand Down

0 comments on commit 8abebfd

Please sign in to comment.