toshihidetagami / wicara

The component library powering the Kata.ai platform.

Home Page:https://wicara.now.sh/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wicara

wicara /wi·ca·ra/ (noun)
the expression of or the ability to express thoughts and feelings by articulate sounds.

Build Status codecov Build Status


Wicara 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. Wicara is the designation for Aksara React components.

Note: Migrating from v0.7 to v0.8? Please read the migration guide.


Contributing

Wicara is developed by the help of developers like you! Please read our Contributing Guidelines to get started on developing Wicara.

This project is bound by a Code of Conduct.

Usage

Quickstart

Check out kata-ai/wicara-starter.

Prerequisites

Wicara requires styled-components v4+. First, install the core Wicara package and styled-components.

# yarn
$ yarn add styled-components @wicara/core

# npm
$ npm install --save styled-components @wicara/core

Then, you will need to apply the style resets + theme provider. Wrap your app inside the WicaraProvider to use the resets and ThemeProvider component provided by Wicara.

import { WicaraProvider } from '@wicara/core';

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

Once you've applied the style resets, you can use Wicara components in your app. See the example below.

Example

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

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

import * as React from 'react';
import { Button } from '@wicara/core';

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

Read the Storybook for more examples.

Fonts

We use two fonts in the Aksara Design Language: Museo Sans, and Museo Sans Rounded.

# yarn
$ yarn add @wicara/fonts
# npm
$ npm i @wicara/fonts

Note that these fonts are not provided for free. You should check if you have a license to use these fonts before installing this package.

Usage

Body fonts

To use these fonts within your app, import as follows:

// Museo Sans
import '@wicara/fonts/museo-sans.css';
// Museo Sans Rounded
import '@wicara/fonts/museo-sans-rounded.css';

Icon fonts

We also provided some icon sets. To use them, import as follows:

import '@wicara/fonts/kata-icons.css';

License

This is a monorepo, which means different packages can have different licenses.

By default, the root level of this repo, as well as the demo site, are licensed under the Apache 2.0 license. While most components use the same license, please note that some packages (like our assets package) may use a different license. Any overriding licenses for each package will be mentioned in the LICENSE file located at the root of each package.

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

Maintainers

About

The component library powering the Kata.ai platform.

https://wicara.now.sh/

License:Apache License 2.0


Languages

Language:TypeScript 93.4%Language:CSS 3.7%Language:JavaScript 3.0%