Skip to content

pantoken / 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