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

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.

主站蜘蛛池模板: 温宿县| 云霄县| 来凤县| 新建县| 敦煌市| 郁南县| 上犹县| 南充市| 湛江市| 绥德县| 思茅市| 容城县| 新竹县| 扎囊县| 屏南县| 宝山区| 蓬莱市| 威海市| 潮安县| 卢氏县| 中方县| 宜城市| 台山市| 高唐县| 宜都市| 靖江市| 九江市| 威宁| 南华县| 黔江区| 栾城县| 正镶白旗| 新疆| 定边县| 吉安县| 股票| 台山市| 东光县| 吐鲁番市| 新郑市| 金川县|