active_frontend 16.0.0 → 16.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/active_frontend_helper.rb +26 -23
- data/lib/active_frontend/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 596fc31ddfbce0f505284ae2f10ec8067f706008a2bf87d4bef7b0904ef4079d
|
4
|
+
data.tar.gz: a4a458b4ab4e7859c67e6bb22b6b43e587a2ec2c7304afe453bd6b2dc497c195
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4db3ffc9e4af215f9f77e950685d1c075216945d9c264d96cc562cc4a2c0ada623edbfd75beaee7c2d675cbb80c5b1a08e3d0270852d86c7409c12e658a44975
|
7
|
+
data.tar.gz: 991e239174500f54eeb9df2b218a47fe3838ef66101427b086b8ade80b1d62ab0e981eb45a34fd3ba5fb9a474eeb5e99da9f6acaa39c8fe32c1a5c976dd32a33
|
@@ -5,34 +5,37 @@ module ActiveFrontendHelper
|
|
5
5
|
# rubocop:disable Metrics/MethodLength
|
6
6
|
def colors_brand(opacity = 1)
|
7
7
|
{
|
8
|
-
lime: { rgba: "rgba(
|
9
|
-
green: { rgba: "rgba(
|
10
|
-
teal: { rgba: "rgba(
|
11
|
-
sky: { rgba: "rgba(
|
12
|
-
blue: { rgba: "rgba(
|
13
|
-
indigo: { rgba: "rgba(
|
14
|
-
purple: { rgba: "rgba(
|
15
|
-
brown: { rgba: "rgba(
|
16
|
-
pink: { rgba: "rgba(
|
17
|
-
red: { rgba: "rgba(
|
18
|
-
orange: { rgba: "rgba(252,
|
19
|
-
yellow: { rgba: "rgba(
|
8
|
+
lime: { rgba: "rgba(122,197,61,#{opacity})", hex: '#7ac53d' },
|
9
|
+
green: { rgba: "rgba(76,188,52,#{opacity})", hex: '#4cbc34' },
|
10
|
+
teal: { rgba: "rgba(30,205,147,#{opacity})", hex: '#1ecd93' },
|
11
|
+
sky: { rgba: "rgba(0,165,255,#{opacity})", hex: '#00a5ff' },
|
12
|
+
blue: { rgba: "rgba(22,126,255,#{opacity})", hex: '#167eff' },
|
13
|
+
indigo: { rgba: "rgba(128,95,235,#{opacity})", hex: '#805feb' },
|
14
|
+
purple: { rgba: "rgba(157,94,213,#{opacity})", hex: '#9d5ed5' },
|
15
|
+
brown: { rgba: "rgba(145,101,73,#{opacity})", hex: '#916549' },
|
16
|
+
pink: { rgba: "rgba(232,101,118,#{opacity})", hex: '#e86576' },
|
17
|
+
red: { rgba: "rgba(244,53,67,#{opacity})", hex: '#f43543' },
|
18
|
+
orange: { rgba: "rgba(252,131,35,#{opacity})", hex: '#fc8323' },
|
19
|
+
yellow: { rgba: "rgba(245,202,9,#{opacity})", hex: '#f5ca09' }
|
20
20
|
}
|
21
21
|
end
|
22
22
|
|
23
23
|
def colors_grayscale(opacity = 1)
|
24
24
|
{
|
25
|
-
light_black: { rgba: "rgba(
|
26
|
-
black: { rgba: "rgba(
|
27
|
-
dark_black: { rgba: "rgba(
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
25
|
+
light_black: { rgba: "rgba(17,42,62,#{opacity})", hex: '#112a3e' },
|
26
|
+
black: { rgba: "rgba(13,32,47,#{opacity})", hex: '#0d202f' },
|
27
|
+
dark_black: { rgba: "rgba(9,22,32,#{opacity})", hex: '#091620' },
|
28
|
+
light_slate: { rgba: "rgba(55,78,98,#{opacity})", hex: '#374e62' },
|
29
|
+
slate: { rgba: "rgba(48,68,85,#{opacity})", hex: '#304455' },
|
30
|
+
dark_slate: { rgba: "rgba(41,58,72,#{opacity})", hex: '#293a48' },
|
31
|
+
light_gray: { rgba: "rgba(113,129,142,#{opacity})", hex: '#71818e' },
|
32
|
+
gray: { rgba: "rgba(105,119,131,#{opacity})", hex: '#697783' },
|
33
|
+
dark_gray: { rgba: "rgba(96,109,120,#{opacity})", hex: '#606d78' },
|
34
|
+
light_haze: { rgba: "rgba(247,248,253,#{opacity})", hex: '#f7f8fd' },
|
35
|
+
haze: { rgba: "rgba(238,241,250,#{opacity})", hex: '#edf0f9' },
|
36
|
+
dark_haze: { rgba: "rgba(237,240,249,#{opacity})", hex: '#e4e9f4' },
|
37
|
+
white: { rgba: "rgba(255,255,255,#{opacity})", hex: '#ffffff' },
|
38
|
+
transparent: { rgba: 'rgba(0,0,0,0)', hex: '#ffffff' }
|
36
39
|
}
|
37
40
|
end
|
38
41
|
# rubocop:enable Metrics/MethodLength
|