<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: tmanhkha</title>
    <description>The latest articles on DEV Community by tmanhkha (@tmanhkha).</description>
    <link>https://dev.to/tmanhkha</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F225927%2F9a27db8f-84cf-4a8e-b0e7-3d6f9407681d.png</url>
      <title>DEV Community: tmanhkha</title>
      <link>https://dev.to/tmanhkha</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tmanhkha"/>
    <language>en</language>
    <item>
      <title>UikitRails — Rails UI you copy in, not lock in</title>
      <dc:creator>tmanhkha</dc:creator>
      <pubDate>Sat, 21 Mar 2026 18:39:22 +0000</pubDate>
      <link>https://dev.to/tmanhkha/uikitrails-rails-ui-you-copy-in-not-lock-in-47gf</link>
      <guid>https://dev.to/tmanhkha/uikitrails-rails-ui-you-copy-in-not-lock-in-47gf</guid>
      <description>&lt;p&gt;Like shadcn for Rails: generators drop ViewComponents + ERB + plain CSS into your app. You edit the files; the gem is mainly installers + an optional &lt;code&gt;/ui&lt;/code&gt; styleguide.&lt;/p&gt;

&lt;p&gt;Why bother&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Your code — components live under &lt;code&gt;app/components&lt;/code&gt; and &lt;code&gt;app/assets&lt;/code&gt;, not inside a gem you can’t edit.&lt;/li&gt;
&lt;li&gt;Plain CSS — design tokens, no Tailwind required.&lt;/li&gt;
&lt;li&gt;Dark mode — add &lt;code&gt;.dark&lt;/code&gt; on html or body.&lt;/li&gt;
&lt;li&gt;Optional styleguide — mount … =&amp;gt; &lt;code&gt;/ui&lt;/code&gt; for live previews and copy-paste snippets.&lt;/li&gt;
&lt;li&gt;Optional forms — &lt;code&gt;Ui::Form::Builder&lt;/code&gt; keeps fields aligned with standalone components.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;bundle add uikit_rails
bin/rails generate uikit_rails:install
bin/rails generate uikit_rails:add button card
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight erb"&gt;&lt;code&gt;&lt;span class="cp"&gt;&amp;lt;%=&lt;/span&gt; &lt;span class="n"&gt;render&lt;/span&gt; &lt;span class="no"&gt;Ui&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="no"&gt;Button&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="no"&gt;Component&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;new&lt;/span&gt; &lt;span class="k"&gt;do&lt;/span&gt; &lt;span class="cp"&gt;%&amp;gt;&lt;/span&gt;Click me&lt;span class="cp"&gt;&amp;lt;%&lt;/span&gt; &lt;span class="k"&gt;end&lt;/span&gt; &lt;span class="cp"&gt;%&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Mounts UikitRails styleguide engine at &lt;code&gt;/ui&lt;/code&gt; so you can preview and copy code for installed components.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight ruby"&gt;&lt;code&gt;&lt;span class="n"&gt;mount&lt;/span&gt; &lt;span class="no"&gt;UikitRails&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="no"&gt;Engine&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="s2"&gt;"/ui"&lt;/span&gt;  &lt;span class="c1"&gt;# optional&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8iw6kka2wieosygobdqc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8iw6kka2wieosygobdqc.png" alt=" " width="800" height="438"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Github: &lt;a href="https://github.com/kha-wogi/uikit_rails" rel="noopener noreferrer"&gt;https://github.com/kha-wogi/uikit_rails&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ruby</category>
      <category>rails</category>
      <category>ui</category>
    </item>
  </channel>
</rss>
