@latte-macchiat-io/latte-vanilla-components 0.0.256 → 0.0.258

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.256",
3
+ "version": "0.0.258",
4
4
  "description": "Beautiful components for amazing projects, with a touch of Vanilla 🥤",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -1,4 +1,4 @@
1
- import { style } from '@vanilla-extract/css';
1
+ import { globalStyle, style } from '@vanilla-extract/css';
2
2
 
3
3
  import { themeContract } from '../..';
4
4
  import { queries } from '../../styles/mediaqueries';
@@ -31,3 +31,7 @@ export const footerRecipe = style([
31
31
  },
32
32
  },
33
33
  ]);
34
+
35
+ globalStyle(`${footerRecipe} a `, {
36
+ color: themeContract.footer.linkColor,
37
+ });
@@ -39,6 +39,7 @@ const themeFooterBase = {
39
39
  export const themeFooterLight = {
40
40
  footer: {
41
41
  ...themeFooterBase.footer,
42
+ linkColor: '#FF7377',
42
43
  backgroundColor: '#FF7377',
43
44
  },
44
45
  };
@@ -46,6 +47,7 @@ export const themeFooterLight = {
46
47
  export const themeFooterDark = {
47
48
  footer: {
48
49
  ...themeFooterBase.footer,
50
+ linkColor: '#FF7377',
49
51
  backgroundColor: '#FF7377',
50
52
  },
51
53
  };
@@ -1,7 +1,7 @@
1
1
  import { clsx } from 'clsx';
2
2
 
3
3
  import { ReactNode } from 'react';
4
- import { bar, toggleNavButton } from './styles.css';
4
+ import { bar, toggleNavButton, toggleNavButtonMenu } from './styles.css';
5
5
 
6
6
  export type HeaderToggleNavProps = React.HTMLAttributes<HTMLDivElement> & {
7
7
  isOpen?: boolean;
@@ -13,11 +13,11 @@ export const HeaderToggleNav = ({ isOpen, onClick, children, className }: Header
13
13
  return (
14
14
  <button onClick={onClick} aria-label="Toggle navigation" className={clsx(toggleNavButton(), className)}>
15
15
  {children || (
16
- <>
16
+ <span className={toggleNavButtonMenu()}>
17
17
  <span className={clsx(bar, isOpen && 'open')} />
18
18
  <span className={clsx(bar, isOpen && 'open')} />
19
19
  <span className={clsx(bar, isOpen && 'open')} />
20
- </>
20
+ </span>
21
21
  )}
22
22
  </button>
23
23
  );
@@ -4,18 +4,26 @@ import { recipe } from '@vanilla-extract/recipes';
4
4
  export const toggleNavButton = recipe(
5
5
  {
6
6
  base: {
7
- background: 'transparent',
7
+ padding: 0,
8
8
  border: 'none',
9
9
  cursor: 'pointer',
10
+ background: 'transparent',
11
+ },
12
+ },
13
+ 'toggle-nav-button'
14
+ );
15
+
16
+ export const toggleNavButtonMenu = recipe(
17
+ {
18
+ base: {
19
+ width: '24px',
20
+ height: '18px',
10
21
  display: 'flex',
11
22
  flexDirection: 'column',
12
23
  justifyContent: 'space-between',
13
- width: '24px',
14
- height: '18px',
15
- padding: 0,
16
24
  },
17
25
  },
18
- 'toggle-nav-button'
26
+ 'toggle-nav-button-menu'
19
27
  );
20
28
 
21
29
  export const bar = style(
@@ -189,6 +189,7 @@ export const themeContract = createGlobalThemeContract({
189
189
  },
190
190
  footer: {
191
191
  fontSize: 'latte-footer-fontSize',
192
+ linkColor: 'latte-footer-linkColor',
192
193
  backgroundColor: 'latte-footer-backgroundColor',
193
194
  height: {
194
195
  mobile: 'latte-footer-height-mobile',