hikari-components 0.3.10

Core UI components (buttons, inputs, tables, modals) for the Hikari design system
// Use theme variables with namespace to avoid conflicts
@use '../../../../theme/styles/variables.scss' as vars;

// ============================================
// Hikari Avatar Component
// ============================================

.hi-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--hi-color-gray-200, #E5E7EB);
  color: var(--hi-color-gray-600, #4B5563);
  font-weight: 500;
  transition: all 0.2s ease;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.hi-avatar-xs {
  width: 24px;
  height: 24px;
  font-size: 0.625rem;
}

.hi-avatar-sm {
  width: 32px;
  height: 32px;
  font-size: 0.75rem;
}

.hi-avatar-md {
  width: 40px;
  height: 40px;
  font-size: 0.875rem;
}

.hi-avatar-lg {
  width: 48px;
  height: 48px;
  font-size: 1rem;
}

.hi-avatar-xl {
  width: 64px;
  height: 64px;
  font-size: 1.25rem;
}

.hi-avatar-circular {
  border-radius: 50%;
}

.hi-avatar-rounded {
  border-radius: 8px;
}

.hi-avatar-square {
  border-radius: 0;
}

.hi-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  font-weight: 600;
}

.hi-avatar-icon {
  color: var(--hi-color-text-secondary);
  opacity: 0.8;
}

.hi-avatar-img {
  display: block;
  width: 100%;
  height: 100%;
}

[data-theme="dark"] .hi-avatar {
  background-color: var(--hi-surface);
  color: var(--hi-color-text-secondary);
}

[data-theme="dark"] .hi-avatar-icon {
  color: var(--hi-color-text-secondary);
  opacity: 0.6;
}