<turbo-stream action="append" target="posts_list"><template>    <div class="postbit" id="243231" data-post-id="243231">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="silverdr" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/silverdr/120/23771_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  silverdr
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Now that I am now <em>mostly</em> done with migration to 1.6.x. I’ll have to return to this so I’ll get back to you too <img src="https://forum.elixirforum.com/images/emoji/apple/wink.png?v=15" title=":wink:" class="emoji" alt=":wink:" loading="lazy" width="20" height="20"></p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="243231" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/anyone-successfully-integrated-svelte-into-phoenix-1-6-x-esbuild/44151/22">Post #21</a>
	                </div>
	            </div>
              <div id="likers-container-243231" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="243231"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #21"></div>
  </section>
</div>
    <div class="postbit" id="243232" data-post-id="243232">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="silverdr" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/silverdr/120/23771_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  silverdr
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Close to successful migration to 1.6.x. What I am also very happy about is that I found:</p>
<aside class="onebox githubrepo" data-onebox-src="https://github.com/phoenixframework/tailwind">
  <header class="source">

      <a href="https://github.com/phoenixframework/tailwind" target="_blank" rel="noopener nofollow ugc">github.com</a>
  </header>

  <article class="onebox-body">
    <div class="github-row" data-github-private-repo="false">
  <img width="690" height="344" src="https://opengraph.githubassets.com/daf7eede5891fd4615012fdc89fb3443/phoenixframework/tailwind" class="thumbnail">

  <h3><a href="https://github.com/phoenixframework/tailwind" target="_blank" rel="noopener nofollow ugc">GitHub - phoenixframework/tailwind: An installer for tailwind</a></h3>

    <p><span class="github-repo-description">An installer for tailwind</span></p>
</div>

  </article>

  <div class="onebox-metadata">
    
    
  </div>

  <div style="clear: both"></div>
</aside>

<p>which allows the project to be both webpack and node.js cancer-free <img src="https://forum.elixirforum.com/images/emoji/apple/wink.png?v=15" title=":wink:" class="emoji" alt=":wink:" loading="lazy" width="20" height="20"></p>
<p>But… now it’s time to get back to Svelte components, which are used in some places, and that most probably means that “Revenge Of Node_Modules” is coming…</p>
<p>Or maybe somebody thought out a way to get Svelte into Phoenix w/o node?</p>
<p>I understand it might be more tricky than Tailwind, but maybe?</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="243232" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/anyone-successfully-integrated-svelte-into-phoenix-1-6-x-esbuild/44151/23">Post #22</a>
	                </div>
	            </div>
              <div id="likers-container-243232" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="243232"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #22"></div>
  </section>
</div>
    <div class="postbit" id="243352" data-post-id="243352">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="silverdr" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/silverdr/120/23771_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  silverdr
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>I wrote a short blog post about it:</p>
<aside class="onebox allowlistedgeneric" data-onebox-src="https://silverdrs.wordpress.com/2022/02/17/rendering-svelte-components-in-phoenix-templates/">
  <header class="source">
      <img src="https://s1.wp.com/i/favicon.ico?m=1713425267i" class="site-icon" alt="" width="48" height="48">

      <a href="https://silverdrs.wordpress.com/2022/02/17/rendering-svelte-components-in-phoenix-templates/" target="_blank" rel="noopener nofollow ugc" title="01:10PM - 17 February 2022">Silver Dream !'s – 17 Feb 22</a>
  </header>

  <article class="onebox-body">
    <div class="aspect-image" style="--aspect-ratio:387/158;"><img src="https://silverdrs.files.wordpress.com/2022/02/screenshot-2022-02-17-at-12.13.41.png?w=387&amp;fit=440%2C330" class="thumbnail" alt="" width="387" height="158"></div>

<h3><a href="https://silverdrs.wordpress.com/2022/02/17/rendering-svelte-components-in-phoenix-templates/" target="_blank" rel="noopener nofollow ugc">Rendering Svelte components in Phoenix templates</a></h3>

  <p>In case you don’t know what Svelte is, it’s probably the first thing ever in the node-js-is-a-cancer world that actually makes some sense, rather than just being the future, man! Right,…</p>


  </article>

  <div class="onebox-metadata">
    
    
  </div>

  <div style="clear: both"></div>
