title: How to refer xml style from Jetpack Compose Modifier?
body: <p>How do I reference a resource style from Compose widget?</p>
  <p><code>styles.xml</code></p>
  <pre class="lang-xml prettyprint-override"><code>&lt;style name=&quot;Style.Monet.TextView.HeaderSubtext&quot; parent=&quot;Widget.AppCompat.TextView&quot;&gt;
      &lt;item name=&quot;android:textColor&quot;&gt;#737373&lt;/item&gt;
      &lt;item name=&quot;android:textSize&quot;&gt;12sp&lt;/item&gt;
      &lt;item name=&quot;android:layout_marginStart&quot;&gt;16dp&lt;/item&gt;
      &lt;item name=&quot;android:layout_marginBottom&quot;&gt;16dp&lt;/item&gt;
      &lt;item name=&quot;android:layout_marginEnd&quot;&gt;24dp&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  <p><code>MyComponent.kt</code></p>
  <pre class="lang-kotlin prettyprint-override"><code>Text(text = &quot;June 2021&quot;, style = TextStyle(R.style.Style_TextView_HeaderSubtext))
  </code></pre>
  <p>But this doesn't work. Is there a way to make this work?</p>