Unbabel / ui

Samora - The Unbabel UI component library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Samora Design System

Codacy Project Badge Codacy Coverage Badge

This is the Unbabel UI (Vue.js) component library AKA Samora.

Contribute in the repository here

Install

Install it using npm

npm i --save @unbabel/ui

Usage

Import the components into your app using:

import { Button } from '@unbabel/ui';

And set it as a component:

components: {
	Button,
},

So you can use it in your templates:

<Button>Click me!</Button>

Or if you only need the colours for your styles, you can import the .scss file using:

@import '~@unbabel/ui/src/colors';

If you just need the styles for a component, you can also import just those:

@import '~@unbabel/ui/src/components/styles/Button.scss';

To use any color variable with custom properties you need to use interpolation

--color: #{$un-purple};

Components

  • Button
  • Modal
  • TopBar
  • Sidebar
  • Star Group
  • Loading Screen (Overlay)
  • Toggle Group
  • Timer

Development

To develop or add new components, install the dependencies and launch the Storybook server to preview your components:

$ npm install
$ npm run storybook

Generating changelog entries

Adding an entry per feature/MR

$ bin/changelog_entry "Changelog Entry Title" -m 1022

Releasing a version

$ bin/changelog -t v1.0.42

How to release a new version

  1. Once all the desired changes are merged into master, decide if the next version is Major, Minor or Patch, and generate the changelog entry and commit the changes
    • Example: bin/changelog -t v1.0.42
  2. Bump package.json and create a new tag by running npm version (major|minor|patch)
    • Example: npm version minor
  3. Push all changes
  4. Push the new tag
    • Example: git push origin tag v1.0.42
  5. The CI will pick up the new tag and submit it to NPM

About

Samora - The Unbabel UI component library


Languages

Language:JavaScript 36.8%Language:Vue 35.0%Language:CSS 19.6%Language:Ruby 8.5%Language:HTML 0.1%