Created
June 11, 2021 21:16
-
-
Save klickreflex/838e96a86aefa2d533fd58e19821b63c to your computer and use it in GitHub Desktop.
Lined Textarea with Tailwind
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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