{"id":10062,"date":"2022-05-07T18:54:13","date_gmt":"2022-05-07T09:54:13","guid":{"rendered":"https:\/\/www.itblog.jp\/?p=10062"},"modified":"2022-05-07T19:03:46","modified_gmt":"2022-05-07T10:03:46","slug":"post-10062","status":"publish","type":"post","link":"https:\/\/www.itblog.jp\/?p=10062","title":{"rendered":"tailwindcss\u3067\u3001\u5171\u901a\u30b9\u30bf\u30a4\u30eb\u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"\n<p>tailwindcss\u306e\u52c9\u5f37\u3092\u3057\u3066\u3044\u3066\u3001tailwindcss\u306f\u3001\u8981\u7d20\u3054\u3068\u306b\u3042\u3089\u304b\u3058\u3081\u7528\u610f\u3055\u308c\u305f\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u30af\u30e9\u30b9\u3092\u4ed8\u4e0e\u3057\u3066\u3044\u3063\u3066\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u8abf\u6574\u3057\u3066\u3044\u304f\u306e\u304c\u57fa\u672c\u3067\u3059\u304c\u3001\u4f8b\u3048\u3070a\u30bf\u30b0\u3068\u304b\u3001h1\u3001h2\u3068\u304b\u3001\u30b5\u30a4\u30c8\u5168\u4f53\u3067\u5171\u901a\u3068\u306a\u308b\u8981\u7d20\u306b\u305d\u308c\u305e\u308c\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u30af\u30e9\u30b9\u3092\u4ed8\u4e0e\u3057\u3066\u3044\u304f\u3053\u3068\u306f\u9762\u5012\u306a\u3053\u3068\u3067\u3059\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u901a\u5e38\u306eCSS\u3067\u3088\u304f\u3084\u308b\u3088\u3046\u306b\u3001\u6c4e\u7528\u7684\u306a\u8981\u7d20\u306f\u3001\u5171\u901a\u7684\u306a\u30b9\u30bf\u30a4\u30eb\u3092\u6307\u5b9a\u3057\u3066\u304a\u304d\u3001\u305d\u308c\u305e\u308c\u30af\u30e9\u30b9\u3092\u4ed8\u4e0e\u3057\u306a\u304f\u3066\u3044\u3044\u3088\u3046\u306b\u3057\u305f\u3044\u306e\u3067\u3059\u304c\u3001tailwindcss\u3092\u8aad\u307f\u8fbc\u3093\u3067\u3044\u308b\u3068\u3001\u666e\u901a\u306b\u30af\u30e9\u30b9\u3054\u3068\u306e\u8a18\u8f09\u3092css\u306b\u8ffd\u52a0\u3057\u3066\u3044\u3063\u3066\u3082\u3001\u30b5\u30a4\u30c8\u306b\u53cd\u6620\u3055\u308c\u306a\u3044\u3093\u3067\u3059\u3088\u306d\u30fb\u30fb\u30fb\u3002<\/p>\n\n\n\n<p>\u516c\u5f0f\u30b5\u30a4\u30c8\u3092\u898b\u308b\u3068\u3001\u8981\u7d20 { @apply tailwindcss\u306e\u30af\u30e9\u30b9\u540d; } \u3068css\u30d5\u30a1\u30a4\u30eb\u306b\u8a18\u8f09\u3059\u308c\u3070\u53cd\u6620\u3055\u308c\u308b\u3068\u306e\u3053\u3068\u3060\u3063\u305f\u306e\u3067\u3059\u304c\u3001css\u30d5\u30a1\u30a4\u30eb\u306b\u66f8\u3044\u3066\u3044\u3063\u3066\u3082\u53cd\u6620\u3055\u308c\u306a\u3044\u30fb\u30fb\u30fb\u3002<\/p>\n\n\n\n<p>\u203b \u3061\u306a\u307f\u306b\u3001\u81ea\u5206\u306etailwindcss\u306e\u8aad\u307f\u8fbc\u307f\u306f\u3001npm\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u30bf\u30a4\u30d7\u3067\u306f\u306a\u3044\u306e\u3067\u3001\u9762\u5012\u306a\u306e\u3067CDN\u3092\u4f7f\u3063\u3066\u8aad\u307f\u8fbc\u3093\u3067\u3044\u308b\u65b9\u6cd5\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u308c\u3092\u8abf\u3079\u308b\u306e\u306b\u6642\u9593\u304c\u304b\u304b\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u5206\u304b\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;style type=\"text\/tailwindcss\"&gt;\n\u5c5e\u6027\u540d {\n    @apply tailwindcss\u30af\u30e9\u30b9\u540d;\n}\n&lt;\/style&gt;<\/code><\/pre>\n\n\n\n<p>\u4e0a\u8a18\u306e\u8a18\u8f09\u3067\u7121\u4e8b\u89e3\u6c7a\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>style\u3092\u6307\u5b9a\u3059\u308b\u3068\u3053\u308d\u3067\u3001&lt;style type=&#8221;text\/tailwindcss&#8221;&gt;\u3068\u8a18\u8f09\u3059\u308b\u5fc5\u8981\u304c\u3042\u3063\u3066\u3001\u901a\u5e38\u901a\u308a\u306b&lt;style type=&#8221;text\/css&#8221;&gt;\u306e\u8a18\u8f09\u3060\u3068\u3001@apply\u306e\u69cb\u6587\u306f\u52b9\u304b\u306a\u3044\u308f\u3051\u3067\u3059\u306d\u3002<\/p>\n\n\n\n<p>\u4ee5\u4e0a\u3001\u30e1\u30e2\u66f8\u304d\u3067\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>tailwindcss\u306e\u52c9\u5f37\u3092\u3057\u3066\u3044\u3066\u3001tailwindcss\u306f\u3001\u8981\u7d20\u3054\u3068\u306b\u3042\u3089\u304b\u3058\u3081\u7528\u610f\u3055\u308c\u305f\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u30af\u30e9\u30b9\u3092\u4ed8\u4e0e\u3057\u3066\u3044\u3063\u3066\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u8abf\u6574\u3057\u3066\u3044\u304f\u306e\u304c\u57fa\u672c\u3067\u3059\u304c\u3001\u4f8b\u3048\u3070a\u30bf\u30b0\u3068\u304b\u3001h1\u3001h2\u3068\u304b\u3001\u30b5\u30a4\u30c8\u5168\u4f53\u3067\u5171 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[131],"tags":[],"class_list":["post-10062","post","type-post","status-publish","format-standard","hentry","category-131"],"_links":{"self":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts\/10062","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10062"}],"version-history":[{"count":0,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts\/10062\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10062"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10062"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10062"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}