# jqmthemer

> Theme a jQuery Mobile theme css file, by replacing css values by its variable names.

Latest version **0.0.1** (published 2015-01-10) · GPLv3 license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2015-01-10 |
| First published | 2015-01-10 |
| Weekly downloads | 0 |
| License | GPLv3 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Oliver Schneider |
| Maintainers | sweetpi |

## Links

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

## Dependencies (1)

- [bluebird](https://npm.io/package/bluebird.md) ~2.2.2

## Recent versions

- 0.0.1 (latest) — 2015-01-10

## README

jqmthemer
===========

Theme a jQuery Mobile theme css file, by replacing css values by its variable names.

Usage
-----

Create a theme file:

```coffee
theme = {
  'name': 'classic'
  'css': [
    "app/css/themes/default/jquery.mobile.inline-svg-1.4.2.css",
    "app/css/themes/default/jquery.mobile.structure-1.4.2.css" 
  ],
  'extraCss': [
    'themes/jqm/classic.css'
  ]
}
theme.variables = {
  'a-bar-background-color': '#e9e9e9'
}
module.exports = theme
```

and apply it:

```coffee
jqmthemer = require 'jqmthemer'

theme = require(themeFile)
css = fs.readFileSync(cssfile)
themedCss = jqmthemer.themeCss(theme, css)
```

You can find some example theme files [here](https://github.com/pimatic/pimatic-mobile-frontend/tree/master/themes).

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