Skip to content

Commit

Permalink
1) Added text-shadow-* class to add outline to text.
Browse files Browse the repository at this point in the history
  • Loading branch information
RobSpectre committed Jun 16, 2023
1 parent 3198b5d commit 4d41764
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
const plugin = require('tailwindcss/plugin')

module.exports = {
content: [
'./index.html',
Expand All @@ -10,7 +12,24 @@ module.exports = {
blue: '#00b1e1',
orange: '#f36c3f',
darkgray: '#5b6670'
},
textShadow: {
sm: '0 1px 2px var(--tw-shadow-color)',
DEFAULT: '0 2px 4px var(--tw-shadow-color)',
lg: '0 8px 16px var(--tw-shadow-color)'
}
}
}
},
plugins: [
plugin(function ({ matchUtilities, theme }) {
matchUtilities(
{
'text-shadow': (value) => ({
textShadow: value
})
},
{ values: theme('textShadow') }
)
})
]
}

0 comments on commit 4d41764

Please sign in to comment.