{"id":369150,"date":"2024-05-21T03:57:21","date_gmt":"2024-05-21T03:57:21","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=369150"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=369150","title":{"rendered":"<span>\u041e\u0431\u0437\u043e\u0440 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u0430 Tailwind CSS<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/7ca\/77d\/b6a\/7ca77db6ac872b7833ebbce23b3be9a7.png\" width=\"780\" height=\"439\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/7ca\/77d\/b6a\/7ca77db6ac872b7833ebbce23b3be9a7.png\"\/><\/figure>\n<p><em>\u0421\u0430\u043b\u044e\u0442, \u0425\u0430\u0431\u0440!<\/em><\/p>\n<p><strong>Tailwind CSS<\/strong> \u2013 \u044d\u0442\u043e <em>utility-first<\/em> CSS \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f \u043e\u0442 \u0442\u0440\u0430\u0434\u0438\u0446\u0438\u043e\u043d\u043d\u044b\u0445 CSS \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u043e\u0432 \u0432\u0440\u043e\u0434\u0435 <a href=\"https:\/\/getbootstrap.com\">Bootstrap <\/a>\u0438\u043b\u0438 <a href=\"https:\/\/get.foundation\">Foundation <\/a>\u0442\u0435\u043c, \u0447\u0442\u043e \u0432\u043c\u0435\u0441\u0442\u043e \u043f\u0440\u0435\u0434\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442 \u043d\u0430\u0431\u043e\u0440 utility-\u043a\u043b\u0430\u0441\u0441\u043e\u0432, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0445 \u0441\u0442\u0438\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u043f\u0440\u044f\u043c\u043e \u0432 HTML.<\/p>\n<p>Utility-first \u043f\u043e\u0434\u0445\u043e\u0434 \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0445 \u043a\u043b\u0430\u0441\u0441\u043e\u0432, \u043a\u0430\u0436\u0434\u044b\u0439 \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u043e\u0434\u043d\u043e CSS \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e, \u043a \u043f\u0440\u0438\u043c\u0435\u0440\u0443 \u043f\u0430\u0434\u0434\u0438\u043d\u0433\u0438, \u043c\u0430\u0440\u0436\u0438\u043d\u0438 \u0438 \u0442.\u043f. <\/p>\n<p>\u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 <strong>Tailwind CSS, \u0432 \u0446\u0435\u043b\u043e\u043c, \u043e\u043d \u043f\u043e\u0445\u043e\u0436 \u043d\u0430 \u0434\u0435\u0444\u043e\u043b\u0442 CSS.<\/strong><\/p>\n<h4>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430<\/h4>\n<p>\u0418\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u0443\u0435\u043c Tailwind CSS \u0432 \u043f\u0440\u043e\u0435\u043a\u0442, \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0438 \u0431\u0430\u043d\u0430\u043b\u044c\u043d\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <code>npm<\/code>:<\/p>\n<pre><code class=\"bash\">npm install -D tailwindcss npx tailwindcss init<\/code><\/pre>\n<p>\u041f\u043e\u043c\u0438\u043c\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0441\u0430\u043c\u043e\u0433\u043e Tailwind, \u0437\u0434\u0435\u0441\u044c \u0441\u043e\u0437\u0434\u0430\u0441\u0442\u0441\u044f \u043a\u043e\u043d\u0444.\u0444\u0430\u0439\u043b <code>tailwind.config.js<\/code>.<\/p>\n<p>\u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043f\u0440\u0438\u043d\u0446\u0438\u043f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 <code>tailwind.config.js<\/code> \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u043a\u043b\u044e\u0447\u0430 <code>theme<\/code>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e. \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u044f \u0438\u043b\u0438 \u0438\u0437\u043c\u0435\u043d\u044f\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0432 \u044d\u0442\u043e\u043c \u043a\u043b\u044e\u0447\u0435, \u043c\u043e\u0436\u043d\u043e \u0430\u0434\u0430\u043f\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0442\u0438\u043b\u0438 \u043f\u043e\u0434 \u043d\u0443\u0436\u0434\u044b. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0447\u0442\u043e\u0431\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043d\u043e\u0432\u044b\u0435 \u0446\u0432\u0435\u0442\u0430 \u0438\u043b\u0438 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435, \u043c\u043e\u0436\u043d\u043e:<\/p>\n<pre><code class=\"yaml\">module.exports = {   theme: {     extend: {       colors: {         'custom-blue': '#243c5a',       },     },   }, }<\/code><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u043f\u0440\u0438\u0448\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c Tallwind \u0432 \u043f\u0440\u043e\u0435\u043a\u0442 \u043f\u0440\u043e\u0435\u043a\u0442. \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0444\u0430\u0439\u043b CSS \u0438:<\/p>\n<pre><code class=\"css\">@tailwind base; @tailwind components; @tailwind utilities;<\/code><\/pre>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0441 Tailwind CLI \u043c\u043e\u0436\u043d\u043e \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u0442\u043e\u0433\u043e\u0432\u044b\u0439 CSS \u0444\u0430\u0439\u043b:<\/p>\n<pre><code class=\"bash\">npx tailwindcss -i .\/src\/styles.css -o .\/dist\/styles.css --watch<\/code><\/pre>\n<h2>\u041e\u0431\u0437\u043e\u0440 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u0430<\/h2>\n<h4>\u0422\u0438\u043f\u043e\u0433\u0440\u0430\u0444\u0438\u043a\u0430  <\/h4>\n<p>\u0420\u0430\u0437\u043c\u0435\u0440 \u0448\u0440\u0438\u0444\u0442\u0430 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0443\u0442\u0438\u043b\u0438\u0442 \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0442\u0441\u044f \u0441 <code>text-<\/code>, \u0437\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0440\u0430\u0437\u043c\u0435\u0440\u0430. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <code>text-xs<\/code> \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0439 \u0440\u0430\u0437\u043c\u0435\u0440 \u0442\u0435\u043a\u0441\u0442\u0430, \u0432 \u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043a\u0430\u043a <code>text-3xl<\/code> \u0434\u0435\u043b\u0430\u0435\u0442 \u0435\u0433\u043e \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0431\u043e\u043b\u044c\u0448\u0435.<\/p>\n<pre><code class=\"css\">&lt;p class=\"text-xs\">\u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0439 \u0442\u0435\u043a\u0441\u0442&lt;\/p> &lt;p class=\"text-xl\">\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0442\u0435\u043a\u0441\u0442&lt;\/p><\/code><\/pre>\n<p>\u041a\u043e\u043d\u0442\u0440\u043e\u043b\u044c \u0437\u0430 \u0436\u0438\u0440\u043d\u043e\u0441\u0442\u044c\u044e \u0448\u0440\u0438\u0444\u0442\u0430 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u0443\u0442\u0438\u043b\u0438\u0442\u044b, \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u0435\u0441\u044f \u043d\u0430 <code>font-<\/code>, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <code>font-bold<\/code> \u0434\u043b\u044f \u0436\u0438\u0440\u043d\u043e\u0433\u043e \u0442\u0435\u043a\u0441\u0442\u0430 \u0438\u043b\u0438 <code>font-light<\/code> \u0434\u043b\u044f \u043b\u0435\u0433\u043a\u043e\u0433\u043e:<\/p>\n<pre><code class=\"css\">&lt;p class=\"font-bold\">\u0436\u0438\u0440\u043d\u044b\u0439 \u0442\u0435\u043a\u0441\u0442&lt;\/p> &lt;p class=\"font-light\">\u043b\u0435\u0433\u043a\u0438\u0439 \u0442\u0435\u043a\u0441\u0442&lt;\/p><\/code><\/pre>\n<p>\u0414\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043a\u0443\u0440\u0441\u0438\u0432\u0430:<\/p>\n<pre><code class=\"css\">&lt;p class=\"italic\">\u041a\u0443\u0440\u0441\u0438\u0432\u043d\u044b\u0439 \u0442\u0435\u043a\u0441\u0442&lt;\/p><\/code><\/pre>\n<p>\u041c\u0435\u0436\u0441\u0442\u0440\u043e\u0447\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b, \u0438\u043b\u0438 \u0438\u043d\u0442\u0435\u0440\u043b\u0438\u043d\u044c\u044f\u0436, \u0440\u0435\u0433\u0443\u043b\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0443\u0442\u0438\u043b\u0438\u0442, \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u0445\u0441\u044f \u043d\u0430 <code>leading-<\/code> :<\/p>\n<pre><code class=\"css\">&lt;p class=\"leading-tight\">\u0423\u0437\u043a\u0438\u0439 \u043c\u0435\u0436\u0441\u0442\u0440\u043e\u0447\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b&lt;\/p> &lt;p class=\"leading-loose\">\u0428\u0438\u0440\u043e\u043a\u0438\u0439 \u043c\u0435\u0436\u0441\u0442\u0440\u043e\u0447\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b&lt;\/p><\/code><\/pre>\n<p>\u0412\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u0435 \u0442\u0435\u043a\u0441\u0442\u0430 \u043f\u043e \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0443\u0442\u0438\u043b\u0438\u0442\u0430\u043c\u0438 <code>text-left<\/code>, <code>text-center<\/code>, <code>text-right<\/code>, \u0438 <code>text-justify<\/code>:<\/p>\n<pre><code class=\"css\">&lt;p class=\"text-left\">\u043b\u0435\u0432\u044b\u0439 \u043a\u0440\u0430\u0439&lt;\/p> &lt;p class=\"text-center\">\u0446\u0435\u043d\u0442\u0440&lt;\/p> &lt;p class=\"text-right\">\u043f\u0440\u0430\u0432\u044b\u0439 \u043a\u0440\u0430\u0439&lt;\/p><\/code><\/pre>\n<h4>\u0426\u0432\u0435\u0442\u0430 \u0438 \u0444\u043e\u043d<\/h4>\n<p>Tailwind CSS \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442 \u0435\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043e\u0433\u0440\u043e\u043c\u043d\u0443\u044e \u043f\u0430\u043b\u0438\u0442\u0440\u0443 \u043f\u0440\u0435\u0434\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445 \u0446\u0432\u0435\u0442\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u043b\u044f \u0442\u0435\u043a\u0441\u0442\u0430, \u0444\u043e\u043d\u0430, \u0433\u0440\u0430\u043d\u0438\u0446 \u0438 \u0434\u0440\u0443\u0433\u0438\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432. \u0426\u0432\u0435\u0442\u0430 \u0438\u0434\u0443\u0442 \u0441 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u043c\u0438 \u043e\u0442\u0442\u0435\u043d\u043a\u0430\u043c\u0438, \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u043e\u0442 \u0441\u0432\u0435\u0442\u043b\u044b\u0445 (\u0441\u043e\u0442\u043a\u0430) \u0434\u043e \u0442\u0435\u043c\u043d\u044b\u0445 (900).<\/p>\n<pre><code class=\"css\">&lt;div class=\"bg-blue-500 text-white\">    \u0442\u0435\u043a\u0441\u0442  &lt;\/div><\/code><\/pre>\n<p><code>bg-blue-500<\/code> \u0437\u0430\u0434\u0430\u0435\u0442 \u0444\u043e\u043d\u043e\u0432\u044b\u0439 \u0446\u0432\u0435\u0442, \u0430 <code>text-white<\/code> \u2014 \u0446\u0432\u0435\u0442 \u0442\u0435\u043a\u0441\u0442\u0430.<\/p>\n<p>\u041c\u043e\u0436\u043d\u043e \u0440\u0430\u0441\u0448\u0438\u0440\u044f\u0442\u044c \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0443\u044e \u043f\u0430\u043b\u0438\u0442\u0440\u0443, \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044f \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u0446\u0432\u0435\u0442\u0430 \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u043d\u0444. \u0444\u0430\u0439\u043b <code>tailwind.config.js<\/code>:<\/p>\n<pre><code class=\"css\">module.exports = {   theme: {     extend: {       colors: {         'custom-color': '#663399',       },     },   }, }<\/code><\/pre>\n<p>\u041c\u043e\u0436\u043d\u043e \u044e\u0437\u0430\u0442\u044c <code>custom-color<\/code> \u0442\u0430\u043a \u0436\u0435, \u043a\u0430\u043a \u0438 \u043b\u044e\u0431\u043e\u0439 \u0434\u0440\u0443\u0433\u043e\u0439 \u043f\u0440\u0435\u0434\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439 \u0446\u0432\u0435\u0442 \u0432 Tailwind.<\/p>\n<p>\u0422\u0430\u043a\u0436\u0435 \u0443 \u0444\u043e\u043d\u0430 \u0435\u0441\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e \u043f\u043e \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044e: <code>bg-img<\/code>, <code>bg-repeat<\/code>,<code>bg-position<\/code> \u0438 \u0440\u0430\u0437\u043c\u0435\u0440 <code>bg-size<\/code>. <\/p>\n<p><strong>\u0413\u0440\u0430\u0434\u0438\u0435\u043d\u0442\u044b<\/strong> \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044e\u0442 \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u0443\u044e \u0433\u043b\u0443\u0431\u0438\u043d\u0443 \u0438 \u0434\u0438\u043d\u0430\u043c\u0438\u043a\u0443 \u0434\u0438\u0437\u0430\u0439\u043d\u0443. \u0421 \u0442\u0430\u0438\u043b\u0432\u0438\u043d\u0434\u043e\u043c \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043b\u0438\u043d\u0435\u0439\u043d\u044b\u0435 \u0433\u0440\u0430\u0434\u0438\u0435\u043d\u0442\u044b \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043b\u0430\u0441\u0441\u043e\u0432 <code>bg-gradient-to-t<\/code>, <code>bg-gradient-to-r<\/code> \u0438 \u0442\u0430\u043a \u0434\u0430\u043b\u0435\u0435, \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044f \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0433\u0440\u0430\u0434\u0438\u0435\u043d\u0442\u0430, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043a\u043b\u0430\u0441\u0441\u044b \u0434\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0438 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0433\u043e \u0446\u0432\u0435\u0442\u043e\u0432 \u0433\u0440\u0430\u0434\u0438\u0435\u043d\u0442\u0430:<\/p>\n<pre><code class=\"css\">&lt;div class=\"bg-gradient-to-r from-blue-500 to-teal-500\">   \u0412\u0430\u0448 \u0442\u0435\u043a\u0441\u0442 \u043d\u0430 \u0433\u0440\u0430\u0434\u0438\u0435\u043d\u0442\u043d\u043e\u043c \u0444\u043e\u043d\u0435 &lt;\/div><\/code><\/pre>\n<p>\u0417\u0434\u0435\u0441\u044c \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u044b\u0439 \u0433\u0440\u0430\u0434\u0438\u0435\u043d\u0442 \u043e\u0442 \u0441\u0438\u043d\u0435\u0433\u043e \u043a \u0431\u0438\u0440\u044e\u0437\u043e\u0432\u043e\u043c\u0443.<\/p>\n<h4>\u0420\u0430\u0441\u043a\u043b\u0430\u0434\u043a\u0430 \u0438 \u0433\u0440\u0438\u0434  <\/h4>\n<p><strong>\u0414\u043b\u044f \u0444\u043b\u0435\u043a\u0441\u0431\u043e\u043a\u0441\u0430<\/strong> \u0435\u0441\u0442\u044c \u0441\u0435\u0440\u0438\u044f \u043a\u043b\u0430\u0441\u0441\u043e\u0432, \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u043e\u0442 <code>flex<\/code> \u0434\u043b\u044f \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438 Flexbox \u0434\u043b\u044f \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430, \u0434\u043e <code>justify-content<\/code>, <code>align-items<\/code> \u0438 <code>flex-wrap<\/code> \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0432\u043d\u0443\u0442\u0440\u0438 flex-\u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430:<\/p>\n<pre><code class=\"css\">&lt;div class=\"flex justify-center items-center\">   &lt;div class=\"p-4\">\u042d\u043b\u0435\u043c\u0435\u043d\u0442 1&lt;\/div>   &lt;div class=\"p-4\">\u042d\u043b\u0435\u043c\u0435\u043d\u0442 2&lt;\/div> &lt;\/div><\/code><\/pre>\n<p>\u041a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 <code>div<\/code> \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 Flexbox \u0434\u043b\u044f \u0446\u0435\u043d\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0432\u043e\u0438\u0445 \u0434\u043e\u0447\u0435\u0440\u043d\u0438\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043a\u0430\u043a \u043f\u043e \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u0438, \u0442\u0430\u043a \u0438 \u043f\u043e \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u0438.<\/p>\n<p>Tailwind CSS \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u0443\u0435\u0442 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 <strong>CSS Grid<\/strong> \u0447\u0435\u0440\u0435\u0437 \u043d\u0430\u0431\u043e\u0440 \u043a\u043b\u0430\u0441\u0441\u043e\u0432 <code>grid<\/code>, <code>grid-cols-*<\/code> \u0438 <code>grid-rows-*<\/code> \u0434\u043b\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0441\u0442\u043e\u043b\u0431\u0446\u043e\u0432 \u0438 \u0441\u0442\u0440\u043e\u043a \u0441\u0435\u0442\u043a\u0438, \u0430 \u0442\u0430\u043a\u0436\u0435 <code>gap<\/code>, <code>row-gap<\/code> \u0438 <code>col-gap<\/code> \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u044f\u043c\u0438 \u043c\u0435\u0436\u0434\u0443 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438:<\/p>\n<pre><code class=\"css\">&lt;div class=\"grid grid-cols-3 gap-4\">   &lt;div class=\"p-4 bg-blue-500\">\u042d\u043b\u0435\u043c\u0435\u043d\u0442 1&lt;\/div>   &lt;div class=\"p-4 bg-red-500\">\u042d\u043b\u0435\u043c\u0435\u043d\u0442 2&lt;\/div>   &lt;div class=\"p-4 bg-green-500\">\u042d\u043b\u0435\u043c\u0435\u043d\u0442 3&lt;\/div> &lt;\/div><\/code><\/pre>\n<p>\u0421\u043e\u0437\u0434\u0430\u043b\u0438 \u0441\u0435\u0442\u043a\u0443 \u0438\u0437 \u0442\u0440\u0435\u0445 \u0441\u0442\u043e\u043b\u0431\u0446\u043e\u0432 \u0441 \u0440\u0430\u0432\u043d\u044b\u043c\u0438 \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043a\u0430\u043c\u0438 \u043c\u0435\u0436\u0434\u0443 \u043d\u0438\u043c\u0438, \u0433\u0434\u0435 \u043a\u0430\u0436\u0434\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0441\u0435\u0442\u043a\u0438 \u0438\u043c\u0435\u0435\u0442 \u0441\u0432\u043e\u0439 \u0444\u043e\u043d\u043e\u0432\u044b\u0439 \u0446\u0432\u0435\u0442.<\/p>\n<p>\u041c\u043e\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u043e\u0442\u0441\u0442\u0443\u043f\u043e\u0432 \u0438 \u0437\u0430\u0437\u043e\u0440\u043e\u0432. \u0421 \u043a\u043b\u0430\u0441\u0441\u0430\u043c\u0438 \u0432\u0440\u043e\u0434\u0435 <code>m-<\/code>, <code>my-<\/code>, <code>mx-<\/code>, <code>p-<\/code>, <code>py-<\/code>, \u0438 <code>px-<\/code> \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c \u043c\u0430\u0440\u0436\u0438\u043d\u044b \u0438 \u043f\u0430\u0434\u0434\u0438\u043d\u0433\u0438 \u0432 \u043b\u044e\u0431\u043e\u043c \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0438 \u0438 \u0441 \u043b\u044e\u0431\u043e\u0439 \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u044c\u044e:<\/p>\n<pre><code class=\"css\">&lt;div class=\"m-4 p-4 bg-gray-200\">    \u0431\u043b\u043e\u043a \u0438\u043c\u0435\u0435\u0442 \u0432\u043d\u0435\u0448\u043d\u0438\u0435 \u0438 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0435 \u043e\u0442\u0441\u0442\u0443\u043f\u044b. &lt;\/div><\/code><\/pre>\n<h4>\u042d\u0444\u0444\u0435\u043a\u0442\u044b, \u0444\u0438\u043b\u044c\u0442\u0440\u044b \u0438 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u044b  <\/h4>\n<p>\u0414\u043b\u044f \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0442\u0435\u043d\u0435\u0439 \u043a \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c \u043c\u043e\u0436\u043d\u043e \u044e\u0437\u0430\u0442\u044c \u043a\u043b\u0430\u0441\u0441\u044b <code>shadow<\/code>\u0441 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u043e\u0439 \u0438\u043d\u0442\u0435\u043d\u0441\u0438\u0432\u043d\u043e\u0441\u0442\u044c\u044e, \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u043e\u0442 \u043b\u0435\u0433\u043a\u043e\u0439 <code>shadow-sm<\/code> \u0434\u043e \u0438\u043d\u0442\u0435\u043d\u0441\u0438\u0432\u043d\u043e\u0439 <code>shadow-2xl<\/code>:<\/p>\n<pre><code class=\"css\">&lt;div class=\"shadow-lg p-6 mb-6 bg-white rounded-lg\">    \u043a\u043e\u043d\u0442\u0435\u043d\u0442 \u0441 \u0437\u0430\u043c\u0435\u0442\u043d\u043e\u0439 \u0442\u0435\u043d\u044c\u044e &lt;\/div><\/code><\/pre>\n<p>\u041a\u043b\u0430\u0441\u0441\u044b \u043f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e\u0441\u0442\u0438 <code>opacity<\/code> \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u0440\u0435\u0433\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432, \u0434\u0435\u043b\u0430\u044f \u0438\u0445 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0438\u043b\u0438 \u0447\u0430\u0441\u0442\u0438\u0447\u043d\u043e \u043f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u044b\u043c<\/p>\n<p>\u0422\u0430\u043a\u0436\u0435 \u0435\u0441\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440\u044b <code>blur<\/code>), <code>saturate<\/code> \u0438 <code>contrast<\/code>, \u043a \u043f\u0440\u0438\u043c\u0435\u0440\u0443:<\/p>\n<pre><code class=\"css\">&lt;img class=\"blur-lg\" src=\"your-image.jpg\" alt=\"\u0420\u0430\u0437\u043c\u044b\u0442\u043e\u0435 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\"><\/code><\/pre>\n<p>\u0414\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043f\u043b\u0430\u0432\u043d\u044b\u0445 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0439 \u0438 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u043e\u0432 \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f\u043c\u0438 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u043b\u0430\u0441\u0441\u044b <code>transition<\/code> \u0438 <code>animate<\/code>:<\/p>\n<pre><code class=\"css\">&lt;button class=\"bg-blue-500 text-white p-2 rounded hover:bg-blue-700 transition-colors duration-300\">   \u041d\u0430\u0432\u0435\u0434\u0438\u0442\u0435 \u043d\u0430 \u043c\u0435\u043d\u044f &lt;\/button><\/code><\/pre>\n<h4>\u041f\u0430\u0440\u0443 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f<\/h4>\n<p>\u0410\u0434\u0430\u043f\u0442\u0438\u0432\u043d\u0430\u044f \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0430 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430:<\/p>\n<pre><code class=\"css\">&lt;!-- \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0430 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c Tailwind CSS --> &lt;div class=\"max-w-sm rounded overflow-hidden shadow-lg m-4\">   &lt;img class=\"w-full\" src=\"\/img\/product-1.jpg\" alt=\"\u0418\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430\">   &lt;div class=\"px-6 py-4\">     &lt;div class=\"font-bold text-xl mb-2\"> \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430&lt;\/div>     &lt;p class=\"text-gray-700 text-base\">       \u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430     &lt;\/p>   &lt;\/div>   &lt;div class=\"px-6 pt-4 pb-2\">     &lt;span class=\"inline-block bg-gray-200 rounded-full px-3 py-1 text-sm font-semibold text-gray-700 mr-2 mb-2\">#\u0442\u0435\u04331&lt;\/span>     &lt;span class=\"inline-block bg-gray-200 rounded-full px-3 py-1 text-sm font-semibold text-gray-700 mr-2 mb-2\">#\u0442\u0435\u04332&lt;\/span>   &lt;\/div> &lt;\/div><\/code><\/pre>\n<p>\u0410\u0434\u0430\u043f\u0442\u0438\u0432\u043d\u0430\u044f \u043d\u0430\u0432.\u043f\u0430\u043d\u0435\u043b\u044c:<\/p>\n<pre><code class=\"css\">&lt;!-- \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u043e\u043d\u043d\u0430\u044f \u043f\u0430\u043d\u0435\u043b\u044c \u0441 Tailwind CSS --> &lt;nav class=\"flex items-center justify-between flex-wrap bg-teal-500 p-6\">   &lt;div class=\"flex items-center flex-shrink-0 text-white mr-6\">     &lt;span class=\"font-semibold text-xl tracking-tight\">\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0441\u0430\u0439\u0442\u0430&lt;\/span>   &lt;\/div>   &lt;div class=\"block lg:hidden\">     &lt;button class=\"flex items-center px-3 py-2 border rounded text-teal-200 border-teal-400 hover:text-white hover:border-white\">       &lt;svg class=\"fill-current h-3 w-3\" viewBox=\"0 0 20 20\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">&lt;title>\u041c\u0435\u043d\u044e&lt;\/title>&lt;path d=\"M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z\"\/>&lt;\/svg>     &lt;\/button>   &lt;\/div>   &lt;div class=\"w-full block flex-grow lg:flex lg:items-center lg:w-auto\">     &lt;div class=\"text-sm lg:flex-grow\">       &lt;a href=\"#responsive-header\" class=\"block mt-4 lg:inline-block lg:mt-0 text-teal-200 hover:text-white mr-4\">         \u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f       &lt;\/a>       &lt;a href=\"#responsive-header\" class=\"block mt-4 lg:inline-block lg:mt-0 text-teal-200 hover:text-white\">         \u041f\u0440\u0438\u043c\u0435\u0440\u044b       &lt;\/a>     &lt;\/div>   &lt;\/div> &lt;\/nav><\/code><\/pre>\n<p>\u041c\u043e\u0434\u0430\u043b\u044c\u043d\u043e\u0435 \u043e\u043a\u043d\u043e:<\/p>\n<pre><code class=\"css\">&lt;!-- \u043c\u043e\u0434\u0430\u043b\u044c\u043d\u043e\u0435 \u043e\u043a\u043d\u043e --> &lt;div class=\"fixed z-10 inset-0 overflow-y-auto hidden\" id=\"modal\">   &lt;div class=\"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0\">     &lt;!-- \u041e\u0432\u0435\u0440\u043b\u0435\u0439 -->     &lt;div class=\"fixed inset-0 transition-opacity\" aria-hidden=\"true\">       &lt;div class=\"absolute inset-0 bg-gray-500 opacity-75\">&lt;\/div>     &lt;\/div>     &lt;!-- \u041a\u043e\u043d\u0442\u0435\u043d\u0442 \u043c\u043e\u0434\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043e\u043a\u043d\u0430 -->     &lt;div class=\"inline-block align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-lg sm:w-full\">       &lt;div class=\"px-4 pt-5 pb-4 sm:p-6 sm:pb-4\">         &lt;div class=\"sm:flex sm:items-start\">           &lt;!-- \u0421\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 -->           &lt;div class=\"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left\">             &lt;h3 class=\"text-lg leading-6 font-medium text-gray-900\" id=\"modal-title\">\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u043c\u043e\u0434\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043e\u043a\u043d\u0430&lt;\/h3>             &lt;div class=\"mt-2\">               &lt;p class=\"text-sm text-gray-500\"> \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0438\u043b\u0438 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435.&lt;\/p>             &lt;\/div>           &lt;\/div>         &lt;\/div>       &lt;\/div>       &lt;!-- \u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044f -->       &lt;div class=\"bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse\">         &lt;button type=\"button\" class=\"w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-blue-500 text-base font-medium text-white hover:bg-blue-700 focus:outline-none sm:ml-3 sm:w-auto sm:text-sm\">           \u0414\u0435\u0439\u0441\u0442\u0432\u0438\u0435         &lt;\/button>         &lt;button type=\"button\" class=\"mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm\">           \u0417\u0430\u043a\u0440\u044b\u0442\u044c         &lt;\/button>       &lt;\/div>     &lt;\/div>   &lt;\/div> &lt;\/div><\/code><\/pre>\n<p>\u0424\u043e\u0440\u043c\u044b \u0441 \u0430\u0434\u0430\u043f\u0442\u0438\u0432\u043d\u044b\u043c \u0434\u0438\u0437\u0430\u0439\u043d\u043e\u043c:<\/p>\n<pre><code class=\"css\">&lt;div class=\"max-w-md mx-auto mt-10\">   &lt;form class=\"bg-white shadow-md rounded px-8 pt-6 pb-8 mb-4\">     &lt;div class=\"mb-4\">       &lt;label class=\"block text-gray-700 text-sm font-bold mb-2\" for=\"username\">         \u0418\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f       &lt;\/label>       &lt;input class=\"shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline\" id=\"username\" type=\"text\" placeholder=\"Username\">     &lt;\/div>     &lt;div class=\"mb-6\">       &lt;label class=\"block text-gray-700 text-sm font-bold mb-2\" for=\"password\">         \u041f\u0430\u0440\u043e\u043b\u044c       &lt;\/label>       &lt;input class=\"shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 mb-3 leading-tight focus:outline-none focus:shadow-outline\" id=\"password\" type=\"password\" placeholder=\"******************\">     &lt;\/div>     &lt;div class=\"flex items-center justify-between\">       &lt;button class=\"bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline\" type=\"button\">         \u0412\u043e\u0439\u0442\u0438       &lt;\/button>     &lt;\/div>   &lt;\/form> &lt;\/div><\/code><\/pre>\n<hr\/>\n<p><em>\u0412 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u0435 \u0445\u043e\u0447\u0443 \u043d\u0430\u043f\u043e\u043c\u043d\u0438\u0442\u044c \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0432 \u043a\u0430\u043b\u0435\u043d\u0434\u0430\u0440\u0435 \u043c\u0435\u0440\u043e\u043f\u0440\u0438\u044f\u0442\u0438\u0439 OTUS, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u0440\u044f\u0434 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0445 \u0432\u0435\u0431\u0438\u043d\u0430\u0440\u043e\u0432. <\/em><a href=\"https:\/\/otus.pw\/54fS\/\"><em>\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435<\/em><\/a><em>.<\/em><\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/796101\/\"> https:\/\/habr.com\/ru\/articles\/796101\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><\/figure>\n<p><em>\u0421\u0430\u043b\u044e\u0442, \u0425\u0430\u0431\u0440!<\/em><\/p>\n<p><strong>Tailwind CSS<\/strong> \u2013 \u044d\u0442\u043e <em>utility-first<\/em> CSS \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f \u043e\u0442 \u0442\u0440\u0430\u0434\u0438\u0446\u0438\u043e\u043d\u043d\u044b\u0445 CSS \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u043e\u0432 \u0432\u0440\u043e\u0434\u0435 <a href=\"https:\/\/getbootstrap.com\">Bootstrap <\/a>\u0438\u043b\u0438 <a href=\"https:\/\/get.foundation\">Foundation <\/a>\u0442\u0435\u043c, \u0447\u0442\u043e \u0432\u043c\u0435\u0441\u0442\u043e \u043f\u0440\u0435\u0434\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442 \u043d\u0430\u0431\u043e\u0440 utility-\u043a\u043b\u0430\u0441\u0441\u043e\u0432, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0445 \u0441\u0442\u0438\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u043f\u0440\u044f\u043c\u043e \u0432 HTML.<\/p>\n<p>Utility-first \u043f\u043e\u0434\u0445\u043e\u0434 \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0445 \u043a\u043b\u0430\u0441\u0441\u043e\u0432, \u043a\u0430\u0436\u0434\u044b\u0439 \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u043e\u0434\u043d\u043e CSS \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e, \u043a \u043f\u0440\u0438\u043c\u0435\u0440\u0443 \u043f\u0430\u0434\u0434\u0438\u043d\u0433\u0438, \u043c\u0430\u0440\u0436\u0438\u043d\u0438 \u0438 \u0442.\u043f. <\/p>\n<p>\u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 <strong>Tailwind CSS, \u0432 \u0446\u0435\u043b\u043e\u043c, \u043e\u043d \u043f\u043e\u0445\u043e\u0436 \u043d\u0430 \u0434\u0435\u0444\u043e\u043b\u0442 CSS.<\/strong><\/p>\n<h4>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430<\/h4>\n<p>\u0418\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u0443\u0435\u043c Tailwind CSS \u0432 \u043f\u0440\u043e\u0435\u043a\u0442, \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0438 \u0431\u0430\u043d\u0430\u043b\u044c\u043d\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <code>npm<\/code>:<\/p>\n<pre><code class=\"bash\">npm install -D tailwindcss npx tailwindcss init<\/code><\/pre>\n<p>\u041f\u043e\u043c\u0438\u043c\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0441\u0430\u043c\u043e\u0433\u043e Tailwind, \u0437\u0434\u0435\u0441\u044c \u0441\u043e\u0437\u0434\u0430\u0441\u0442\u0441\u044f \u043a\u043e\u043d\u0444.\u0444\u0430\u0439\u043b <code>tailwind.config.js<\/code>.<\/p>\n<p>\u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043f\u0440\u0438\u043d\u0446\u0438\u043f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 <code>tailwind.config.js<\/code> \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u043a\u043b\u044e\u0447\u0430 <code>theme<\/code>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e. \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u044f \u0438\u043b\u0438 \u0438\u0437\u043c\u0435\u043d\u044f\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0432 \u044d\u0442\u043e\u043c \u043a\u043b\u044e\u0447\u0435, \u043c\u043e\u0436\u043d\u043e \u0430\u0434\u0430\u043f\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0442\u0438\u043b\u0438 \u043f\u043e\u0434 \u043d\u0443\u0436\u0434\u044b. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0447\u0442\u043e\u0431\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043d\u043e\u0432\u044b\u0435 \u0446\u0432\u0435\u0442\u0430 \u0438\u043b\u0438 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435, \u043c\u043e\u0436\u043d\u043e:<\/p>\n<pre><code class=\"yaml\">module.exports = {   theme: {     extend: {       colors: {         'custom-blue': '#243c5a',       },     },   }, }<\/code><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u043f\u0440\u0438\u0448\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c Tallwind \u0432 \u043f\u0440\u043e\u0435\u043a\u0442 \u043f\u0440\u043e\u0435\u043a\u0442. \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0444\u0430\u0439\u043b CSS \u0438:<\/p>\n<pre><code class=\"css\">@tailwind base; @tailwind components; @tailwind utilities;<\/code><\/pre>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0441 Tailwind CLI \u043c\u043e\u0436\u043d\u043e \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u0442\u043e\u0433\u043e\u0432\u044b\u0439 CSS \u0444\u0430\u0439\u043b:<\/p>\n<pre><code class=\"bash\">npx tailwindcss -i .\/src\/styles.css -o .\/dist\/styles.css --watch<\/code><\/pre>\n<h2>\u041e\u0431\u0437\u043e\u0440 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u0430<\/h2>\n<h4>\u0422\u0438\u043f\u043e\u0433\u0440\u0430\u0444\u0438\u043a\u0430  <\/h4>\n<p>\u0420\u0430\u0437\u043c\u0435\u0440 \u0448\u0440\u0438\u0444\u0442\u0430 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0443\u0442\u0438\u043b\u0438\u0442 \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0442\u0441\u044f \u0441 <code>text-<\/code>, \u0437\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0440\u0430\u0437\u043c\u0435\u0440\u0430. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <code>text-xs<\/code> \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0439 \u0440\u0430\u0437\u043c\u0435\u0440 \u0442\u0435\u043a\u0441\u0442\u0430, \u0432 \u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043a\u0430\u043a <code>text-3xl<\/code> \u0434\u0435\u043b\u0430\u0435\u0442 \u0435\u0433\u043e \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0431\u043e\u043b\u044c\u0448\u0435.<\/p>\n<pre><code class=\"css\">&lt;p class=\"text-xs\">\u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0439 \u0442\u0435\u043a\u0441\u0442&lt;\/p> &lt;p class=\"text-xl\">\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0442\u0435\u043a\u0441\u0442&lt;\/p><\/code><\/pre>\n<p>\u041a\u043e\u043d\u0442\u0440\u043e\u043b\u044c \u0437\u0430 \u0436\u0438\u0440\u043d\u043e\u0441\u0442\u044c\u044e \u0448\u0440\u0438\u0444\u0442\u0430 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u0443\u0442\u0438\u043b\u0438\u0442\u044b, \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u0435\u0441\u044f \u043d\u0430 <code>font-<\/code>, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <code>font-bold<\/code> \u0434\u043b\u044f \u0436\u0438\u0440\u043d\u043e\u0433\u043e \u0442\u0435\u043a\u0441\u0442\u0430 \u0438\u043b\u0438 <code>font-light<\/code> \u0434\u043b\u044f \u043b\u0435\u0433\u043a\u043e\u0433\u043e:<\/p>\n<pre><code class=\"css\">&lt;p class=\"font-bold\">\u0436\u0438\u0440\u043d\u044b\u0439 \u0442\u0435\u043a\u0441\u0442&lt;\/p> &lt;p class=\"font-light\">\u043b\u0435\u0433\u043a\u0438\u0439 \u0442\u0435\u043a\u0441\u0442&lt;\/p><\/code><\/pre>\n<p>\u0414\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043a\u0443\u0440\u0441\u0438\u0432\u0430:<\/p>\n<pre><code class=\"css\">&lt;p class=\"italic\">\u041a\u0443\u0440\u0441\u0438\u0432\u043d\u044b\u0439 \u0442\u0435\u043a\u0441\u0442&lt;\/p><\/code><\/pre>\n<p>\u041c\u0435\u0436\u0441\u0442\u0440\u043e\u0447\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b, \u0438\u043b\u0438 \u0438\u043d\u0442\u0435\u0440\u043b\u0438\u043d\u044c\u044f\u0436, \u0440\u0435\u0433\u0443\u043b\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0443\u0442\u0438\u043b\u0438\u0442, \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u0445\u0441\u044f \u043d\u0430 <code>leading-<\/code> :<\/p>\n<pre><code class=\"css\">&lt;p class=\"leading-tight\">\u0423\u0437\u043a\u0438\u0439 \u043c\u0435\u0436\u0441\u0442\u0440\u043e\u0447\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b&lt;\/p> &lt;p class=\"leading-loose\">\u0428\u0438\u0440\u043e\u043a\u0438\u0439 \u043c\u0435\u0436\u0441\u0442\u0440\u043e\u0447\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b&lt;\/p><\/code><\/pre>\n<p>\u0412\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u0435 \u0442\u0435\u043a\u0441\u0442\u0430 \u043f\u043e \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0443\u0442\u0438\u043b\u0438\u0442\u0430\u043c\u0438 <code>text-left<\/code>, <code>text-center<\/code>, <code>text-right<\/code>, \u0438 <code>text-justify<\/code>:<\/p>\n<pre><code class=\"css\">&lt;p class=\"text-left\">\u043b\u0435\u0432\u044b\u0439 \u043a\u0440\u0430\u0439&lt;\/p> &lt;p class=\"text-center\">\u0446\u0435\u043d\u0442\u0440&lt;\/p> &lt;p class=\"text-right\">\u043f\u0440\u0430\u0432\u044b\u0439 \u043a\u0440\u0430\u0439&lt;\/p><\/code><\/pre>\n<h4>\u0426\u0432\u0435\u0442\u0430 \u0438 \u0444\u043e\u043d<\/h4>\n<p>Tailwind CSS \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442 \u0435\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043e\u0433\u0440\u043e\u043c\u043d\u0443\u044e \u043f\u0430\u043b\u0438\u0442\u0440\u0443 \u043f\u0440\u0435\u0434\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445 \u0446\u0432\u0435\u0442\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u043b\u044f \u0442\u0435\u043a\u0441\u0442\u0430, \u0444\u043e\u043d\u0430, \u0433\u0440\u0430\u043d\u0438\u0446 \u0438 \u0434\u0440\u0443\u0433\u0438\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432. \u0426\u0432\u0435\u0442\u0430 \u0438\u0434\u0443\u0442 \u0441 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u043c\u0438 \u043e\u0442\u0442\u0435\u043d\u043a\u0430\u043c\u0438, \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u043e\u0442 \u0441\u0432\u0435\u0442\u043b\u044b\u0445 (\u0441\u043e\u0442\u043a\u0430) \u0434\u043e \u0442\u0435\u043c\u043d\u044b\u0445 (900).<\/p>\n<pre><code class=\"css\">&lt;div class=\"bg-blue-500 text-white\">    \u0442\u0435\u043a\u0441\u0442  &lt;\/div><\/code><\/pre>\n<p><code>bg-blue-500<\/code> \u0437\u0430\u0434\u0430\u0435\u0442 \u0444\u043e\u043d\u043e\u0432\u044b\u0439 \u0446\u0432\u0435\u0442, \u0430 <code>text-white<\/code> \u2014 \u0446\u0432\u0435\u0442 \u0442\u0435\u043a\u0441\u0442\u0430.<\/p>\n<p>\u041c\u043e\u0436\u043d\u043e \u0440\u0430\u0441\u0448\u0438\u0440\u044f\u0442\u044c \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0443\u044e \u043f\u0430\u043b\u0438\u0442\u0440\u0443, \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044f \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u0446\u0432\u0435\u0442\u0430 \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u043d\u0444. \u0444\u0430\u0439\u043b <code>tailwind.config.js<\/code>:<\/p>\n<pre><code class=\"css\">module.exports = {   theme: {     extend: {       colors: {         'custom-color': '#663399',       },     },   }, }<\/code><\/pre>\n<p>\u041c\u043e\u0436\u043d\u043e \u044e\u0437\u0430\u0442\u044c <code>custom-color<\/code> \u0442\u0430\u043a \u0436\u0435, \u043a\u0430\u043a \u0438 \u043b\u044e\u0431\u043e\u0439 \u0434\u0440\u0443\u0433\u043e\u0439 \u043f\u0440\u0435\u0434\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439 \u0446\u0432\u0435\u0442 \u0432 Tailwind.<\/p>\n<p>\u0422\u0430\u043a\u0436\u0435 \u0443 \u0444\u043e\u043d\u0430 \u0435\u0441\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e \u043f\u043e \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044e: <code>bg-img<\/code>, <code>bg-repeat<\/code>,<code>bg-position<\/code> \u0438 \u0440\u0430\u0437\u043c\u0435\u0440 <code>bg-size<\/code>. <\/p>\n<p><strong>\u0413\u0440\u0430\u0434\u0438\u0435\u043d\u0442\u044b<\/strong> \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044e\u0442 \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u0443\u044e \u0433\u043b\u0443\u0431\u0438\u043d\u0443 \u0438 \u0434\u0438\u043d\u0430\u043c\u0438\u043a\u0443 \u0434\u0438\u0437\u0430\u0439\u043d\u0443. \u0421 \u0442\u0430\u0438\u043b\u0432\u0438\u043d\u0434\u043e\u043c \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043b\u0438\u043d\u0435\u0439\u043d\u044b\u0435 \u0433\u0440\u0430\u0434\u0438\u0435\u043d\u0442\u044b \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043b\u0430\u0441\u0441\u043e\u0432 <code>bg-gradient-to-t<\/code>, <code>bg-gradient-to-r<\/code> \u0438 \u0442\u0430\u043a \u0434\u0430\u043b\u0435\u0435, \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044f \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0433\u0440\u0430\u0434\u0438\u0435\u043d\u0442\u0430, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043a\u043b\u0430\u0441\u0441\u044b \u0434\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0438 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0433\u043e \u0446\u0432\u0435\u0442\u043e\u0432 \u0433\u0440\u0430\u0434\u0438\u0435\u043d\u0442\u0430:<\/p>\n<pre><code class=\"css\">&lt;div class=\"bg-gradient-to-r from-blue-500 to-teal-500\">   \u0412\u0430\u0448 \u0442\u0435\u043a\u0441\u0442 \u043d\u0430 \u0433\u0440\u0430\u0434\u0438\u0435\u043d\u0442\u043d\u043e\u043c \u0444\u043e\u043d\u0435 &lt;\/div><\/code><\/pre>\n<p>\u0417\u0434\u0435\u0441\u044c \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u044b\u0439 \u0433\u0440\u0430\u0434\u0438\u0435\u043d\u0442 \u043e\u0442 \u0441\u0438\u043d\u0435\u0433\u043e \u043a \u0431\u0438\u0440\u044e\u0437\u043e\u0432\u043e\u043c\u0443.<\/p>\n<h4>\u0420\u0430\u0441\u043a\u043b\u0430\u0434\u043a\u0430 \u0438 \u0433\u0440\u0438\u0434  <\/h4>\n<p><strong>\u0414\u043b\u044f \u0444\u043b\u0435\u043a\u0441\u0431\u043e\u043a\u0441\u0430<\/strong> \u0435\u0441\u0442\u044c \u0441\u0435\u0440\u0438\u044f \u043a\u043b\u0430\u0441\u0441\u043e\u0432, \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u043e\u0442 <code>flex<\/code> \u0434\u043b\u044f \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438 Flexbox \u0434\u043b\u044f \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430, \u0434\u043e <code>justify-content<\/code>, <code>align-items<\/code> \u0438 <code>flex-wrap<\/code> \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0432\u043d\u0443\u0442\u0440\u0438 flex-\u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430:<\/p>\n<pre><code class=\"css\">&lt;div class=\"flex justify-center items-center\">   &lt;div class=\"p-4\">\u042d\u043b\u0435\u043c\u0435\u043d\u0442 1&lt;\/div>   &lt;div class=\"p-4\">\u042d\u043b\u0435\u043c\u0435\u043d\u0442 2&lt;\/div> &lt;\/div><\/code><\/pre>\n<p>\u041a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 <code>div<\/code> \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 Flexbox \u0434\u043b\u044f \u0446\u0435\u043d\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0432\u043e\u0438\u0445 \u0434\u043e\u0447\u0435\u0440\u043d\u0438\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043a\u0430\u043a \u043f\u043e \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u0438, \u0442\u0430\u043a \u0438 \u043f\u043e \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u0438.<\/p>\n<p>Tailwind CSS \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u0443\u0435\u0442 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 <strong>CSS Grid<\/strong> \u0447\u0435\u0440\u0435\u0437 \u043d\u0430\u0431\u043e\u0440 \u043a\u043b\u0430\u0441\u0441\u043e\u0432 <code>grid<\/code>, <code>grid-cols-*<\/code> \u0438 <code>grid-rows-*<\/code> \u0434\u043b\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0441\u0442\u043e\u043b\u0431\u0446\u043e\u0432 \u0438 \u0441\u0442\u0440\u043e\u043a \u0441\u0435\u0442\u043a\u0438, \u0430 \u0442\u0430\u043a\u0436\u0435 <code>gap<\/code>, <code>row-gap<\/code> \u0438 <code>col-gap<\/code> \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u044f\u043c\u0438 \u043c\u0435\u0436\u0434\u0443 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438:<\/p>\n<pre><code class=\"css\">&lt;div class=\"grid grid-cols-3 gap-4\">   &lt;div class=\"p-4 bg-blue-500\">\u042d\u043b\u0435\u043c\u0435\u043d\u0442 1&lt;\/div>   &lt;div class=\"p-4 bg-red-500\">\u042d\u043b\u0435\u043c\u0435\u043d\u0442 2&lt;\/div>   &lt;div class=\"p-4 bg-green-500\">\u042d\u043b\u0435\u043c\u0435\u043d\u0442 3&lt;\/div> &lt;\/div><\/code><\/pre>\n<p>\u0421\u043e\u0437\u0434\u0430\u043b\u0438 \u0441\u0435\u0442\u043a\u0443 \u0438\u0437 \u0442\u0440\u0435\u0445 \u0441\u0442\u043e\u043b\u0431\u0446\u043e\u0432 \u0441 \u0440\u0430\u0432\u043d\u044b\u043c\u0438 \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043a\u0430\u043c\u0438 \u043c\u0435\u0436\u0434\u0443 \u043d\u0438\u043c\u0438, \u0433\u0434\u0435 \u043a\u0430\u0436\u0434\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0441\u0435\u0442\u043a\u0438 \u0438\u043c\u0435\u0435\u0442 \u0441\u0432\u043e\u0439 \u0444\u043e\u043d\u043e\u0432\u044b\u0439 \u0446\u0432\u0435\u0442.<\/p>\n<p>\u041c\u043e\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u043e\u0442\u0441\u0442\u0443\u043f\u043e\u0432 \u0438 \u0437\u0430\u0437\u043e\u0440\u043e\u0432. \u0421 \u043a\u043b\u0430\u0441\u0441\u0430\u043c\u0438 \u0432\u0440\u043e\u0434\u0435 <code>m-<\/code>, <code>my-<\/code>, <code>mx-<\/code>, <code>p-<\/code>, <code>py-<\/code>, \u0438 <code>px-<\/code> \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c \u043c\u0430\u0440\u0436\u0438\u043d\u044b \u0438 \u043f\u0430\u0434\u0434\u0438\u043d\u0433\u0438 \u0432 \u043b\u044e\u0431\u043e\u043c \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0438 \u0438 \u0441 \u043b\u044e\u0431\u043e\u0439 \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u044c\u044e:<\/p>\n<pre><code class=\"css\">&lt;div class=\"m-4 p-4 bg-gray-200\">    \u0431\u043b\u043e\u043a \u0438\u043c\u0435\u0435\u0442 \u0432\u043d\u0435\u0448\u043d\u0438\u0435 \u0438 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0435 \u043e\u0442\u0441\u0442\u0443\u043f\u044b. &lt;\/div><\/code><\/pre>\n<h4>\u042d\u0444\u0444\u0435\u043a\u0442\u044b, \u0444\u0438\u043b\u044c\u0442\u0440\u044b \u0438 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u044b  <\/h4>\n<p>\u0414\u043b\u044f \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0442\u0435\u043d\u0435\u0439 \u043a \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c \u043c\u043e\u0436\u043d\u043e \u044e\u0437\u0430\u0442\u044c \u043a\u043b\u0430\u0441\u0441\u044b <code>shadow<\/code>\u0441 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u043e\u0439 \u0438\u043d\u0442\u0435\u043d\u0441\u0438\u0432\u043d\u043e\u0441\u0442\u044c\u044e, \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u043e\u0442 \u043b\u0435\u0433\u043a\u043e\u0439 <code>shadow-sm<\/code> \u0434\u043e \u0438\u043d\u0442\u0435\u043d\u0441\u0438\u0432\u043d\u043e\u0439 <code>shadow-2xl<\/code>:<\/p>\n<pre><code class=\"css\">&lt;div class=\"shadow-lg p-6 mb-6 bg-white rounded-lg\">    \u043a\u043e\u043d\u0442\u0435\u043d\u0442 \u0441 \u0437\u0430\u043c\u0435\u0442\u043d\u043e\u0439 \u0442\u0435\u043d\u044c\u044e &lt;\/div><\/code><\/pre>\n<p>\u041a\u043b\u0430\u0441\u0441\u044b \u043f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e\u0441\u0442\u0438 <code>opacity<\/code> \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u0440\u0435\u0433\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432, \u0434\u0435\u043b\u0430\u044f \u0438\u0445 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0438\u043b\u0438 \u0447\u0430\u0441\u0442\u0438\u0447\u043d\u043e \u043f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u044b\u043c<\/p>\n<p>\u0422\u0430\u043a\u0436\u0435 \u0435\u0441\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440\u044b <code>blur<\/code>), <code>saturate<\/code> \u0438 <code>contrast<\/code>, \u043a \u043f\u0440\u0438\u043c\u0435\u0440\u0443:<\/p>\n<pre><code class=\"css\">&lt;img class=\"blur-lg\" src=\"your-image.jpg\" alt=\"\u0420\u0430\u0437\u043c\u044b\u0442\u043e\u0435 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\"><\/code><\/pre>\n<p>\u0414\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043f\u043b\u0430\u0432\u043d\u044b\u0445 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0439 \u0438 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u043e\u0432 \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f\u043c\u0438 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u043b\u0430\u0441\u0441\u044b <code>transition<\/code> \u0438 <code>animate<\/code>:<\/p>\n<pre><code class=\"css\">&lt;button class=\"bg-blue-500 text-white p-2 rounded hover:bg-blue-700 transition-colors duration-300\">   \u041d\u0430\u0432\u0435\u0434\u0438\u0442\u0435 \u043d\u0430 \u043c\u0435\u043d\u044f &lt;\/button><\/code><\/pre>\n<h4>\u041f\u0430\u0440\u0443 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f<\/h4>\n<p>\u0410\u0434\u0430\u043f\u0442\u0438\u0432\u043d\u0430\u044f \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0430 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430:<\/p>\n<pre><code class=\"css\">&lt;!-- \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0430 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c Tailwind CSS --> &lt;div class=\"max-w-sm rounded overflow-hidden shadow-lg m-4\">   &lt;img class=\"w-full\" src=\"\/img\/product-1.jpg\" alt=\"\u0418\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430\">   &lt;div class=\"px-6 py-4\">     &lt;div class=\"font-bold text-xl mb-2\"> \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430&lt;\/div>     &lt;p class=\"text-gray-700 text-base\">       \u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430     &lt;\/p>   &lt;\/div>   &lt;div class=\"px-6 pt-4 pb-2\">     &lt;span class=\"inline-block bg-gray-200 rounded-full px-3 py-1 text-sm font-semibold text-gray-700 mr-2 mb-2\">#\u0442\u0435\u04331&lt;\/span>     &lt;span class=\"inline-block bg-gray-200 rounded-full px-3 py-1 text-sm font-semibold text-gray-700 mr-2 mb-2\">#\u0442\u0435\u04332&lt;\/span>   &lt;\/div> &lt;\/div><\/code><\/pre>\n<p>\u0410\u0434\u0430\u043f\u0442\u0438\u0432\u043d\u0430\u044f \u043d\u0430\u0432.\u043f\u0430\u043d\u0435\u043b\u044c:<\/p>\n<pre><code class=\"css\">&lt;!-- \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u043e\u043d\u043d\u0430\u044f \u043f\u0430\u043d\u0435\u043b\u044c \u0441 Tailwind CSS --> &lt;nav class=\"flex items-center justify-between flex-wrap bg-teal-500 p-6\">   &lt;div class=\"flex items-center flex-shrink-0 text-white mr-6\">     &lt;span class=\"font-semibold text-xl tracking-tight\">\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0441\u0430\u0439\u0442\u0430&lt;\/span>   &lt;\/div>   &lt;div class=\"block lg:hidden\">     &lt;button class=\"flex items-center px-3 py-2 border rounded text-teal-200 border-teal-400 hover:text-white hover:border-white\">       &lt;svg class=\"fill-current h-3 w-3\" viewBox=\"0 0 20 20\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">&lt;title>\u041c\u0435\u043d\u044e&lt;\/title>&lt;path d=\"M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z\"\/>&lt;\/svg>     &lt;\/button>   &lt;\/div>   &lt;div class=\"w-full block flex-grow lg:flex lg:items-center lg:w-auto\">     &lt;div class=\"text-sm lg:flex-grow\">       &lt;a href=\"#responsive-header\" class=\"block mt-4 lg:inline-block lg:mt-0 text-teal-200 hover:text-white mr-4\">         \u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f       &lt;\/a>       &lt;a href=\"#responsive-header\" class=\"block mt-4 lg:inline-block lg:mt-0 text-teal-200 hover:text-white\">         \u041f\u0440\u0438\u043c\u0435\u0440\u044b       &lt;\/a>     &lt;\/div>   &lt;\/div> &lt;\/nav><\/code><\/pre>\n<p>\u041c\u043e\u0434\u0430\u043b\u044c\u043d\u043e\u0435 \u043e\u043a\u043d\u043e:<\/p>\n<pre><code class=\"css\">&lt;!-- \u043c\u043e\u0434\u0430\u043b\u044c\u043d\u043e\u0435 \u043e\u043a\u043d\u043e --> &lt;div class=\"fixed z-10 inset-0 overflow-y-auto hidden\" id=\"modal\">   &lt;div class=\"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0\">     &lt;!-- \u041e\u0432\u0435\u0440\u043b\u0435\u0439 -->     &lt;div class=\"fixed inset-0 transition-opacity\" aria-hidden=\"true\">       &lt;div class=\"absolute inset-0 bg-gray-500 opacity-75\">&lt;\/div>     &lt;\/div>     &lt;!-- \u041a\u043e\u043d\u0442\u0435\u043d\u0442 \u043c\u043e\u0434\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043e\u043a\u043d\u0430 -->     &lt;div class=\"inline-block align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-lg sm:w-full\">       &lt;div class=\"px-4 pt-5 pb-4 sm:p-6 sm:pb-4\">         &lt;div class=\"sm:flex sm:items-start\">           &lt;!-- \u0421\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 -->           &lt;div class=\"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left\">             &lt;h3 class=\"text-lg leading-6 font-medium text-gray-900\" id=\"modal-title\">\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u043c\u043e\u0434\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043e\u043a\u043d\u0430&lt;\/h3>             &lt;div class=\"mt-2\">               &lt;p class=\"text-sm text-gray-500\"> \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0438\u043b\u0438 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435.&lt;\/p>             &lt;\/div>           &lt;\/div>         &lt;\/div>       &lt;\/div>       &lt;!-- \u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044f -->       &lt;div class=\"bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse\">         &lt;button type=\"button\" class=\"w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-blue-500 text-base font-medium text-white hover:bg-blue-700 focus:outline-none sm:ml-3 sm:w-auto sm:text-sm\">           \u0414\u0435\u0439\u0441\u0442\u0432\u0438\u0435         &lt;\/button>         &lt;button type=\"button\" class=\"mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm\">           \u0417\u0430\u043a\u0440\u044b\u0442\u044c         &lt;\/button>       &lt;\/div>     &lt;\/div>   &lt;\/div> &lt;\/div><\/code><\/pre>\n<p>\u0424\u043e\u0440\u043c\u044b \u0441 \u0430\u0434\u0430\u043f\u0442\u0438\u0432\u043d\u044b\u043c \u0434\u0438\u0437\u0430\u0439\u043d\u043e\u043c:<\/p>\n<pre><code class=\"css\">&lt;div class=\"max-w-md mx-auto mt-10\">   &lt;form class=\"bg-white shadow-md rounded px-8 pt-6 pb-8 mb-4\">     &lt;div class=\"mb-4\">       &lt;label class=\"block text-gray-700 text-sm font-bold mb-2\" for=\"username\">         \u0418\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f       &lt;\/label>       &lt;input class=\"shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline\" id=\"username\" type=\"text\" placeholder=\"Username\">     &lt;\/div>     &lt;div class=\"mb-6\">       &lt;label class=\"block text-gray-700 text-sm font-bold mb-2\" for=\"password\">         \u041f\u0430\u0440\u043e\u043b\u044c       &lt;\/label>       &lt;input class=\"shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 mb-3 leading-tight focus:outline-none focus:shadow-outline\" id=\"password\" type=\"password\" placeholder=\"******************\">     &lt;\/div>     &lt;div<\/code><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-369150","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/369150","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=369150"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/369150\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=369150"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=369150"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=369150"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}