Skip to content
NES-style CSS Framework | ファミコン風CSSフレームワーク
CSS JavaScript HTML
Branch: develop
Clone or download

Latest commit

guastallaigor Merge pull request #422 from ldd/develop
fix(badge): rename is-splited to is-split
Latest commit afe1ea0 Jun 3, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci build(circleci): add node build matrix Jun 2, 2020
.github docs(readme): add about how to install Mar 16, 2020
.storybook refactor(storybook/webpack.config.js): add custom functions Jun 4, 2019
assets docs(contributing.md): move message about storybook Oct 16, 2019
docs fix(badge): rename is-splited to is-split Jun 2, 2020
scripts refactor: convert local images to data URIs May 22, 2019
scss fix(badge): deprecate is-splited instead of removing it Jun 2, 2020
sketch docs(add sketch file): added sketch file and fixed favicon file Dec 17, 2018
story fix(badge): rename is-splited to is-split Jun 2, 2020
.editorconfig ⚙️ 開発環境の構築 Sep 24, 2018
.gitignore fix: string interpolation to calculate width of inputs Oct 10, 2019
.npmignore perf: Remove unnecessary files from package Dec 11, 2018
.prettierignore feat: fix index.html Feb 8, 2019
CODE_OF_CONDUCT.md Add links for different languages Dec 23, 2018
CONTRIBUTING.md docs(contributing.md): move message about storybook Oct 16, 2019
LICENSE 🌱 ライセンスファイルの作成 Nov 27, 2018
README.md docs(readme): add about how to install Mar 16, 2020
commitlint.config.js build: fix config files Dec 5, 2018
package-lock.json build(npm): upgrade to latest node-sass May 10, 2020
package.json build(npm): remove node engine check for <13 May 30, 2020

README.md

NES.css is a NES-style(8bit-like) CSS Framework.

Gitter Commitizen friendly

Installation

Styles

NES.css is available via either npm (preferred), Yarn, or a CDN.

via package manager

npm install nes.css
# or
yarn add nes.css

Our package.json contains some additional metadata under the following keys:

  • sass - path to our main Sass source file
  • style - path to our non-minified CSS
AltCSS(sass, scss...)
// style.scss
@import "./node_modules/nes.css/css/nes.css"
JavaScript
// script.js
import "nes.css/css/nes.min.css";

You need to install css-loader.

HTML
<!-- index.html -->
<html>
  <head>
    <link rel="stylesheet" href="./node_modules/nes.css/css/nes.min.css">
  </head>
  <body></body>
</html>

via CDN

Import the CSS via a <link /> element:

<!-- minify -->
<link href="https://unpkg.com/nes.css@2.3.0/css/nes.min.css" rel="stylesheet" />
<!-- latest -->
<link href="https://unpkg.com/nes.css@latest/css/nes.min.css" rel="stylesheet" />
<!-- core style only -->
<link href="https://unpkg.com/nes.css/css/nes-core.min.css" rel="stylesheet" />

Fonts

NES.css doesn't provide any fonts, but we do maintain the following list of fonts that we recommend for usage alongside the library.

Language Font
(Default) Press Start 2P
English Kongtext
Japanese 美咲フォント
Japanese Nu もち
Korean 둥근모꼴
Chinese Zpix (最像素)

Usage

NES.css only provides components. You will need to define your own layout.

The recommended font for NES.css is Press Start 2P. However, Press Start 2P only supports English characters. When you're using this framework with any language other than English, please use another font. Follow the Google Fonts instructions about how to include them, or simply include it as below:

<head>
    <link href="https://fonts.googleapis.com/css?family=Press+Start+2P" rel="stylesheet">
    <link href="https://unpkg.com/nes.css/css/nes.css" rel="stylesheet" />

    <style>
      html, body, pre, code, kbd, samp {
          font-family: "font-family you want to use";
      }
    </style>
</head>

CSS Only

NES.css only requires CSS and doesn't depend on any JavaScript.

Browser Support

NES.css is compatible with the newest version of the following browsers:

  • Chrome
  • Firefox
  • Safari

Untested

  • IE/Edge

Copyright and license

Code and documentation copyright 2018 B.C.Rikko. Code released under the MIT License. Docs released under Creative Commons.

Development

If you'd like to help us out with the project, we welcome contributions of all types! Check out our CONTRIBUTING.md for more details on how you can help make NES.css amazing!

You can’t perform that action at this time.