"value":"\n <p>When creating accessible websites, as well as hover states for focusable elements, such as buttons, you also need to add focus styles that apply when users navigate the page using a keyboard and focusing on an element.<\/p>\n\n<p>With Tailwind, that can mean a lot of duplication if your hover and focus states are similar or the same, as the same classes need to be added with both the <code>:hover<\/code> and <code>:focus<\/code> variants.<\/p>\n\n<p>One of Tailwind's best features is its extensibility, which means I can create a new interaction state - <code>:hocus<\/code> - that works for both.<\/p>\n\n<p>It's very easy to do by adding this code to your <code>tailwind.config.js<\/code> or <code>tailwind.config.ts<\/code> file:<\/p>\n\n<pre><code class=\"javascript\">const plugin = require(\"tailwindcss\/plugin\");\n\nmodule.exports = plugin(({ addVariant }) => {\n\u00a0 addVariant(\"hocus\", [\"&:hover\", \"&:focus\"]);\n});\n<\/code><\/pre>\n\n<p>Or, use <a href=\"https:\/\/www.npmjs.com\/package\/tailwindcss-plugin-hocus-state\">the Tailwind CSS plugin I wrote<\/a>.<\/p>\n\n<p>Get more accessible websites and less duplication today!<\/p>\n\n ",
"format":"full_html",
"processed":"\n <p>When creating accessible websites, as well as hover states for focusable elements, such as buttons, you also need to add focus styles that apply when users navigate the page using a keyboard and focusing on an element.<\/p>\n\n<p>With Tailwind, that can mean a lot of duplication if your hover and focus states are similar or the same, as the same classes need to be added with both the <code>:hover<\/code> and <code>:focus<\/code> variants.<\/p>\n\n<p>One of Tailwind's best features is its extensibility, which means I can create a new interaction state - <code>:hocus<\/code> - that works for both.<\/p>\n\n<p>It's very easy to do by adding this code to your <code>tailwind.config.js<\/code> or <code>tailwind.config.ts<\/code> file:<\/p>\n\n<pre><code class=\"javascript\">const plugin = require(\"tailwindcss\/plugin\");\n\nmodule.exports = plugin(({ addVariant }) => {\n addVariant(\"hocus\", [\"&:hover\", \"&:focus\"]);\n});\n<\/code><\/pre>\n\n<p>Or, use <a href=\"https:\/\/www.npmjs.com\/package\/tailwindcss-plugin-hocus-state\">the Tailwind CSS plugin I wrote<\/a>.<\/p>\n\n<p>Get more accessible websites and less duplication today!<\/p>\n\n ",