Skip to content

Commit 8c13e0f

Browse files
update component colors
1 parent 3d453a2 commit 8c13e0f

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

Sources/ComponentsKit/Configuration/Palette.swift

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,16 +73,25 @@ public struct Palette: Initializable, Updatable {
7373
)
7474
/// The success state color, used for indicating positive actions or statuses.
7575
public var success: ComponentColor = .init(
76-
main: .universal(.hex("#3ED661")),
77-
contrast: .universal(.hex("#FFFFFF")),
76+
main: .themed(
77+
light: .hex("#3ED661"),
78+
dark: .hex("#1EC645")
79+
),
80+
contrast: .themed(
81+
light: .hex("#FFFFFF"),
82+
dark: .hex("#0B0C0E")
83+
),
7884
background: .themed(
7985
light: .hex("#DAF6E1"),
8086
dark: .hex("#344B3C")
8187
)
8288
)
8389
/// The warning state color, used for indicating caution or non-critical alerts.
8490
public var warning: ComponentColor = .init(
85-
main: .universal(.hex("#FFC936")),
91+
main: .themed(
92+
light: .hex("#FFC936"),
93+
dark: .hex("#F4B300")
94+
),
8695
contrast: .universal(.hex("#0B0C0E")),
8796
background: .themed(
8897
light: .hex("#FFF1CB"),
@@ -91,7 +100,10 @@ public struct Palette: Initializable, Updatable {
91100
)
92101
/// The danger state color, used for indicating errors, destructive actions, or critical alerts.
93102
public var danger: ComponentColor = .init(
94-
main: .universal(.hex("#F03E53")),
103+
main: .themed(
104+
light: .hex("#F03E53"),
105+
dark: .hex("#D22338")
106+
),
95107
contrast: .universal(.hex("#FFFFFF")),
96108
background: .themed(
97109
light: .hex("#FFE5E8"),

0 commit comments

Comments
 (0)