@alveole/theme 0.4.0

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.
Files changed (90) hide show
  1. package/README.md +109 -0
  2. package/assets/fonts/Barlow/Barlow-Bold.ttf +0 -0
  3. package/assets/fonts/Barlow/Barlow-Light.ttf +0 -0
  4. package/assets/fonts/Barlow/Barlow-Medium.ttf +0 -0
  5. package/assets/fonts/Barlow/Barlow-Regular.ttf +0 -0
  6. package/assets/fonts/Barlow/Barlow-SemiBold.ttf +0 -0
  7. package/assets/fonts/Inter/Inter-Bold.ttf +0 -0
  8. package/assets/fonts/Inter/Inter-Light.ttf +0 -0
  9. package/assets/fonts/Inter/Inter-Medium.ttf +0 -0
  10. package/assets/fonts/Inter/Inter-Regular.ttf +0 -0
  11. package/assets/fonts/Inter/Inter-SemiBold.ttf +0 -0
  12. package/dist/ThemeProvider.d.ts +8 -0
  13. package/dist/ThemeProvider.d.ts.map +1 -0
  14. package/dist/ThemeProvider.js +32 -0
  15. package/dist/ThemeProviderLoader.d.ts +2 -0
  16. package/dist/ThemeProviderLoader.d.ts.map +1 -0
  17. package/dist/ThemeProviderLoader.js +5 -0
  18. package/dist/constants/Breakpoint.d.ts +10 -0
  19. package/dist/constants/Breakpoint.d.ts.map +1 -0
  20. package/dist/constants/Breakpoint.js +14 -0
  21. package/dist/constants/Color.d.ts +357 -0
  22. package/dist/constants/Color.d.ts.map +1 -0
  23. package/dist/constants/Color.js +352 -0
  24. package/dist/constants/Elevation.d.ts +81 -0
  25. package/dist/constants/Elevation.d.ts.map +1 -0
  26. package/dist/constants/Elevation.js +53 -0
  27. package/dist/constants/Font.d.ts +15 -0
  28. package/dist/constants/Font.d.ts.map +1 -0
  29. package/dist/constants/Font.js +15 -0
  30. package/dist/constants/Palette.d.ts +187 -0
  31. package/dist/constants/Palette.d.ts.map +1 -0
  32. package/dist/constants/Palette.js +180 -0
  33. package/dist/constants/Radius.d.ts +9 -0
  34. package/dist/constants/Radius.d.ts.map +1 -0
  35. package/dist/constants/Radius.js +6 -0
  36. package/dist/constants/Sizes.d.ts +35 -0
  37. package/dist/constants/Sizes.d.ts.map +1 -0
  38. package/dist/constants/Sizes.js +30 -0
  39. package/dist/constants/Spacing.d.ts +24 -0
  40. package/dist/constants/Spacing.d.ts.map +1 -0
  41. package/dist/constants/Spacing.js +21 -0
  42. package/dist/constants/Typography.d.ts +189 -0
  43. package/dist/constants/Typography.d.ts.map +1 -0
  44. package/dist/constants/Typography.js +190 -0
  45. package/dist/constants/UnsupportedCSSProperties.d.ts +4 -0
  46. package/dist/constants/UnsupportedCSSProperties.d.ts.map +1 -0
  47. package/dist/constants/UnsupportedCSSProperties.js +3 -0
  48. package/dist/constants/Variant.d.ts +8 -0
  49. package/dist/constants/Variant.d.ts.map +1 -0
  50. package/dist/constants/Variant.js +5 -0
  51. package/dist/constants/index.d.ts +11 -0
  52. package/dist/constants/index.d.ts.map +1 -0
  53. package/dist/constants/index.js +10 -0
  54. package/dist/helpers/alphaColor.d.ts +12 -0
  55. package/dist/helpers/alphaColor.d.ts.map +1 -0
  56. package/dist/helpers/alphaColor.js +20 -0
  57. package/dist/helpers/deepMerge.d.ts +6 -0
  58. package/dist/helpers/deepMerge.d.ts.map +1 -0
  59. package/dist/helpers/deepMerge.js +17 -0
  60. package/dist/helpers/elevationStyle.d.ts +19 -0
  61. package/dist/helpers/elevationStyle.d.ts.map +1 -0
  62. package/dist/helpers/elevationStyle.js +16 -0
  63. package/dist/helpers/injectVariableCSS.d.ts +3 -0
  64. package/dist/helpers/injectVariableCSS.d.ts.map +1 -0
  65. package/dist/helpers/injectVariableCSS.js +27 -0
  66. package/dist/helpers/isSpacingKey.d.ts +3 -0
  67. package/dist/helpers/isSpacingKey.d.ts.map +1 -0
  68. package/dist/helpers/isSpacingKey.js +2 -0
  69. package/dist/helpers/makeStyles.d.ts +15 -0
  70. package/dist/helpers/makeStyles.d.ts.map +1 -0
  71. package/dist/helpers/makeStyles.js +14 -0
  72. package/dist/helpers/removeUnsupportedCSSProperties.d.ts +8 -0
  73. package/dist/helpers/removeUnsupportedCSSProperties.d.ts.map +1 -0
  74. package/dist/helpers/removeUnsupportedCSSProperties.js +20 -0
  75. package/dist/helpers/useThemeBuilder.d.ts +9 -0
  76. package/dist/helpers/useThemeBuilder.d.ts.map +1 -0
  77. package/dist/helpers/useThemeBuilder.js +38 -0
  78. package/dist/index.d.ts +6 -0
  79. package/dist/index.d.ts.map +1 -0
  80. package/dist/index.js +5 -0
  81. package/dist/type/Theme.d.ts +21 -0
  82. package/dist/type/Theme.d.ts.map +1 -0
  83. package/dist/type/Theme.js +1 -0
  84. package/dist/type/Typography.d.ts +8 -0
  85. package/dist/type/Typography.d.ts.map +1 -0
  86. package/dist/type/Typography.js +1 -0
  87. package/dist/type/index.d.ts +2 -0
  88. package/dist/type/index.d.ts.map +1 -0
  89. package/dist/type/index.js +1 -0
  90. package/package.json +26 -0
