Get 2024 Templates Mega Bundle!$1000 worth of 19 Bootstrap HTML, Vue & React Templates + 3 Vector Sets for just $99
Get for 99$

Which background color is this? Demo1-Html


Hi, I am trying to apply the same background used in the content section, but I can't find the name of the variable. Tried with bg-light, and it works on light mode, but in dark mode is not the same, attached an image as a reference:

<img src="https://i.imgur.com/zUGLxeD.png" />

Thanks in advance


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (5)


Found it...

To apply that same background and its dark behavior, to another element i.e. a div, just add:


<div st.y.le="background-color: var(--kt-app-bg-color);">



Hi,

Yes, you can use any css variable at the HTML level. To check all available CSS variables you can use Chrome Code Inspector and just select the root HTML tag to get a full list of CSS variables.

Regards.



Hi,

Sorry for the misunderstanding. Please refer to the below variables in src/sass/layout/_variables.custom.scss


//
// Variables
//

// Reboot
$app-bg-color: #f5f8fa;
$app-bg-color-dark: #151521;


Then recompile your assets folder with Gulp or Webpack.

Please note that the build tools are required only in the development environment just to compile the assets when the source folder files are modified. In the hosting/server deployment, you will only need the compile assets, no need to install the build tools dependencies there.

Regards.



Hi,

Please try to just remove the bg-body class from the button to have a button with no background.

if you need any further help please let us know.

Regards.



I never mentioned any "button" in my question. I guess you replied another topic here sad
I am looking for the name of the variable of that background inside the red square I drawed it, to apply that background to another element.


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(