PluginProbe
Code Snippets / 3.10.0-beta.1
Code Snippets v3.10.0-beta.1
4.0.0-beta.2 3.10.2 3.10.1 3.10.0 3.10.0-beta.2 3.10.0-beta.1 4.0.0-beta.1 3.9.6 trunk 2.10.0 2.10.1 2.12.0 2.12.1 2.13.0 2.13.1 2.13.2 2.13.3 2.14.0 2.14.1 2.14.2 2.14.3 2.14.4 2.14.5 2.14.6 3.0.0 All 65 releases
code-snippets / css / common / _theme.scss

_theme.scss in Code Snippets 3.10.0-beta.1, at css/common/_theme.scss

71 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 @use 'sass:color';
2
3 $accent: #2271b1;
4 $primary: #03c7d2;
5 $secondary: #d46f4d;
6 $outline: #9e9e9e;
7 $brand-discord: #5865f2;
8 $brand-facebook: #3b5998;
9 $cloud: #00bcd4;
10 $cloud-update: #ff9800;
11
12 // Plugin admin control tokens, applied to native form controls on all plugin
13 // screens regardless of WordPress version (see common/_wp-admin.scss).
14 $accent-hover: #0a4b78;
15 $control-border: #c3c4c7;
16 $control-text: #2c3338;
17 $control-height: 38px;
18 $control-radius: 5px;
19
20 /* format: background-color [color] */
21 $badges: (
22 // php/html/cond darkened for WCAG AA — at least 4.5:1 against white 12px
23 // bold text; php reuses $accent, html/cond keep hue at reduced lightness.
24 php: $accent,
25 html: #cd4510,
26 css: #9b59b6,
27 js: #f7d67a #1c1f20,
28 cond: #22826f,
29 core: #61c5cb,
30 pro: #f7e8e3 #df9279,
31 cloud: $cloud,
32 bundles: #50575e,
33 cloud_search: #ff9800,
34 private: #f7e6be #ca961b,
35 public: #dbebf7 $accent,
36 success: #d3e8d1 #447340,
37 failure: #fad7c1 #a24b16,
38 info: #d2e6f4 #2b71a3,
39 neutral: #f6f7f7 #646970,
40 neutralDark: #e2e5e5 #6c7e7e,
41 special: #dfc5ef #6e249c
42 );
43 $notices: (
44 success: #d3e9d3 #377a37,
45 warning: #f2ebc3 #b0730a,
46 error: #f8d7da #721c24,
47 info: #d2e6f4 #2b71a3,
48 neutral: #e2e5e5 #6c7e7e,
49 special: #dfc5ef #6e249c
50 );
51
52 @function contrasting-text-color($bg-color) {
53 $sum: 0;
54
55 @each $color, $multiplier in (red 0.299, green 0.587, blue 0.114) {
56 $sum: $sum + color.channel($bg-color, $color, $space: rgb) * $multiplier;
57 }
58
59 @return if ($sum > 186, #1c1f20, #fff)
60 }
61
62 @mixin link-colors($color, $lightness: 15%) {
63 a {
64 color: $color;
65
66 &:hover, &:active, &:focus {
67 color: color.adjust($color, $lightness: $lightness);
68 }
69 }
70 }
71