CSS
Add a CSS file to your template
The best way to add styling is to create a separate CSS file within your template.
- Create a new file called
styles.css
in your template file explorer. - Paste this example CSS into your newly-created
styles.css
file:
- You can now refer to your stylesheet in your HTML. Note that when referring to Letterhead-hosted files or assets, just use a relative path (i.e., only the filename).
Self-hosted CSS
If it’s not feasible to keep all of your CSS in template files, you can also link to self-hosted CSS files.
Tailwind CSS
To use Tailwind, we recommend using the Play CDN distribution of Tailwind, which you can optionally customise by assigning your configuration to tailwind.config
in a <script>
tag.