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

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.289",
3
+ "version": "0.0.291",
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,5 @@
1
1
  import { globalStyle, style } from '@vanilla-extract/css';
2
+ import { themeContract } from '../../theme/contract.css';
2
3
 
3
4
  export const logo = style({
4
5
  alignItems: 'center',
@@ -12,3 +13,7 @@ globalStyle(`${logo} img`, {
12
13
  maxWidth: '100%',
13
14
  display: 'block',
14
15
  });
16
+
17
+ globalStyle(`${logo} svg path`, {
18
+ fill: themeContract.logo.color,
19
+ });
@@ -0,0 +1,17 @@
1
+ const themeLogoBase = {
2
+ logo: {},
3
+ };
4
+
5
+ export const themeLogoLight = {
6
+ logo: {
7
+ ...themeLogoBase.logo,
8
+ color: '#FF7377',
9
+ },
10
+ };
11
+
12
+ export const themeLogoDark = {
13
+ logo: {
14
+ ...themeLogoBase.logo,
15
+ color: '#FF7377',
16
+ },
17
+ };
@@ -9,8 +9,6 @@ export const paragraphRecipe = recipe(
9
9
  {
10
10
  base: [
11
11
  {
12
- fontWeight: 300,
13
-
14
12
  '@media': {
15
13
  ...generateResponsiveMedia({
16
14
  paddingBottom: themeContract.paragraph.paddingBottom,
@@ -10,6 +10,7 @@ import { themeHeaderDark, themeHeaderLight } from '../components/Header/theme';
10
10
  import { themeHeadingDark, themeHeadingLight } from '../components/Heading/theme';
11
11
  import { themeIconDark, themeIconLight } from '../components/Icon/theme';
12
12
  import { themeKeyNumberDark, themeKeyNumberLight } from '../components/KeyNumber/theme';
13
+ import { themeLogoDark, themeLogoLight } from '../components/Logo/theme';
13
14
  import { themeMainDark, themeMainLight } from '../components/Main/theme';
14
15
  import { themeModalDark, themeModalLight } from '../components/Modal/theme';
15
16
  import { themeNavDark, themeNavLight } from '../components/Nav/theme';
@@ -145,6 +146,8 @@ export const baseLightTheme = {
145
146
 
146
147
  ...themeVideoLight,
147
148
 
149
+ ...themeLogoLight,
150
+
148
151
  form: {
149
152
  ...themeFormLight.form,
150
153
  ...themeFormRowLight,
@@ -279,6 +282,8 @@ export const baseDarkTheme = {
279
282
 
280
283
  ...themeVideoDark,
281
284
 
285
+ ...themeLogoDark,
286
+
282
287
  form: {
283
288
  ...themeFormDark.form,
284
289
  ...themeFormRowDark,
@@ -385,6 +385,10 @@ export const themeContract = createGlobalThemeContract({
385
385
  },
386
386
  },
387
387
 
388
+ logo: {
389
+ color: 'latte-logo-color',
390
+ },
391
+
388
392
  columns: {
389
393
  gap: {
390
394
  mobile: 'latte-columns-gap-mobile',
@@ -32,6 +32,7 @@ export type ThemeOverrides = {
32
32
  video?: Partial<typeof baseLightTheme.video>;
33
33
  carousel?: Partial<typeof baseLightTheme.carousel>;
34
34
  form?: Partial<typeof baseLightTheme.form>;
35
+ logo?: Partial<typeof baseLightTheme.logo>;
35
36
  };
36
37
 
37
38
  // Utility to create a theme with partial overrides over light theme base
@@ -65,6 +66,7 @@ const createAppTheme = (selector: string, overrides: ThemeOverrides = {}) => {
65
66
  video: { ...baseLightTheme.video, ...overrides.video },
66
67
  carousel: { ...baseLightTheme.carousel, ...overrides.carousel },
67
68
  form: { ...baseLightTheme.form, ...overrides.form },
69
+ logo: { ...baseLightTheme.logo, ...overrides.logo },
68
70
  });
69
71
  };
70
72
 
@@ -99,6 +101,7 @@ const createAppDarkTheme = (selector: string, overrides: ThemeOverrides = {}) =>
99
101
  video: { ...baseDarkTheme.video, ...overrides.video },
100
102
  carousel: { ...baseDarkTheme.carousel, ...overrides.carousel },
101
103
  form: { ...baseDarkTheme.form, ...overrides.form },
104
+ logo: { ...baseDarkTheme.logo, ...overrides.logo },
102
105
  });
103
106
  };
104
107