Implemented
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.
Comments
Similar requests
Theming options available in admin and user theming should share a component
1 vote · 0 comments
[UI/UX] Theming / Appearance and Accessibility management
0 votes · 0 comments
Improved theming to fully replace legacy themes
2 votes · 0 comments
Add custom font support in theming
0 votes · 0 comments
Need multi-language support in "Theming"-"Name"
0 votes · 0 comments
No comments yet.