title: Style slot elements from parent component
body: <p>I would like to have a component apply certain styles to the elements that get passed in the <em>slot</em> property.</p>
  
  <p>Example:</p>
  
  <p><strong>Component.svelte</strong></p>
  
  <pre><code>&lt;style&gt;
    h1 { color: blue }
    p { color: grey }
  &lt;/style&gt;
  
  &lt;div&gt;
    &lt;slot&gt;&lt;/slot&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>Then, we would include the element</strong></p>
  
  <pre><code>&lt;script&gt;
    include Component from './component.svelte'
  &lt;/script&gt;
  
  &lt;Component&gt;
    &lt;h1&gt;My component&lt;/h1&gt;
    &lt;p&gt;Lorum Ipsum&lt;/p&gt;
  &lt;/Component&gt;
  </code></pre>
  
  <p>And the result would be:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>h1 { color: blue }
  p { color: grey }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div&gt;
    &lt;h1&gt;My component&lt;/h1&gt;
    &lt;p&gt;Lorum Ipsum&lt;/p&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>