@latte-macchiat-io/latte-vanilla-components 0.0.287 → 0.0.289

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@latte-macchiat-io/latte-vanilla-components",
3
- "version": "0.0.287",
3
+ "version": "0.0.289",
4
4
  "description": "Beautiful components for amazing projects, with a touch of Vanilla 🥤",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -1,35 +1,36 @@
1
- import { style } from '@vanilla-extract/css';
1
+ import { globalStyle, style } from '@vanilla-extract/css';
2
2
  import { recipe } from '@vanilla-extract/recipes';
3
+
3
4
  import { queries, themeContract } from '../..';
4
5
  import { generateResponsiveMedia } from '../../utils/generateResponsiveMedia';
5
6
 
7
+ export const headerBase = style({
8
+ zIndex: 30,
9
+ width: '100%',
10
+ display: 'flex',
11
+ flexDirection: 'row',
12
+ alignItems: 'center',
13
+ position: 'relative',
14
+ justifyContent: 'space-between',
15
+
16
+ fontSize: themeContract.header.fontSize,
17
+ backgroundColor: themeContract.header.backgroundColor,
18
+
19
+ '@media': {
20
+ ...generateResponsiveMedia({
21
+ gap: themeContract.header.gap,
22
+ height: themeContract.header.height,
23
+ paddingTop: themeContract.header.paddingTop,
24
+ paddingLeft: themeContract.global.paddingLeft,
25
+ paddingRight: themeContract.global.paddingRight,
26
+ paddingBottom: themeContract.header.paddingBottom,
27
+ }),
28
+ },
29
+ });
30
+
6
31
  export const headerRecipe = recipe(
7
32
  {
8
- base: [
9
- {
10
- zIndex: 30,
11
- width: '100%',
12
- display: 'flex',
13
- flexDirection: 'row',
14
- alignItems: 'center',
15
- position: 'relative',
16
- justifyContent: 'space-between',
17
-
18
- fontSize: themeContract.header.fontSize,
19
- backgroundColor: themeContract.header.backgroundColor,
20
-
21
- '@media': {
22
- ...generateResponsiveMedia({
23
- gap: themeContract.header.gap,
24
- height: themeContract.header.height,
25
- paddingTop: themeContract.header.paddingTop,
26
- paddingLeft: themeContract.global.paddingLeft,
27
- paddingRight: themeContract.global.paddingRight,
28
- paddingBottom: themeContract.header.paddingBottom,
29
- }),
30
- },
31
- },
32
- ],
33
+ base: [headerBase],
33
34
 
34
35
  variants: {
35
36
  isFixed: {
@@ -123,5 +124,9 @@ export const headerToggleNav = recipe(
123
124
  'header-toggle-nav'
124
125
  );
125
126
 
127
+ globalStyle(`${headerBase} a`, {
128
+ color: themeContract.header.linkColor,
129
+ });
130
+
126
131
  export type HeaderToggleNavVariants = Parameters<typeof headerToggleNav>[0];
127
132
  export type HeaderOverlayVariants = Parameters<typeof headerOverlayRecipe>[0];
@@ -41,6 +41,7 @@ const themeHeaderBase = {
41
41
  export const themeHeaderLight = {
42
42
  header: {
43
43
  ...themeHeaderBase.header,
44
+ linkColor: '#FF7377',
44
45
  backgroundColor: '#FF7377',
45
46
  overlayBackgroundColor: 'rgba(0,0,0,0.6)',
46
47
  },
@@ -49,6 +50,7 @@ export const themeHeaderLight = {
49
50
  export const themeHeaderDark = {
50
51
  header: {
51
52
  ...themeHeaderBase.header,
53
+ linkColor: '#FF7377',
52
54
  backgroundColor: '#FF7377',
53
55
  overlayBackgroundColor: 'rgba(0,0,0,0.6)',
54
56
  },
@@ -150,6 +150,7 @@ export const themeContract = createGlobalThemeContract({
150
150
  },
151
151
  header: {
152
152
  fontSize: 'latte-header-fontSize',
153
+ linkColor: 'latte-header-linkColor',
153
154
  backgroundColor: 'latte-header-backgroundColor',
154
155
  overlayBackgroundColor: 'latte-header-overlayBackgroundColor',
155
156
  overlayBackgroundTransition: 'latte-header-overlayBackgroundTransition',