# polythene-motif

> ## Usage

Latest version **0.3.0** (published 2017-06-05) · MIT license · 0 weekly downloads

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

## Install

```sh
npm install polythene-motif
pnpm add polythene-motif
yarn add polythene-motif
bun add polythene-motif
```

## Health

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

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.3.0 |
| Published | 2017-06-05 |
| First published | 2017-06-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Arthur Clemens |
| Maintainers | arthurclemens |

## Links

- npm: https://www.npmjs.com/package/polythene-motif
- npm.io page: https://npm.io/package/polythene-motif

## Dependencies (3)

- [polythene-core](https://npm.io/package/polythene-core.md) 0.3.0
- [polythene-core-css](https://npm.io/package/polythene-core-css.md) 0.3.0
- [polythene-utilities](https://npm.io/package/polythene-utilities.md) 0.3.0

## Recent versions

- 0.3.0 (latest) — 2017-06-05

## README

# Motif: Material Design theme

## Usage

~~~javascript
import "polythene-mofif";
~~~



## Roboto font

The Material Design Roboto font is loaded from Google Fonts using [webfontloader](https://github.com/typekit/webfontloader). To prevent the [Flash of Unstyled Text (FOUT)](https://www.paulirish.com/2009/fighting-the-font-face-fout/), add these styles:

~~~css
body {
  opacity: 0
}
html.wf-active body {
  opacity: 1
}
~~~

Or with JavaScript using [styler](../polythene-core-css):

~~~javascript
import { styler } from "polythene-core-css";

const foutStyles = [{
  "body": {
    opacity: 0
  },
  "html.wf-active body": {
    opacity: 1
  }
}];

styler.add("fout", foutStyles);
~~~

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