File size: 2,110 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
import { style } from '@vanilla-extract/css'
import { BREAKPOINTS } from './breakpoints.css'
import { vars } from './theme-contract.css'

export type FontSizes = typeof vars.fontSizes
export type FontWeights = typeof vars.fontWeights

export const XXL = style({
  fontSize: vars.fontSizes.XL,
  lineHeight: vars.lineHeights.XL,

  '@media': {
    [`screen and ${BREAKPOINTS.tabletUp}`]: {
      fontSize: vars.fontSizes.XXL,
      lineHeight: vars.lineHeights.XXL,
    },
  },
})

export const XL = style({
  fontSize: vars.fontSizes.L,
  lineHeight: vars.lineHeights.L,

  '@media': {
    [`screen and ${BREAKPOINTS.tabletUp}`]: {
      fontSize: vars.fontSizes.XL,
      lineHeight: vars.lineHeights.XL,
    },
  },
})

export const L = style({
  fontSize: vars.fontSizes.M,
  lineHeight: vars.lineHeights.M,

  '@media': {
    [`screen and ${BREAKPOINTS.tabletUp}`]: {
      fontSize: vars.fontSizes.L,
      lineHeight: vars.lineHeights.L,
    },
  },
})

export const M = style({
  fontSize: vars.fontSizes.S,
  lineHeight: vars.lineHeights.S,

  '@media': {
    [`screen and ${BREAKPOINTS.tabletUp}`]: {
      fontSize: vars.fontSizes.M,
      lineHeight: vars.lineHeights.M,
    },
  },
})

export const S = style({
  fontSize: vars.fontSizes.XS,
  lineHeight: vars.lineHeights.XS,

  '@media': {
    [`screen and ${BREAKPOINTS.tabletUp}`]: {
      fontSize: vars.fontSizes.S,
      lineHeight: vars.lineHeights.S,
    },
  },
})

export const XS = style({
  fontSize: vars.fontSizes.XXS,
  lineHeight: vars.lineHeights.XXS,

  '@media': {
    [`screen and ${BREAKPOINTS.tabletUp}`]: {
      fontSize: vars.fontSizes.XS,
      lineHeight: vars.lineHeights.XS,
    },
  },
})

export const XXS = style({
  fontSize: vars.fontSizes.XXS,
  lineHeight: vars.lineHeights.XXS,
})

export const code = style({
  fontSize: vars.fontSizes.code,
  lineHeight: vars.lineHeights.code,
})

export const WEIGHTS = {
  default: style({
    fontWeight: vars.fontWeights.default,
  }),
  bold: style({
    fontWeight: vars.fontWeights.bold,
  }),
  semiblack: style({
    fontWeight: vars.fontWeights.semiblack,
  }),
}