discourse/lib/stylesheet
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
..
common.rb DEV: Upgrading Discourse to Zeitwerk (#8098) 2019-10-02 14:01:53 +10:00
compiler.rb DEV: Let themes extend color definitions (#10429) 2020-08-18 13:02:13 -04:00
functions.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
importer.rb DEV: Let themes extend color definitions (#10429) 2020-08-18 13:02:13 -04:00
manager.rb DEV: Let themes extend color definitions (#10429) 2020-08-18 13:02:13 -04:00
watcher.rb DEV: Ensure the correct plugin stylesheets are reloaded in development 2020-08-06 16:10:57 +01:00