Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: add dark theme style in chip #1177

Merged
merged 5 commits into from
Nov 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
85 changes: 85 additions & 0 deletions projects/ion/src/lib/chip/_chip.theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,94 @@ $default: (
),
);

$dark: (
border-radius: 100px,
text: (
font-weight: 600,
font-family: ion-theme(font-family-main),
),
size: (
sm: (
height: 24px,
padding: 4px 8px,
text-font-size: 12px,
text-line-height: 16px,
),
md: (
height: 32px,
padding: 6px 12px,
text-font-size: 14px,
text-line-height: 20px,
),
),
unselected: (
background-color: ion-theme(neutral-6),
text-color: ion-theme(primary-3),
icon-color: ion-theme(primary-3),
border-color: ion-theme(neutral-5),
border-width: 1px,
hover: (
background-color: ion-theme(primary-3),
text-color: ion-theme(primary-6),
icon-color: ion-theme(primary-6),
border-color: ion-theme(primary-6),
),
focus: (
background-color: ion-theme(primary-3),
text-color: ion-theme(primary-6),
icon-color: ion-theme(primary-6),
border-color: ion-theme(primary-6),
),
active: (
background-color: ion-theme(primary-5),
text-color: ion-theme(primary-1),
icon-color: ion-theme(primary-1),
border-color: ion-theme(primary-1),
),
disabled: (
background-color: ion-theme(neutral-7),
text-color: ion-theme(neutral-4),
icon-color: ion-theme(neutral-4),
border-color: ion-theme(neutral-4),
),
),
selected: (
background-color: ion-theme(neutral-6),
text-color: ion-theme(primary-3),
icon-color: ion-theme(primary-3),
border-color: ion-theme(primary-3),
border-width: 1.5px,
hover: (
background-color: ion-theme(primary-4),
text-color: ion-theme(primary-6),
icon-color: ion-theme(primary-6),
border-color: ion-theme(primary-6),
),
focus: (
background-color: ion-theme(primary-4),
text-color: ion-theme(primary-6),
icon-color: ion-theme(primary-6),
border-color: ion-theme(primary-6),
),
active: (
background-color: ion-theme(primary-6),
text-color: ion-theme(neutral-1),
icon-color: ion-theme(neutral-1),
border-color: ion-theme(neutral-1),
),
disabled: (
background-color: ion-theme(neutral-7),
text-color: ion-theme(neutral-4),
icon-color: ion-theme(neutral-4),
border-color: ion-theme(neutral-4),
),
),
);

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