Skip to content

Commit b04b866

Browse files
committed
Removing some hard coded colors, so now they will be able to use the dark-theme as well
1 parent ff15fc9 commit b04b866

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/uui-color-picker/lib/uui-color-picker.element.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -586,6 +586,7 @@ export class UUIColorPickerElement extends LabelMixin('label', LitElement) {
586586
--uui-look-outline-border: #ddd;
587587
--uui-look-outline-border-hover: #aaa;
588588
font-size: 0.8rem;
589+
color: var(--uui-color-text);
589590
display: block;
590591
width: var(--uui-color-picker-width, 280px);
591592
}
@@ -597,9 +598,9 @@ export class UUIColorPickerElement extends LabelMixin('label', LitElement) {
597598
}
598599
.color-picker {
599600
width: 100%;
600-
background-color: #fff;
601+
background-color: var(--uui-color-surface);
601602
user-select: none;
602-
border: solid 1px #e4e4e7;
603+
border: solid 1px var(--uui-color-border);
603604
}
604605
.color-picker__user-input {
605606
display: flex;
@@ -705,7 +706,7 @@ export class UUIColorPickerElement extends LabelMixin('label', LitElement) {
705706
}
706707
707708
uui-color-swatches {
708-
border-top: solid 1px #d4d4d8;
709+
border-top: solid 1px var(--uui-color-border);
709710
padding: 0.75rem;
710711
}
711712

0 commit comments

Comments
 (0)