@latte-macchiat-io/latte-vanilla-components 0.0.175 → 0.0.177

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (155) hide show
  1. package/package.json +12 -23
  2. package/src/assets/styles/default-theme.ts +312 -0
  3. package/src/components/Button/stories.ts +127 -0
  4. package/src/components/Columns/stories.ts +35 -0
  5. package/src/components/Icon/path.ts +36 -0
  6. package/src/components/Icon/stories.ts +29 -0
  7. package/src/components/Main/stories.ts +33 -0
  8. package/src/components/Section/stories.ts +64 -0
  9. package/{dist/types/index.d.ts → src/index.ts} +38 -0
  10. package/src/styles/mediaqueries.ts +17 -0
  11. package/src/theme/baseThemeValues.ts +160 -0
  12. package/src/theme/index.ts +6 -0
  13. package/src/theme/utils.ts +76 -0
  14. package/src/types/theme.ts +295 -0
  15. package/src/types/withClassName.ts +3 -0
  16. package/src/utils/cookie.ts +24 -0
  17. package/src/utils/deep-merge-objects.ts +15 -0
  18. package/src/utils/use-breakpoint-key.ts +30 -0
  19. package/src/utils/use-window-size.ts +37 -0
  20. package/dist/components/Actions/Actions.css.ts +0 -113
  21. package/dist/components/Button/Button.css.ts +0 -119
  22. package/dist/components/Carousel/Carousel.css.ts +0 -179
  23. package/dist/components/Columns/Columns.css.ts +0 -185
  24. package/dist/components/ConsentCookie/ConsentCookie.css.ts +0 -167
  25. package/dist/components/Footer/Footer.css.ts +0 -108
  26. package/dist/components/Form/Form.css.ts +0 -64
  27. package/dist/components/Form/Row/Row.css.ts +0 -70
  28. package/dist/components/Form/TextField/Input/Input.css.ts +0 -106
  29. package/dist/components/Form/TextField/Label/Label.css.ts +0 -58
  30. package/dist/components/Form/TextField/TextField.css.ts +0 -139
  31. package/dist/components/Form/TextField/Textarea/Textarea.css.ts +0 -121
  32. package/dist/components/Header/Header.css.ts +0 -111
  33. package/dist/components/Header/HeaderOverlay/styles.css.ts +0 -33
  34. package/dist/components/Header/ToggleNav/styles.css.ts +0 -40
  35. package/dist/components/Icon/Icon.css.ts +0 -102
  36. package/dist/components/KeyNumber/KeyNumber.css.ts +0 -158
  37. package/dist/components/LanguageSwitcher/LanguageSwitcher.css.ts +0 -120
  38. package/dist/components/Logo/Logo.css.ts +0 -98
  39. package/dist/components/Main/Main.css.ts +0 -62
  40. package/dist/components/Modal/Modal.css.ts +0 -203
  41. package/dist/components/Nav/Nav.css.ts +0 -123
  42. package/dist/components/NavLegal/NavLegal.css.ts +0 -121
  43. package/dist/components/NavSocial/NavSocial.css.ts +0 -121
  44. package/dist/components/Section/Section.css.ts +0 -101
  45. package/dist/components/Video/Video.css.ts +0 -210
  46. package/dist/components/VideoFullWidth/VideoFullWidth.css.ts +0 -50
  47. package/dist/index.cjs.js +0 -2
  48. package/dist/index.es.js +0 -6813
  49. package/dist/styles/sprinkles.css.ts +0 -84
  50. package/dist/theme/contract.css.ts +0 -83
  51. package/dist/types/components/Actions/Actions.css.d.ts +0 -74
  52. package/dist/types/components/Actions/Actions.d.ts +0 -7
  53. package/dist/types/components/Actions/export.d.ts +0 -0
  54. package/dist/types/components/Actions/stories.d.ts +0 -0
  55. package/dist/types/components/Button/Button.css.d.ts +0 -65
  56. package/dist/types/components/Button/Button.d.ts +0 -8
  57. package/dist/types/components/Button/export.d.ts +0 -0
  58. package/dist/types/components/Button/stories.d.ts +0 -0
  59. package/dist/types/components/Carousel/Carousel.css.d.ts +0 -33
  60. package/dist/types/components/Carousel/Carousel.d.ts +0 -15
  61. package/dist/types/components/Carousel/export.d.ts +0 -0
  62. package/dist/types/components/Columns/Columns.css.d.ts +0 -104
  63. package/dist/types/components/Columns/Columns.d.ts +0 -8
  64. package/dist/types/components/Columns/export.d.ts +0 -0
  65. package/dist/types/components/Columns/stories.d.ts +0 -0
  66. package/dist/types/components/ConsentCookie/ConsentCookie.css.d.ts +0 -15
  67. package/dist/types/components/ConsentCookie/ConsentCookie.d.ts +0 -17
  68. package/dist/types/components/ConsentCookie/export.d.ts +0 -0
  69. package/dist/types/components/ConsentCookie/stories.d.ts +0 -0
  70. package/dist/types/components/Footer/Footer.css.d.ts +0 -50
  71. package/dist/types/components/Footer/Footer.d.ts +0 -7
  72. package/dist/types/components/Footer/export.d.ts +0 -0
  73. package/dist/types/components/Footer/stories.d.ts +0 -6
  74. package/dist/types/components/Form/Form.css.d.ts +0 -46
  75. package/dist/types/components/Form/Form.d.ts +0 -7
  76. package/dist/types/components/Form/Row/Row.css.d.ts +0 -51
  77. package/dist/types/components/Form/Row/Row.d.ts +0 -9
  78. package/dist/types/components/Form/Row/index.d.ts +0 -0
  79. package/dist/types/components/Form/Row/stories.d.ts +0 -0
  80. package/dist/types/components/Form/TextField/Input/Input.css.d.ts +0 -32
  81. package/dist/types/components/Form/TextField/Input/Input.d.ts +0 -10
  82. package/dist/types/components/Form/TextField/Input/export.d.ts +0 -0
  83. package/dist/types/components/Form/TextField/Label/Label.css.d.ts +0 -23
  84. package/dist/types/components/Form/TextField/Label/Label.d.ts +0 -9
  85. package/dist/types/components/Form/TextField/Label/export.d.ts +0 -0
  86. package/dist/types/components/Form/TextField/TextField.css.d.ts +0 -19
  87. package/dist/types/components/Form/TextField/TextField.d.ts +0 -21
  88. package/dist/types/components/Form/TextField/Textarea/Textarea.css.d.ts +0 -56
  89. package/dist/types/components/Form/TextField/Textarea/Textarea.d.ts +0 -8
  90. package/dist/types/components/Form/TextField/Textarea/export.d.ts +0 -0
  91. package/dist/types/components/Form/TextField/Textarea/stories.d.ts +0 -0
  92. package/dist/types/components/Form/TextField/export.d.ts +0 -0
  93. package/dist/types/components/Form/export.d.ts +0 -0
  94. package/dist/types/components/Header/Header.css.d.ts +0 -36
  95. package/dist/types/components/Header/Header.d.ts +0 -11
  96. package/dist/types/components/Header/HeaderOverlay/index.d.ts +0 -7
  97. package/dist/types/components/Header/HeaderOverlay/styles.css.d.ts +0 -5
  98. package/dist/types/components/Header/ToggleNav/index.d.ts +0 -9
  99. package/dist/types/components/Header/ToggleNav/styles.css.d.ts +0 -5
  100. package/dist/types/components/Header/export.d.ts +0 -0
  101. package/dist/types/components/Header/stories.d.ts +0 -6
  102. package/dist/types/components/Icon/Icon.css.d.ts +0 -45
  103. package/dist/types/components/Icon/Icon.d.ts +0 -12
  104. package/dist/types/components/Icon/export.d.ts +0 -0
  105. package/dist/types/components/Icon/path.d.ts +0 -19
  106. package/dist/types/components/Icon/stories.d.ts +0 -0
  107. package/dist/types/components/KeyNumber/KeyNumber.css.d.ts +0 -40
  108. package/dist/types/components/KeyNumber/KeyNumber.d.ts +0 -15
  109. package/dist/types/components/KeyNumber/export.d.ts +0 -0
  110. package/dist/types/components/LanguageSwitcher/LanguageSwitcher.css.d.ts +0 -18
  111. package/dist/types/components/LanguageSwitcher/LanguageSwitcher.d.ts +0 -16
  112. package/dist/types/components/LanguageSwitcher/export.d.ts +0 -0
  113. package/dist/types/components/Logo/Logo.css.d.ts +0 -54
  114. package/dist/types/components/Logo/Logo.d.ts +0 -8
  115. package/dist/types/components/Logo/export.d.ts +0 -0
  116. package/dist/types/components/Logo/stories.d.ts +0 -6
  117. package/dist/types/components/Main/Main.css.d.ts +0 -32
  118. package/dist/types/components/Main/Main.d.ts +0 -7
  119. package/dist/types/components/Main/export.d.ts +0 -0
  120. package/dist/types/components/Main/stories.d.ts +0 -0
  121. package/dist/types/components/Modal/Modal.css.d.ts +0 -82
  122. package/dist/types/components/Modal/Modal.d.ts +0 -15
  123. package/dist/types/components/Modal/export.d.ts +0 -0
  124. package/dist/types/components/Modal/types.d.ts +0 -5
  125. package/dist/types/components/Nav/Nav.css.d.ts +0 -52
  126. package/dist/types/components/Nav/Nav.d.ts +0 -7
  127. package/dist/types/components/Nav/export.d.ts +0 -0
  128. package/dist/types/components/Nav/stories.d.ts +0 -6
  129. package/dist/types/components/NavLegal/NavLegal.css.d.ts +0 -57
  130. package/dist/types/components/NavLegal/NavLegal.d.ts +0 -7
  131. package/dist/types/components/NavLegal/export.d.ts +0 -0
  132. package/dist/types/components/NavLegal/stories.d.ts +0 -6
  133. package/dist/types/components/NavLegal/types.d.ts +0 -1
  134. package/dist/types/components/NavSocial/NavSocial.css.d.ts +0 -30
  135. package/dist/types/components/NavSocial/NavSocial.d.ts +0 -15
  136. package/dist/types/components/NavSocial/export.d.ts +0 -0
  137. package/dist/types/components/NavSocial/stories.d.ts +0 -0
  138. package/dist/types/components/NavSocial/types.d.ts +0 -1
  139. package/dist/types/components/Section/Section.css.d.ts +0 -60
  140. package/dist/types/components/Section/Section.d.ts +0 -7
  141. package/dist/types/components/Section/export.d.ts +0 -0
  142. package/dist/types/components/Section/stories.d.ts +0 -0
  143. package/dist/types/components/ToRemove/ToRemove.d.ts +0 -1
  144. package/dist/types/components/Video/Video.css.d.ts +0 -43
  145. package/dist/types/components/Video/Video.d.ts +0 -17
  146. package/dist/types/components/Video/export.d.ts +0 -0
  147. package/dist/types/components/VideoFullWidth/VideoFullWidth.css.d.ts +0 -18
  148. package/dist/types/components/VideoFullWidth/VideoFullWidth.d.ts +0 -14
  149. package/dist/types/components/VideoFullWidth/export.d.ts +0 -0
  150. package/dist/types/utils/cookie.d.ts +0 -2
  151. package/dist/types/utils/deep-merge-objects.d.ts +0 -2
  152. package/dist/types/utils/theme.css.d.ts +0 -173
  153. package/dist/types/utils/use-breakpoint-key.d.ts +0 -1
  154. package/dist/types/utils/use-window-size.d.ts +0 -5
  155. package/dist/utils/theme.css.ts +0 -129
