# @anomalous/newton

> Design system and component library from Anomalous

Latest version **3.10.3** (published 2020-04-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install @anomalous/newton
pnpm add @anomalous/newton
yarn add @anomalous/newton
bun add @anomalous/newton
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.10.3 |
| Published | 2020-04-22 |
| First published | 2019-03-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 242 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Matt Davies |
| Maintainers | mattpauldavies |
| Keywords | design, system, react, component, library |

## Links

- npm: https://www.npmjs.com/package/@anomalous/newton
- Repository: https://github.com/AnomalousTechnologies/newton
- Homepage: https://github.com/AnomalousTechnologies/newton#readme
- Issues: https://github.com/AnomalousTechnologies/newton/issues
- npm.io page: https://npm.io/package/@anomalous/newton

## Dependencies (2)

- [date-fns](https://npm.io/package/date-fns.md) ^1.30.1
- [react-uid](https://npm.io/package/react-uid.md) ^2.2.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 3.10.3 (latest) — 2020-04-22
- 3.10.2 — 2020-03-27
- 3.10.1 — 2020-03-27
- 3.10.0 — 2020-03-27
- 3.9.2 — 2020-03-27
- 3.9.1 — 2019-10-21
- 3.9.0 — 2019-10-09
- 3.8.8 — 2019-09-30
- 3.8.5 — 2019-08-09
- 3.8.4 — 2019-08-09
- 3.8.3 — 2019-08-09
- 3.8.2 — 2019-08-09
- 3.8.1 — 2019-08-06
- 3.8.0 — 2019-08-06
- 3.7.2 — 2019-08-06
- … 36 more at https://npm.io/package/@anomalous/newton/versions

## README

[![Travis Build Status](https://img.shields.io/travis/AnomalousTechnologies/newton/master.svg)](https://travis-ci.org/AnomalousTechnologies/newton)
![Coveralls Coverage Check](https://img.shields.io/coveralls/github/AnomalousTechnologies/newton/master.svg)
![Depfu Dependency Check](https://img.shields.io/depfu/AnomalousTechnologies/newton.svg)
![NPM Package Size](https://img.shields.io/bundlephobia/min/@anomalous/newton.svg)

# newton
Design system and component library from Anomalous

## Introduction

Newton is a design system and component library created by Anomalous. This library provides the UI backbone of our **Inspect** and **Mission Control** applications. Newton has been written for [React](https://reactjs.org/) and provides a range of components to speed up frontend development.

We use [Styled Components](https://www.styled-components.com) to style our components and allow you to extend those styles for your own use.

We follow a component structure that is similar in principle to the concepts laid out by Brad Frost in [Atomic Design](http://bradfrost.com/blog/post/atomic-web-design/) although we use our own language and the concept has been slightly simplified.

We also use a stripped down version of [Normalize](https://necolas.github.io/normalize.css/) to encourage consistency across browsers, you can include our version of normalise or the original (or none at all).

**NB:** For optimum aesthetics make sure you include [Gill Sans Nova](https://fonts.adobe.com/fonts/gill-sans-nova) from Typekit.

If you're building applications to live within the Anomalous ecosystem feel free to use Newton.

## Install

With Yarn: _(our preference at Anomalous)_

```
$ yarn add @anomalous/newton styled-components
```

With NPM:

```
$ npm install @anomalous/newton styled-components
```

## Usage

Include Gill Sans Nova in your application by using Typekit (optional).

```
<html>
  <head>
    <link rel="stylesheet" href="https://use.typekit.net/xxxxxxx.css" />
  </head>
  <body>
    ...
  </body>
</html>

```

At the root of your application, include Normalize (optional) and setup the Styled Components theme (required).

```
import React from 'react';
import { theme } from '@anomalous/newton';
import { ThemeProvider } from 'styled-components';

import '@anomalous/newton/dist/normalize.css';

const App = () => (
  <ThemeProvider theme={theme}>
    ...
  </ThemeProvider>
);

export default App;
```

Include the component you need and away you go!

```
import React from 'react';
import { Button } from '@anomalous/newton';

const MyComponent = () => (
  <div>
     <Button onClick={() => alert('it works')}>My Button</Button>
  </div>
);

export default MyComponent;
```

## Structure

Newton provides the following types of component:

- *Bolts:* quite literally the nuts and bolts of an application; the smallest units we provide.
- *Parts:* made up over several parts to create a more meaningful whole; a small collection of components.
- *Vehicles:* made of parts and bolts representing a significant piece of functionality; the building blocks of an app.

In our applications we built on these components with the following:

- *Layouts:* made up of a combination of bolts, parts, and vehicles to give pages structure.
- *Pages:* the final level representing a working feature, usually implementing a layout and adding additional bolts, parts of vehicles.

We structure our frontend applications as follows:

```
- assets
- components
  - bolts
  - parts
  - vehicles
- layouts
- pages
```

## Deploying New Releases

New releases are periodically created as new features are delivered. Creating a new release (and tag) in GitHub automatically triggers a deployment to NPM as long as the version number has been updated in `package.json`. Watch the GitHub repo to be notified of new releases.

## Issues and Feedback

If you spot a problem with Newton please [raise an issue](https://github.com/AnomalousTechnologies/newton/issues/new).

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