Onsen Theme Rollerで作成したThemeをMonacaで作成したアプリに取り込む方法。
下記をみて、Themeを作成していましたが、Monacaで適用する方法が、かかれていなかったので、まとめておきました。
-
Onsen UIをカスタマイズするOnsen Theme Rollerの紹介をみて、Themeを作成。作成したThemeをダウンロード
- ダウンロードした、onsen-css-components.cssをonsen-css-components-cus.cssにリネーム。
- lib/onsenui/css配下にリネームしたファイルをアップロード。(componentsの方にonsenuiのフォルダがある場合もあるが、そちらは無視)
4.index.htmlを書き換える。
index.html
<link rel="stylesheet" href="components/loader.css">
<link rel="stylesheet" href="lib/onsenui/css/onsenui.css">
<link rel="stylesheet" href="lib/onsenui/css/onsen-css-components.css"> →書き換え
<link rel="stylesheet" href="css/style.css">
書き換え後
index.html
<link rel="stylesheet" href="components/loader.css">
<link rel="stylesheet" href="lib/onsenui/css/onsenui.css">
<link rel="stylesheet" href="lib/onsenui/css/onsen-css-components-cus.css">
<link rel="stylesheet" href="css/style.css">
Author And Source
この問題について(Onsen Theme Rollerで作成したThemeをMonacaで作成したアプリに取り込む方法。), 我々は、より多くの情報をここで見つけました https://qiita.com/aomiya/items/e6934e3791c17ffd1b82著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .