Skip to content

Commit

Permalink
Change indentation to spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
JoBurgard committed Dec 17, 2023
1 parent ade4dc4 commit d0af1df
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 17 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ node_modules
.env
.env.*
!.env.example
README.md

# Ignore files for PNPM, NPM and YARN
pnpm-lock.yaml
Expand Down
34 changes: 17 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@ It will be built on top of Melt-UI, the great headless-ui library for Svelte.

```ts
export default defineConfig({
presets: [presetWind(), presetIcons()],
transformers: [transformerDirectives(), transformerVariantGroup()],
content: {
pipeline: {
include: [
// ...
// add this line
'node_modules/mayu-ui/dist/**/*.{svelte,js}',
],
},
// if you use unocss classes in your app.html
filesystem: ['src/app.html'],
},
presets: [presetWind(), presetIcons()],
transformers: [transformerDirectives(), transformerVariantGroup()],
content: {
pipeline: {
include: [
// ...
// add this line
'node_modules/mayu-ui/dist/**/*.{svelte,js}',
],
},
// if you use unocss classes in your app.html
filesystem: ['src/app.html'],
},
});
```

Expand All @@ -43,17 +43,17 @@ Fill it with your theme from the Themebuilder.
```svelte
<!-- src/routes/+layout.svelte -->
<script>
import '@unocss/reset/tailwind.css';
import '../theme.css';
import 'virtual:uno.css';
import '@unocss/reset/tailwind.css';
import '../theme.css';
import 'virtual:uno.css';
</script>
```

### 4. Use the components

```svelte
<script>
import { buttonVariants, Input } from 'mayu-ui';
import { buttonVariants, Input } from 'mayu-ui';
</script>
<Input type="text" />
Expand Down

0 comments on commit d0af1df

Please sign in to comment.