</aside>
 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="243352" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/anyone-successfully-integrated-svelte-into-phoenix-1-6-x-esbuild/44151/24">Post #23</a>
	                </div>
	            </div>
              <div id="likers-container-243352" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="243352"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #23"></div>
  </section>
</div>
    <div class="postbit" id="243395" data-post-id="243395">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="silverdr" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/silverdr/120/23771_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  silverdr
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p><a class="mention" href="/u/yendrisrogelio" rel="nofollow">@yendrisrogelio</a> I managed to get basic functionality working now. The issue, which your example repository does not tackle is Svelte components’ internal CSS styles. CSS for component’s markup works only as long as you put tailwind classes directly. IOW words this works:</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">&lt;script&gt;
  console.log("test");
&lt;/script&gt;

&lt;h1 class="text-red-500 text-5xl font-bold text-center"&gt;Tailwind CSS 4444&lt;/h1&gt;
</code></pre>
<p>but this does not:</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">&lt;script&gt;
  console.log("test");
&lt;/script&gt;

&lt;style&gt;
	h1 {
		@apply text-blue-700;
	}
&lt;/style&gt;

&lt;h1 class="text-5xl font-bold text-center"&gt;Tailwind CSS 4444&lt;/h1&gt;
</code></pre>
<p>Even though it worked with the old build system.</p>
<p>Any chances for you to have a look at it and maybe come up with a solution?</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="243395" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/anyone-successfully-integrated-svelte-into-phoenix-1-6-x-esbuild/44151/25">Post #24</a>
	                </div>
	            </div>
              <div id="likers-container-243395" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="243395"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #24"></div>
  </section>
</div>
    <div class="postbit" id="243567" data-post-id="243567">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="yendrisrogelio" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/yendrisrogelio/120/9260_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  yendrisrogelio
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Sorry for the late reply but I’ve been busy with work. The problem you have is the following, you are trying to apply postcss directives inside the styles of svelte. So that svelte can understand it you need to install svelte-preprocess to your dependencies <code>cd assets &amp;&amp; npm i svelte-preprocess</code>, then you must modify your build.js file finally being like this…</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">const esbuild = require("esbuild")
const sveltePlugin = require("esbuild-svelte")
const sveltePreprocess = require("svelte-preprocess");

const args = process.argv.slice(2)
const watch = args.includes('--watch')
const deploy = args.includes('--deploy')

let opts = {
  entryPoints: ['js/app.js'],
  bundle: true,
  target: 'es2016',
  outdir: '../priv/static/assets',
  logLevel: 'info',
  plugins: [
    sveltePlugin({
        preprocess: sveltePreprocess({
			postcss: {
				plugins: [
					require("tailwindcss"), 
					require("autoprefixer"),
				],
			},
		}),
      })
  ]
}

if (watch) {
  opts = {
    ...opts,
    watch,
    sourcemap: 'inline'
  }
}

if (deploy) {
  opts = {
    ...opts,
    minify: true
  }
}

const promise = esbuild.build(opts)

if (watch) {
  promise.then(_result =&gt; {
    process.stdin.on('close', () =&gt; {
      process.exit(0)
    })

    process.stdin.resume()
  })
}
</code></pre>
<p>So your svelte component works perfectly with tailwindcss</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">&lt;script&gt;
  console.log("test");
&lt;/script&gt;

&lt;style&gt;
	h1 {
		@apply text-blue-700;
	}
&lt;/style&gt;

&lt;h1 class="text-5xl font-bold text-center"&gt;Tailwind CSS 4444&lt;/h1&gt;
</code></pre> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="243567" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/anyone-successfully-integrated-svelte-into-phoenix-1-6-x-esbuild/44151/26">Post #25</a>
	                </div>
	            </div>
              <div id="likers-container-243567" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="243567"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #25"></div>
  </section>
