# codemirror-theme-github

> A CodeMirror theme inspired by the GitHub editor.

Latest version **1.1.0** (published 2024-01-12) · MIT license · 43 weekly downloads

## Install

```sh
npm install codemirror-theme-github
pnpm add codemirror-theme-github
yarn add codemirror-theme-github
bun add codemirror-theme-github
```

## 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 | 1.1.0 |
| Published | 2024-01-12 |
| First published | 2019-09-29 |
| Weekly downloads | 43 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Cosmin Popovici |
| Maintainers | cossssmin |
| Keywords | codemirror, theme, codemirror-github |

## Links

- npm: https://www.npmjs.com/package/codemirror-theme-github
- Repository: https://github.com/cossssmin/codemirror-theme-github
- Homepage: https://github.com/cossssmin/codemirror-theme-github#readme
- Issues: https://github.com/cossssmin/codemirror-theme-github/issues
- npm.io page: https://npm.io/package/codemirror-theme-github

## Recent versions

- 1.1.0 (latest) — 2024-01-12
- 1.0.0 — 2019-09-29

## README

# codemirror-theme-github

A CodeMirror theme inspired by the GitHub editor.

## Preview

![Preview](/theme/preview.jpg?raw=true)

## Installation

```
npm install codemirror-theme-github --save
```

## Usage

1. Import the CSS file into your application:

    ```css
    @import "codemirror-theme-github/theme/github";
    ```

2. Tell CodeMirror to use it:

    ```js
    const editor = CodeMirror(document.body, {
      mode: 'javascript',
      lineNumbers: true,
      theme: 'github',
    });
    ```

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