File size: 1,115 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
import { globalStyle } from '@vanilla-extract/css'
import { vars } from '../styles/theme-contract.css'
import { recipe } from '@vanilla-extract/recipes'

export const calloutWrapper = recipe({
  base: {
    borderRadius: vars.radii.r8,
    padding: vars.space['30'],
    margin: `${vars.space['20']} 0`,
  },

  variants: {
    type: {
      warning: {
        backgroundColor: '#FF701933',
      },
      danger: {
        backgroundColor: 'red',
      },
      success: {
        backgroundColor: 'green',
      },
      note: {
        background: '#569AFF33',
      },
    },
  },
})

globalStyle(`${calloutWrapper} + pre`, {
  marginTop: vars.space['40'],
})

export const label = recipe({
  base: {
    fontWeight: vars.fontWeights.semiblack,
    marginBottom: vars.space['15'],
    display: 'flex',
    gap: vars.space['5'],
    alignItems: 'center',
  },

  variants: {
    type: {
      warning: {
        color: '#FF7019CC',
      },
      danger: {
        color: '#FF7019CC',
      },
      success: {
        color: '#FF7019CC',
      },
      note: {
        color: '#569AFF',
      },
    },
  },
})