-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d5dd244
commit e6f7742
Showing
6 changed files
with
62 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,7 +43,7 @@ export default { | |
}, | ||
{ | ||
name: 'light', | ||
value: '#FFFFF' | ||
value: '#FFFFFF' | ||
} | ||
] | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,52 @@ | ||
import { css } from 'lit' | ||
import { css } from '../../utils/ThemeHelperUtil.js' | ||
|
||
export default css` | ||
:host { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
height: var(--wui-spacing-m); | ||
padding: 0 var(--wui-spacing-3xs) !important; | ||
border-radius: var(--wui-border-radius-5xs); | ||
gap: ${({ spacing }) => spacing[1]}; | ||
} | ||
:host > wui-text { | ||
transform: translateY(5%); | ||
:host([data-variant='accent']) { | ||
background-color: ${({ tokens }) => tokens.core.foregroundAccent010}; | ||
color: ${({ tokens }) => tokens.core.textAccentPrimary}; | ||
} | ||
:host([data-variant='main']) { | ||
background-color: var(--wui-color-accent-glass-015); | ||
color: var(--wui-color-accent-100); | ||
:host([data-variant='info']) { | ||
background-color: ${({ tokens }) => tokens.theme.foregroundSecondary}; | ||
color: ${({ tokens }) => tokens.theme.textSecondary}; | ||
} | ||
:host([data-variant='shade']) { | ||
background-color: var(--wui-color-gray-glass-010); | ||
color: var(--wui-color-fg-200); | ||
:host([data-variant='success']) { | ||
background-color: ${({ tokens }) => tokens.core.backgroundSuccess}; | ||
color: ${({ tokens }) => tokens.core.textSuccess}; | ||
} | ||
:host([data-variant='success']) { | ||
background-color: var(--wui-icon-box-bg-success-100); | ||
color: var(--wui-color-success-100); | ||
:host([data-variant='warning']) { | ||
background-color: ${({ tokens }) => tokens.core.backgroundWarning}; | ||
color: ${({ tokens }) => tokens.core.textWarning}; | ||
} | ||
:host([data-variant='error']) { | ||
background-color: var(--wui-icon-box-bg-error-100); | ||
color: var(--wui-color-error-100); | ||
background-color: ${({ tokens }) => tokens.core.backgroundError}; | ||
color: ${({ tokens }) => tokens.core.textError}; | ||
} | ||
:host([data-variant='certified']) { | ||
background-color: ${({ tokens }) => tokens.theme.foregroundSecondary}; | ||
color: ${({ tokens }) => tokens.theme.textSecondary}; | ||
} | ||
:host([data-size='lg']) { | ||
padding: 11px 5px !important; | ||
:host([data-size='md']) { | ||
height: 30px; | ||
padding: 0 ${({ spacing }) => spacing[2]}; | ||
border-radius: ${({ borderRadius }) => borderRadius[2]}; | ||
} | ||
:host([data-size='lg']) > wui-text { | ||
transform: translateY(2%); | ||
:host([data-size='sm']) { | ||
height: 20px; | ||
padding: 0 ${({ spacing }) => spacing[1]}; | ||
border-radius: ${({ borderRadius }) => borderRadius[1]}; | ||
} | ||
` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters