{"id":142,"date":"2019-09-25T09:00:35","date_gmt":"2019-09-25T09:00:35","guid":{"rendered":"https:\/\/docs.theironnetwork.org\/reactify\/?page_id=142"},"modified":"2019-10-14T12:57:34","modified_gmt":"2019-10-14T12:57:34","slug":"style-customization","status":"publish","type":"page","link":"https:\/\/docs.theironnetwork.org\/reactify\/style-customization\/","title":{"rendered":"Style Customization"},"content":{"rendered":"\n<h3>Changing Default Variables: <\/h3>\n\n\n\n<p>Open  <code>src-&gt;assests-&gt;scss-&gt;_bootstrap-override.scss<\/code> file and change style variable values as per your requirement.<\/p>\n\n\n\n<h4 id=\"change-theme-colors\">Change Theme Colors<a href=\"#change-theme-colors\"><\/a><\/h4>\n\n\n\n<p>You can change the theme colors using the given style variables.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/\/App Background Scale<br> <br>$blue:             #5C6AC4 !default; \/\/Manage Primary Color<br>$cyan:             #47C1BF !default; \/\/Manage Info Color<br>$green:            #50B83C !default; \/\/Manage Success Color<br>$yellow:           #F49342 !default; \/\/Manage Warning Color<br>$red:              #DE3618 !default; \/\/Manage Danger Color<br> <br>$indigo:           #174176 !default;<br>$teal:             #007ACE !default; \/\/ Manage Secondary Color<br> <br>$purple:           #6f42c1 !default;<br>$pink:             #FF2B72 !default;<br>$orange:           #EEC200 !default; <\/pre>\n\n\n\n<h4 id=\"change-text-colors\">Change Text Colors<a href=\"#change-text-colors\"><\/a><\/h4>\n\n\n\n<p>You can change the text colors using the given style variables._bootstrap-override.scss<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"> \/\/ App Text Scale<br> <br>$white:                          #fff    !default;<br>$gray-100:                       #F4F6F8 !default;<br>$gray-200:                       #ECEDEF !default;<br>$gray-300:                       #DBDBDB !default;<br>$gray-400:                       #C6C9CF !default;<br>$gray-500:                       #919EAB !default;<br>$gray-600:                       #657786 !default;<br>$gray-700:                       #454F5B !default;<br>$gray-800:                       #393C40 !default;<br>$gray-900:                       #14171A !default;<br>$black:                          #000    !default; <\/pre>\n\n\n\n<h4 id=\"heading\">Heading<a href=\"#heading\"><\/a><\/h4>\n\n\n\n<p>With help of following variables you can easily change font sizes for all headings ( h1 to h6)._bootstrap-override.scss<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/\/ Setting For Heading Element<br> <br>$h1-font-size:                    2.25rem  !default; \/\/36px<br>$h2-font-size:                    1.875rem !default; \/\/30px<br>$h3-font-size:                    1.5rem   !default; \/\/24px<br>$h4-font-size:                    1.125rem !default; \/\/18px<br>$h5-font-size:                    1rem     !default; \/\/16px<br>$h6-font-size:                    0.875rem !default; \/\/14px<br> <br>$headings-margin-bottom:          ($spacer \/ 2) !default;<br>$headings-font-family:            inherit !default;<br>$headings-font-weight:            400 !default;<br>$headings-line-height:            1.2 !default;<br>$headings-color:                  inherit !default; <\/pre>\n\n\n\n<h4 id=\"main-container\">Main Container<a href=\"#main-container\"><\/a><\/h4>\n\n\n\n<p>To change app background color go to <code>_bootstrap.override.scss<\/code> file and change following values.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/\/ Settings for the  &lt;body&gt;  element.<br>$body-bg:                         $gray-100 !default;<br>$body-color:                      $gray-700 !default;<br> <br>\/\/ stylelint-disable value-keyword-case<br>$font-family-sans-serif:                         'Heebo', sans-serif !default;<br>$font-family-monospace:                          SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace !default;<br>$font-family-base:                               $font-family-sans-serif !default; <\/pre>\n\n\n\n<h3 id=\"font-customizations\">Font Customizations<a href=\"#font-customizations\"><\/a><\/h3>\n\n\n\n<h4 id=\"adding-a-new-font-family\">Adding a New Font Family<a href=\"#adding-a-new-font-family\"><\/a><\/h4>\n\n\n\n<p>If you want to change the existing font of the template, you can easily change them. We are using Google Fonts in the template as it is free to use and is easily available. For more info, please visit:<\/p>\n\n\n\n<div class=\"custom-sec-wrap mb-4\">\n\t<a href=\"https:\/\/fonts.google.com\/\" class=\"link-wrap\">\n\t\t<div class=\"content-wrap\">\n\t\t\t<h6>Google Fonts<\/h6>\n\t\t\t<p>Making the web more beautiful, fast, and open through great typography<\/p>\n\t\t\t<small>fonts.google.com<\/small>\n\t\t<\/div>\n<div style=\"background-image:url('https:\/\/www.gstatic.com\/images\/icons\/material\/apps\/fonts\/1x\/opengraph_color_1200dp.png');\" class=\"ironthm-img-item\"><\/div>\n<\/a>\n\t<\/a>\n<\/div>\n\n\n\n<p><strong>Step 1:<\/strong> To change the font family in the template, please visit the above link and select the font you wish to apply to your template and copy the embed code &amp; font family. Example:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" width=\"609\" height=\"614\" src=\"https:\/\/docs.theironnetwork.org\/reactify\/wp-content\/uploads\/sites\/4\/2019\/09\/googlrfonts.png\" alt=\"\" class=\"wp-image-143\" srcset=\"https:\/\/docs.theironnetwork.org\/reactify\/wp-content\/uploads\/sites\/4\/2019\/09\/googlrfonts.png 609w, https:\/\/docs.theironnetwork.org\/reactify\/wp-content\/uploads\/sites\/4\/2019\/09\/googlrfonts-150x150.png 150w, https:\/\/docs.theironnetwork.org\/reactify\/wp-content\/uploads\/sites\/4\/2019\/09\/googlrfonts-298x300.png 298w\" sizes=\"(max-width: 609px) 100vw, 609px\" \/><\/figure><\/div>\n\n\n\n<p>Paste the embed code in <code>index.html<\/code> file under the <code>public<\/code> folder.<\/p>\n\n\n\n<p>Make sure to copy the embed code in the <code>head<\/code> tag of the <code>index.html<\/code> file.<\/p>\n\n\n\n<p><strong>Step 2:<\/strong> Now open the <code>_bootstrap.override.scss<\/code> file and paste the font family in the variable <code>$font-family-base<\/code> like:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$font-family-sans-serif: 'Heebo', sans-serif;<\/pre>\n\n\n\n<h3 id=\"customizing-the-existing-font\">Customizing the existing font<a href=\"#customizing-the-existing-font\"><\/a><\/h3>\n\n\n\n<p>This all you need to use a new font in the template.<\/p>\n\n\n\n<p>If you want to make the customizations in the existing font then you can change the variables defined below:<\/p>\n\n\n\n<p>Change the font family and font size in <code>_app.variables.scss<\/code> file._bootstrap.override.scss<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"> \/\/ stylelint-enable value-keyword-case_app.variables.scss<br> <br>$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-light:               300 !default;<br>$font-weight-normal:              400 !default;<br>$font-weight-bold:                700 !default;<br> <br>$font-weight-base:                $font-weight-normal !default;<br>$line-height-base:                1.5 !default; <\/pre>\n\n\n\n<p>All the above customizations like Theme color, Text color &amp; Heading are done in the same file i.e. <code>_bootstrap-override.scss<\/code><\/p>\n\n\n\n<p>For other customizations like Gradient color, side bar, content block, header styling, main container &amp; fonts can be done in<code>_app-variables.scss<\/code> file under the same directory i.e. <code>src-&gt;assets-&gt;scss<\/code>.<\/p>\n\n\n\n<h4 id=\"gradient-colors\">Gradient Colors<a href=\"#gradient-colors\"><\/a><\/h4>\n\n\n\n<p>If you want to use gradient colors then use these variables with basic values.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/\/ Gradient Theme Color<br> <br>$sidebar-dark-gradient:            linear-gradient(0deg, #464D69 0%, rgba(70, 77, 105, 1) 100%);<br>$sidebar-dark:                     #2E3344;<br>$overlay-light:                    rgb(255,255,255);<br>$gradient-primary:                 linear-gradient(180deg, #5D92F4 0%, #09203F 100%); \/\/ Primary<br>$gradient-purple:                  linear-gradient(0deg, #F53844 0%, #42378F 100%); \/\/ Purple<br>$gradient-success:                 linear-gradient(180deg, #00D0BD 0%, #007ADF 100%); \/\/ Success<br>$gradient-warning:                 linear-gradient(0deg, #B02E0C 0%, #FFB70F 100%); \/\/ warning<br>$gradient-danger:                  linear-gradient(0deg, #B02E0C 0%, #FFB70F 100%);\/\/ danger <\/pre>\n\n\n\n<h4 id=\"sidebar-customization\">Sidebar Customization<a href=\"#sidebar-customization\"><\/a><\/h4>\n\n\n\n<p>You can change all properties of the sidebar from the given variables.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/\/ Sidebar Variable<br> <br>$sidebar-width:                   16.25rem; \/\/280px;<br>$sidebar-box-shadow:              none;<br> <br>$sidebar-link-fontsize:           1rem; \/\/14px<br>$sidebar-link-font-weight:        400;<br>$sidebar-link-font-color:         $gray-900;<br>$sidebar-link-transform:          capitalize;<br>$sidebar-link-spacing:            0.9375rem 2rem; \/\/15px 40px;<br> <br>$sidebar-icon-font-size:          1rem; \/\/14px;<br> <br>$sidebar-hover-bg:                rgba(0,0,0,0.22);<br>$sidebar-hover-color:             $white;<br> <br>$sidebar-submenu-font-size:       1rem; \/\/14px<br>$sidebar-submenu-font-color:      $gray-900;<br>$sidebar-submenu-spacing:         0.9375rem 2.5rem 0.9375rem 4.375rem;<br> <br>\/\/ Mini Sidebar Variable<br> <br>$mini-sidebar-width:              85px; <\/pre>\n\n\n\n<h4 id=\"content-block\">Content Block<a href=\"#content-block\"><\/a><\/h4>\n\n\n\n<p>Customise your main block settings with help of the following variables.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/\/ Block Settings<br> <br>$block-bg:                       $white;<br>$block-border-radius:            5px;<br>$block-border:                   none;<br>$block-spacing:                  1.25rem 1.25rem; \/\/20px 20px;<br>$block-shadow:                   0 1px 15px 1px rgba(69,65,78,0.08);<br>$block-hover-shadow:             0 1px 15px 1px rgba(69,65,78,0.08);<br>$block-margin-bottom:            $grid-gutter-width; \/\/24px<br>$block-transition:               all 0.4s ease-in-out 0s;<br> <br>$block-title-color:              $gray-900;<br>$block-title-spacing:            0.9375rem 1.25rem; \/\/15px 20px;<br>$block-title-font-size:          1rem; \/\/16px<br>$block-title-font-weight:        500;<br>$block-title-transform:          capitalize;<br> <br>$block-contextual-color:         $gray-600;<br>$block-contextual-font-size:     1rem;<br> <br>$block-footer-border-width:      1px;<br>$block-footer-border-color:      $gray-300; <\/pre>\n\n\n\n<h4 id=\"header-styling\">Header Styling<a href=\"#header-styling\"><\/a><\/h4>\n\n\n\n<p>Customise your header styling with help of the following variables.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/\/ Navbar Varibale<br> <br>$navbar-height:                   4rem; \/\/80px;<br>$navbar-bg:                       $white;<br>$hamburger-icon-color:            $gray-600;<br>$navbar-icon-height:              35px;<br>$navbar-icon-width:               35px;<br>$navbar-link-color:               $white; <\/pre>\n\n\n\n<h4 id=\"footer-styling\">Footer Styling<a href=\"#footer-styling\"><\/a><\/h4>\n\n\n\n<p>Customise your footer styling with help of the following variables.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/\/ Footer Variable<br> <br>$footer-height:                   50px;<br>$footer-bg:                       $navbar-bg;<br>$footer-box-shadow:               none; <\/pre>\n\n\n\n<h4 id=\"changing-color-values-for-charts-and-map\">Changing Color Values For Charts And Map<a href=\"#changing-color-values-for-charts-and-map\"><\/a><\/h4>\n\n\n\n<p>You can change the color of charts and maps from the <code>src-&gt;constants-&gt;chart-config.js<\/code> file.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/**<br> Change all chart colors<br> *\/<br> import AppConfig from '.\/AppConfig'; <br> const { primary, info, danger, success, warning, purple, secondary, yellow, white, greyLighten, grey } = AppConfig.themeColors;<br> const ChartConfig = {<br>   color: {<br>     'primary': primary,<br>     'info': info,<br>     'warning': warning,<br>     'danger': danger,<br>     'success': success,<br>     'default': '#DEE4E8',<br>     'purple': purple,<br>     'secondary': secondary,<br>     'yellow': yellow,<br>     'white': '#FFFFFF',<br>     'dark': white,<br>     'greyLighten': greyLighten,<br>     'grey': grey<br>   },<br>   legendFontColor: '#AAAEB3', \/\/ only works on react chart js 2<br>   chartGridColor: '#EAEAEA',<br>   axesColor: '#657786',<br>   shadowColor: 'rgba(0,0,0,0.6)'<br> }<br> \/\/ Tooltip Styles<br> export const tooltipStyle = {<br>   backgroundColor: 'rgba(0,0,0,0.6)',<br>   border: '1px solid rgba(0,0,0,0.6)',<br>   borderRadius: '5px'<br> }<br> export const tooltipTextStyle = {<br>   color: '#FFF',<br>   fontSize: '12px',<br>   paddingTop: '5px',<br>   paddingBottom: '5px',<br>   lineHeight: '1'<br> }<br> export default ChartConfig;<\/pre>\n\n\n\n<p><br><\/p>\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=\"142\" 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\">1    <\/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=\"142\" 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>Changing Default Variables: Open src-&gt;assests-&gt;scss-&gt;_bootstrap-override.scss file and change style variable values as per your requirement. Change Theme Colors You can change the theme colors using the given style variables. \/\/App Background Scale $blue: #5C6AC4 !default; \/\/Manage Primary Color$cyan: #47C1BF !default; \/\/Manage Info Color$green: #50B83C !default; \/\/Manage Success Color$yellow: #F49342 !default; \/\/Manage Warning Color$red: #DE3618 !default; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":35,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/docs.theironnetwork.org\/reactify\/wp-json\/wp\/v2\/pages\/142"}],"collection":[{"href":"https:\/\/docs.theironnetwork.org\/reactify\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/docs.theironnetwork.org\/reactify\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/docs.theironnetwork.org\/reactify\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.theironnetwork.org\/reactify\/wp-json\/wp\/v2\/comments?post=142"}],"version-history":[{"count":11,"href":"https:\/\/docs.theironnetwork.org\/reactify\/wp-json\/wp\/v2\/pages\/142\/revisions"}],"predecessor-version":[{"id":733,"href":"https:\/\/docs.theironnetwork.org\/reactify\/wp-json\/wp\/v2\/pages\/142\/revisions\/733"}],"wp:attachment":[{"href":"https:\/\/docs.theironnetwork.org\/reactify\/wp-json\/wp\/v2\/media?parent=142"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}