discourse/app/helpers
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
..
application_helper.rb DEV: Let themes extend color definitions (#10429) 2020-08-18 13:02:13 -04:00
common_helper.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
email_helper.rb FIX: Set the lang/xml:lang html attrs in emails (#10218) 2020-07-13 16:39:40 +02:00
embed_helper.rb FIX: Display small post actions when embedding a topic (#9278) 2020-03-26 09:07:41 -03:00
emoji_helper.rb FIX: ensures emoji helper is working with custom emojis (#7843) 2019-07-03 09:23:40 +02:00
list_helper.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
topics_helper.rb Improve support for old browsers (#9515) 2020-04-29 21:40:21 +03:00
user_notifications_helper.rb FEATURE: Nokogumbo (#9577) 2020-05-05 13:46:57 +10:00