Skip to content

The open alternative to Salesforce, designed for AI.

1.3 KB
Raw Blame
.typography {
  &:where([data-size='xxs']) {
    font-size: var(--t-font-size-xxs);
  }

  &:where([data-size='xs']) {
    font-size: var(--t-font-size-xs);
  }

  &:where([data-size='sm']) {
    font-size: var(--t-font-size-sm);
  }

  &:where([data-size='md']) {
    font-size: var(--t-font-size-md);
  }

  &:where([data-size='lg']) {
    font-size: var(--t-font-size-lg);
  }

  &:where([data-size='xl']) {
    font-size: var(--t-font-size-xl);
  }

  &:where([data-size='xxl']) {
    font-size: var(--t-font-size-xxl);
  }

  &:where([data-weight='regular']) {
    font-weight: var(--t-font-weight-regular);
  }

  &:where([data-weight='medium']) {
    font-weight: var(--t-font-weight-medium);
  }

  &:where([data-weight='semibold']) {
    font-weight: var(--t-font-weight-semi-bold);
  }

  &:where([data-color='primary']) {
    color: var(--t-font-color-primary);
  }

  &:where([data-color='secondary']) {
    color: var(--t-font-color-secondary);
  }

  &:where([data-color='tertiary']) {
    color: var(--t-font-color-tertiary);
  }

  &:where([data-color='light']) {
    color: var(--t-font-color-light);
  }
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lineClamp {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--text-line-clamp, 1);
}