Skip to content

Instantly share code, notes, and snippets.

View kevinschaich's full-sized avatar

Kevin Schaich kevinschaich

View GitHub Profile
@kevinschaich
kevinschaich / tailwind-breakpoints.css
Created May 7, 2025 20:03
Tailwind v4 breakpoints cut off at 640px which doesn't let you design for different modern phones sizes. These add `3xs`, `2xs`, and `xs`.
@import 'tailwindcss';
@theme {
/* Very old phones */
/* iPhone 3G: 320 x 480 */
--breakpoint-3xs: 300px;
/* Small Phones in Portrait Mode */
/* iPhone 7: 375 x 667 */
/* iPhone 8: 375 x 667 */
@kevinschaich
kevinschaich / tailwind.config.js
Last active May 7, 2025 20:02
Tailwind v3 breakpoints cut off at 640px which doesn't let you design for different modern phones sizes. These add `3xs`, `2xs`, and `xs`.
module.exports = {
// https://viewport-tester.com
screens: {
// Very old phones
// iPhone 3G: 320 x 480
'3xs': { min: '300px' },
// Small Phones in Portrait Mode
// iPhone 7: 375 x 667