Skip to content

Commit 39e6ca3

Browse files
authored
Merge pull request #156 from lumihq/andrew/color-addition
added accent-1-3 green accent
2 parents b9aeedc + c9ed9ad commit 39e6ca3

File tree

4 files changed

+6
-0
lines changed

4 files changed

+6
-0
lines changed

docs/Examples/Color.example.purs

+1
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ links"""
8585
"""Input dropdown row hover background color
8686
selected table row background color"""
8787
, colorPanel _.accent1 "Accent 1" """Indicates good or complete status"""
88+
, colorPanel _.accent13 "Accent 1 - 15%" """Faded for focus borders/backgrounds"""
8889
, colorPanel _.accent2 "Accent 2" """Indicates pending, needs attention"""
8990
, colorPanel _.accent23 "Accent 2 - 15%" """Faded for focus borders/backgrounds"""
9091
, colorPanel _.accent3 "Accent 3" """Indicates a problem, warning"""

src/Lumi/Components/Button.purs

+1
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ styles = jss
265265
, "&[data-color=\"primary-3\"]": buttonColorHoverMixin colors.primary3
266266
, "&[data-color=\"primary-4\"]": buttonColorHoverMixin colors.primary4
267267
, "&[data-color=\"accent-1\"]": buttonColorHoverMixin colors.accent1
268+
, "&[data-color=\"accent-1-3\"]": buttonColorHoverMixin colors.accent13
268269
, "&[data-color=\"accent-2\"]": buttonColorHoverMixin colors.accent2
269270
, "&[data-color=\"accent-2-3\"]": buttonColorHoverMixin colors.accent23
270271
, "&[data-color=\"accent-3\"]": buttonColorHoverMixin colors.accent3

src/Lumi/Components/Color.purs

+3
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ type ColorMap a =
3333
, primary4 :: a
3434
, secondary :: a
3535
, accent1 :: a
36+
, accent13 :: a
3637
, accent2 :: a
3738
, accent23 :: a
3839
, accent3 :: a
@@ -59,6 +60,7 @@ colors =
5960
, primary4: rgb 0xed 0xf2 0xfd
6061
, secondary: rgb 0x91 0x90 0x8d
6162
, accent1: rgb 0x49 0xb8 0x60
63+
, accent13: rgb 0xe4 0xf5 0xe7
6264
, accent2: rgb 0xff 0xa5 0x02
6365
, accent23: rgb 0xff 0xee 0xd9
6466
, accent3: rgb 0xf1 0x50 0x0d
@@ -85,6 +87,7 @@ colorNames =
8587
, primary4: ColorName "primary-4"
8688
, secondary: ColorName "secondary"
8789
, accent1: ColorName "accent-1"
90+
, accent13: ColorName "accent-1-3"
8891
, accent2: ColorName "accent-2"
8992
, accent23: ColorName "accent-2-3"
9093
, accent3: ColorName "accent-3"

src/Lumi/Components/Text.purs

+1
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ styles =
194194
, "&[data-color=\"primary-3\"]": { color: cssStringHSLA colors.primary3 }
195195
, "&[data-color=\"primary-4\"]": { color: cssStringHSLA colors.primary4 }
196196
, "&[data-color=\"accent-1\"]": { color: cssStringHSLA colors.accent1 }
197+
, "&[data-color=\"accent-1-3\"]": { color: cssStringHSLA colors.accent13 }
197198
, "&[data-color=\"accent-2\"]": { color: cssStringHSLA colors.accent2 }
198199
, "&[data-color=\"accent-2-3\"]": { color: cssStringHSLA colors.accent23 }
199200
, "&[data-color=\"accent-3\"]": { color: cssStringHSLA colors.accent3 }

0 commit comments

Comments
 (0)