Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/darenmalfait/darenui


https://github.com/darenmalfait/darenui

Last synced: about 15 hours ago
JSON representation

Awesome Lists containing this project

README

        


DarenUI

Daren Component library


---

- [Usage](#usage)
- [Installation](#installation)
- [Configuration](#configuration)
- [Quick start](#quick-start)

## Usage

### Installation

To install the component-library run the following within your project directory.

```sh
npm i @daren/ui-core @daren/ui-components postcss tailwindcss @tailwindcss/typography @heroicons/react@2 tailwindcss-animate
```

### Configuration

The theme of this library depends on the @tailwindcss/typography plugin. To use it, follow the steps on the plugin source page. https://github.com/tailwindlabs/tailwindcss-typography
For animations, you need to install the tailwindcss-animate plugin.

```js
// tailwind.config.js
module.exports = {
mode: "jit",
content: [
// ... paths that use tailwind
"./node_modules/@daren/**/*.{js,ts,jsx,tsx}", // path to daren
],
theme: {
extend: {},
},
plugins: [
require('tailwindcss-animate'),
require('@tailwindcss/typography'),
require("@daren/ui-core"),
],
};
```

```js
// postcss.config.js
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
};
```

Then you need a global css file which you import at the root of the project

```css
@tailwind base;
@tailwind components;
@tailwind utilities;
```

### Quick start

```js
import * as React from "react";
import { ThemeProvider, H1 } from "@daren/ui-components";
import "@daren/theme/dist/darenui.css"

function App() {
return (

Hello Daren



);
}
```