Skip to content

Instantly share code, notes, and snippets.

@klickreflex
Created June 11, 2021 21:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save klickreflex/838e96a86aefa2d533fd58e19821b63c to your computer and use it in GitHub Desktop.
Save klickreflex/838e96a86aefa2d533fd58e19821b63c to your computer and use it in GitHub Desktop.
Lined Textarea with Tailwind
<div class="p-8">
<div class="border border-gray-200 rounded-sm px-4 py-2 focus-within:border-blue-400">
<label class="text-sm text-gray-400 block uppercase tracking-wide font-bold"> Label </label>
<textarea class="text-gray-700 leading-[28px] min-h-[96px] bg-gray-lines bg-local w-full focus:outline-none">Congue aptent sagittis sollicitudin bibendum arcu orci euismod nibh pellentesque vulputate eget aliquam praesent, pretium primis rhoncus curae urna lectus tempus mauris proin montes ligula eu.</textarea>
</div>
</div>
module.exports = {
mode: 'jit',
theme: {
extend: {
backgroundImage: theme => ({
'gray-lines': `repeating-linear-gradient(white 0, white 27px, ${theme('colors.gray.300')} 28px)`,
}),
},
},
variants: {},
plugins: [],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment