discourse/app/assets/javascripts/admin
Penar Musaraj 882b0aac19
DEV: Let themes extend color definitions (#10429)
Themes can now declare custom colors that get compiled in core's color definitions stylesheet, thus allowing themes to better support dark/light color schemes. 

For example, if you need your theme to use tertiary for an element in a light color scheme and quaternary in a dark scheme, you can add the following SCSS to your theme's `color_definitions.scss` file: 

```
:root {
  --mytheme-tertiary-or-quaternary: #{dark-light-choose($tertiary, $quaternary)};
}
```

And then use the `--mytheme-tertiary-or-quaternary` variable as the color property of that element. You can also use this file to add color variables that use SCSS color transformation functions (lighten, darken, saturate, etc.) without compromising your theme's compatibility with different color schemes.
2020-08-18 13:02:13 -04:00
..
adapters FEATURE: Add scopes to API keys (#9844) 2020-07-16 15:51:24 -03:00
components DEV: Let themes extend color definitions (#10429) 2020-08-18 13:02:13 -04:00
controllers FIX: Shows all_results if current settings category has no results (#10358) 2020-08-05 09:39:54 +02:00
helpers DEV: import I18n instead of global usage (#9768) 2020-05-13 16:23:41 -04:00
mixins FEATURE: add new user option skip_new_user_tips. (#10437) 2020-08-14 19:10:56 +05:30
models DEV: Let themes extend color definitions (#10429) 2020-08-18 13:02:13 -04:00
routes FEATURE: allows to display charts by day/week/month (#10325) 2020-07-28 16:14:41 +02:00
services FIX: change the controller method name to match its new name. 2020-08-13 00:58:35 +05:30
templates DEV: Let themes extend color definitions (#10429) 2020-08-18 13:02:13 -04:00