chen

Chen is one of the original Bootstrap theme forked from Honoka. It uses Japanese webfonts.


Keywords
css, sass, bootstrap, japanese, theme, responsive, front-end, framework, web, touhou, honoka, webfont
License
MIT
Install
bower install chen

Documentation

Chen

Build Status by Travis CI The MIT License

https://tamaina.github.io/Chen/

Chen

"Chen" は日本語も美しく表示できるBootstrapテーマです。

About "Chen"

通常のBootstrapでは、日本語のフォント指定や文字サイズは最適とはいえません。"Chen"のベースとなった"Honoka"は、そんなBootstrapをベースに、日本語表示に適したフォント指定や、文字サイズに関するコードを追記したBootstrapテーマの一つです。

"Chen"では、"Honoka"の改良に加え、WebFontを付加しました。

Live Demo

Getting Started

Download

Releasesから最新版をダウンロードしてください。

Bower

Bowerからインストールすることができます。パッケージ名はChenです。

以下のコマンドを実行してください。

bower install --save-dev Chen

Usage

Chenは単なるBootstrapテーマにしか過ぎないため,基本的な使い方は本家Bootstrapとほとんど変わりません。よって以下に書くことは本家Bootstrapからの引用,もしくはその一部を変更したものです。用意されたCSSクラスやコンポーネントなど,より詳細な使い方のドキュメントは本家Bootstrapの各種リファレンスページをご覧になることを推奨します。

Package

配布しているzipファイルの内容物は以下のとおりです。bootstrap.min.*といったように,ファイル名にminがつくファイルは,改行やインデント・スペーシングをなくした(minifyされた)コードで,ユーザがウェブページを読み込む際の転送量を少なくすることができます。通常はこのbootstrap.min.*を使うことをおすすめします。

master/
├─ index.html
├─ bootstrap.html
├─ bootstrap-ja.html
├─ README.md (このファイル)
├─ css/
│   ├─ bootstrap.css
│   └─ bootstrap.min.css
├─ fonts/
│   ├─ glyphicons-halflings-regular.eot
│   ├─ glyphicons-halflings-regular.svg
│   ├─ glyphicons-halflings-regular.ttf
│   ├─ glyphicons-halflings-regular.woff
│   └─ glyphicons-halflings-regular.woff2
└─ js/
     ├─ bootstrap.js
     └─ bootstrap.min.js

Basic Template

Bootstrapをつかってウェブページを作成する際に基本となるHTML部分は以下のようになります。CSSやJavaScriptのファイルパスは環境に合わせて変更する必要があります。

Chen v3.3.7-A現在の雛形です。 v4.0.0へ更新する際、変更が必要になります。

<!DOCTYPE html>
<html lang="ja">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上記のmetaタグは *絶対に必要です*. head内に含める他のタグは *これ以降* に書かなければなりません。 -->
    <title>Bootstrap 雛形</title>

    <!-- Bootstrap -->
    <link href="css/bootstrap.min.css" rel="stylesheet">

    <!-- HTML5 shiv と Respond.js はIE8にHTML5エレメントとmedia queriesをサポートさせます。 -->
    <!-- 警告: Respond.js はローカル環境(file://から始まるURL)で見る時機能しません。 -->
    <!--[if lt IE 9]>
      <script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js"></script>
      <script src="https://cdnjs.cloudflare.com/ajax/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>
  <body>
    <h1>Hello, world!</h1>

    <!-- bodyの一番最後 -->
    <!-- jQuery (Bootstrapのjavascriptを動かす為に必要です。) -->
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
    <!-- 下記はすべてのプラグインを収めたファイルですが、必要に応じて個別のファイルを導入します。 -->
    <script src="js/bootstrap.min.js"></script>
  </body>
</html>

Do you hate WebFont?

WebFontを利用したくない場合は、fork元のHonokaをご利用ください。

このあたりでWebFontを軽くする(見せる)方法を紹介してたりします。

License

MIT License

Author

Editor