# @isolonenko/nova-ui

> Zero dependency Box that makes styling easier

Latest version **1.0.11** (published 2023-11-09) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @isolonenko/nova-ui
pnpm add @isolonenko/nova-ui
yarn add @isolonenko/nova-ui
bun add @isolonenko/nova-ui
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.11 |
| Published | 2023-11-09 |
| First published | 2023-03-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 14.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | isolonenko |
| Maintainers | isolonenko |
| Keywords | css-in-js, ui-library, react, css, component, jss, styling, styled-components |

## Links

- npm: https://www.npmjs.com/package/@isolonenko/nova-ui
- Repository: git@github.com:isolonenko/nova-ui
- Homepage: https://github.com/isolonenko/nova-ui#isolonenkonova-ui
- Issues: https://github.com/isolonenko/nova-ui/issues
- npm.io page: https://npm.io/package/@isolonenko/nova-ui

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 1.0.11 (latest) — 2023-11-09
- 1.0.10 — 2023-11-09
- 1.0.9 — 2023-11-08
- 1.0.8 — 2023-11-08
- 1.0.7 — 2023-03-29
- 1.0.6 — 2023-03-29
- 1.0.5 — 2023-03-27
- 1.0.4 — 2023-03-27
- 1.0.3 — 2023-03-27
- 1.0.2 — 2023-03-27
- 1.0.1 — 2023-03-27
- 1.0.0 — 2023-03-27

## README

# @isolonenko/nova-ui

## Overview

`@isolonenko/nova-ui` is a lightweight, zero dependecy package written in `TypeScript` that simplifies styling by providing a <Box/> component. This component behaves like a standard <div/>, but it allows you to define CSS styles using a `css` property. The styles you provide are automatically transformed into CSS rules and applied as a unique className, making it easy to manage and organize your styles.

## Features

- **<Box/> Component:** A flexible and customizable container that can be styled using the `css` property.

## Installation

You can quickly get started with `@isolonenko/nova-ui` by installing it via `yarn` or `npm`.

### Yarn

```bash
yarn add -D @isolonenko/nova-ui
```
### NPM

```bash
npm install --save-dev @isolonenko/nova-ui
```

## Getting started

Import the Box component from nova-ui and start using it in your project.

```jsx
import { Box } from '@isolonenko/nova-ui'

const MyComponent = () => {
  return (
    <Box
      css={{
        backgroundColor: 'red',
        // Add more CSS properties here
      }}
    >
      Hello, world!
    </Box>
  )
}

```

## Usage

The css property of the <Box/> component accepts an object where keys are CSS properties, and values are the corresponding property values. You can define any valid CSS styles to customize the appearance of the component. The library will generate a unique `className` for the provided styles and apply them to the <Box/> component.

## Example

```jsx
import { Box } from '@isolonenko/nova-ui'

const StyledBox = () => {
  return (
    <Box
      css={{
        backgroundColor: 'lightblue',
        padding: '20px',
        borderRadius: '8px',
        boxShadow: '0 0 10px rgba(0, 0, 0, 0.2)',
      }}
    >
      This is a beautifully styled box!
    </Box>
  )
}


```

Hope you find `@isolonenko/nova-ui` useful for simplifying styling in your projects. If you have any questions, issues, or feature requests, please feel free to open an issue here https://github.com/isolonenko/nova-ui/issues.

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