A dynamic, interactive Flexbox cheat sheet built with React and Tailwind CSS, with automatic PDF generation capabilities. See my blog post for more information and a live demo.
Clone the repository:
git clone https://github.com/eikowagenknecht/tailwind-flexbox-cheatsheet.git
cd tailwind-flexbox-cheatsheet
Install dependencies:
pnpm install
Run the development server:
pnpm dev
The sheet will be available at http://localhost:5173
To build the project and generate the PDF:
pnpm build
This command will:
generated/tailwind-flexbox-cheatsheet.pdf
The PDF generation is handled by a custom TypeScript script using Puppeteer. It:
PDF generation can be customized in the PDFGenerator
class:
It's a bit hacked together, but you will find the configuration options in the PDFGenerator
class.
pnpm dev
- Start development serverpnpm build
- Build for production and generate PDFpnpm lint
- Lint and format codepnpm pdfgen
- Generate PDF onlyThis project is licensed under the MIT License - see the LICENSE file for details.