{"id":11863,"date":"2022-02-07T09:15:06","date_gmt":"2022-02-07T14:15:06","guid":{"rendered":"http:\/\/local.brightwhiz\/?post_type=snippets&p=11863"},"modified":"2022-02-07T09:15:07","modified_gmt":"2022-02-07T14:15:07","slug":"how-to-install-tailwind-css-in-html","status":"publish","type":"snippets","link":"http:\/\/local.brightwhiz\/snippets\/how-to-install-tailwind-css-in-html\/","title":{"rendered":"How to Install Tailwind CSS in HTML"},"content":{"rendered":"\n
Using npm:<\/p>\n\n\n\n
$ npm install -D tailwindcss\n$ npx tailwindcss init<\/code><\/pre>\n\n\n\nUsing PostCSS:<\/p>\n\n\n\n
$ npm install -D tailwindcss postcss autoprefixer\n$ npx tailwindcss init<\/code><\/pre>\n\n\n\nUsing a CDN:<\/p>\n\n\n\n
<link rel="stylesheet" href="https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/tailwindcss\/2.2.19\/tailwind.min.css" integrity="sha512-wnea99uKIC3TJF7v4eKk4Y+lMz2Mklv18+r4na2Gn1abDRPPOeef95xTzdwGD9e6zXJBteMIhZ1+68QC5byJZw==" crossorigin="anonymous" referrerpolicy="no-referrer" \/><\/code><\/pre>\n\n\n\nUsing Yarn:<\/p>\n\n\n\n
$ yarn add tailwindcss<\/code><\/pre>\n","protected":false},"comment_status":"open","ping_status":"closed","template":"","meta":[],"categories":[953,15],"tags":[954,170,189,303,637],"yoast_head":"\nHow to Install Tailwind CSS in HTML<\/title>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\n