package/README.md ADDED
@@ -0,0 +1,109 @@
1
+ # @alveole/theme
2
+
3
+ Thème partagé (tokens, typographies, helpers) pour les apps React Native / web.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm i @alveole/theme
9
+ ```
10
+
11
+ Peer deps requis : `react`, `react-native`, `expo-font`, `expo-system-ui`, `@tamagui/core`.
12
+
13
+ ## Utilisation rapide
14
+
15
+ ```tsx
16
+ import { ThemeProvider, useTheme, makeStyles } from '@alveole/theme';
17
+
18
+ export default function App() {
19
+ return (
20
+ <ThemeProvider>
21
+ <Screen />
22
+ </ThemeProvider>
23
+ );
24
+ }
25
+
26
+ function Screen() {
27
+ const { spacing } = useTheme();
28
+ return <Box style={{ margin: spacing('100') }}>Contenu</Box>;
29
+ }
30
+ ```
31
+
32
+ ## Générer des styles
33
+
34
+ ```tsx
35
+ // Exemple.styles.tsx
36
+ import { makeStyles } from '@alveole/theme';
37
+
38
+ export const useStyles = makeStyles(({ spacing }) => ({
39
+ container: { padding: spacing('150') },
40
+ }));
41
+ ```
42
+
43
+ ```tsx
44
+ // Exemple.tsx
45
+ import { useStyles } from './Exemple.styles';
46
+
47
+ function Exemple() {
48
+ const styles = useStyles();
49
+ return <Box style={styles.container} />;
50
+ }
51
+ ```
52
+
53
+ ## Personnaliser la palette
54
+
55
+ ```tsx
56
+ <ThemeProvider
57
+ color={{
58
+ Neutre: { 100: '#F7F7F7' },
59
+ Mandarine: { 50: '#FFF3EA' },
60
+ }}
61
+ >
62
+ <App />
63
+ </ThemeProvider>
64
+ ```
65
+
66
+ > (Recommandé) Vous pouvez définir un fichier de configuration à la racine de votre projet `alveole.config.js` afin de surcharger les tokens du thème.
67
+
68
+ ```js
69
+ const { Colors } = require('@alveole/theme');
70
+
71
+ /** @type {import('@alveole/theme').Palette} */
72
+ const palette = {
73
+ primary: Colors.VertPrairie['sun-475'],
74
+
75
+ background: {
76
+ button: {
77
+ primary: {
78
+ default: Colors.VertPrairie['sun-475'],
79
+ hover: Colors.VertPrairie['sun-475-hover'],
80
+ },
81
+ },
82
+ },
83
+ };
84
+
85
+ module.exports = { palette };
86
+
87
+ // Utiliser dans le provider :
88
+ // <ThemeProvider color={config.palette}>
89
+ ```
90
+
91
+ ## Variables CSS (web)
92
+
93
+ Sur le web, les variables CSS sont injectées automatiquement si besoin par une lib web.
94
+
95
+ ```css
96
+ /* Spacing */
97
+ var(--spacing-050)
98
+ var(--spacing-150)
99
+
100
+ /* Colors */
101
+ var(--color-Neutre-200)
102
+ var(--color-Mandarine-50)
103
+ ```
104
+
105
+ ## Références
106
+
107
+ - Typage du thème : `src/type/Theme.ts`
108
+ - Palette : `src/constants/Palette.ts`
109
+ - Typographies : `src/constants/Typography.ts`
@@ -0,0 +1,8 @@
1
+ import { type PropsWithChildren } from 'react';
2
+ import { CustomBuilder } from './helpers/useThemeBuilder';
3
+ import type { Theme } from './type';
4
+ export declare const ThemeProvider: (props: PropsWithChildren<CustomBuilder & {
5
+ loader?: boolean;
6
+ }>) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const useTheme: () => Theme;
8
+ //# sourceMappingURL=ThemeProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../src/ThemeProvider.tsx"],"names":[],"mappings":"AACA,OAAc,EAA6B,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAGjF,OAAO,EAAE,aAAa,EAAmB,MAAM,2BAA2B,CAAC;AAE3E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAKpC,eAAO,MAAM,aAAa,GAAI,OAAO,iBAAiB,CAAC,aAAa,GAAG;IAAE,MAAM,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC,4CAuB3F,CAAC;AAEF,eAAO,MAAM,QAAQ,QAAO,KAI3B,CAAC"}
@@ -0,0 +1,32 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import * as SystemUI from 'expo-system-ui';
3
+ import React, { createContext, useContext } from 'react';
4
+ import { Platform, StatusBar } from 'react-native';
5
+ import { injectVariableCSS } from './helpers/injectVariableCSS';
6
+ import { useThemeBuilder } from './helpers/useThemeBuilder';
7
+ import { ThemeProviderLoader } from './ThemeProviderLoader';
8
+ const ThemeContext = createContext(null);
9
+ const MIN_LOADING_DELAY = 0;
10
+ export const ThemeProvider = (props) => {
11
+ const { loader = true, ...builder } = props;
12
+ const theme = useThemeBuilder(builder);
13
+ const [showLoader, setShowLoader] = React.useState(true);
14
+ React.useEffect(() => {
15
+ const timeout = setTimeout(() => setShowLoader(false), MIN_LOADING_DELAY);
16
+ return () => clearTimeout(timeout);
17
+ }, []);
18
+ React.useEffect(() => {
19
+ void SystemUI.setBackgroundColorAsync('white');
20
+ if (Platform.OS === 'web')
21
+ injectVariableCSS(theme);
22
+ }, []);
23
+ if ((!theme.isReady || showLoader) && loader !== false)
24
+ return _jsx(ThemeProviderLoader, {});
25
+ return (_jsxs(ThemeContext.Provider, { value: theme, children: [_jsx(StatusBar, { barStyle: "dark-content", backgroundColor: "white" }), props.children] }));
26
+ };
27
+ export const useTheme = () => {
28
+ const ctx = useContext(ThemeContext);
29
+ if (!ctx)
30
+ throw new Error('useTheme must be used inside ThemeProvider');
31
+ return ctx;
32
+ };
@@ -0,0 +1,2 @@
1
+ export declare const ThemeProviderLoader: () => import("react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=ThemeProviderLoader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThemeProviderLoader.d.ts","sourceRoot":"","sources":["../src/ThemeProviderLoader.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,mBAAmB,+CAM/B,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { ActivityIndicator, View } from 'react-native';
3
+ export const ThemeProviderLoader = () => {
4
+ return (_jsx(View, { style: { flex: 1, justifyContent: 'center', alignItems: 'center' }, children: _jsx(ActivityIndicator, { size: "large" }) }));
5
+ };
@@ -0,0 +1,10 @@
1
+ export declare const Breakpoints: {
2
+ readonly SM: 576;
3
+ readonly MD: 768;
4
+ readonly LG: 992;
5
+ readonly XL: 1248;
6
+ };
7
+ export type BreakpointKey = keyof typeof Breakpoints;
8
+ export type Breakpoint = (typeof Breakpoints)[BreakpointKey];
9
+ export declare const breakpointToVariant: (width: number) => "mobile" | "tablet" | "desktop";
10
+ //# sourceMappingURL=Breakpoint.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Breakpoint.d.ts","sourceRoot":"","sources":["../../src/constants/Breakpoint.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW;;;;;CAKd,CAAC;AAGX,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,WAAW,CAAC;AACrD,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,aAAa,CAAC,CAAC;AAE7D,eAAO,MAAM,mBAAmB,GAAI,OAAO,MAAM,oCAIhD,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { Variants } from './Variant';
2
+ export const Breakpoints = {
3
+ SM: 576,
4
+ MD: 768,
5
+ LG: 992,
6
+ XL: 1248,
7
+ };
8
+ export const breakpointToVariant = (width) => {
9
+ if (width < Breakpoints.MD)
10
+ return Variants.Mobile;
11
+ if (width >= Breakpoints.LG)
12
+ return Variants.Desktop;
13
+ return Variants.Tablet;
14
+ };
@@ -0,0 +1,357 @@
1
+ export declare const Colors: {
2
+ readonly VertPrairie: {
3
+ readonly 50: "#F3FDE7";
4
+ readonly 100: "#E3FBC8";
5
+ readonly 200: "#C5F59A";
6
+ readonly 300: "#9EED61";
7
+ readonly 400: "#85E23F";
8
+ readonly 'sun-475-hover': "#28571D";
9
+ readonly 'sun-475': "#3E7F2E";
10
+ readonly 'main-646': "#60BB46";
11
+ readonly 850: "#BEE2B0";
12
+ readonly 925: "#D7EED0";
13
+ readonly 950: "#E6F4E1";
14
+ readonly 975: "#F3FAF1";
15
+ };
16
+ readonly Mandarine: {
17
+ readonly 50: "#FEF9EE";
18
+ readonly 100: "#FDF2D7";
19
+ readonly 200: "#FBE0AD";
20
+ readonly 300: "#F8C979";
21
+ readonly 400: "#F4A843";
22
+ readonly 500: "#F19023";
23
+ readonly 600: "#E27414";
24
+ readonly 700: "#BB5813";
25
+ readonly 800: "#954517";
26
+ readonly 900: "#783B16";
27
+ readonly 950: "#411C09";
28
+ };
29
+ readonly Lilas: {
30
+ readonly 50: "#F6F5FD";
31
+ readonly 100: "#EFECFB";
32
+ readonly 200: "#E0DCF8";
33
+ readonly 300: "#C9BFF3";
34
+ readonly 400: "#AD9BEA";
35
+ readonly 500: "#8C6CDF";
36
+ readonly 600: "#8053D4";
37
+ readonly 700: "#7041C0";
38
+ readonly 800: "#5D36A1";
39
+ readonly 900: "#4E2E84";
40
+ readonly 950: "#301C59";
41
+ };
42
+ readonly Shakespeare: {
43
+ readonly 50: "#EEFBFD";
44
+ readonly 100: "#D3F3FA";
45
+ readonly 200: "#ADE6F4";
46
+ readonly 300: "#75D3EB";
47
+ readonly 400: "#31B5DA";
48
+ readonly 500: "#1999C1";
49
+ readonly 600: "#187BA2";
50
+ readonly 700: "#1A6484";
51
+ readonly 800: "#1E526C";
52
+ readonly 900: "#1D465C";
53
+ readonly 950: "#0E2D3E";
54
+ };
55
+ readonly Cerise: {
56
+ readonly 50: "#FDF2F8";
57
+ readonly 100: "#FCE7F3";
58
+ readonly 200: "#FBCFE8";
59
+ readonly 300: "#FAA7D5";
60
+ readonly 400: "#F571B7";
61
+ readonly 500: "#EE469A";
62
+ readonly 600: "#DA2275";
63
+ readonly 700: "#C0165E";
64
+ readonly 800: "#9E164E";
65
+ readonly 900: "#841744";
66
+ readonly 950: "#510624";
67
+ };
68
+ readonly Pacifika: {
69
+ readonly 50: "#FFFDE4";
70
+ readonly 100: "#FFFDC5";
71
+ readonly 200: "#FFFF92";
72
+ readonly 300: "#F9FF53";
73
+ readonly 400: "#EEFB20";
74
+ readonly 500: "#D1E200";
75
+ readonly 600: "#A2B500";
76
+ readonly 700: "#738102";
77
+ readonly 800: "#5F6B09";
78
+ readonly 900: "#505A0D";
79
+ readonly 950: "#2A3300";
80
+ };
81
+ readonly GoldenFizz: {
82
+ readonly 50: "#FFFEE5";
83
+ readonly 100: "#FEFFC7";
84
+ readonly 200: "#FCFF95";
85
+ readonly 300: "#F4FE58";
86
+ readonly 400: "#E4F40E";
87
+ readonly 500: "#C9DC06";
88
+ readonly 600: "#9DB000";
89
+ readonly 700: "#758506";
90
+ readonly 800: "#5D690B";
91
+ readonly 900: "#4D580F";
92
+ readonly 950: "#293102";
93
+ };
94
+ readonly GrisPolaire: {
95
+ readonly 50: "#F4F6FA";
96
+ readonly 100: "#E6EBF3";
97
+ readonly 200: "#D3DBEA";
98
+ readonly 300: "#B4C3DC";
99
+ readonly 400: "#90A4CA";
100
+ readonly 500: "#7589BC";
101
+ readonly 600: "#6372AD";
102
+ readonly 700: "#57639E";
103
+ readonly 800: "#4B5282";
104
+ readonly 900: "#404668";
105
+ readonly 950: "#2A2D41";
106
+ };
107
+ readonly ButteryWhite: {
108
+ readonly 50: "#FFFBEA";
109
+ readonly 100: "#FEF4C7";
110
+ readonly 200: "#FDE78A";
111
+ readonly 300: "#FCD54D";
112
+ readonly 400: "#FBC124";
113
+ readonly 500: "#F5A00B";
114
+ readonly 600: "#D97906";
115
+ readonly 700: "#B45509";
116
+ readonly 800: "#92410E";
117
+ readonly 900: "#78360F";
118
+ readonly 950: "#451B03";
119
+ };
120
+ readonly CoralRed: {
121
+ readonly 50: "#FEF2F2";
122
+ readonly 100: "#FEE2E2";
123
+ readonly 200: "#FECACA";
124
+ readonly 300: "#FCA5A5";
125
+ readonly 400: "#F77272";
126
+ readonly 500: "#EF4E4E";
127
+ readonly 600: "#DB2727";
128
+ readonly 700: "#B81D1D";
129
+ readonly 800: "#981C1C";
130
+ readonly 900: "#7F1D1D";
131
+ readonly 950: "#450A0A";
132
+ };
133
+ readonly Lochmara: {
134
+ readonly 50: "#F1F8FE";
135
+ readonly 100: "#E2F1FC";
136
+ readonly 200: "#BFE2F8";
137
+ readonly 300: "#87CCF2";
138
+ readonly 400: "#47B0E9";
139
+ readonly 500: "#1F97D8";
140
+ readonly 600: "#1177B6";
141
+ readonly 700: "#0F5F95";
142
+ readonly 800: "#11527B";
143
+ readonly 900: "#144566";
144
+ readonly 950: "#0D2C44";
145
+ };
146
+ readonly BigStone: {
147
+ readonly 50: "#F2F8FD";
148
+ readonly 100: "#E4EFFA";
149
+ readonly 200: "#C2DFF5";
150
+ readonly 300: "#8CC5ED";
151
+ readonly 400: "#4EA7E2";
152
+ readonly 500: "#288CCF";
153
+ readonly 600: "#196FB0";
154
+ readonly 700: "#16598E";
155
+ readonly 800: "#164C76";
156
+ readonly 900: "#174063";
157
+ readonly 950: "#102A43";
158
+ };
159
+ readonly PinkVivid: {
160
+ readonly 50: "#FFF5F8";
161
+ readonly 100: "#FFB8D2";
162
+ readonly 200: "#FF8CBA";
163
+ readonly 300: "#F364A2";
164
+ readonly 400: "#E8368F";
165
+ readonly 500: "#D9127C";
166
+ readonly 600: "#BC0A6F";
167
+ readonly 700: "#A30664";
168
+ readonly 800: "#870557";
169
+ readonly 900: "#620042";
170
+ };
171
+ readonly LimeGreen: {
172
+ readonly 50: "#F6FCE9";
173
+ readonly 100: "#EAF7D0";
174
+ readonly 200: "#D7F0A6";
175
+ readonly 300: "#BBE472";
176
+ readonly 400: "#A1D447";
177
+ readonly 500: "#7BB026";
178
+ readonly 600: "#7BB026";
179
+ readonly 700: "#4D711A";
180
+ readonly 800: "#3F5A1A";
181
+ readonly 900: "#374D1A";
182
+ readonly 950: "#1A2A09";
183
+ };
184
+ readonly Purple: {
185
+ readonly 50: "#EAE2F8";
186
+ readonly 100: "#CFBCF2";
187
+ readonly 200: "#A081D9";
188
+ readonly 300: "#8662C7";
189
+ readonly 400: "#724BB7";
190
+ readonly 500: "#653CAD";
191
+ readonly 600: "#51279B";
192
+ readonly 700: "#421987";
193
+ readonly 800: "#34126F";
194
+ readonly 900: "#240754";
195
+ };
196
+ readonly RougeErreur: {
197
+ readonly 975: "#FEF5F4";
198
+ readonly 950: "#FDEAE8";
199
+ readonly 925: "#FCDFDC";
200
+ readonly 850: "#FAC0BB";
201
+ readonly 'main-525': "#E62C1C";
202
+ readonly 425: "#C62416";
203
+ };
204
+ readonly Mariner: {
205
+ readonly 50: "#F1F7FE";
206
+ readonly 100: "#E2EEFC";
207
+ readonly 200: "#BEDDF9";
208
+ readonly 300: "#85C0F4";
209
+ readonly 400: "#44A0EC";
210
+ readonly 500: "#1C85DB";
211
+ readonly 600: "#1070CA";
212
+ readonly 700: "#0D5297";
213
+ readonly 800: "#0F477D";
214
+ readonly 900: "#123C68";
215
+ readonly 950: "#0C2645";
216
+ };
217
+ readonly MountainMeadow: {
218
+ readonly 50: "#EFFAF4";
219
+ readonly 100: "#D7F4E1";
220
+ readonly 200: "#B3E7C9";
221
+ readonly 300: "#81D4A9";
222
+ readonly 400: "#47B881";
223
+ readonly 500: "#2A9F6A";
224
+ readonly 600: "#1C7F54";
225
+ readonly 700: "#166645";
226
+ readonly 800: "#145139";
227
+ readonly 900: "#114330";
228
+ readonly 950: "#09251C";
229
+ };
230
+ readonly Watusi: {
231
+ readonly 50: "#FEF5F2";
232
+ readonly 100: "#FFE9E1";
233
+ readonly 200: "#FFD6C7";
234
+ readonly 300: "#FEBBA3";
235
+ readonly 400: "#FB946E";
236
+ readonly 500: "#F27041";
237
+ readonly 600: "#E05522";
238
+ readonly 700: "#BA461C";
239
+ readonly 800: "#9B3C19";
240
+ readonly 900: "#81361B";
241
+ readonly 950: "#461909";
242
+ };
243
+ readonly Sunshade: {
244
+ readonly 50: "#FDF9E9";
245
+ readonly 100: "#FBF2C6";
246
+ readonly 200: "#F9E18F";
247
+ readonly 300: "#F5C94F";
248
+ readonly 400: "#F0B429";
249
+ readonly 500: "#DF9913";
250
+ readonly 600: "#C1750D";
251
+ readonly 700: "#9A530E";
252
+ readonly 800: "#7F4214";
253
+ readonly 900: "#6D3616";
254
+ readonly 950: "#3F1B09";
255
+ };
256
+ readonly BleuCiel: {
257
+ readonly 975: "#EDFAFE";
258
+ readonly 950: "#DBF6FD";
259
+ readonly 925: "#C5F0FC";
260
+ readonly 850: "#7CDEF9";
261
+ readonly 'main-686': "#31B5DA";
262
+ readonly 525: "#1288A7";
263
+ readonly 425: "#076D8A";
264
+ readonly 'sun-335': "#04566D";
265
+ readonly 200: "#123F4B";
266
+ readonly 125: "#0B2E38";
267
+ readonly 100: "#082932";
268
+ readonly 75: "#072128";
269
+ };
270
+ readonly Monza: {
271
+ readonly 50: "#FFF0F2";
272
+ readonly 100: "#FFE5E9";
273
+ readonly 200: "#FFC1C9";
274
+ readonly 300: "#FF95A2";
275
+ readonly 400: "#FF596E";
276
+ readonly 500: "#FF2641";
277
+ readonly 600: "#FC0624";
278
+ readonly 700: "#D60019";
279
+ readonly 800: "#AF051A";
280
+ readonly 900: "#900C1C";
281
+ readonly 950: "#50000A";
282
+ };
283
+ readonly SlateGrey: {
284
+ readonly 50: "#F4F8F9";
285
+ readonly 100: "#EBF2F4";
286
+ readonly 200: "#DBE7EA";
287
+ readonly 300: "#C5D6DC";
288
+ readonly 400: "#ADC2CC";
289
+ readonly 500: "#98ADBC";
290
+ readonly 600: "#8197AA";
291
+ readonly 700: "#66788A";
292
+ readonly 800: "#5B6B78";
293
+ readonly 900: "#4D5862";
294
+ readonly 950: "#2D3339";
295
+ };
296
+ readonly Neutre: {
297
+ readonly 50: "#151617";
298
+ readonly 75: "#1D1E20";
299
+ readonly 100: "#232427";
300
+ readonly 125: "#282A2D";
301
+ readonly 150: "#2D2F32";
302
+ readonly 175: "#323439";
303
+ readonly 200: "#373A3F";
304
+ readonly 425: "#5F6571";
305
+ readonly 525: "#747E91";
306
+ readonly 625: "#8D97AC";
307
+ readonly 850: "#CED5E1";
308
+ readonly 900: "#DEE3EC";
309
+ readonly 925: "#E6EAF1";
310
+ readonly 950: "#EFF1F6";
311
+ readonly 975: "#F4F6FA";
312
+ readonly 1000: "#FFFFFF";
313
+ };
314
+ readonly BleuCaptive: {
315
+ readonly 975: "#F2F9FF";
316
+ readonly 950: "#E5F1FE";
317
+ readonly 925: "#D2E8FE";
318
+ readonly 850: "#B4D9FE";
319
+ readonly 625: "#2591FE";
320
+ readonly 'main-525': "#0379EF";
321
+ readonly 200: "#033B72";
322
+ readonly 125: "#012B53";
323
+ readonly 'sun-100': "#012448";
324
+ readonly 75: "#011E3A";
325
+ };
326
+ readonly VertSuccess: {
327
+ readonly 975: "#EEFBF3";
328
+ readonly 950: "#B9FDD5";
329
+ readonly 925: "#87FCB8";
330
+ readonly 850: "#3EEA86";
331
+ readonly 625: "#27A65C";
332
+ readonly 'main-525': "#238C4F";
333
+ readonly 425: "#1B7440";
334
+ readonly 200: "#1E412D";
335
+ readonly 125: "#1B2F23";
336
+ readonly 100: "#18271E";
337
+ readonly 75: "#16221B";
338
+ };
339
+ readonly LightBlueVivid: {
340
+ readonly 50: "#F0FBFF";
341
+ readonly 100: "#D6F3FD";
342
+ readonly 200: "#A8E4FA";
343
+ readonly 300: "#79D1F4";
344
+ readonly 400: "#4ABDE9";
345
+ readonly 500: "#2FA4DC";
346
+ readonly 600: "#1177B6";
347
+ readonly 700: "#0E6398";
348
+ readonly 800: "#0C507B";
349
+ readonly 900: "#093E60";
350
+ readonly 950: "#072C45";
351
+ };
352
+ };
353
+ export type ColorKey = keyof typeof Colors;
354
+ export type ColorNuance = keyof (typeof Colors)[ColorKey];
355
+ export type ColorItem = (typeof Colors)[ColorKey][ColorNuance];
356
+ export type Color = ColorItem | string;
357
+ //# sourceMappingURL=Color.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Color.d.ts","sourceRoot":"","sources":["../../src/constants/Color.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+VT,CAAC;AAGX,MAAM,MAAM,QAAQ,GAAG,MAAM,OAAO,MAAM,CAAC;AAC3C,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,OAAO,MAAM,CAAC,CAAC,QAAQ,CAAC,CAAC;AAC1D,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,MAAM,CAAC,CAAC,QAAQ,CAAC,CAAC,WAAW,CAAC,CAAC;AAC/D,MAAM,MAAM,KAAK,GAAG,SAAS,GAAG,MAAM,CAAC"}