Skip to content

Commit

Permalink
chore: typo (#2075)
Browse files Browse the repository at this point in the history
  • Loading branch information
zyyv committed Jan 12, 2023
1 parent a957822 commit 65dc7a4
Show file tree
Hide file tree
Showing 17 changed files with 54 additions and 54 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,12 @@ To set presets to your project:

```ts
// vite.config.ts
import Unocss from 'unocss/vite'
import UnoCSS from 'unocss/vite'
import { presetAttributify, presetUno } from 'unocss'

export default {
plugins: [
Unocss({
UnoCSS({
presets: [
presetAttributify({ /* preset options */}),
presetUno(),
Expand All @@ -122,11 +122,11 @@ To disable the default preset, you can set `presets` to an empty array:

```ts
// vite.config.ts
import Unocss from 'unocss/vite'
import UnoCSS from 'unocss/vite'

export default {
plugins: [
Unocss({
UnoCSS({
presets: [], // disable default preset
rules: [
// your custom rules
Expand Down Expand Up @@ -200,9 +200,9 @@ When you really need some advanced rules that can't be covered by the combinatio
By returning a `string` from the dynamic rule's body function, it will be directly passed to the generated CSS. That also means you would need to take care of things like CSS escaping, variants applying, CSS constructing, and so on.

```ts
import Unocss, { toEscapedSelector as e } from 'unocss'
import UnoCSS, { toEscapedSelector as e } from 'unocss'

Unocss({
UnoCSS({
rules: [
[/^custom-(.+)$/, ([, name], { rawSelector, currentSelector, variantHandlers, theme }) => {
// discard mismatched rules
Expand Down
4 changes: 2 additions & 2 deletions bench/fixtures/unocss/vite.config.mjs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { defineConfig } from 'vite'
import Unocss from 'unocss/vite'
import UnoCSS from 'unocss/vite'

export default defineConfig({
plugins: [
Unocss({
UnoCSS({
mergeSelectors: false,
include: [/\.js$/],
}),
Expand Down
4 changes: 2 additions & 2 deletions examples/vite-pug/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { defineConfig } from 'vite'
import Vue from '@vitejs/plugin-vue'
import Inspect from 'vite-plugin-inspect'
import Unocss from '@unocss/vite'
import UnoCSS from '@unocss/vite'
import { extractorSplit } from '@unocss/core'
import extractorPug from '@unocss/extractor-pug'
import presetUno from '@unocss/preset-uno'

export default defineConfig({
plugins: [
Vue(),
Unocss({
UnoCSS({
presets: [
presetUno(),
],
Expand Down
8 changes: 4 additions & 4 deletions packages/astro/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ npm i -D unocss

```ts
// astro.config.ts
import Unocss from 'unocss/astro'
import UnoCSS from 'unocss/astro'

export default {
integrations: [
Unocss({ /* options */ }),
UnoCSS({ /* options */ }),
],
}
```
Expand All @@ -30,11 +30,11 @@ npm i -D @unocss/astro

```ts
// astro.config.mjs
import Unocss from '@unocss/astro'
import UnoCSS from '@unocss/astro'

export default {
integrations: [
Unocss({
UnoCSS({
presets: [
/* no presets by default */
],
Expand Down
2 changes: 1 addition & 1 deletion packages/extractor-pug/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ npm i -D @unocss/extractor-pug
import extractorPug from '@unocss/extractor-pug'
import { extractorSplit } from '@unocss/core'

Unocss({
UnoCSS({
extractors: [
extractorPug(),
extractorSplit,
Expand Down
4 changes: 2 additions & 2 deletions packages/inspector/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Vue from '@vitejs/plugin-vue'
import Components from 'unplugin-vue-components/vite'
import AutoImport from 'unplugin-auto-import/vite'
import Pages from 'vite-plugin-pages'
import Unocss from 'unocss/vite'
import UnoCSS from 'unocss/vite'
import { alias } from '../../alias'

export default defineConfig(({ command }) => ({
Expand All @@ -12,7 +12,7 @@ export default defineConfig(({ command }) => ({
},
base: command === 'build' ? '/__unocss/' : '/',
plugins: [
Unocss('unocss.config.ts'),
UnoCSS('unocss.config.ts'),
Vue(),
Components({
dirs: 'client/components',
Expand Down
2 changes: 1 addition & 1 deletion packages/preset-attributify/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ npm i -D @unocss/preset-attributify
```ts
import presetAttributify from '@unocss/preset-attributify'

Unocss({
UnoCSS({
presets: [
presetAttributify({ /* options */ }),
// ...other presets
Expand Down
2 changes: 1 addition & 1 deletion packages/preset-icons/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ We use [Iconify](https://iconify.design) as our data source of icons. You need t
```ts
import presetIcons from '@unocss/preset-icons'

Unocss({
UnoCSS({
presets: [
presetIcons({ /* options */ }),
// ...other presets
Expand Down
2 changes: 1 addition & 1 deletion packages/preset-mini/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ npm i -D @unocss/preset-mini
```ts
import presetMini from '@unocss/preset-mini'

Unocss({
UnoCSS({
presets: [
presetMini(),
],
Expand Down
2 changes: 1 addition & 1 deletion packages/preset-rem-to-px/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ npm i -D @unocss/preset-rem-to-px
import presetUno from '@unocss/preset-uno'
import presetRemToPx from '@unocss/preset-rem-to-px'

Unocss({
UnoCSS({
presets: [
presetUno(),
presetRemToPx()
Expand Down
2 changes: 1 addition & 1 deletion packages/preset-tagify/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ npm i -D @unocss/preset-tagify
```ts
import presetTagify from '@unocss/preset-tagify'

Unocss({
UnoCSS({
presets: [
presetTagify({ /* options */ }),
// ...other presets
Expand Down
2 changes: 1 addition & 1 deletion packages/preset-uno/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ npm i -D @unocss/preset-uno
```ts
import presetUno from '@unocss/preset-uno'

Unocss({
UnoCSS({
presets: [
presetUno(),
],
Expand Down
4 changes: 2 additions & 2 deletions packages/preset-web-fonts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ npm i -D @unocss/preset-web-fonts
import presetWebFonts from '@unocss/preset-web-fonts'
import presetUno from '@unocss/preset-uno'

Unocss({
UnoCSS({
presets: [
presetUno(),
presetWebFonts({
Expand Down Expand Up @@ -85,7 +85,7 @@ import presetUno from '@unocss/preset-uno'
import axios from 'axios'
import ProxyAgent from 'proxy-agent'

Unocss({
UnoCSS({
presets: [
presetUno(),
presetWebFonts({
Expand Down
2 changes: 1 addition & 1 deletion packages/preset-wind/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ npm i -D @unocss/preset-wind
```ts
import presetWind from '@unocss/preset-wind'

Unocss({
UnoCSS({
presets: [
presetWind(),
],
Expand Down
2 changes: 1 addition & 1 deletion packages/scope/index.cjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = () => {
throw new Error('getUnocssScope() is a compile macro but get called directly, have you include this file to Unocss\'s target')
throw new Error('getUnocssScope() is a compile macro but get called directly, have you include this file to UnoCSS\'s target')
}
2 changes: 1 addition & 1 deletion packages/scope/index.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export default () => {
throw new Error('getUnocssScope() is a compile macro but get called directly, have you include this file to Unocss\'s target')
throw new Error('getUnocssScope() is a compile macro but get called directly, have you include this file to UnoCSS\'s target')
}

0 comments on commit 65dc7a4

Please sign in to comment.