<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Ui on David Lang</title>
    <link>https://www.davidlang.tech/tags/ui/</link>
    <description>Recent content in Ui on David Lang</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Fri, 05 Mar 2021 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://www.davidlang.tech/tags/ui/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Tailwind CSS: Rapid UI Development</title>
      <link>https://www.davidlang.tech/posts/tailwind-css-rapid-ui-development/</link>
      <pubDate>Fri, 05 Mar 2021 00:00:00 +0000</pubDate>
      <guid>https://www.davidlang.tech/posts/tailwind-css-rapid-ui-development/</guid>
      <description>&lt;p&gt;Tailwind CSS is a utility-first framework-you compose designs from small classes in markup instead of writing custom CSS files for every component.&lt;/p&gt;&#xA;&lt;h2 id=&#34;why-teams-adopt-tailwind&#34;&gt;Why Teams Adopt Tailwind&lt;/h2&gt;&#xA;&lt;p&gt;Development speed increases when you do not context-switch between JSX and separate stylesheets. Design tokens (spacing, colors, typography) stay consistent through configuration. PurgeCSS removes unused classes in production builds.&lt;/p&gt;&#xA;&lt;h2 id=&#34;example-component&#34;&gt;Example Component&lt;/h2&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#93a1a1;background-color:#002b36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-jsx&#34; data-lang=&#34;jsx&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#268bd2&#34;&gt;function&lt;/span&gt; Card({ title, children }) {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#719e07&#34;&gt;return&lt;/span&gt; (&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &amp;lt;&lt;span style=&#34;color:#268bd2&#34;&gt;div&lt;/span&gt; className&lt;span style=&#34;color:#719e07&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#2aa198&#34;&gt;&amp;#34;rounded-lg border border-gray-200 bg-white p-6 shadow-sm hover:shadow-md transition-shadow&amp;#34;&lt;/span&gt;&amp;gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &amp;lt;&lt;span style=&#34;color:#268bd2&#34;&gt;h2&lt;/span&gt; className&lt;span style=&#34;color:#719e07&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#2aa198&#34;&gt;&amp;#34;text-lg font-semibold text-gray-900&amp;#34;&lt;/span&gt;&amp;gt;{title}&amp;lt;/&lt;span style=&#34;color:#268bd2&#34;&gt;h2&lt;/span&gt;&amp;gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &amp;lt;&lt;span style=&#34;color:#268bd2&#34;&gt;div&lt;/span&gt; className&lt;span style=&#34;color:#719e07&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#2aa198&#34;&gt;&amp;#34;mt-2 text-gray-600&amp;#34;&lt;/span&gt;&amp;gt;{children}&amp;lt;/&lt;span style=&#34;color:#268bd2&#34;&gt;div&lt;/span&gt;&amp;gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &amp;lt;/&lt;span style=&#34;color:#268bd2&#34;&gt;div&lt;/span&gt;&amp;gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  );&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;}&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&#34;customizing-the-theme&#34;&gt;Customizing the Theme&lt;/h2&gt;&#xA;&lt;p&gt;Extend &lt;code&gt;tailwind.config.js&lt;/code&gt; with brand colors and fonts. Use &lt;code&gt;@apply&lt;/code&gt; sparingly in CSS modules for repeated patterns.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
