Hi Cole here, cofounder of Formspree.
Cool website! It’s coming along nicely.
I don’t know much about Edge theme, but it looks like there’s a form.css
file with just one css rule for inputs. If you can find that file in the theme you can update it to style your form, including the textarea and filedset tags. By default, browsers have their own styles for these tags, and that’s what you’re seeing now (the 2px border for fieldset, and the chrome around textarea).
Probably the quickest fix is to expand that css rule by adding the textarea
selector like this:
input[type="text"],
input[type="password"],
input[type="email"],
textarea { // <---- added
// ...
}
That will get you close, but you might not want textareas to be the same height as your inputs. You can actually remove the height
property altogether, and instead use vertical padding to make both inputs and textareas bigger. For example:
padding: 10px 15px;
Then drop the border on fieldset by adding another rule:
fieldset {
border: none;
padding: 0;
}
Finally to improve that button I suggest also adding the button to the input rule, with another selector:
input[type="text"],
input[type="password"],
input[type="email"],
input[type="submit"], // <---- added
textarea {
// ...
}
And I’m a fan of the pointer
cursor style for buttons, which you can achieve with another rule that just targets submit
inputs:
input[type="submit"] {
cursor: pointer
}
One more thing: I dropped the outline: none
rule to improve accessibility.
Final form.css
file looks like this:
input[type=email],
input[type=password],
input[type=text],
input[type=submit],
textarea {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
border: 1px solid var(--mid-gray-color);
border-radius: 5px;
font-size: 16px;
padding: 10px 15px;
width: 100%;
}
input[type="submit"] {
cursor: pointer
}
fieldset {
border: none;
padding: 0;
}
Here’s what the form looks like now:
There’s room for more improvement, but hopefully this points you in the right direction. I hope I didn’t get too far into the weeds. Good luck!
EDIT: I should have mentioned, you can also copy/paste the formspree form styles which come with the examples on Form Library | Formspree. But I thought it might just be easier to edit the forms.css
file that’s already in the theme. The default formspree stylesheet is exported when you click the “copy” or “download” buttons, in a style
tag after the HTML code.