Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/htanjo/githubish.css

Tiny CSS for GitHub-ish Markdown styles
https://github.com/htanjo/githubish.css

Last synced: about 2 months ago
JSON representation

Tiny CSS for GitHub-ish Markdown styles

Awesome Lists containing this project

README

        

# githubish.css
> Tiny CSS for GitHub-ish Markdown styles.

[![npm Version][npm-image]][npm-url]
[![Bower Version][bower-image]][bower-url]

## Demo
* [Fixed layout](http://htanjo.github.io/githubish.css/)
* [Fluid layout](http://htanjo.github.io/githubish.css/fluid.html)

## Overview
This CSS arranges plain HTML as GitHub style Markdown document.
githubish.css is based on [github-markdown-css](https://github.com/sindresorhus/github-markdown-css), but designed for non-classed HTML.

**github-markdown-css:**
* Needs wrapper element with `.markdown-body` class.
* Supports every style including GitHub doc extensions: e.g. anchor, syntax highlighting, ...

**githubish.css:**
* Works on plain HTML without any classes.
* Only contains styles for pure HTML elements generated from Markdown.

Both libraries are generated automatically using the production code of GitHub.

## Downloads
* **[githubish.css](https://raw.githubusercontent.com/htanjo/githubish.css/master/dist/githubish.css)** / [minified](https://raw.githubusercontent.com/htanjo/githubish.css/master/dist/githubish.min.css)
980px centered layout with borders. Similar to README document in GitHub.

* **[githubish-fluid.css](https://raw.githubusercontent.com/htanjo/githubish.css/master/dist/githubish-fluid.css)** / [minified](https://raw.githubusercontent.com/htanjo/githubish.css/master/dist/githubish-fluid.min.css)
100% fluid width. This is suitable for generic document.

Or install with package manager: [npm](https://www.npmjs.com/), [Bower](http://bower.io/)

```sh
$ npm install --save githubish
```

```sh
$ bower install --save githubish
```

## Usage
Just import "githubish.css" to your HTML.

```html



Document



Github-ish Markdown


Write your document here!


```

## Build
Generate CSS files from the latest GitHub's stylesheets.

```sh
$ npm install
$ npm run build

# Output CSS files into "dist" folder.
```

## License
Copyright (c) 2014-2016 Hiroyuki Tanjo.
Licensed under the [MIT License](https://github.com/htanjo/githubish.css/blob/master/LICENSE).

[npm-image]: https://img.shields.io/npm/v/githubish.svg
[npm-url]: https://www.npmjs.com/package/githubish
[bower-image]: https://img.shields.io/bower/v/githubish.svg
[bower-url]: http://bower.io/