官术网_书友最值得收藏!

ThemeRoller approach

To gain first-hand experience of the ThemeRoller online visual tool, go to the ThemeRoller home page, explore the available theme's gallery, and play with the CSS properties to see changes for widgets embedded on the page. All CSS changes will be applied on the fly.

We have to select one of the existing themes (the Gallery tab) and edit it (the Roll Your Own tab). A click on the Download theme button accomplishes the work.

We should deselect the Toggle All checkbox under the Components option on the Download Builder page so that our new theme only includes the skinning styles.

Next, we need to migrate the downloaded theme files from ThemeRoller to the PrimeNG theme infrastructure. The migration steps are straightforward:

  1. The theme package that we have downloaded will have a CSS file jquery-ui.theme.css (as well as minified variant) and the images folder. Extract the package and rename the CSS file as theme.css.

 

  1. In your web application, create a folder with the name of the new theme, for example, src/assets/themes/crazy.
  2. Copy theme.css and the images folder into src/assets/themes/crazy.

After you are done with these steps, you can create a link to the theme.css in the index.html file:

<link rel="stylesheet" type="text/css"  
href="src/assets/themes/crazy/theme.css"/>

This was the easiest way to create your custom themes without requiring knowledge of CSS.

主站蜘蛛池模板: 北川| 循化| 确山县| 左权县| 万荣县| 哈尔滨市| 印江| 洛阳市| 疏附县| 东平县| 页游| 霞浦县| 青川县| 中超| 若尔盖县| 土默特左旗| 绿春县| 绥芬河市| 兴隆县| 惠水县| 平谷区| 三明市| 永顺县| 金坛市| 资溪县| 普安县| 洱源县| 剑河县| 田阳县| 黔江区| 富蕴县| 武安市| 安平县| 靖西县| 安溪县| 顺义区| 海丰县| 肥西县| 襄汾县| 合作市| 高州市|