wicara /wi·ca·ra/ (noun)
the expression of or the ability to express thoughts and feelings by articulate sounds.
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.
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.
Check out kata-ai/wicara-starter.
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.
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.
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.
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';
We also provided some icon sets. To use them, import as follows:
import '@wicara/fonts/kata-icons.css';
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.
- Resi Respati (@resir014) – Kata.ai
- Dio Syahrizal (@DioSyahrizal) – Kata.ai