feat: upgrade to tailwind 3.0

This commit is contained in:
Timothy Lin
2021-12-15 18:05:37 +08:00
parent 004ac216bb
commit 791d3b1e38
6 changed files with 47 additions and 193 deletions
+6 -1
View File
@@ -38,7 +38,7 @@ I wanted it to be nearly as feature-rich as popular blogging templates like [bea
## Features
- Easy styling customization with [Tailwind 2.0](https://blog.tailwindcss.com/tailwindcss-v2) and primary color attribute
- Easy styling customization with [Tailwind 3.0](https://tailwindcss.com/blog/tailwindcss-v3) and primary color attribute
- Near perfect lighthouse score - [Lighthouse report](https://www.webpagetest.org/result/210111_DiC1_08f3670c3430bf4a9b76fc3b927716c5/)
- Lightweight, 45kB first load JS, uses Preact in production build
- Mobile-friendly view
@@ -72,10 +72,13 @@ I wanted it to be nearly as feature-rich as popular blogging templates like [bea
## Quick Start Guide
1. JS (official support)
```bash
npx degit https://github.com/timlrx/tailwind-nextjs-starter-blog.git
```
or TS (community support)
```bash
npx degit timlrx/tailwind-nextjs-starter-blog#typescript
```
@@ -94,7 +97,9 @@ First, run the development server:
```bash
npm start
```
or
```bash
npm run dev
```