utilities/behaviors/placeholder.md
Utilities for controlling the color of placeholder text.
<PlaygroundWithVariants variant='gray-500' type='color' prefix='placeholder' fixed='p-2 dark:text-white opacity-85 overflow-hidden' nested=true appended='bg-gray-100 py-2 rounded px-4 w-full border border-gray-400' html="<input class='{class} bg-gray-100 border border-gray-400 py-2 rounded px-4 w-full' placeholder='Placeholder'>" />
<Customizing>export default {
theme: {
placeholderColor: {
primary: '#3490dc',
secondary: '#ffed4a',
danger: '#e3342f',
},
},
}
Utilities for controlling the opacity of an element's placeholder color.
<PlaygroundWithVariants variant='50' type='opacity' prefix='placeholder-opacity' fixed='p-2 dark:text-white opacity-85 overflow-hidden' nested=true appended='bg-gray-100 py-2 rounded px-4 w-full border border-gray-400 placeholder-black' html="<input class='placeholder-black {class} bg-gray-100 border border-gray-400 py-2 rounded px-4 w-full' placeholder='Placeholder'>" />
<Customizing>export default {
theme: {
extend: {
placeholderOpacity: {
light: '0.1',
},
},
},
}