# kata-kit

> Bundled Kata-kit

Latest version **0.6.11** (published 2018-12-07) · Apache-2.0 license · 0 weekly downloads

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

## Install

```sh
npm install kata-kit
pnpm add kata-kit
yarn add kata-kit
bun add kata-kit
```

## Health

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

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.6.11 |
| Published | 2018-12-07 |
| First published | 2018-05-17 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 25 |
| Unpacked size | 232.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 192 |
| Author | Kata.ai |
| Maintainers | ybdev |

## Links

- npm: https://www.npmjs.com/package/kata-kit
- Repository: https://github.com/kata-ai/wicara
- npm.io page: https://npm.io/package/kata-kit

## Dependencies (25)

- [lodash-es](https://npm.io/package/lodash-es.md) ^4.17.10
- [classnames](https://npm.io/package/classnames.md) ^2.2.6
- [dom-helpers](https://npm.io/package/dom-helpers.md) ^3.3.1
- [@kata-kit/card](https://npm.io/package/@kata-kit/card.md) ^0.6.2
- [@kata-kit/form](https://npm.io/package/@kata-kit/form.md) ^0.6.3
- [react-overlays](https://npm.io/package/react-overlays.md) ^0.8.3
- [@kata-kit/badge](https://npm.io/package/@kata-kit/badge.md) ^0.6.2
- [@kata-kit/fonts](https://npm.io/package/@kata-kit/fonts.md) ^0.5.2
- [@kata-kit/modal](https://npm.io/package/@kata-kit/modal.md) ^0.6.4
- [@kata-kit/reset](https://npm.io/package/@kata-kit/reset.md) ^0.6.2
- [@kata-kit/theme](https://npm.io/package/@kata-kit/theme.md) ^0.6.2
- [@kata-kit/assets](https://npm.io/package/@kata-kit/assets.md) ^0.5.3
- [@kata-kit/banner](https://npm.io/package/@kata-kit/banner.md) ^0.6.2
- [@kata-kit/button](https://npm.io/package/@kata-kit/button.md) ^0.6.3
- [@kata-kit/common](https://npm.io/package/@kata-kit/common.md) ^0.6.2
- [@kata-kit/drawer](https://npm.io/package/@kata-kit/drawer.md) ^0.6.4
- [@kata-kit/layout](https://npm.io/package/@kata-kit/layout.md) ^0.6.2
- [@kata-kit/loading](https://npm.io/package/@kata-kit/loading.md) ^0.6.2
- [@kata-kit/tooltip](https://npm.io/package/@kata-kit/tooltip.md) ^0.6.2
- [styled-components](https://npm.io/package/styled-components.md) ^4.0.0-beta.9
- [@kata-kit/dropdown](https://npm.io/package/@kata-kit/dropdown.md) ^0.6.3
- [@kata-kit/dashboard](https://npm.io/package/@kata-kit/dashboard.md) ^0.6.2
- [@kata-kit/pagination](https://npm.io/package/@kata-kit/pagination.md) ^0.6.3
- [@kata-kit/react-select](https://npm.io/package/@kata-kit/react-select.md) ^0.6.0
- [@kata-kit/split-button](https://npm.io/package/@kata-kit/split-button.md) ^0.6.3

## Recent versions

- 0.6.11 (latest) — 2018-12-07
- 0.7.0-beta.18 (next) — 2019-02-08
- 0.7.0-beta.17 — 2019-02-01
- 0.7.0-beta.16 — 2019-02-01
- 0.7.0-beta.15 — 2019-02-01
- 0.7.0-beta.14 — 2019-01-31
- 0.7.0-beta.13 — 2019-01-30
- 0.7.0-beta.12 — 2019-01-30
- 0.7.0-beta.11 — 2019-01-29
- 0.7.0-beta.10 — 2019-01-29
- 0.7.0-beta.9 — 2019-01-14
- 0.7.0-beta.8 — 2018-12-18
- 0.7.0-beta.7 — 2018-12-18
- 0.7.0-beta.6 — 2018-12-18
- 0.7.0-beta.5 — 2018-12-18
- … 28 more at https://npm.io/package/kata-kit/versions

## README

<p align="center">
  <img alt="Aksara UI" src="assets/aksara-banner.svg" />
</p>

<p align="center">
  <strong>aksara /ak·sa·ra/ noun</strong><br>
  is a system of visual symbol, usually stamped on paper or other media (stone, wood, leaf, and fabric), to express thoughts and ideas.
</p>

<p align="center">
  <a href="https://github.com/kata-ai/aksara-ui/actions?query=workflow%3ACI"><img alt="Build Status" src="https://github.com/kata-ai/aksara-ui/workflows/CI/badge.svg" /></a>
  <a href="https://codecov.io/gh/kata-ai/aksara-ui"><img alt="codecov" src="https://codecov.io/gh/kata-ai/aksara-ui/branch/next/graph/badge.svg" /></a>
  <a href="https://sonarcloud.io/dashboard?id=kata-ai_aksara-ui"><img alt="Quality Gate Status" src="https://sonarcloud.io/api/project_badges/measure?project=kata-ai_aksara-ui&metric=alert_status" /></a>
  <a href="https://lernajs.io/"><img alt="Build Status" src="https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg" /></a>
</p>

---

**Aksara** is Kata.ai's design system. It contains foundations, voice and tone guidelines, component standards, and other guidelines that systematically improve quality, timeliness, and consistency to our product.

**Aksara UI** is an implementation of Aksara using the React framework. It is the true implementation of Aksara in raw code form, designed to communicate with users and bring delightful experiences. Aksara UI is the designation for Aksara React components.

---

## Contributing

Aksara UI is developed by the help of developers like you! Please read our [Contributing Guidelines](CONTRIBUTING.md) to get started on developing Aksara UI.

This project is bound by a [Code of Conduct](CODE_OF_CONDUCT.md).

## Usage

### Prerequisites

Aksara UI requires `styled-components` v4+. First, install the core Aksara UI package, Aksara UI React icon library, and `styled-components`.

```bash
# yarn
$ yarn add styled-components @aksara-ui/react @aksara-ui/icons

# npm
$ npm install --save styled-components @aksara-ui/react @aksara-ui/icons
```

Then, you will need to apply the theme provider as well as the default global styles. Wrap your app inside the `AksaraProvider` to do so.

```jsx
import { AksaraProvider } from '@aksara-ui/react';

export default function MyApp({ children }) {
  return <AksaraProvider>{children}</AksaraProvider>;
}
```

If you would like to use additional styles for `AksaraProvider`, add the `disableInjection` prop to `AksaraProvider` and add your custom styles as follows.

```jsx
import { css } from 'styled-components';
import { AksaraProvider, injectGlobalStyles } from '@aksara-ui/react';

const styles = css`
  [data-reach-tooltip] {
    z-index: 1;
    pointer-events: none;
    position: absolute;
    padding: 0.25em 0.5em;
    box-shadow: 2px 2px 10px hsla(0, 0%, 0%, 0.1);
    white-space: nowrap;
    font-size: 85%;
    background: #f0f0f0;
    color: #444;
    border: solid 1px #ccc;
  }
`;

const { GlobalStyles } = injectGlobalStyles(styles);

export default function MyApp({ children }) {
  return (
    <AksaraProvider disableInjection>
      <GlobalStyles />
      {children}
    </AksaraProvider>
  );
}
```

Once you've applied the provider, you can use Aksara UI components in your app. See the example below.

### Example

Aksara UI is built in React, with styling done in styled-components. To use these components, import them as follows:

```jsx
// Example for `<Button />` component.

import * as React from 'react';
import { Button } from '@aksara-ui/react';

export default function Component() {
  return <Button>Push Me</Button>;
}
```

Read the [Storybook](https://aksara-ui.now.sh/) for more examples.

## Fonts

We use multiple fonts in Aksara UI:

- The system font stack, for all UI elements within the platform.
- The [**Inter**](https://rsms.me/inter/) font as our primary brand typeface.

### Using brand fonts

First, you should install the brand fonts into your project.

```bash
# yarn
$ yarn add typeface-inter

# npm
$ npm install --save typeface-inter
```

Then, in any typography component (e.g. `Text`, `Heading`), you can use the `brand` token in `fontFamily`.

```jsx
import * as React from 'react';
import { Heading } from '@aksara-ui/react';

export default function Component() {
  return (
    <Heading scale={700} fontFamily="brand">
      Heading Text
    </Heading>
  );
}
```

## License

All packages in this repoare released under the [Apache 2.0 license](LICENSE). Please note that some packages (like our fonts package) may contain third-party materials with different licences. Any third-party acknowledgements are outlined on the "Credits" section on each package's README.

Copyright (c) 2018 Kata.ai and/or contributors. All rights reserved.

## Maintainers

- Resi Respati ([@resir014](https://twitter.com/resir014)) – [Kata.ai](https://kata.ai)

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