{"id":96,"date":"2019-10-07T11:48:36","date_gmt":"2019-10-07T11:48:36","guid":{"rendered":"https:\/\/docs.theironnetwork.org\/embryo\/?page_id=96"},"modified":"2019-10-15T09:49:58","modified_gmt":"2019-10-15T09:49:58","slug":"style-customization-2","status":"publish","type":"page","link":"https:\/\/docs.theironnetwork.org\/embryo\/style-customization-2\/","title":{"rendered":"Style Customization"},"content":{"rendered":"\n<h4 id=\"changing-default-variables\"><strong>Changing Default Variables<\/strong><\/h4>\n\n\n\n<p>Open <code>_variables.scss<\/code> file under the <code>src-&gt;assets-&gt;scss<\/code> folder and change style variable values as per your requirement.\u200c<\/p>\n\n\n\n<h5 id=\"change-theme-colors\"><strong>Change Theme Colors<\/strong><\/h5>\n\n\n\n<p>Theme colors in the template is managed in two steps:\u200c<\/p>\n\n\n\n<p>First you need to change the colour code in the <code>src-&gt;themes-&gt;primaryTheme.js<\/code> file to reflect the changes in the components of material-ui:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/**<br> * App Light Theme<br> *\/<br>import { createMuiTheme } from '@material-ui\/core\/styles';<br> <br>const theme = createMuiTheme({<br>   palette: {<br>      primary: {<br>         main: '#26348F' \/\/ Change this color code<br>      },<br>      secondary: {<br>         main: '#FF5722' \/\/ Change this color code <br>      }<br>   }<br>});<br> <br>export default theme;<br>\u200c<br><\/pre>\n\n\n\n<p>\u200cSecond you need to change the colour code in the <code>_variables.scss<\/code> file to reflect the changes in the whole theme :<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/\/Theme default colors:-<br>$primary: #26348F; \/\/Manage Primary Color<br>$secondary:rgba(0, 0, 0, 0.54); \/\/Manage text Color<br>\u200b<br>$success: #28a745; \/\/Manage Success Color<br>$danger:#DE3F3F; \/\/Manage Danger Color<br>$warning:#ffc107; \/\/Manage Warning Color<br>$info:#17a2b8; \/\/Manage Info Color<br>\u200b<br>$transparent:transparent;<br>$dark-grey:rgba(0, 0, 0, 0.7); \/\/Manage text Color<br>$dark:rgba(0, 0, 0, 0.87); \/\/Manage text Color<br>\u200b<br>$active:#FF5722; \/\/Manage secondary Color<br>$black:#000000;<br>$black-light:#212121;<br>\u200b<br>$base:#fff;<br>$grey:#f3f3f4;<br>$border:#eceeef;<br><\/pre>\n\n\n\n<h5 id=\"change-font-family\"><strong>Change Font Family <\/strong><\/h5>\n\n\n\n<p>To change app font-family go to <code>variables.scss<\/code> file and change following values.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/font-family:-<br> <br>$roboto:'Roboto', sans-serif;<\/pre>\n\n\n\n<h5>Change Font Weight <\/h5>\n\n\n\n<pre class=\"wp-block-preformatted\">\/\/font-weight:-<br>$font-weight-light:300 !default;<br>$font-weight-base: 400 !default;<br>$font-weight-medium: 500 !default;<br>$font-weight-bold: 700 !default;<br>$font-weight-italic:italic;<\/pre>\n\n\n\n<h5 id=\"change-typography\"><strong>Change Typography <\/strong><\/h5>\n\n\n\n<pre class=\"wp-block-preformatted\">\/\/body style:-<br>$body-bg:$grey;<br>$body-color:$dark;<br>$font-size-body:1rem !default;\/\/16px<br>$line-height:1.5rem !default;\/\/24px<br>\u200b<br>\/\/heading font sizes:-<br>$font-size-h1: 3.25rem !default;\/\/52px<br>$font-size-h2: 2.813rem !default;\/\/45px<br>$font-size-h3: 2.125rem !default;\/\/34px<br>$font-size-h4: 1.5rem !default;\/\/24px<br>$font-size-h5: 1.25rem !default;\/\/20px<br>$font-size-h6: 1rem !default;\/\/16px<br>\u200b<br>\/\/heading line-height :-<br>$line-height-h1:3.75rem !default;\/\/60px<br>$line-height-h2:3rem !default;\/\/48px<br>$line-height-h3:2.5rem !default;\/\/40px<br>$line-height-h4:2rem !default;\/\/32px<br>$line-height-h5:1.75rem !default;\/\/28px<br>$line-height-h6:1.5rem !default;\/\/24px<br>\u200b<br>\/\/heading font color:-<br>$h1-font-color:$dark !default;\/\/black<br>$h2-font-color:$dark !default;\/\/black<br>$h3-font-color:$dark !default;\/\/black<br>$h4-font-color:$dark !default;\/\/black<br>$h5-font-color:$dark !default;\/\/black<br>$h6-font-color:$dark !default;\/\/black<br>\u200b<br>\/\/paragraph :-<br>$font-size-p:0.875rem !default;\/\/14px<br>$line-height-p:1.25rem !default;\/\/20px<br>$font-color-p:$dark-grey;<br>\u200b<br>\/\/box-shadow<br>$box-shadow:0 1px 1px 0 rgba(0,0,0,0.14), <br>0 2px 1px -1px rgba(0,0,0,0.12),<br> 0 1px 3px 0 rgba(0,0,0,0.2);<\/pre>\n\n\n\n<h5>Change PageTitle Style <\/h5>\n\n\n\n<pre class=\"wp-block-preformatted\">\/\/Page Title<br>$page-title-bg-image:url(\"..\/..\/assets\/images\/page-title-bar.jpg\");<br>$page-title-padding:7rem 0;<br>$page-title-color:$base;<\/pre>\n\n\n\n<h5>Change spacers <\/h5>\n\n\n\n<pre class=\"wp-block-preformatted\">\/\/ Spacing<br>\/\/ You can add more entries to the $spacers map, should you need more variation.<br>$spacer: 1rem !default;<br>$spacers: () !default;<br>\/\/ stylelint-disable-next-line scss\/dollar-variable-default<br>$spacers: map-merge((<br>        0: 0,<br>        5: ($spacer * .3125),<br>        10: ($spacer * .625),<br>        15: ($spacer * .9375),<br>        20: ($spacer * 1.25),<br>        25: ($spacer * 1.5625),<br>        30: ($spacer * 1.875),<br>        40: ($spacer * 2.5),<br>        50: ($spacer * 3.125),<br>        60: ($spacer * 3.75)<br>  ),<br>        $spacers<br>);<br>\u200c<br><\/pre>\n\n\n\n<h5>\u200cChange Breakpoints <\/h5>\n\n\n\n<pre class=\"wp-block-preformatted\">\/\/ Grid breakpoints<br>\/\/ Define the minimum dimensions at which your layout will change,<br>\/\/ adapting to different screen sizes, for use in media queries.<br>\u200b<br>$grid-breakpoints: (<br>        xs: 0,<br>        sm: 600px,<br>        md: 960px,<br>        lg: 1280px,<br>        xl: 1920px<br>) !default;<\/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=\"96\" 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=\"96\" 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 _variables.scss file under the src-&gt;assets-&gt;scss folder and change style variable values as per your requirement.\u200c Change Theme Colors Theme colors in the template is managed in two steps:\u200c First you need to change the colour code in the src-&gt;themes-&gt;primaryTheme.js file to reflect the changes in the components of material-ui: \/** * [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":16,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/docs.theironnetwork.org\/embryo\/wp-json\/wp\/v2\/pages\/96"}],"collection":[{"href":"https:\/\/docs.theironnetwork.org\/embryo\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/docs.theironnetwork.org\/embryo\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/docs.theironnetwork.org\/embryo\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.theironnetwork.org\/embryo\/wp-json\/wp\/v2\/comments?post=96"}],"version-history":[{"count":6,"href":"https:\/\/docs.theironnetwork.org\/embryo\/wp-json\/wp\/v2\/pages\/96\/revisions"}],"predecessor-version":[{"id":295,"href":"https:\/\/docs.theironnetwork.org\/embryo\/wp-json\/wp\/v2\/pages\/96\/revisions\/295"}],"wp:attachment":[{"href":"https:\/\/docs.theironnetwork.org\/embryo\/wp-json\/wp\/v2\/media?parent=96"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}