Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/BenjaminPrice/hugo-tailwind3-starter


https://github.com/BenjaminPrice/hugo-tailwind3-starter

gohugo gohugo-theme hugo tailwind tailwind-css tailwindcss

Last synced: 2 months ago
JSON representation

Awesome Lists containing this project

README

        

[![Netlify Status](https://api.netlify.com/api/v1/badges/cd6844a5-dc30-46a2-9068-642aa177ac57/deploy-status)](https://app.netlify.com/sites/cocky-pare-3da5d5/deploys)
# hugo-tailwind3-starter

A very simple starter set up with [TailwindCSS](https://tailwindcss.com/) and its [typography plugin](https://tailwindcss.com/docs/typography-plugin) and a build setup using [PostCSS](https://postcss.org/) and PurgeCSS (when running the production build).

In the preview deployment on Netlify it currently has a 100 on both mobile and desktop on [Google PageSpeed](https://developers.google.com/speed/pagespeed/insights/?url=https%3A%2F%2Fcocky-pare-3da5d5.netlify.app%2F&tab=mobile) and nearly a perfect score on LightHouse, as well.

This setup can be used both as a starter project and a theme.

## Inspiration & Attribution
Heavily inspired by [bep/hugo-starter-tailwind-basic](https://github.com/bep/hugo-starter-tailwind-basic) Tailwind 2 template.

Sample content from:
- [mxstbr/markdown-test-file](https://github.com/mxstbr/markdown-test-file)

## As a Project

```bash
npm install
npm start
```

## As a Theme

Import `github.com/BenjaminPrice/hugo-tailwind3-starter` into your project, and then run:

```bash
hugo mod npm pack
npm install
```