@latte-macchiat-io/latte-vanilla-components 0.0.167 → 0.0.168
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/dist/Actions.css.ts +113 -0
- package/dist/Button.css.ts +119 -0
- package/dist/Carousel.css.ts +180 -0
- package/dist/Columns.css.ts +185 -0
- package/dist/ConsentCookie.css.ts +167 -0
- package/dist/Footer.css.ts +108 -0
- package/dist/Form.css.ts +64 -0
- package/dist/Header.css.ts +111 -0
- package/dist/Icon.css.ts +102 -0
- package/dist/Input.css.ts +106 -0
- package/dist/KeyNumber.css.ts +158 -0
- package/dist/Label.css.ts +58 -0
- package/dist/LanguageSwitcher.css.ts +120 -0
- package/dist/Logo.css.ts +98 -0
- package/dist/Main.css.ts +62 -0
- package/dist/Modal.css.ts +203 -0
- package/dist/Nav.css.ts +123 -0
- package/dist/NavLegal.css.ts +121 -0
- package/dist/NavSocial.css.ts +121 -0
- package/dist/Row.css.ts +70 -0
- package/dist/Section.css.ts +101 -0
- package/dist/TextField.css.ts +139 -0
- package/dist/Textarea.css.ts +121 -0
- package/dist/Video.css.ts +210 -0
- package/dist/VideoFullWidth.css.ts +50 -0
- package/dist/contract.css.ts +83 -0
- package/dist/default.css.ts +9 -0
- package/dist/sprinkles.css.ts +82 -0
- package/dist/styles.css.ts +40 -0
- package/package.json +4 -3
- package/src/components/Actions/Actions.css.ts +113 -0
- package/src/components/Button/Button.css.ts +119 -0
- package/src/components/Carousel/Carousel.css.ts +180 -0
- package/src/components/Columns/Columns.css.ts +185 -0
- package/src/components/ConsentCookie/ConsentCookie.css.ts +167 -0
- package/src/components/Footer/Footer.css.ts +108 -0
- package/src/components/Form/Form.css.ts +64 -0
- package/src/components/Form/Row/Row.css.ts +70 -0
- package/src/components/Form/TextField/Input/Input.css.ts +106 -0
- package/src/components/Form/TextField/Label/Label.css.ts +58 -0
- package/src/components/Form/TextField/TextField.css.ts +139 -0
- package/src/components/Form/TextField/Textarea/Textarea.css.ts +121 -0
- package/src/components/Header/Header.css.ts +111 -0
- package/src/components/Header/HeaderOverlay/styles.css.ts +33 -0
- package/src/components/Header/ToggleNav/styles.css.ts +40 -0
- package/src/components/Icon/Icon.css.ts +102 -0
- package/src/components/KeyNumber/KeyNumber.css.ts +158 -0
- package/src/components/LanguageSwitcher/LanguageSwitcher.css.ts +120 -0
- package/src/components/Logo/Logo.css.ts +98 -0
- package/src/components/Main/Main.css.ts +62 -0
- package/src/components/Modal/Modal.css.ts +203 -0
- package/src/components/Nav/Nav.css.ts +123 -0
- package/src/components/NavLegal/NavLegal.css.ts +121 -0
- package/src/components/NavSocial/NavSocial.css.ts +121 -0
- package/src/components/Section/Section.css.ts +101 -0
- package/src/components/Video/Video.css.ts +210 -0
- package/src/components/VideoFullWidth/VideoFullWidth.css.ts +50 -0
- package/src/styles/sprinkles.css.ts +82 -0
- package/src/theme/contract.css.ts +83 -0
- package/src/theme/default.css.ts +9 -0
@@ -0,0 +1,83 @@
|
|
1
|
+
import { createThemeContract } from '@vanilla-extract/css';
|
2
|
+
|
3
|
+
// Define a theme contract with design tokens
|
4
|
+
// This contract can then be reused to create multiple themes or overrides on a global level
|
5
|
+
export const themeContract = createThemeContract({
|
6
|
+
colors: {
|
7
|
+
primary: null,
|
8
|
+
secondary: null,
|
9
|
+
accent: null,
|
10
|
+
background: null,
|
11
|
+
surface: null,
|
12
|
+
text: null,
|
13
|
+
textSecondary: null,
|
14
|
+
textLight: null,
|
15
|
+
border: null,
|
16
|
+
error: null,
|
17
|
+
warning: null,
|
18
|
+
success: null,
|
19
|
+
info: null,
|
20
|
+
},
|
21
|
+
space: {
|
22
|
+
none: null,
|
23
|
+
xs: null,
|
24
|
+
sm: null,
|
25
|
+
md: null,
|
26
|
+
lg: null,
|
27
|
+
xl: null,
|
28
|
+
'2xl': null,
|
29
|
+
},
|
30
|
+
radii: {
|
31
|
+
none: null,
|
32
|
+
sm: null,
|
33
|
+
md: null,
|
34
|
+
lg: null,
|
35
|
+
xl: null,
|
36
|
+
full: null,
|
37
|
+
},
|
38
|
+
fonts: {
|
39
|
+
body: null,
|
40
|
+
heading: null,
|
41
|
+
mono: null,
|
42
|
+
},
|
43
|
+
fontSizes: {
|
44
|
+
xs: null,
|
45
|
+
sm: null,
|
46
|
+
md: null,
|
47
|
+
lg: null,
|
48
|
+
xl: null,
|
49
|
+
'2xl': null,
|
50
|
+
'3xl': null,
|
51
|
+
'4xl': null,
|
52
|
+
},
|
53
|
+
fontWeights: {
|
54
|
+
light: null,
|
55
|
+
normal: null,
|
56
|
+
medium: null,
|
57
|
+
semibold: null,
|
58
|
+
bold: null,
|
59
|
+
},
|
60
|
+
lineHeights: {
|
61
|
+
tight: null,
|
62
|
+
normal: null,
|
63
|
+
relaxed: null,
|
64
|
+
},
|
65
|
+
shadows: {
|
66
|
+
none: null,
|
67
|
+
sm: null,
|
68
|
+
md: null,
|
69
|
+
lg: null,
|
70
|
+
xl: null,
|
71
|
+
},
|
72
|
+
maxWidth: null,
|
73
|
+
section: {
|
74
|
+
paddingTop: null,
|
75
|
+
paddingBottom: null,
|
76
|
+
},
|
77
|
+
header: {
|
78
|
+
height: null,
|
79
|
+
},
|
80
|
+
footer: {
|
81
|
+
height: null,
|
82
|
+
},
|
83
|
+
});
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { createGlobalTheme } from '@vanilla-extract/css';
|
2
|
+
import { baseDarkTheme, baseLightTheme } from './baseThemeValues';
|
3
|
+
import { themeContract } from './contract.css';
|
4
|
+
|
5
|
+
// Create the default light theme at the root
|
6
|
+
createGlobalTheme('html', themeContract, baseLightTheme);
|
7
|
+
|
8
|
+
// Apply dark theme when data-theme="dark"
|
9
|
+
createGlobalTheme('html[data-theme="dark"]', themeContract, baseDarkTheme);
|