@@ -1,102 +0,0 @@
1
- import { style } from '@vanilla-extract/css';
2
- import { recipe, RecipeVariants } from '@vanilla-extract/recipes';
3
- import { themeContract } from '../../theme';
4
-
5
- const iconBase = style({
6
- display: 'inline-block',
7
- verticalAlign: 'middle',
8
- fill: 'currentColor',
9
- flexShrink: 0,
10
- transition: 'all 0.3s ease-in-out',
11
- });
12
-
13
- const iconPath = style({
14
- transition: 'fill 0.3s ease-in-out',
15
- });
16
-
17
- export const iconRecipe = recipe({
18
- base: iconBase,
19
-
20
- variants: {
21
- size: {
22
- xs: {
23
- width: '12px',
24
- height: '12px',
25
- },
26
- sm: {
27
- width: '16px',
28
- height: '16px',
29
- },
30
- md: {
31
- width: '24px',
32
- height: '24px',
33
- },
34
- lg: {
35
- width: '32px',
36
- height: '32px',
37
- },
38
- xl: {
39
- width: '48px',
40
- height: '48px',
41
- },
42
- '2xl': {
43
- width: '64px',
44
- height: '64px',
45
- },
46
- },
47
- // color: {
48
- // current: {
49
- // fill: 'currentColor',
50
- // },
51
- // primary: {
52
- // fill: themeContract.colors.primary,
53
- // },
54
- // secondary: {
55
- // fill: themeContract.colors.secondary,
56
- // },
57
- // accent: {
58
- // fill: themeContract.colors.accent,
59
- // },
60
- // text: {
61
- // fill: themeContract.colors.text,
62
- // },
63
- // textSecondary: {
64
- // fill: themeContract.colors.textSecondary,
65
- // },
66
- // error: {
67
- // fill: themeContract.colors.error,
68
- // },
69
- // success: {
70
- // fill: themeContract.colors.success,
71
- // },
72
- // warning: {
73
- // fill: themeContract.colors.warning,
74
- // },
75
- // info: {
76
- // fill: themeContract.colors.info,
77
- // },
78
- // },
79
- interactive: {
80
- true: {
81
- cursor: 'pointer',
82
- ':hover': {
83
- transform: 'scale(1.1)',
84
- opacity: 0.8,
85
- },
86
- ':active': {
87
- transform: 'scale(0.95)',
88
- },
89
- },
90
- false: {},
91
- },
92
- },
93
-
94
- defaultVariants: {
95
- size: 'md',
96
- // color: 'current',
97
- interactive: false,
98
- },
99
- });
100
-
101
- export { iconPath };
102
- export type IconVariants = RecipeVariants<typeof iconRecipe>;
@@ -1,158 +0,0 @@
1
- import { style } from '@vanilla-extract/css';
2
- import { recipe, RecipeVariants } from '@vanilla-extract/recipes';
3
- import { queries } from '../../styles/mediaqueries';
4
- import { themeContract } from '../../theme';
5
-
6
- const keyNumberBase = style({
7
- display: 'flex',
8
- flexDirection: 'column',
9
- alignItems: 'center',
10
- textAlign: 'center',
11
- color: themeContract.colors.text,
12
- });
13
-
14
- const keyNumberValue = style({
15
- fontSize: themeContract.fontSizes.lg,
16
- paddingBottom: themeContract.space.md,
17
- fontWeight: '400',
18
-
19
- '@media': {
20
- [queries.lg]: {
21
- paddingBottom: themeContract.space.lg,
22
- },
23
- },
24
-
25
- // selectors: {
26
- // '& span': {
27
- // fontSize: themeContract.fontSizes['4xl'],
28
- // lineHeight: themeContract.lineHeights.tight,
29
- // fontWeight: 'bold',
30
- // display: 'inline-block',
31
-
32
- // '@media': {
33
- // [queries.md]: {
34
- // fontSize: '3rem',
35
- // },
36
- // [queries.lg]: {
37
- // fontSize: '4rem',
38
- // },
39
- // },
40
- // },
41
- // },
42
- });
43
-
44
- const keyNumberLabel = style({
45
- fontSize: themeContract.fontSizes.md,
46
- color: themeContract.colors.textSecondary,
47
- lineHeight: themeContract.lineHeights.normal,
48
- margin: 0,
49
-
50
- '@media': {
51
- [queries.md]: {
52
- fontSize: themeContract.fontSizes.lg,
53
- },
54
- },
55
- });
56
-
57
- export const keyNumberRecipe = recipe({
58
- base: keyNumberBase,
59
-
60
- variants: {
61
- size: {
62
- sm: {
63
- // selectors: {
64
- // [`& .${keyNumberValue}`]: {
65
- // fontSize: themeContract.fontSizes.md,
66
- // },
67
- // [`& .${keyNumberValue} span`]: {
68
- // fontSize: themeContract.fontSizes['2xl'],
69
- // },
70
- // [`& .${keyNumberLabel}`]: {
71
- // fontSize: themeContract.fontSizes.sm,
72
- // },
73
- // },
74
- },
75
- md: {},
76
- lg: {
77
- // selectors: {
78
- // [`& .${keyNumberValue}`]: {
79
- // fontSize: themeContract.fontSizes.xl,
80
- // },
81
- // [`& .${keyNumberValue} span`]: {
82
- // fontSize: '5rem',
83
- // '@media': {
84
- // [queries.lg]: {
85
- // fontSize: '6rem',
86
- // },
87
- // },
88
- // },
89
- // [`& .${keyNumberLabel}`]: {
90
- // fontSize: themeContract.fontSizes.xl,
91
- // },
92
- // },
93
- },
94
- },
95
- variant: {
96
- default: {},
97
- highlighted: {
98
- padding: themeContract.space.lg,
99
- backgroundColor: themeContract.colors.surface,
100
- borderRadius: themeContract.radii.lg,
101
- boxShadow: themeContract.shadows.md,
102
- },
103
- outlined: {
104
- padding: themeContract.space.lg,
105
- border: `2px solid ${themeContract.colors.border}`,
106
- borderRadius: themeContract.radii.lg,
107
- },
108
- },
109
- align: {
110
- left: {
111
- alignItems: 'flex-start',
112
- textAlign: 'left',
113
- },
114
- center: {
115
- alignItems: 'center',
116
- textAlign: 'center',
117
- },
118
- right: {
119
- alignItems: 'flex-end',
120
- textAlign: 'right',
121
- },
122
- },
123
- // color: {
124
- // default: {},
125
- // primary: {
126
- // // selectors: {
127
- // // [`& .${keyNumberValue} span`]: {
128
- // // color: themeContract.colors.primary,
129
- // // },
130
- // // },
131
- // },
132
- // accent: {
133
- // // selectors: {
134
- // // [`& .${keyNumberValue} span`]: {
135
- // // color: themeContract.colors.accent,
136
- // // },
137
- // // },
138
- // },
139
- // success: {
140
- // // selectors: {
141
- // // [`& .${keyNumberValue} span`]: {
142
- // // color: themeContract.colors.success,
143
- // // },
144
- // // },
145
- // },
146
- // },
147
- },
148
-
149
- defaultVariants: {
150
- size: 'md',
151
- variant: 'default',
152
- align: 'center',
153
- // color: 'default',
154
- },
155
- });
156
-
157
- export { keyNumberValue, keyNumberLabel };
158
- export type KeyNumberVariants = RecipeVariants<typeof keyNumberRecipe>;
@@ -1,120 +0,0 @@
1
- import { style } from '@vanilla-extract/css';
2
- import { recipe, RecipeVariants } from '@vanilla-extract/recipes';
3
- import { themeContract } from '../../theme';
4
-
5
- const languageSwitcherBase = style({
6
- position: 'relative',
7
- display: 'inline-flex',
8
- alignItems: 'center',
9
- });
10
-
11
- const languageSwitcherSelect = style({
12
- appearance: 'none',
13
- background: 'transparent',
14
- border: `1px solid ${themeContract.colors.border}`,
15
- borderRadius: themeContract.radii.md,
16
- padding: `${themeContract.space.sm} ${themeContract.space.md}`,
17
- paddingRight: themeContract.space.xl,
18
- fontSize: themeContract.fontSizes.sm,
19
- fontFamily: themeContract.fonts.body,
20
- color: themeContract.colors.text,
21
- cursor: 'pointer',
22
- transition: 'all 0.3s ease-in-out',
23
- minWidth: '120px',
24
-
25
- // ':hover': {
26
- // borderColor: themeContract.colors.primary,
27
- // backgroundColor: themeContract.colors.surface,
28
- // },
29
-
30
- // ':focus': {
31
- // outline: '2px solid',
32
- // outlineColor: themeContract.colors.primary,
33
- // outlineOffset: '2px',
34
- // borderColor: themeContract.colors.primary,
35
- // },
36
-
37
- // ':disabled': {
38
- // opacity: '0.5',
39
- // cursor: 'not-allowed',
40
- // },
41
- });
42
-
43
- const languageSwitcherIcon = style({
44
- position: 'absolute',
45
- right: themeContract.space.sm,
46
- top: '50%',
47
- transform: 'translateY(-50%)',
48
- pointerEvents: 'none',
49
- color: themeContract.colors.textSecondary,
50
- transition: 'transform 0.2s ease-in-out',
51
-
52
- // selectors: {
53
- // [`${languageSwitcherSelect}:focus + &`]: {
54
- // color: themeContract.colors.primary,
55
- // transform: 'translateY(-50%) rotate(180deg)',
56
- // },
57
- // },
58
- });
59
-
60
- export const languageSwitcherRecipe = recipe({
61
- base: languageSwitcherBase,
62
-
63
- variants: {
64
- variant: {
65
- default: {},
66
- minimal: {
67
- // selectors: {
68
- // [`& .${languageSwitcherSelect}`]: {
69
- // border: 'none',
70
- // borderRadius: 0,
71
- // borderBottom: `1px solid ${themeContract.colors.border}`,
72
- // paddingLeft: 0,
73
- // paddingRight: themeContract.space.lg,
74
- // backgroundColor: 'transparent',
75
- // },
76
- // },
77
- },
78
- outlined: {},
79
- filled: {
80
- // selectors: {
81
- // [`& .${languageSwitcherSelect}`]: {
82
- // backgroundColor: themeContract.colors.surface,
83
- // border: 'none',
84
- // },
85
- // },
86
- },
87
- },
88
- size: {
89
- sm: {
90
- // selectors: {
91
- // [`& .${languageSwitcherSelect}`]: {
92
- // padding: `${themeContract.space.xs} ${themeContract.space.sm}`,
93
- // paddingRight: themeContract.space.lg,
94
- // fontSize: themeContract.fontSizes.xs,
95
- // minWidth: '100px',
96
- // },
97
- // },
98
- },
99
- md: {},
100
- lg: {
101
- // selectors: {
102
- // [`& .${languageSwitcherSelect}`]: {
103
- // padding: `${themeContract.space.md} ${themeContract.space.lg}`,
104
- // paddingRight: '48px',
105
- // fontSize: themeContract.fontSizes.md,
106
- // minWidth: '140px',
107
- // },
108
- // },
109
- },
110
- },
111
- },
112
-
113
- defaultVariants: {
114
- variant: 'default',
115
- size: 'md',
116
- },
117
- });
118
-
119
- export { languageSwitcherSelect, languageSwitcherIcon };
120
- export type LanguageSwitcherVariants = RecipeVariants<typeof languageSwitcherRecipe>;
@@ -1,98 +0,0 @@
1
- import { style } from '@vanilla-extract/css';
2
- import { recipe, RecipeVariants } from '@vanilla-extract/recipes';
3
- import { themeContract } from '../../theme';
4
-
5
- const logoBase = style({
6
- display: 'inline-block',
7
-
8
- // selectors: {
9
- // '& img': {
10
- // width: '100%',
11
- // height: 'auto',
12
- // maxWidth: '100%',
13
- // display: 'block',
14
- // },
15
- // '& svg': {
16
- // width: '100%',
17
- // height: 'auto',
18
- // maxWidth: '100%',
19
- // display: 'block',
20
- // fill: 'currentColor',
21
- // },
22
- // },
23
- });
24
-
25
- export const logoRecipe = recipe({
26
- base: logoBase,
27
-
28
- variants: {
29
- size: {
30
- xs: {
31
- width: '80px',
32
- height: 'auto',
33
- },
34
- sm: {
35
- width: '120px',
36
- height: 'auto',
37
- },
38
- md: {
39
- width: '160px',
40
- height: 'auto',
41
- },
42
- lg: {
43
- width: '200px',
44
- height: 'auto',
45
- },
46
- xl: {
47
- width: '240px',
48
- height: 'auto',
49
- },
50
- auto: {
51
- width: 'auto',
52
- height: 'auto',
53
- },
54
- },
55
- variant: {
56
- default: {},
57
- link: {
58
- cursor: 'pointer',
59
- transition: 'all 0.3s ease-in-out',
60
-
61
- ':hover': {
62
- opacity: '0.8',
63
- transform: 'scale(1.05)',
64
- },
65
-
66
- ':focus': {
67
- outline: '2px solid',
68
- outlineColor: themeContract.colors.primary,
69
- outlineOffset: '2px',
70
- borderRadius: themeContract.radii.sm,
71
- },
72
- },
73
- },
74
- responsive: {
75
- true: {
76
- maxWidth: '100%',
77
- height: 'auto',
78
-
79
- // selectors: {
80
- // '& img, & svg': {
81
- // width: '100%',
82
- // height: 'auto',
83
- // maxWidth: '100%',
84
- // },
85
- // },
86
- },
87
- false: {},
88
- },
89
- },
90
-
91
- defaultVariants: {
92
- size: 'md',
93
- variant: 'default',
94
- responsive: true,
95
- },
96
- });
97
-
98
- export type LogoVariants = RecipeVariants<typeof logoRecipe>;
@@ -1,62 +0,0 @@
1
- import { style } from '@vanilla-extract/css';
2
- import { recipe, RecipeVariants } from '@vanilla-extract/recipes';
3
- import { themeContract } from '../../theme';
4
-
5
- const mainBase = style({
6
- display: 'flex',
7
- flexDirection: 'column',
8
- alignItems: 'center',
9
- justifyContent: 'flex-start',
10
- width: '100%',
11
- minHeight: '100vh',
12
- maxWidth: themeContract.maxWidth,
13
- margin: '0 auto',
14
- paddingTop: themeContract.header.height,
15
- paddingBottom: themeContract.footer.height,
16
- backgroundColor: themeContract.colors.background,
17
- color: themeContract.colors.text,
18
- fontFamily: themeContract.fonts.body,
19
- });
20
-
21
- export const mainRecipe = recipe({
22
- base: mainBase,
23
-
24
- variants: {
25
- centered: {
26
- true: {
27
- justifyContent: 'center',
28
- alignItems: 'center',
29
- },
30
- false: {
31
- justifyContent: 'flex-start',
32
- alignItems: 'stretch',
33
- },
34
- },
35
- fullWidth: {
36
- true: {
37
- maxWidth: '100%',
38
- },
39
- false: {
40
- maxWidth: themeContract.maxWidth,
41
- },
42
- },
43
- noPadding: {
44
- true: {
45
- paddingTop: '0',
46
- paddingBottom: '0',
47
- },
48
- false: {
49
- paddingTop: themeContract.header.height,
50
- paddingBottom: themeContract.footer.height,
51
- },
52
- },
53
- },
54
-
55
- defaultVariants: {
56
- centered: false,
57
- fullWidth: false,
58
- noPadding: false,
59
- },
60
- });
61
-
62
- export type MainVariants = RecipeVariants<typeof mainRecipe>;