- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
I Built My Own CSS Framework in Vanilla JS (and published it to npm)
I built TeaWind CSS — a utility-first CSS engine that runs entirely in the browser with zero dependencies and zero build steps.
Instead of writing CSS, you write chai- classes directly in your HTML. TeaWind scans the DOM, converts them to inline styles, and then removes every utility class — leaving your markup completely clean.
chai-p-24 → padding: 24px
chai-rounded-2xl → border-radius: 16px
chai-flex chai-items-center → you get it
What's under the hood:
→ Map() cache for ~1ms initialization
→ MutationObserver so it works with React automatically
→ brew() export for manual control
→ Built-in light/dark color palette
→ Self-cleaning DOM — zero utility classes survive after parsing
Links:
📦 npm → https://npmjs.com/package/teawindcss
🔗 GitHub → https://github.com/PreetMax85/teawindcss
🌐 Live Demo → https://preetmax85.github.io/teawindcss
#javascript #css #webdev #vanillajs #npm #frontend #tailwindcss
Видео I Built My Own CSS Framework in Vanilla JS (and published it to npm) канала Preet Jain
Instead of writing CSS, you write chai- classes directly in your HTML. TeaWind scans the DOM, converts them to inline styles, and then removes every utility class — leaving your markup completely clean.
chai-p-24 → padding: 24px
chai-rounded-2xl → border-radius: 16px
chai-flex chai-items-center → you get it
What's under the hood:
→ Map() cache for ~1ms initialization
→ MutationObserver so it works with React automatically
→ brew() export for manual control
→ Built-in light/dark color palette
→ Self-cleaning DOM — zero utility classes survive after parsing
Links:
📦 npm → https://npmjs.com/package/teawindcss
🔗 GitHub → https://github.com/PreetMax85/teawindcss
🌐 Live Demo → https://preetmax85.github.io/teawindcss
#javascript #css #webdev #vanillajs #npm #frontend #tailwindcss
Видео I Built My Own CSS Framework in Vanilla JS (and published it to npm) канала Preet Jain
Комментарии отсутствуют
Информация о видео
22 марта 2026 г. 18:18:07
00:17:22
Другие видео канала


