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

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.

主站蜘蛛池模板: 赫章县| 新宾| 钟祥市| 义乌市| 通化县| 津市市| 中西区| 中西区| 寻甸| 时尚| 卓尼县| 土默特左旗| 资溪县| 常熟市| 桦川县| 怀来县| 西宁市| 济源市| 凤阳县| 平潭县| 平潭县| 探索| 汉中市| 龙海市| 大英县| 长宁区| 乡城县| 临海市| 轮台县| 潜山县| 栾川县| 油尖旺区| 新化县| 普兰县| 临清市| 巧家县| 华阴市| 兴城市| 宿迁市| 正阳县| 蒙阴县|