LoginSignup
4
1

More than 5 years have passed since last update.

スタイルガイドジェネレーターFractal導入フロー

Posted at

Fractal導入

環境構築

$ mkdir patterns

$ npm init

$ npm install --save @frctl/fractal

$ npm i -g @frctl/fractal

ディレクトリ例

StyleGuide
├── src
│   ├── components
│       └── headings.hbs
│   └── docs
│       └── index.md
├── fractal.js
└── package.json

表示させる(自動コンパイル)

$ fractal start --sync

静的ファイルを書き出す


fractal.js に追記

fractal.web.set('builder.dest', __dirname + '/build');

コンパイル

$ fractal build


Fractal UIカスタム

  • CSS場所
  • /node_modules/@frctl/mandelbrot/dist/css/xxx.css
  • 今回はwhite.css使用

HTML

  • Slimの取扱はFractalは非推奨
  • 実装時コンバートする時は、エディターやコマンド、オンラインツールなど使用

オンラインSlimコンバーター参照

4
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
1