@latte-macchiat-io/latte-vanilla-components 0.0.290 → 0.0.292
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 +1 -1
- package/src/components/Button/index.tsx +0 -2
- package/src/components/Carousel/index.tsx +2 -0
- package/src/components/ConsentCookie/index.tsx +2 -0
- package/src/components/Form/TextField/index.tsx +2 -0
- package/src/components/Header/index.tsx +2 -0
- package/src/components/Logo/styles.css.ts +5 -0
- package/src/components/Logo/theme.ts +17 -0
- package/src/components/Nav/index.tsx +0 -2
- package/src/theme/baseThemeValues.ts +5 -0
- package/src/theme/contract.css.ts +4 -0
- package/src/theme/createTheme.ts +3 -0
package/package.json
CHANGED
@@ -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
|
+
};
|
@@ -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,
|
package/src/theme/createTheme.ts
CHANGED
@@ -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
|
|