{"id":16789,"date":"2022-02-20T16:59:49","date_gmt":"2022-02-20T07:59:49","guid":{"rendered":"http:\/\/www.code-magagine.com\/?p=16789"},"modified":"2023-05-27T18:20:45","modified_gmt":"2023-05-27T09:20:45","slug":"%e3%80%90tailwind-css%e3%80%91%e6%a8%99%e6%ba%96%e3%81%a7%e8%aa%ad%e3%81%bf%e8%be%bc%e3%81%be%e3%82%8c%e3%82%8bcss%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6","status":"publish","type":"post","link":"http:\/\/www.code-magagine.com\/?p=16789","title":{"rendered":"\u3010Tailwind CSS\u3011\u6a19\u6e96\u3067\u8aad\u307f\u8fbc\u307e\u308c\u308bCSS\u306b\u3064\u3044\u3066"},"content":{"rendered":"<p>tailwind\u3067\u306f\u4ee5\u4e0b\u306eCSS\u3092\u8aad\u307f\u8fbc\u307e\u305b\u3066\u4f7f\u3044\u307e\u3059\u3002\u3053\u306e\u4e09\u3064\u304c\u30d9\u30fc\u30b9\u3068\u306a\u3063\u3066\u8ffd\u52a0\u304c\u5fc5\u8981\u3067\u3042\u308c\u3070\u3001\u958b\u767a\u8005\u304c\u3053\u3053\u306b\u8a2d\u5b9a\u3057\u3066\u3044\u304f\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">@tailwind base;\r\n@tailwind components;\r\n@tailwind utilities;<\/pre>\n<h2>@tailwind base<\/h2>\n<p>normalize.css\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u3067\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u30af\u30ed\u30b9\u30d6\u30e9\u30a6\u30b6\u306bHTML\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u30b9\u30bf\u30a4\u30eb\u306b\u306a\u308a\u307e\u3059\u3002\uff08\u8981\u306f\u3001Chrome\u3084Firefox\u306a\u3069\u5404\u30d6\u30e9\u30a6\u30b6\u306b\u3088\u3063\u3066\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30b9\u30bf\u30a4\u30eb\u304c\u7570\u306a\u3063\u3066\u304f\u308b\u306e\u3067\u7d71\u4e00\u3057\u307e\u3057\u3087\u3046\u3068\u3044\u3046\u601d\u60f3\u306b\u3082\u3068\u306b\u4f5c\u3089\u308c\u305f\u30d5\u30a1\u30a4\u30eb\uff09\u3001<span style=\"color: #ff0000;\"><strong>Preflight<\/strong><\/span>\u3068\u3082\u547c\u3070\u308c\u307e\u3059\u3002<\/p>\n<p>\u306a\u306e\u3067\u3001tailwind\u3092\u4f7f\u3046\u4e0a\u3067\u306f\u4e00\u6614\u524d\u3060\u3068\u610f\u8b58\u3057\u3066\u3084\u3063\u3066\u3044\u305freset.css\u306a\u3069\u306f\u610f\u8b58\u305b\u305a\u306b\u5b9f\u88c5\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u306b\u306a\u308b\u306e\u3067\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u5834\u6240\u306b\u683c\u7d0d\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true \">node_modules\/tailwindcss\/dist\/base.css<\/pre>\n<h2>@tailwind components<\/h2>\n<p>\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u30d1\u30bf\u30fc\u30f3\uff08\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u30af\u30e9\u30b9\u306e\u96c6\u5408\uff09\u3067\u3059\u3002\u4ee5\u4e0b\u306e\u5834\u6240\u306b\u683c\u7d0d\u3055\u308c\u3066\u3044\u307e\u3059\u3002container\u3057\u304b\u542b\u307e\u308c\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n<pre class=\"lang:default decode:true\">node_modules\/tailwindcss\/dist\/components.css<\/pre>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u6307\u5b9a\u3059\u308c\u3070\u72ec\u81ea\u306e\u30e6\u30fc\u30ea\u30c6\u30a3\u30c6\u30a3\u30d1\u30bf\u30fc\u30f3\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true \">@layer components {\r\n  .card {\r\n    background-color: theme('colors.white');\r\n    border-radius: theme('borderRadius.lg');\r\n    padding: theme('spacing.6');\r\n    box-shadow: theme('boxShadow.xl');\r\n  }\r\n  \/* ... *\/\r\n}<\/pre>\n<h2>@tailwind utilities<\/h2>\n<p>\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u30af\u30e9\u30b9\u7fa4(w-4\u3001m-4\u306a\u3069)\u3067\u3059\u3002\u4ee5\u4e0b\u306e\u5834\u6240\u306b\u683c\u7d0d\u3055\u308c\u3066\u3044\u307e\u3059\u300217\u4e07\u884c\u3082\u306e\u83ab\u5927\u306a\u884c\u6570\u306b\u306a\u3063\u3066\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">node_modules\/tailwindcss\/dist\/utilities.css<\/pre>\n<p>\u307e\u305f\u3001\u516c\u5f0f\u30b5\u30a4\u30c8\u306b\u306f\u8a18\u8f09\u304c\u3042\u308a\u307e\u3059\u304c\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u6307\u5b9a\u3059\u308c\u3070\u72ec\u81ea\u306e\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u30af\u30e9\u30b9\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u306f\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true  \">@tailwind utilities;\r\n@layer utilities {\r\n  .content-auto {\r\n    content-visibility: auto;\r\n  }\r\n}<\/pre>\n","protected":false},"excerpt":{"rendered":"tailwind\u3067\u306f\u4ee5\u4e0b\u306eCSS\u3092\u8aad\u307f\u8fbc\u307e\u305b\u3066\u4f7f\u3044\u307e\u3059\u3002\u3053\u306e\u4e09\u3064\u304c\u30d9\u30fc\u30b9\u3068\u306a\u3063\u3066\u8ffd\u52a0\u304c\u5fc5\u8981\u3067\u3042\u308c\u3070\u3001\u958b\u767a\u8005\u304c\u3053\u3053\u306b\u8a2d\u5b9a\u3057\u3066\u3044\u304f\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002 @tailwind base; @tailwind components;  [&hellip;]","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[64],"tags":[],"_links":{"self":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/16789"}],"collection":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=16789"}],"version-history":[{"count":7,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/16789\/revisions"}],"predecessor-version":[{"id":20127,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/16789\/revisions\/20127"}],"wp:attachment":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=16789"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=16789"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=16789"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}