</div>
    <div class="postbit" id="243582" data-post-id="243582">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="silverdr" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/silverdr/120/23771_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  silverdr
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Thank you very much for finding time to have a look and respond.</p>
<aside class="quote no-group" data-username="yendrisrogelio" data-post="26" data-topic="44151">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/yendrisrogelio/48/9260_2.png" class="avatar"> yendrisrogelio:</div>
<blockquote>
<p>The problem you have is the following, you are trying to apply postcss directives inside the styles of svelte. So that svelte can understand it you need to install svelte-preprocess to your dependencies</p>
</blockquote>
</aside>
<p>I see. And you are certainly right for this particular case. Yet I should have given a bit more context rather than simply use your demo for the example. What I have in the project is:</p>
<p>a) I already have everything needed to “compile” tailwind stuff, including all <code>@apply</code> directives (PostCSS). This comes from <a href="https://github.com/phoenixframework/tailwind" rel="noopener nofollow ugc">phoenixframework / tailwind</a>,</p>
<p>b) <code>esbuild-svelte</code> buildscript <code>build.js</code> properly processes and extracts Svelte specific stylesheet files.</p>
<p>Therefore in the perfect world <code>phoenixframework / tailwind</code> should be able to compile them and bundle the results in one go, along with everything else it already does. Still I don’t seem to get it to work, at least in a non-smelly way. Any clues?</p>
<p>The problem is that Svelte module’s specific classes don’t make it to the final bundle at all. And that’s understandable because in default configuration both output to the same destination w/o knowing about each other. I can make <code>tailwind</code> output to a different file so that it doesn’t overwrite the one that comes from Svelte but I am having hard time getting the Svelte one processed. I can’t <code>@import</code> that into <code>app.css</code> because “<span class="mention">@apply</span> is not supported within nested at-rules like <span class="mention">@import</span>”. I can’t pass it as another input to <code>tailwind</code> because</p>
<aside class="onebox githubissue" data-onebox-src="https://github.com/phoenixframework/tailwind/issues/31#issuecomment-1044890384">
  <header class="source">

      <a href="https://github.com/phoenixframework/tailwind/issues/31#issuecomment-1044890384" target="_blank" rel="noopener nofollow ugc">github.com/phoenixframework/tailwind</a>
  </header>

  <article class="onebox-body">
    <div class="github-row">
  <div class="github-icon-container" title="Issue" data-github-private-repo="false">
	  <svg width="60" height="60" class="github-icon" viewBox="0 0 14 16" aria-hidden="true"><path fill-rule="evenodd" d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"></path></svg>
  </div>

  <div class="github-info-container">
    <h4>
      <a href="https://github.com/phoenixframework/tailwind/issues/31#issuecomment-1044890384" target="_blank" rel="noopener nofollow ugc">Specify multiple input files?</a>
    </h4>

    <div class="github-info">
      <div class="date">
        opened <span class="discourse-local-date" data-format="ll" data-date="2022-02-18" data-time="13:20:42" data-timezone="UTC">01:20PM - 18 Feb 22 UTC</span>
      </div>

        <div class="date">
          closed <span class="discourse-local-date" data-format="ll" data-date="2022-02-18" data-time="17:35:20" data-timezone="UTC">05:35PM - 18 Feb 22 UTC</span>
        </div>

      <div class="user">
        <a href="https://github.com/silverdr" target="_blank" rel="noopener nofollow ugc">
          <img alt="" src="https://avatars.githubusercontent.com/u/4529686?v=4" class="onebox-avatar-inline" width="20" height="20">
          silverdr
        </a>
      </div>
    </div>

    <div class="labels">
    </div>
  </div>
</div>

  <div class="github-row">
    <p class="github-body-container">Wondering if there's a way to specify more than one input file for bundling. Add<span class="show-more-container"><a href="" rel="noopener nofollow" class="show-more">…</a></span><span class="excerpt hidden">ing more than one `--input=…` doesn't seem to do the trick.</span></p>
  </div>

  </article>

  <div class="onebox-metadata">
    
    
  </div>

  <div style="clear: both"></div>
</aside>

<p>and adding another watcher or so feels smelly.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="243582" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/anyone-successfully-integrated-svelte-into-phoenix-1-6-x-esbuild/44151/27">Post #26</a>
	                </div>
	            </div>
              <div id="likers-container-243582" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="243582"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #26"></div>
  </section>
</div>
    <div class="postbit" id="243589" data-post-id="243589">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="silverdr" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/silverdr/120/23771_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  silverdr
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Since it gets a bit of a different topic I started <a href="https://forum.elixirforum.com/t/phoenix-tailwind-and-svelte-under-one-roof/46171" rel="nofollow">another thread</a> for this</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="243589" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/anyone-successfully-integrated-svelte-into-phoenix-1-6-x-esbuild/44151/28">Post #27</a>
	                </div>
	            </div>
              <div id="likers-container-243589" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="243589"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #27"></div>
  </section>
