Загрузка видео...

Не удалось загрузить видео

На главную

Quick demo of JS config file support and plugin support in the latest Tailwind CSS v4 alpha 🫣

91,631 просмотров • 1 год назад •via X (Twitter)

Комментарии: 10

Фото профиля Adam Wathan
Adam Wathan1 год назад

One thing I didn't mention in the video — because plugins can be registered in CSS in v4, you can tuck the registration behind a CSS file that you just import. I expect most plugins in v4 to ship CSS files with an `@​plugin` hidden inside, so your CSS will look super vanilla:

Фото профиля Simon Vrachliotis
Simon Vrachliotis1 год назад

Whoaaa, the block body on the @ plugin is pretty cool!

Фото профиля Jono
Jono1 год назад

Just to confirm, does alpha mean: "wow that guy is such an alpha for running this on prod"? Or is there some other meaning to it?

Фото профиля Brandon McConnell
Brandon McConnell1 год назад

How can we disable the default colors in the v4 config?

Фото профиля Adam Wathan
Adam Wathan1 год назад

Explained here:

Фото профиля Mykhaylo 🇺🇦🌻
Mykhaylo 🇺🇦🌻1 год назад

This is so cool! Question - with prefixing, will there be a way to use external CSS variables inside the `theme` directive, if they follow the naming conventions? Say I have a bunch of tokens already defined like `--acme-color-potato` - can I "import" them somehow?

Фото профиля Adam Wathan
Adam Wathan1 год назад

Not at the moment but maybe something we could figure out. What would you want the external file to look like exactly, just a :root with some variables inside? Would need to be pretty simple for us to map it to a theme.

Фото профиля Kent C. Dodds 🌌
Kent C. Dodds 🌌1 год назад

Love it Adam! Looking forward to more!

Фото профиля Arnaud Barré
Arnaud Barré1 год назад

module.exports 🙈

Фото профиля Adam Wathan
Adam Wathan1 год назад

Will always be better 🙃 But ESM works too 👍

Похожие видео