# @easyfeedback/theme

> The default theme of the RCL components.

Latest version **1.2.0** (published 2021-07-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install @easyfeedback/theme
pnpm add @easyfeedback/theme
yarn add @easyfeedback/theme
bun add @easyfeedback/theme
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2021-07-05 |
| First published | 2021-06-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 339.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Alexander Böhm |
| Maintainers | mheob |
| Keywords | easyfeedback |

## Links

- npm: https://www.npmjs.com/package/@easyfeedback/theme
- Repository: https://github.com/easyfeedback/RCL
- Homepage: https://github.com/easyfeedback/RCL/tree/main/packages/theme#readme
- Issues: https://github.com/easyfeedback/RCL/issues
- npm.io page: https://npm.io/package/@easyfeedback/theme

## Dependencies (1)

- [@chakra-ui/theme-tools](https://npm.io/package/@chakra-ui/theme-tools.md) ^1.1.7

## Recent versions

- 1.2.0 (latest) — 2021-07-05
- 1.1.6 — 2021-06-22
- 1.1.5 — 2021-06-21
- 1.1.4 — 2021-06-21
- 1.1.3 — 2021-06-18
- 1.1.2 — 2021-06-18
- 1.1.1 — 2021-06-17
- 1.1.0 — 2021-06-16
- 1.0.1 — 2021-06-04
- 1.0.0 — 2021-06-04

## README

# Theme

The default theme package for the easyfeedback components.

In the Theme object, you define your application's color palette, font size, font stacks,
breakpoints, border radius values, and more.

- [Installation](#installation)
- [General usage](#general-usage)
- [Usage with Next.js](#usage-with-nextjs)

## Installation

```sh
yarn add @fontsource/lato @easyfeedback/theme
```

## General usage

> You don't need to worry about the usage in this library.\
> All the necessary settings have been set in the storyboard.

To use this default theme, you need to extend the Chakra theme in your project.

For more detailed information see the
[Chakra Customize Theme doc](https://chakra-ui.com/docs/theming/customize-theme).

```tsx
// 1. Import `Lato` font and `theme`
import '@fontsource/lato'
import { theme } from '@easyfeedback/theme'

// 2. Pass the new `theme` to `ChakraProvider`
function MyApp() {
  return (
    <ChakraProvider theme={theme}>
      <App />
    </ChakraProvider>
  )
}

// 3. Now you can use these colors in your components
const Usage = () => {
  return <Box fontSize="2xs">Welcome</Box>
}
```

## Usage with Next.js

Chakra exposes the `ChakraProvider` component, which wraps your website with a context containing
the Chakra theme, color mode functionality, CSS reset, global styles, and more.

Use it in `pages/_app.js`:

```tsx
import '@fontsource/lato'
import { extendTheme } from '@chakra-ui/react'
import { theme } from '@easyfeedback/theme'

function MyApp({ Component, pageProps }) {
  return (
    <ChakraProvider theme={theme}>
      <Component {...pageProps} />
    </ChakraProvider>
  )
}

export default MyApp
```

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