diff options
Diffstat (limited to 'packages/ui/src/components/avatar.css')
| -rw-r--r-- | packages/ui/src/components/avatar.css | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/packages/ui/src/components/avatar.css b/packages/ui/src/components/avatar.css new file mode 100644 index 000000000..bc87f3bd8 --- /dev/null +++ b/packages/ui/src/components/avatar.css @@ -0,0 +1,35 @@ +[data-component="avatar"] { + --avatar-bg: var(--color-surface-info-base); + display: flex; + align-items: center; + justify-content: center; + flex-shrink: 0; + border-radius: var(--radius-sm); + border: 1px solid var(--color-border-weak-base); + font-family: var(--font-mono); + font-weight: 500; + text-transform: uppercase; + background-color: var(--avatar-bg); + color: oklch(from var(--avatar-bg) calc(l * 0.72) calc(c * 8) h); +} + +[data-component="avatar"][data-size="small"] { + width: 1.25rem; + height: 1.25rem; + font-size: 0.75rem; + line-height: 1; +} + +[data-component="avatar"][data-size="normal"] { + width: 1.5rem; + height: 1.5rem; + font-size: 1.125rem; + line-height: 1.5rem; +} + +[data-component="avatar"][data-size="large"] { + width: 2rem; + height: 2rem; + font-size: 1.25rem; + line-height: 2rem; +} |
