{"id":76,"date":"2019-10-09T05:25:20","date_gmt":"2019-10-09T05:25:20","guid":{"rendered":"https:\/\/docs.theironnetwork.org\/chankya\/?page_id=76"},"modified":"2019-10-15T10:42:45","modified_gmt":"2019-10-15T10:42:45","slug":"style-customisation","status":"publish","type":"page","link":"https:\/\/docs.theironnetwork.org\/chankya\/style-customisation\/","title":{"rendered":"Style Customisation"},"content":{"rendered":"\n<p>Chankya is developed with <a href=\"https:\/\/getbootstrap.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">Bootstrap 4<\/a> so its easy to change the styling for your app. It uses bootstrap variables along with some custom variables which provides you the more flexibility and control over design.<\/p>\n\n\n\n<h5 id=\"color-schemes-and-typography\">Color Schemes and Typography<\/h5>\n\n\n\n<p>Go to the bootstrap-override.scss file and find following vars and change the value as per as your requirements.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$blue:     #1862c6 !default;<br>$indigo:   #6610f2 !default;<br>$purple:   #6f42c1 !default;<br>$pink:     #e83e8c !default;<br>$red:      #F54B5E !default;<br>$orange:   #ff5723 !default;<br>$yellow:   #F8C51C !default;<br>$green:    #00caac !default;<br>$teal:     #51CAE3 !default;<br>$cyan:     #43AE3F !default;<\/pre>\n\n\n\n<h6 id=\"typography\">Typography<a href=\"#typography\"><\/a><\/h6>\n\n\n\n<p>Manage the typography by changing the value of it.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$font-size-base:              1rem !default; \/\/ Assumes the browser default, typically `16px`<br>$font-size-lg:                ($font-size-base * 1.25) !default;<br>$font-size-sm:                ($font-size-base * .875) !default;<br> <br>$font-weight-lighter:         lighter !default;<br>$font-weight-light:           300 !default;<br>$font-weight-normal:          400 !default;<br>$font-weight-bold:            700 !default;<br>$font-weight-bolder:          bolder !default;<br> <br>$font-weight-base:            $font-weight-normal !default;<br>$line-height-base:            1.5 !default;<br> <br>$h1-font-size:                $font-size-base * 1.625 !default;<br>$h2-font-size:                $font-size-base * 1.375 !default;<br>$h3-font-size:                $font-size-base * 1.25 !default;<br>$h4-font-size:                $font-size-base * 1.125 !default;<br>$h5-font-size:                $font-size-base * 1 !default;<br>$h6-font-size:                $font-size-base * 0.875 !default;<br> <\/pre>\n\n\n\n<blockquote class=\"wp-block-quote\"><p><strong>To change app font family, you need to load appropriate font family from google or from other custom source in the head tag of index.html file. Like in following code:<\/strong><\/p><\/blockquote>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;link href=\"https:\/\/fonts.googleapis.com\/css?family=Roboto:300,300i,400,400i,500,500i,700,700i,900,900i\" rel=\"stylesheet\"&gt;<br><\/pre>\n\n\n\n<h5 id=\"theme-custom-variables\">Theme Custom Variables<\/h5>\n\n\n\n<p>Mange custome variable by changing the values in app.variable.scss file.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/*=========== Custom Variables integrated =============*\/<br>\/\/--- html font ---\/\/<br>$html-font-size:                    16px;<br> <br>\/\/--- block setting ---\/\/<br>$block-bg: #fff;<br>$block-border-color:                #DEE4E8;<br>$block-border-radius:               0;<br>$block-margin:                      $grid-gutter-width;<br>$block-space-x:                     20px;<br>$block-space-y:                     20px;<br> <br>\/\/--- Block Title ---\/\/<br>$block-title-font-color:            inherit; \/\/ #414658;<br>$block-title-font-size:             1.25rem;<br>$block-title-space-x:               1.25rem;<br>$block-title-space-y:               1.25rem;<br> <br>\/\/--- Block Contextual ---\/\/<br>$block-contextual-link-color:       #9E9E9E;<br>$block-contextual-link-size:        1rem;<br> <br>\/\/--- Block full setting ---\/\/<br>$block-full-bg:                     $block-bg;<br>$block-full-border-color:           $block-border-color;<br>$block-full-border-radius:          0;<br>$block-full-margin:                 $block-margin;<br>$block-full-padding:                null;<br> <br>\/\/--- Button variables ----\/\/<br>$btn-font-size:                     0.875rem;<br>$btn-transform:                     capitalize;<br> <br>$btn-rounded-padding-horizontal:    2rem;<br> <br>$btn-square:                        0px;<br>$btn-rounded-border-radius:         10em;<br>$btn-circle:                        100%;<br> <br>\/\/--- Badges ---\/\/<br>$badge-font-size:                   0.875rem;<br> <br>$badge-padding-horizontal:          5px;<br>$badge-padding-vertical:            3px;<br>$badge-base-rounded:                5px;<br> <br>\/\/--- Breadcrumb ---\/\/<br> <br>$breadcrumb-font-size: 1re;<br>$breadcrumb-font-color: #414658;<br> <br>\/\/--- Chat variables ---\/\/<br>$chat-block-even-bg:                $primary;<br>$chat-block-odd-bg:                 $primary;<br>$chat-block-font-color:             #fff;<br> <br>$chat-item-padding:                 1rem;<br>$chat-item-border:                  1px solid $input-border-color;<br>$chat-item-bg-color:                #fff;  <br> <br>\/\/--- Dropdown variables ---\/\/<br>$dropdown-min-width:                null;<br>$dropdown-padding-y:                5px;<br>$dropdown-margin-top:               5px;<br>$dropdown-heading-bg:               $gray-500;<br> <br>\/\/-----Dark theme---\/\/<br>$dark-bg:                           #424242;<br>$dark-bg-color:                     #fff;<br>$dark-bg-container:                 #303030;<br>$dark-border-color:                 rgba($gray-500, 0.1);<br> <br>\/\/--- Form input variables ---\/\/<br>$input-line-height:                 null;<br>$from-label-color:                  #414658;<br>$input-square:                      0px;<br>$input-rounded:                     10rem;<br> <br>\/\/--- Header ---\/\/<br>$header-bg:                         #fff;<br>$header-height:                     72px;<br>$header-bottom-border:              1px solid $input-border-color;<br>$header-pad-left-right:             1.3rem;<br>$header-box-shadow:                 0 0 35px 0 rgba(154,161,171,.15);<br> <br>\/\/--- Ham icon ---\/\/<br>$ham-line-height: 2px;<br>$ham-icon-height-width: 45px;<br>$ham-icon-border-radius: 100%;<br>$ham-icon-line-color:  #818698;<br>$ham-icon-border: 1px solid #DEE4E8;<br>$ham-icon-background-color: #F5F9FB;<br> <br>\/\/-- Header Menu --\/\/<br>$header-main-menu-color: #9e9e9e;<br>$dropdown-header-title-color: #fff;<br>\/\/--- Progress Bar ---\/\/<br>$progress-rounded:                  1rem;<br>$progress-square:                   0px;<br> <br>\/\/--- Page title ---\/\/<br>$page-title-color:                  #414658;<br>$page-title-font-size:              1.625rem;<br> <br>\/\/--- Page info ---\/\/<br>$page-info-pad-space:               0.8rem 1.7rem;<br> <br>\/\/--- Preloader variable ---\/\/<br>$perloader-bg-overlay:              rgba(20, 24, 40, 0.87);<br>$preloader-bg-one:                  $blue;<br>$preloader-bg-two:                  $orange;<br> <br>\/\/--- SidebarWidths ---\/\/<br>$sidebar-width:        18.75rem;<br>$sidebar-menu-text:                $body-color;<br>$sidebar-bg:              url(\"assets\/img\/sidebar-bg.jpg\");<br>$sidebar-overlay-bg:                rgba($white, 0.87);<br> <br>\/\/--- Sidebar logo ---\/\/<br>$sidebar-logo-bg:                   $blue;<br>$sidebar-icon-size:                 1.1rem; <br> <br>\/\/--- Square box ---\/\/<br>$square-font-size:                  0.5; \/\/ 50% relative to the container<br>$square-box:                      (10, 15, 20, 30, 40, 50, 60, 85, 100);<br> <br>\/\/--- User section ---\/\/<br>$user-thumb-section-bg:             $white;<br>$user-name-color:                   $body-color;<br>$user-pad-y :                       1.5rem;<br>$user-pad-x:                        1rem;<br>$border-radius-base:                0;<br> <br>\/\/--- Tour section ---\/\/<br> <br>$tour-main-heading-color: #fff;<br>$tour-main-heading-bg-color: $blue;<br>$tour-main-heading-font-size: 18px;<br>$tour-step-font-size: 16px;<br>$popover-body-bg-color: $blue;<br>$popover-body-font-color: #fff;<br> <br>\/\/----- Card ----\/\/<br>$card-box-shadow:  0 0 35px 0 rgba(154,161,171,.15);<br> <br>\/\/modal-default-width<br>$modal-def-width:              600px;  <\/pre>\n\n\n\n<h5 id=\"changing-color-values-for-charts-and-map\"><strong>Changing Color Values For Charts And Map<\/strong><\/h5>\n\n\n\n<p>If you want to change the colours on &#8220;Charts&#8221; then go to thatspecific chart type and make changes inside its component .ts file.<\/p>\n\n\n\n<p>example: to change the colour on &#8220;Dashboard Chart&#8221;, go to src\/app\/dashboard and open its .ts file, search for &#8220;chart&#8221; and change values:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">public barChartOptions:any = {<br>     scaleShowVerticalLines: false,<br>     responsive: true<br>   };<br>  \/\/ Chart Colour<br>    barChartColors: Array &lt;any&gt; = [{<br>      backgroundColor: '#1862c6',<br>      borderColor: '#1862c6',<br>      pointBackgroundColor: '#1862c6',<br>      pointBorderColor: '#fff',<br>      pointHoverBackgroundColor: '#fff',<br>      pointHoverBorderColor: '#1862c6'<br>    }, {<br>      backgroundColor: '#DEE4E8',<br>      borderColor: '#DEE4E8',<br>      pointBackgroundColor: '#DEE4E8',<br>      pointBorderColor: '#fff',<br>      pointHoverBackgroundColor: '#fff',<br>      pointHoverBorderColor: '#DEE4E8'<br>    }<br>    <br>   ];<br>   public barChartLabels:string[] = ['2006', '2007', '2008', '2009', '2010', '2011', '2012'];<br>   public barChartType:string = 'bar';<br>   public barChartLegend:boolean = false;<br>   public barChartData:any[] = [<br>     {data: [65, 59, 80, 81, 56, 55, 40], label: 'Series A'},<br>     {data: [28, 48, 40, 19, 86, 27, 90], label: 'Series B'}<br>   ];<\/pre>\n<div class=\"pld-like-dislike-wrap pld-template-1\">\n    <div class=\"pld-like-wrap  pld-common-wrap\">\n    <a href=\"javascript:void(0);\" class=\"pld-like-trigger pld-like-dislike-trigger \" title=\"\" data-post-id=\"76\" data-trigger-type=\"like\" data-restriction=\"cookie\" data-ip-check=\"0\" data-user-check=\"1\">\n                        <i class=\"fas fa-thumbs-up\"><\/i>\n                    <\/a>\n    <span class=\"pld-like-count-wrap pld-count-wrap\">    <\/span>\n<\/div><div class=\"pld-dislike-wrap  pld-common-wrap\">\n    <a href=\"javascript:void(0);\" class=\"pld-dislike-trigger pld-like-dislike-trigger \" title=\"\" data-post-id=\"76\" data-trigger-type=\"dislike\" data-ip-check=\"0\" data-restriction=\"cookie\" data-user-check=\"1\">\n                        <i class=\"fas fa-thumbs-down\"><\/i>\n                    <\/a>\n    <span class=\"pld-dislike-count-wrap pld-count-wrap\"><\/span>\n<\/div><\/div>\n\n","protected":false},"excerpt":{"rendered":"<p>Chankya is developed with Bootstrap 4 so its easy to change the styling for your app. It uses bootstrap variables along with some custom variables which provides you the more flexibility and control over design. Color Schemes and Typography Go to the bootstrap-override.scss file and find following vars and change the value as per as [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":7,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/docs.theironnetwork.org\/chankya\/wp-json\/wp\/v2\/pages\/76"}],"collection":[{"href":"https:\/\/docs.theironnetwork.org\/chankya\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/docs.theironnetwork.org\/chankya\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/docs.theironnetwork.org\/chankya\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.theironnetwork.org\/chankya\/wp-json\/wp\/v2\/comments?post=76"}],"version-history":[{"count":4,"href":"https:\/\/docs.theironnetwork.org\/chankya\/wp-json\/wp\/v2\/pages\/76\/revisions"}],"predecessor-version":[{"id":245,"href":"https:\/\/docs.theironnetwork.org\/chankya\/wp-json\/wp\/v2\/pages\/76\/revisions\/245"}],"wp:attachment":[{"href":"https:\/\/docs.theironnetwork.org\/chankya\/wp-json\/wp\/v2\/media?parent=76"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}