<?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: Makoto Tateno</title>
    <description>The latest articles on DEV Community by Makoto Tateno (@makotot).</description>
    <link>https://dev.to/makotot</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F26920%2F96ee716d-cfa0-497c-8689-332c0e1dbf5a.jpeg</url>
      <title>DEV Community: Makoto Tateno</title>
      <link>https://dev.to/makotot</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/makotot"/>
    <language>en</language>
    <item>
      <title>Introducing Undecorated: Collection of reusable layout pattern of CSS and styled-components</title>
      <dc:creator>Makoto Tateno</dc:creator>
      <pubDate>Sat, 12 Oct 2019 13:07:34 +0000</pubDate>
      <link>https://dev.to/makotot/introducing-undecorated-collection-of-reusable-layout-pattern-of-css-and-styled-components-2jnc</link>
      <guid>https://dev.to/makotot/introducing-undecorated-collection-of-reusable-layout-pattern-of-css-and-styled-components-2jnc</guid>
      <description>&lt;p&gt;Introducing new project called Undecorated. This is available at &lt;a href="https://makotot.github.io/undecorated/"&gt;https://makotot.github.io/undecorated/&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;I made Undecorated mainly for the following two purposes.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;To be able to browse a variety of reusable CSS layout patterns  and make them available for instant copy and paste.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Just import it with &lt;a href="https://www.npmjs.com/package/undecorated"&gt;npm&lt;/a&gt; so that you can create the layout you want.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;There are multiple sites that list layout patterns in grid and sites that introduce layout patterns in flexbox, but  I could not find any sites that could view various layout patterns (regardless of properties such as flexbox, grid, table, etc) .&lt;br&gt;
So I wanted to create a site where I could browse various CSS layout patterns.&lt;/p&gt;

&lt;p&gt;In addition, I want to make those layout patterns available anywhere just by &lt;code&gt;import&lt;/code&gt;(&lt;br&gt;
For now with &lt;a href="https://www.styled-components.com/"&gt;styled-components&lt;/a&gt;).&lt;br&gt;
For example, if you want to center an element vertically and horizontally, you can do it by just following.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight jsx"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;Centered&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;undecorated&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;

&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;Centered&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;SomethingYouWantToCenter&lt;/span&gt; &lt;span class="p"&gt;/&amp;gt;&lt;/span&gt;
&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="err"&gt;/&lt;/span&gt;&lt;span class="nc"&gt;Centered&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;&lt;iframe src="https://codesandbox.io/embed/centered-with-flexbox-6jqsq"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;Unlike the existing flexbox and grid utility libraries that leave the layout to the user, it only provides patterns that achieve a specific CSS layout.&lt;/p&gt;

&lt;p&gt;The source code is on &lt;a href="https://github.com/makotot/undecorated"&gt;Github&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>css</category>
      <category>styledcomponents</category>
      <category>layout</category>
    </item>
  </channel>
</rss>