</div>
    <div class="postbit" id="243592" data-post-id="243592">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="yendrisrogelio" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/yendrisrogelio/120/9260_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  yendrisrogelio
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Right now I don’t have much time to try a solution, but maybe you could try another way, I don’t know if it’s good for you, but maybe it could work</p>
<p>It’s best to inject all of the above into a high-level component so they’re accessible on every page. You can inject them in the <code>App.svelte</code> file:</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">&lt;script&gt;
  console.log("test");
&lt;/script&gt;

&lt;style global lang="postcss"&gt;
  @tailwind base;
  @tailwind components;
  @tailwind utilities;
  
  h1 {
		@apply text-blue-700;
	}
&lt;/style&gt;

&lt;h1 class="text-5xl font-bold text-center"&gt;Tailwind CSS 4444&lt;/h1&gt;
</code></pre>
<p>Then you would already have tailwind on all the nested components of the svelte to be used<br>
and maybe this way you avoid svelte class conflicts. I don’t know but maybe that’s how it works for you</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="243592" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/anyone-successfully-integrated-svelte-into-phoenix-1-6-x-esbuild/44151/29">Post #28</a>
	                </div>
	            </div>
              <div id="likers-container-243592" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="243592"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #28"></div>
  </section>
</div>
    <div class="postbit" id="243593" data-post-id="243593">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="yendrisrogelio" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/yendrisrogelio/120/9260_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  yendrisrogelio
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p></p><div class="lightbox-wrapper"><a class="lightbox" href="https://forum.elixirforum.com/uploads/default/original/3X/a/b/abc00ccae5caa824daaa31037defe1dd91911e01.png" data-download-href="https://forum.elixirforum.com/uploads/default/abc00ccae5caa824daaa31037defe1dd91911e01" title="sveltetw" rel="nofollow"><img src="https://forum.elixirforum.com/uploads/default/optimized/3X/a/b/abc00ccae5caa824daaa31037defe1dd91911e01_2_690x244.png" alt="sveltetw" data-base62-sha1="ovn6YSzQheYakVsitNQb29FkFPP" width="690" height="244" srcset="https://forum.elixirforum.com/uploads/default/optimized/3X/a/b/abc00ccae5caa824daaa31037defe1dd91911e01_2_690x244.png, https://forum.elixirforum.com/uploads/default/optimized/3X/a/b/abc00ccae5caa824daaa31037defe1dd91911e01_2_1035x366.png 1.5x, https://forum.elixirforum.com/uploads/default/original/3X/a/b/abc00ccae5caa824daaa31037defe1dd91911e01.png 2x" data-dominant-color="FBFAFB"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">sveltetw</span><span class="informations">1358×482 25.8 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div><br>
It works<p></p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="243593" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/anyone-successfully-integrated-svelte-into-phoenix-1-6-x-esbuild/44151/30">Post #29</a>
	                </div>
	            </div>
              <div id="likers-container-243593" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="243593"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #29"></div>
  </section>
</div>
    <div class="postbit" id="282020" data-post-id="282020">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="woutdp" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/woutdp/120/29901_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  woutdp
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>I’m the author of: <a href="https://github.com/woutdp/live_svelte" class="inline-onebox" rel="noopener nofollow ugc">GitHub - woutdp/live_svelte: Svelte inside Phoenix LiveView with seamless end-to-end reactivity · GitHub</a></p>
<p>I mostly focussed on Phoenix 1.7 but should be compatible with 1.6 <em>I think</em>.</p>
<p>It includes svelte-preprocess and tailwind with Phoenix’s built in tailwind setup. Also has SSR for Svelte components.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="282020" data-batch-url="/posts/batch_likers">
                        3
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/anyone-successfully-integrated-svelte-into-phoenix-1-6-x-esbuild/44151/31">Post #30</a>
	                </div>
	            </div>
              <div id="likers-container-282020" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="282020"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #30"></div>
  </section>
</div>
</template></turbo-stream><turbo-stream action="replace" target="load-more-container"><template><div id="load-more-container" class="load-more-container">
    <a class="load-more-button" data-turbo-stream="true" href="/topics/44151/load_more?page=4">Load more posts (1 remaining)</a>
</div></template></turbo-stream>