Commit Graph

12 Commits

Author SHA1 Message Date
mkpaz
2bade687f7 Add menu/menubar paddings 2023-02-08 19:17:03 +04:00
mkpaz
c547b7231b Remove opacity from borders colors #21 2023-02-08 13:37:38 +04:00
mkpaz
0b1bdf0bb2 Flatten Nord theme colors 2022-10-06 13:52:42 +04:00
mkpaz
2716cca2a0 Improve Nord theme
Redesign slider and pagination to rectangular form.
2022-09-30 17:20:02 +04:00
mkpaz
bfa3eeadc6 Improve button style
- Use opacity for hover effect
- Add color transition for focused effect
- Add separate hover effect for SplitMenuButton arrow
- Add button color customization example
2022-09-29 13:03:13 +04:00
mkpaz
53ac9f52ff Fix shadow effect for popup controls
Also introduces "-color-shadow-default" color variables.
2022-09-17 19:20:36 +04:00
mkpaz
7b1003c686 Improve Nord theme
- Fixed contrast issues
- Revamped color palette
- Better design without border-radius
2022-09-14 14:10:57 +04:00
mkpaz
c102d25196 Rename color scale variables
The main problem of the old approach is that variables which contain real color
name (blue, green, red) were exposed as looked-up colors. This is because
GitHub Primer only specifies four functional variables for each color
(foreground, emphasis, muted and subtle) and only three of them can be used as
background color, which is clearly not enough to create hover, pressed or other
color effects. So, we can either use dynamic color modification functions,
which can lead to less predictable results, or use colors from the predefined
color palette, or create a bunch of the ugly named color variables for every
combination (`-color-accent-muted-hover`, `-color-accent-subtle-hover` and so
on) for general purposes.

Still, it worked fine until changing accent color feature wasn't implemented.
To fully change accent or any other color, one should change not only the
functional variables, but also the corresponding color scale, which is
responsible for background effects. As an outcome, if we change the accent
color to purple, we end-up with `-color-accent-emphasis` which is purple and
`-color-blue-5`which is also purple. That's just confusing.

This commit resolves this by renaming all color scale stuff to functional
variables. So, `-color-blue-*` becomes `-color-accent-*` and so on, and this
long explanation supposed to serve as a reminder that nothing is perfect and
this is just another trade-off example.
2022-09-03 20:24:09 +04:00
mkpaz
aad6b06e12 Merge common dark mode customizations into main stylesheet 2022-08-31 14:45:08 +04:00
mkpaz
4e50660a8f Refactor themes to use color scale
Color shades should be declared upfront without resorting to the dynamic brightness modification functions. All shades are also exposed as looked-up colors.
2022-08-30 13:28:10 +04:00
mkpaz
27cfcf704e Use overlay color variable for popover and tooltip 2022-08-29 10:46:19 +04:00
mkpaz
a7255949ce Add Nord color themes
Both light and dark variants. Needs further polishing, but still pretty usable.
2022-08-21 17:00:41 +04:00