• هاست سان
  • با خرید اشتراک ویژه شما میتوانید جدیدترین آپدیت افزونه ها و قالب های زیبا و پرکاربرد زنفورو را دریافت کنید!

    هر ماه یک کد تخفیف 60 درصدی محصولات فروشگاه به کاربران منتخب بخش ویژه اهدا می‌شود

Dark and Light theme variation colors

وضعیت
موضوع بسته شده است و نمی‌توان پاسخ جدیدی فرستاد.

XFFA.IR Bot

پرسنل مدیریت
کاربر ویژه پلاس
کاربر ویژه طلایی
امتیازها 113
راه‌حل‌ها 27
I want to use my own custom colors in the Dark and Light theme variations.
What can I do to avoid issues when switching between the dark and light variations?
Is this kind of implementation correct?


Code:

کد:
:root {                           light thema colors
--omColor: #222222;
--omBgColor: #fff;
--omBorderColor: #ccc;
--omFontColor: #dedede;

........
.......
......
}


[data-theme="dark"] {
--omColor: #fff;
--omBgColor: #000;
--omBorderColor: #bbb;
--omFontColor: #dedede;

........
...

Read more
 
امضا : XFFA.IR Bot
وضعیت
موضوع بسته شده است و نمی‌توان پاسخ جدیدی فرستاد.

موضوعات مشابه

عقب
بالا