Skip to content

Commit

Permalink
style: adding dark theme styles in checkbox (#1218)
Browse files Browse the repository at this point in the history
  • Loading branch information
larissa-kamily-brisa authored Dec 3, 2024
1 parent 3c6a066 commit 59ae896
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions projects/ion/src/lib/checkbox/_checkbox.theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,66 @@ $default: (
),
);

$dark: (
size: 16px,
margin: 4px,
border-radius: 4px,
enabled: (
background-color: transparent,
border-color: ion-theme(neutral-1),
hover: (
background-color: ion-theme(neutral-1),
shadow-color: ion-theme(primary-2),
border-color: ion-theme(primary-3),
icon-color: ion-theme(primary-2),
),
active: (
background-color: ion-theme(primary-2),
border-color: ion-theme(primary-5),
icon-color: ion-theme(primary-1),
),
checked: (
background-color: ion-theme(primary-6),
icon-color: ion-theme(primary-1),
hover-background-color: ion-theme(primary-5),
active-background-color: ion-theme(primary-7),
),
),
disabled: (
background-color: ion-theme(neutral-7),
border-color: ion-theme(neutral-3),
icon-color: ion-theme(neutral-3),
checked: (
background-color: ion-theme(neutral-6),
icon-color: ion-theme(neutral-3),
),
),
indeterminate: (
background-color: ion-theme(primary-6),
border-radius: 4px,
icon-color: ion-theme(primary-1),
hover: (
background-color: ion-theme(primary-5),
icon-color: ion-theme(primary-1),
),
disabled: (
icon-color: ion-theme(neutral-3),
),
),
label: (
font-size: 14px,
line-height: 20px,
color: ion-theme(neutral-1),
disabled: (
text-color: ion-theme(neutral-3),
),
),
);

@include register-component(
checkbox,
(
default: $default,
dark: $dark,
)
);

0 comments on commit 59ae896

Please sign in to comment.