FeatureFuel
2

[stable25] New theming, how to make your app compatible

Source: nextcloud/server#32060 · opened by @skjnldsv
With #31751 we decided to drop scss variables. Not everything is compatible with css variables and you can not do colors computation anymore Prior to 25, the theming app was providing an imperative approach with a set of css rules hacks to mitigate those dark/bright discrepancies. With 25, we now moved to a declarative approach. There are multiple things you can/have to consider when designing an app to make sure you have a minimalistic work to do to fulfill said compatibility 1. If your app is made with vue, migrate away from icon-class to vue material design icons 2. If you're using icon-classes 1. Plan your app to look proper with the default theme. That means the icons should be dark if they are over the main background and white if they are over the primary background colour 2. Make sure to use dedicated div/span for the icon only 3. And finally, use the following css rule on said icon element --primary-invert-if-bright if the icon is ov…

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests