# the-style

> Style of the-components

Latest version **2.2.8** (published 2019-02-24) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install the-style
pnpm add the-style
yarn add the-style
bun add the-style
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 2.2.8 |
| Published | 2019-02-24 |
| First published | 2017-04-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8 |
| Dependencies | 4 |
| Unpacked size | 34.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Taka Okunishi |
| Maintainers | okunishinishi |
| Keywords | the |

## Links

- npm: https://www.npmjs.com/package/the-style
- Repository: https://github.com/the-labo/the-style
- Homepage: https://github.com/the-labo/the-style#readme
- Issues: https://github.com/the-labo/the-style/issues
- npm.io page: https://npm.io/package/the-style

## Dependencies (4)

- [classnames](https://npm.io/package/classnames.md) ^2.2.6
- [prop-types](https://npm.io/package/prop-types.md) ^15.7.2
- [the-style-util](https://npm.io/package/the-style-util.md) ^1.0.2
- [the-component-constants](https://npm.io/package/the-component-constants.md) ^2.0.8

## Alternatives

- [@clerk/clerk-expo](https://npm.io/package/@clerk/clerk-expo.md) — 133.6K weekly downloads
- [@pothos/plugin-authz](https://npm.io/package/@pothos/plugin-authz.md) — 12.4K weekly downloads
- [@bounded-sh/client](https://npm.io/package/@bounded-sh/client.md) — 3.2K weekly downloads
- [@luigi-project/plugin-auth-oauth2](https://npm.io/package/@luigi-project/plugin-auth-oauth2.md) — 2.3K weekly downloads
- [@nocobase/plugin-verification](https://npm.io/package/@nocobase/plugin-verification.md) — 2.0K weekly downloads

## Recent versions

- 2.2.8 (latest) — 2019-02-24
- 2.2.7 — 2019-02-24
- 2.2.6 — 2019-02-02
- 2.2.5 — 2019-01-28
- 2.2.4 — 2018-12-25
- 2.2.3 — 2018-11-11
- 2.2.2 — 2018-08-17
- 2.2.1 — 2018-08-17
- 2.2.0 — 2018-08-09
- 2.1.13 — 2018-07-18
- 2.1.11 — 2018-06-20
- 2.1.10 — 2018-06-18
- 2.1.8 — 2018-06-18
- 2.1.7 — 2018-06-18
- 2.1.6 — 2018-06-18
- … 24 more at https://npm.io/package/the-style/versions

## README

the-style
==========

<!---
This file is generated by the-tmpl. Do not update manually.
--->

<!-- Badge Start -->
<a name="badges"></a>

[![Build Status][bd_travis_shield_url]][bd_travis_url]
[![npm Version][bd_npm_shield_url]][bd_npm_url]
[![JS Standard][bd_standard_shield_url]][bd_standard_url]

[bd_repo_url]: https://github.com/the-labo/the-style
[bd_travis_url]: http://travis-ci.org/the-labo/the-style
[bd_travis_shield_url]: http://img.shields.io/travis/the-labo/the-style.svg?style=flat
[bd_travis_com_url]: http://travis-ci.com/the-labo/the-style
[bd_travis_com_shield_url]: https://api.travis-ci.com/the-labo/the-style.svg?token=
[bd_license_url]: https://github.com/the-labo/the-style/blob/master/LICENSE
[bd_npm_url]: http://www.npmjs.org/package/the-style
[bd_npm_shield_url]: http://img.shields.io/npm/v/the-style.svg?style=flat
[bd_standard_url]: http://standardjs.com/
[bd_standard_shield_url]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg

<!-- Badge End -->


<!-- Description Start -->
<a name="description"></a>

Style of the-components

<!-- Description End -->


<!-- Overview Start -->
<a name="overview"></a>



<!-- Overview End -->


<!-- Sections Start -->
<a name="sections"></a>

<!-- Section from "doc/guides/01.Installation.md.hbs" Start -->

<a name="section-doc-guides-01-installation-md"></a>

Installation
-----

```bash
$ npm install the-style --save
```


<!-- Section from "doc/guides/01.Installation.md.hbs" End -->

<!-- Section from "doc/guides/02.Usage.md.hbs" Start -->

<a name="section-doc-guides-02-usage-md"></a>

Usage
---------

```javascript
'use strict'

import React from 'react'
import { TheStyle } from 'the-style'

// Customize style theme

TheStyle.theme.DOMINANT_COLOR = '#38E'
TheStyle.theme.TEXT_COLOR = '#555'

class ExampleComponent extends React.PureComponent {
  render () {
    let styles = TheStyle.styles({
      body: {
        color: '#555',
        backgroundColor: 'white'
      }
    })
    return (
      <TheStyle id='my-component'
                styles={styles}
      />
    )
  }
}

export default ExampleComponent

```


<!-- Section from "doc/guides/02.Usage.md.hbs" End -->

<!-- Section from "doc/guides/03.Components.md.hbs" Start -->

<a name="section-doc-guides-03-components-md"></a>

Components
-----------

### TheStyle

Style of the-components

**Props**

| Name | Type | Description | Default |
| --- | --- | ---- | ---- |
| `className` | string  | CSS class name | `null` |
| `id` | string  | DOM Id | `null` |
| `prefix` | string  | Style selector prefix | `null` |
| `type` | string  | Script type | `null` |


<!-- Section from "doc/guides/03.Components.md.hbs" End -->

<!-- Section from "doc/guides/04.Themes.md.hbs" Start -->

<a name="section-doc-guides-04-themes-md"></a>

Default Themes
-----------


| Name | Value |
| --- | --- |


<!-- Section from "doc/guides/04.Themes.md.hbs" End -->


<!-- Sections Start -->


<!-- LICENSE Start -->
<a name="license"></a>

License
-------
This software is released under the [MIT License](https://github.com/the-labo/the-style/blob/master/LICENSE).

<!-- LICENSE End -->


<!-- Links Start -->
<a name="links"></a>

Links
------

+ [THE Labo][t_h_e_labo_url]

[t_h_e_labo_url]: https://github.com/the-labo

<!-- Links End -->

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