summaryrefslogtreecommitdiffhomepage
path: root/packages/ui/src/components/tag.css
blob: 0e8b7b9f10475e2b39bc38f23a90db040480f00e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
[data-component="tag"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;

  border-radius: var(--radius-xs);
  border: 0.5px solid var(--border-weak-base);
  background: var(--surface-raised-base);
  color: var(--text-base);

  &[data-size="normal"] {
    height: 18px;
    padding: 0 6px;

    /* text-12-medium */
    font-family: var(--font-family-sans);
    font-size: var(--font-size-small);
    font-style: normal;
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-large); /* 166.667% */
    letter-spacing: var(--letter-spacing-normal);
  }

  &[data-size="large"] {
    height: 22px;
    padding: 0 8px;

    /* text-14-medium */
    font-family: var(--font-family-sans);
    font-size: 14px;
    font-style: normal;
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-large); /* 142.857% */
    letter-spacing: var(--letter-spacing-normal);
  }
}