Tailwind CSS 2 doesn't natively support the outline-offset utility, so you'll need to add it through a custom plugin. Use the utility-first approach by extending the configuration in the tailwind.config.js file.
Source code viewer
module.exports = { theme: { extend: { // Any other theme extensions can go here }, }, variants: { extend: { outlineOffset: ['focus', 'active'], // Add variants if necessary }, }, plugins: [ function({ addUtilities }) { const newUtilities = { '.outline-offset-0': { outlineOffset: '0px' }, '.outline-offset-1': { outlineOffset: '1px' }, '.outline-offset-2': { outlineOffset: '2px' }, '.outline-offset-4': { outlineOffset: '4px' }, '.outline-offset-8': { outlineOffset: '8px' }, '.outline-offset-16': { outlineOffset: '16px' }, }; addUtilities(newUtilities, ['responsive', 'hover', 'focus', 'active']); }, ], };Programming Language: Javascript