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

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.

主站蜘蛛池模板: 巴塘县| 奇台县| 屏东县| 新泰市| 镇江市| 商都县| 石屏县| 沅江市| 唐海县| 灵川县| 六安市| 元朗区| 夏邑县| 镶黄旗| 缙云县| 清原| 双牌县| 玉树县| 扬中市| 谷城县| 德庆县| 勐海县| 泸西县| 滦平县| 鸡泽县| 都昌县| 海丰县| 壶关县| 响水县| 齐齐哈尔市| 密云县| 云霄县| 永兴县| 丰都县| 彝良县| 佛学| 石台县| 深圳市| 精河县| 仁化县| 汾阳市|