Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

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
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • 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
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(