# themmer

> Easily access theme props in styled-components

Latest version **3.1.4** (published 2018-05-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install themmer
pnpm add themmer
yarn add themmer
bun add themmer
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.1.4 |
| Published | 2018-05-10 |
| First published | 2018-04-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | elcoosp |
| Maintainers | elcoosp |
| Keywords | js, styled-components, theme, css |

## Links

- npm: https://www.npmjs.com/package/themmer
- Repository: https://github.com/elcoosp/themmer
- Issues: https://github.com/elcoosp/themmer/issues
- npm.io page: https://npm.io/package/themmer

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 3.1.4 (latest) — 2018-05-10
- 3.1.3 — 2018-05-10
- 3.1.0 — 2018-05-10
- 3.0.0 — 2018-05-10
- 2.0.0 — 2018-04-14
- 1.0.0 — 2018-04-13

## README

# Themmer

[![Build Status](https://travis-ci.org/elcoosp/themmer.svg?branch=master)](https://travis-ci.org/elcoosp/themmer) [![style: styled-components](https://img.shields.io/badge/style-%F0%9F%92%85%20styled--components-orange.svg?colorB=daa357&colorA=db748e)](https://github.com/styled-components/styled-components)

Easily access theme prop in styled-components

## Install

`npm i -S themmer`

## Why

```javascript
// Quite ugly theme accessing
const UglyComponent = styled.div`
  background-color: ${props => props.theme.color.main.light};
  color: ${props => props.theme.color.main.dark};
`
```

## What

```javascript
import tm from 'themmer'
// Less ugly theme accessing
const LessUglyComponent = styled.div`
  background-color: ${tm`color.main.light`};
  color: ${tm`color.main.dark`};
`
```

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