Coder Social home page Coder Social logo

fstfwd / atlaskit-mk-2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ttaranov/atlaskit-mk-2

0.0 1.0 0.0 40.64 MB

mirror of official atlaskit repo from bitbucket

License: Other

JavaScript 34.41% Shell 0.03% Dockerfile 0.01% HTML 0.06% TypeScript 65.04% CSS 0.46%

atlaskit-mk-2's Introduction

Atlaskit

node v8.4.0+ bolt v0.20.6+ contributions welcome

Atlaskit is the technical implementation of the Atlassian Design Guidelines. It is a collection of reusable components that can be downloaded independently into your projects. Each component is also independently versioned and published to npm.

The full list of components can be found in the Atlaskit Registry.

This project is bound by a Code of Conduct.

Usage

Pre-requisites

It's strongly advised to use the Atlaskit CSS reset in your whole project, or some Atlaskit components may diverge in appearance:

import '@atlaskit/css-reset';

In general, you should avoid directly styling base elements (ex. p, h1, h2) and uses classes instead.

Example for React projects

Atlaskit components are built for React. Here's an example of using the Avatar component:

  1. First, you specify a component into your project as a dependency using npm: npm install @atlaskit/avatar
  2. Then you can use it in your React projects like this:
import React from 'react';
import Avatar from '@atlaskit/avatar';

export default (
  <Avatar
    src="https://design.atlassian.com/images/avatars/project-128.png"
    presence="online"
    size="large"
  />
);

Check out the Atlaskit Registry to learn more.

Example for non-React projects

There is a subset of components available as styles called the Reduced UI pack. To use:

  1. You include these into your the HTML projects.
<link rel="stylesheet" href="//unpkg.com/@atlaskit/css-reset@latest" />
<link rel="stylesheet" href="//unpkg.com/@atlaskit/reduced-ui-pack@latest" />
  1. Then you can style HTML with

<button class="ak-button ak-button__appearance-primary">Submit</button>

Check out the Reduced UI pack for more examples and details.

Upgrades

When upgrading an Atlaskit component, all changelogs can be found in the Atlaskit Registry.

Installation

Before you start

  • node version should be 6 or above (to check node -v) or use nvm
  • npm version should be 3 or above (to check npm --version)
  • yarn should be installed globally (see yarn website for installation instructions)

Clone the repo and install

git clone [email protected]:atlassian/atlaskit-mk-2.git
yarn

You're now ready to start developing in Atlaskit!

Each component/util lives in it's own package under the packages directory. We are using bolt to manage our mono-repo, so you are going to need bolt installed globally as well.

yarn global add bolt

Next, to install packages, we use bolt, just calling it:

bolt

For contributing back, check out our contribution guide

Documentation

A comprehensive list of components and detailed usage of each can be found in the Atlaskit Registry, which contains both guides on contributing to atlaskit, as well as documentation for each package.

You can also find how each component is meant to be used from a design perspective on the Atlassian Design Guidelines website.

Reporting issues

We believe in open contributions and the power of a strong development community. Please read our Contributing guidelines on how to contribute back and report issues to Atlaskit.

Contributors

Pull requests, issues and comments are welcomed. For pull requests:

  • Add tests for new features and bug fixes
  • Follow the existing style
  • Separate unrelated changes into multiple pull requests
  • Read Contributing guidelines for more details

See the existing issues for things to start contributing.

For bigger changes, make sure you start a discussion first by creating an issue and explaining the intended change.

Atlassian requires contributors to sign a Contributor License Agreement, known as a CLA. This serves as a record stating that the contributor is entitled to contribute the code/documentation/translation to the project and is willing to have it used in distributions and derivative works (or is willing to transfer ownership).

Prior to accepting your contributions we ask that you please follow the appropriate link below to digitally sign the CLA. The Corporate CLA is for those who are contributing as a member of an organization and the individual CLA is for those contributing as an individual.

License

This is a mono-repo, which means that different parts of this repository can have different licenses.

The base level of the repository is licensed under Apache 2.0. There are separate license files (LICENSE) for each component under /packages that specify the license restrictions for each component. While most components are licensed under the Apache 2.0 license, please note packages containing styles, assets & icons are most likely licensed under the Atlassian Design Guidelines license.

If you fork this repository you can continue to use those Atlassian Design Guidelines licensed components only under the given license restrictions. If you want to redistribute this repository, you will need to replace these Atlassian Design Guidelines licensed components with your own implementation.

Copyright (c) 2018 Atlassian and others.

atlaskit-mk-2's People

Contributors

1999 avatar ahixon-atlassian avatar ajaymathur avatar alexreardon avatar atl-jluong avatar atlastong avatar balnagy83 avatar bqx avatar dklatl avatar emsoares avatar eshvedai avatar hzarcogarcia avatar isriharsha avatar jamiebuilds avatar jaredcrowe avatar jossmac avatar jpuri avatar lukebatchelor avatar marcodejongh avatar mblaszczyk-atlassian avatar noviny avatar pteenatlassian avatar rajabellebon avatar soswow avatar ssysoev-atl avatar superchu avatar torifat avatar treshugart avatar vsutrave01 avatar zzarcon avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.