Skip to content

Commit

Permalink
docs(readme.md): update readme getting started
Browse files Browse the repository at this point in the history
  • Loading branch information
jpntex committed May 26, 2022
1 parent 702e033 commit dc125b0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 97 deletions.
95 changes: 0 additions & 95 deletions README.md

This file was deleted.

1 change: 1 addition & 0 deletions README.md
17 changes: 15 additions & 2 deletions packages/ui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
- [📖 Documentation](https://indielayer.com/ui)

### Quickstart
```bash
npm init @indielayer/ui
```

## Getting Started

> [tailwindcss](https://tailwindcss.com) version >= 3.0 must be already present in your application
Expand All @@ -19,6 +24,7 @@
```bash
# using npm
npm install @indielayer/ui --save-dev

# using yarn
yarn add @indielayer/ui --dev
```
Expand All @@ -30,14 +36,20 @@ yarn add @indielayer/ui --dev
const indielayer = require('@indielayer/ui/tailwind.preset')

module.exports = {
darkMode: 'class',
// load indielayer ui presets
presets: [indielayer()],
// allow PurgeCSS to analyze components
content: [
'./index.html',
'./src/**/*.{vue,js,ts,jsx,tsx}',
'node_modules/@indielayer/ui/**/*',
'./src/**/*.vue',
],
};
theme: {
extend: {},
},
plugins: [],
}
```

### 3. Load the plugin
Expand All @@ -46,6 +58,7 @@ module.exports = {
```javascript
import { createApp } from 'vue'
import UI from '@indielayer/ui'
import '@indielayer/ui/styles'

const app = createApp(App)

Expand Down

0 comments on commit dc125b0

Please sign in to comment.