title: Wordpress Customizer inline css to css file
body: <p>I am busy with the Customizer from WordPress and that is working fine i only getting the output of the css in the style tags (inline) and i want it in the customizer.css file.</p>
  
  <p>Does somebody know how i can add the CSS into the customizer.css?</p>
  
  <pre><code>&lt;?php
      function customizerCSS() {
          wp_enqueue_style('custom-style', get_template_directory_uri() . '/customizer.css');
  
          $color = fw_get_db_customizer_option('body_background');
  
          $custom_css = '
                  html, body {
                          background-color : ' . $color . ';
                  }';
          wp_add_inline_style('custom-style', $custom_css );
      }
      add_action( 'wp_enqueue_scripts', 'customizerCSS' );
   ?&gt;
  </code></pre>