Skip to content

pantoken-root / theme-custom-media

theme-custom-media ​

Бета

@pantoken/plugin-theme-custom-media — author with theme custom-idents (@media (theme: <name>)) and/or @media (--theme-*) aliases, then emit concrete CSS for a chosen target theme.

Плагін розширює вбудовані --theme-* та --breakpoint-* псевдоніми, обрізає гілки тем, що не є цільовими, видаляє відповідні клаузи theme:* із залишених запитів, розгортає завжди істинні медіа‑обгортки, які стосуються лише теми, та видаляє декларації @custom-media --theme-*/--breakpoint-* із згенерованого CSS.

Інтерфейси ​

Псевдоніми типів ​

Змінні ​

Посилання ​

default ​

Перейменовує та повторно експортує themeCustomMedia