# reacthalfmoon

> ## What is ReactHalfmoon? React components for [Halfmoon](https://www.gethalfmoon.com/), a front-end framework with a built-in dark mode.

Latest version **0.5.0** (published 2020-11-28) · 0 weekly downloads

## Install

```sh
npm install reacthalfmoon
pnpm add reacthalfmoon
yarn add reacthalfmoon
bun add reacthalfmoon
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.5.0 |
| Published | 2020-11-28 |
| First published | 2020-09-18 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 53.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | react-halfmoon |

## Links

- npm: https://www.npmjs.com/package/reacthalfmoon
- Repository: https://github.com/reacthalfmoon/reacthalfmoon
- Homepage: https://github.com/reacthalfmoon/reacthalfmoon#readme
- Issues: https://github.com/reacthalfmoon/reacthalfmoon/issues
- npm.io page: https://npm.io/package/reacthalfmoon

## Recent versions

- 0.5.0 (latest) — 2020-11-28
- 0.4.0 — 2020-11-28
- 0.1.3 — 2020-09-20
- 0.1.2 — 2020-09-20
- 0.1.1 — 2020-09-19
- 0.1.0 — 2020-09-18

## README

# Getting Started

## What is ReactHalfmoon?
React components for [Halfmoon](https://www.gethalfmoon.com/), a front-end framework with a built-in dark mode.

[Documentation](https://reacthalfmoon.github.io)

## Installation

### 1. Install the package

```
npm i reacthalfmoon
```

If you see lot of vulnerabilities just run 

```
npm audit fix
```

### 2. Add the css file

#### Using `link`
In `public/index.html` link the css file

```html
<link href="https://cdn.jsdelivr.net/npm/halfmoon@1.1.0/css/halfmoon.min.css" rel="stylesheet" />
```

#### Or using `import`
In `App.css` import the css file

```css
@import url("https://cdn.jsdelivr.net/npm/halfmoon@1.1.0/css/halfmoon.min.css");
```

## Usage

### **Button Component**

```js
import React from 'react';
import { Button } from 'reacthalfmoon';

function App() {
  return (
      <Button color="primary">Primary</Button>
  )
}

export default App
```

### **Darkmode**

```js
import React, {useState} from 'react';
import { DarkmodeSwitch } from 'reacthalfmoon';

function App() {
  const [darkmode, setDarkmode] = useState(false);
  return (
      <DarkmodeSwitch checked={darkmode} toggle={()=>{setDarkmode(!darkmode)}} />
  )
}

export default App
```

---
_Source: https://npm.io/package/reacthalfmoon · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
