@alveole/theme 2.0.0-alpha.39 → 2.0.0-alpha.40

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.
@@ -1,11 +1,23 @@
1
1
  import React, { type PropsWithChildren } from 'react';
2
+ import { type ColorMode } from './helpers/resoudreMode';
2
3
  import { CustomBuilder } from './helpers/useThemeBuilder';
3
4
  import type { Theme } from './type';
4
5
  export type ThemeProviderProps = PropsWithChildren<CustomBuilder & {
5
6
  loader?: boolean;
6
7
  onReady?: () => void;
7
8
  staticCSS?: boolean;
9
+ /**
10
+ * Mode de couleur, web uniquement. `light` par défaut ; `system` suit le réglage de
11
+ * l'appareil ; `dark` et `light` le forcent.
12
+ */
13
+ colorMode?: ColorMode;
8
14
  }>;
15
+ export type { ColorMode };
9
16
  export declare const ThemeProvider: (props: ThemeProviderProps) => React.JSX.Element;
10
17
  export declare const useTheme: () => Theme;
18
+ /**
19
+ * Le mode de couleur effectivement affiché, `system` résolu. Pour ce qui ne passe pas par les
20
+ * variables CSS des jetons, comme une couleur calculée. Toujours `light` en natif.
21
+ */
22
+ export declare const useColorMode: () => "light" | "dark";
11
23
  //# sourceMappingURL=ThemeProvider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../src/ThemeProvider.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAA6B,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AACjF,OAAO,EAAE,aAAa,EAAmB,MAAM,2BAA2B,CAAC;AAE3E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAMpC,MAAM,MAAM,kBAAkB,GAAG,iBAAiB,CAChD,aAAa,GAAG;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CACF,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,OAAO,kBAAkB,sBAkCtD,CAAC;AAEF,eAAO,MAAM,QAAQ,QAAO,KAI3B,CAAC"}
1
+ {"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../src/ThemeProvider.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAA6B,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAEjF,OAAO,EAAgB,KAAK,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACtE,OAAO,EAAE,aAAa,EAAmB,MAAM,2BAA2B,CAAC;AAE3E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAOpC,MAAM,MAAM,kBAAkB,GAAG,iBAAiB,CAChD,aAAa,GAAG;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CACF,CAAC;AAEF,YAAY,EAAE,SAAS,EAAE,CAAC;AAE1B,eAAO,MAAM,aAAa,GAAI,OAAO,kBAAkB,sBA0CtD,CAAC;AAEF,eAAO,MAAM,QAAQ,QAAO,KAI3B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,QAAO,OAAO,GAAG,MAAsC,CAAC"}
@@ -1,14 +1,18 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import * as SystemUI from 'expo-system-ui';
3
3
  import React, { createContext, useContext } from 'react';
4
+ import { Platform, useColorScheme } from 'react-native';
5
+ import { resoudreMode } from './helpers/resoudreMode';
4
6
  import { useThemeBuilder } from './helpers/useThemeBuilder';
5
7
  import { ThemeProviderLoader } from './ThemeProviderLoader';
6
8
  import { WebThemeStyles } from './WebThemeStyles';
7
9
  const ThemeContext = createContext(null);
10
+ const ColorModeContext = createContext('light');
8
11
  const MIN_LOADING_DELAY = 0;
9
12
  export const ThemeProvider = (props) => {
10
- const { loader = true, onReady, staticCSS = false, ...builder } = props;
13
+ const { loader = true, onReady, staticCSS = false, colorMode = 'light', ...builder } = props;
11
14
  const theme = useThemeBuilder(builder);
15
+ const modeEffectif = resoudreMode(colorMode, useColorScheme());
12
16
  const [showLoader, setShowLoader] = React.useState(true);
13
17
  React.useEffect(() => {
14
18
  const timeout = setTimeout(() => setShowLoader(false), MIN_LOADING_DELAY);
@@ -17,6 +21,11 @@ export const ThemeProvider = (props) => {
17
21
  React.useEffect(() => {
18
22
  void SystemUI.setBackgroundColorAsync('white');
19
23
  }, []);
24
+ React.useEffect(() => {
25
+ // Le CSS du thème redéfinit les jetons selon cet attribut (voir generateCSSVariables).
26
+ if (Platform.OS === 'web')
27
+ document.documentElement.dataset.colorMode = colorMode;
28
+ }, [colorMode]);
20
29
  React.useEffect(() => {
21
30
  if (onReady && theme.isReady)
22
31
  onReady();
@@ -24,7 +33,7 @@ export const ThemeProvider = (props) => {
24
33
  if ((!theme.isReady || showLoader) && loader !== false) {
25
34
  return (_jsxs(_Fragment, { children: [!staticCSS && _jsx(WebThemeStyles, { theme: theme }), _jsx(ThemeProviderLoader, {})] }));
26
35
  }
27
- return (_jsxs(ThemeContext.Provider, { value: theme, children: [!staticCSS && _jsx(WebThemeStyles, { theme: theme }), props.children] }));
36
+ return (_jsx(ThemeContext.Provider, { value: theme, children: _jsxs(ColorModeContext.Provider, { value: modeEffectif, children: [!staticCSS && _jsx(WebThemeStyles, { theme: theme }), props.children] }) }));
28
37
  };
29
38
  export const useTheme = () => {
30
39
  const ctx = useContext(ThemeContext);
@@ -32,3 +41,8 @@ export const useTheme = () => {
32
41
  throw new Error('useTheme must be used inside ThemeProvider');
33
42
  return ctx;
34
43
  };
44
+ /**
45
+ * Le mode de couleur effectivement affiché, `system` résolu. Pour ce qui ne passe pas par les
46
+ * variables CSS des jetons, comme une couleur calculée. Toujours `light` en natif.
47
+ */
48
+ export const useColorMode = () => useContext(ColorModeContext);
@@ -94,6 +94,7 @@ export declare const Colors: {
94
94
  readonly 625: "#F96B24";
95
95
  readonly 'main-525': "#D64D00";
96
96
  readonly 425: "#BC4401";
97
+ readonly 100: "#2E1C12";
97
98
  };
98
99
  readonly RougeErreur: {
99
100
  readonly 975: "#FEF5F4";
@@ -102,6 +103,7 @@ export declare const Colors: {
102
103
  readonly 850: "#FAC0BB";
103
104
  readonly 'main-525': "#E62C1C";
104
105
  readonly 425: "#C62416";
106
+ readonly 100: "#2E1715";
105
107
  };
106
108
  readonly RougeGroseille: {
107
109
  readonly 75: "#2A070C";
@@ -1 +1 @@
1
- {"version":3,"file":"Color.d.ts","sourceRoot":"","sources":["../../src/constants/Color.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;QAEf,kBAAkB;;;;;;QAMlB,kBAAkB;;QAElB,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAyMlB,kBAAkB;;QAElB,kBAAkB;;QAElB,kBAAkB;;QAElB,kBAAkB;;QAElB,kBAAkB;;QAElB,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAkClB,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2CzB,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"}
1
+ {"version":3,"file":"Color.d.ts","sourceRoot":"","sources":["../../src/constants/Color.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;QAEf,kBAAkB;;;;;;QAMlB,kBAAkB;;QAElB,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA2MlB,kBAAkB;;QAElB,kBAAkB;;QAElB,kBAAkB;;QAElB,kBAAkB;;QAElB,kBAAkB;;QAElB,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAkClB,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2CzB,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"}
@@ -94,6 +94,7 @@ export const Colors = {
94
94
  625: '#F96B24',
95
95
  'main-525': '#D64D00',
96
96
  425: '#BC4401',
97
+ 100: '#2E1C12',
97
98
  },
98
99
  RougeErreur: {
99
100
  975: '#FEF5F4',
@@ -102,6 +103,7 @@ export const Colors = {
102
103
  850: '#FAC0BB',
103
104
  'main-525': '#E62C1C',
104
105
  425: '#C62416',
106
+ 100: '#2E1715',
105
107
  },
106
108
  RougeGroseille: {
107
109
  75: '#2A070C',
@@ -0,0 +1,25 @@
1
+ /** Durées de mouvement, en millisecondes. `none` sert au mouvement réduit. */
2
+ export declare const MotionDuration: {
3
+ readonly none: 0;
4
+ readonly instant: 100;
5
+ readonly fast: 150;
6
+ readonly base: 200;
7
+ readonly slow: 300;
8
+ };
9
+ /** Courbes CSS : une apparition décélère en arrivant, une disparition accélère en partant. */
10
+ export declare const MotionEasing: {
11
+ readonly standard: "cubic-bezier(0.2, 0, 0, 1)";
12
+ readonly enter: "cubic-bezier(0, 0, 0, 1)";
13
+ readonly exit: "cubic-bezier(0.3, 0, 1, 1)";
14
+ };
15
+ export type MotionKey = keyof typeof MotionDuration;
16
+ /**
17
+ * La transition CSS d'un composant stylé par `makeStyles`, prise sur les jetons. Ne vaut que sur
18
+ * le web, où react-native-web la passe au CSS : sur natif, ces propriétés sont ignorées.
19
+ */
20
+ export declare const motionTransition: (proprietes: readonly string[], cle?: MotionKey, courbe?: keyof typeof MotionEasing) => {
21
+ transitionProperty: string;
22
+ transitionDuration: string;
23
+ transitionTimingFunction: "cubic-bezier(0.2, 0, 0, 1)" | "cubic-bezier(0, 0, 0, 1)" | "cubic-bezier(0.3, 0, 1, 1)";
24
+ };
25
+ //# sourceMappingURL=Motion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Motion.d.ts","sourceRoot":"","sources":["../../src/constants/Motion.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,eAAO,MAAM,cAAc;;;;;;CAMjB,CAAC;AAEX,8FAA8F;AAC9F,eAAO,MAAM,YAAY;;;;CAIf,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,MAAM,OAAO,cAAc,CAAC;AAEpD;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAC3B,YAAY,SAAS,MAAM,EAAE,EAC7B,MAAK,SAAkB,EACvB,SAAQ,MAAM,OAAO,YAAyB;;;;CAK9C,CAAC"}
@@ -0,0 +1,23 @@
1
+ /** Durées de mouvement, en millisecondes. `none` sert au mouvement réduit. */
2
+ export const MotionDuration = {
3
+ none: 0,
4
+ instant: 100,
5
+ fast: 150,
6
+ base: 200,
7
+ slow: 300,
8
+ };
9
+ /** Courbes CSS : une apparition décélère en arrivant, une disparition accélère en partant. */
10
+ export const MotionEasing = {
11
+ standard: 'cubic-bezier(0.2, 0, 0, 1)',
12
+ enter: 'cubic-bezier(0, 0, 0, 1)',
13
+ exit: 'cubic-bezier(0.3, 0, 1, 1)',
14
+ };
15
+ /**
16
+ * La transition CSS d'un composant stylé par `makeStyles`, prise sur les jetons. Ne vaut que sur
17
+ * le web, où react-native-web la passe au CSS : sur natif, ces propriétés sont ignorées.
18
+ */
19
+ export const motionTransition = (proprietes, cle = 'fast', courbe = 'standard') => ({
20
+ transitionProperty: proprietes.join(', '),
21
+ transitionDuration: `var(--motion-${cle}, ${MotionDuration[cle]}ms)`,
22
+ transitionTimingFunction: MotionEasing[courbe],
23
+ });
@@ -97,17 +97,82 @@ export declare const CustomPalette: {
97
97
  readonly 'color-950-default-yellow': "#F9F0CC";
98
98
  };
99
99
  };
100
- /** @deprecated Ne pas utiliser pour de nouveaux usages */
100
+ /** Équivalents sombres des tokens light : mêmes clés, nuances inversées sur l'échelle. */
101
101
  readonly dark: {
102
- readonly text: {
103
- /** @deprecated Ne pas utiliser pour de nouveaux usages */
104
- readonly 'default-grey': "#CED5E1";
102
+ readonly artwork: {
103
+ readonly 'major-primary': "#B4D9FE";
104
+ readonly 'decorative-primary': "#012448";
105
+ readonly 'minor-secondary': "#DA2275";
105
106
  };
106
107
  readonly background: {
107
- /** @deprecated Ne pas utiliser pour de nouveaux usages */
108
108
  readonly 'alt-primary': "#011E3A";
109
- /** @deprecated Ne pas utiliser pour de nouveaux usages */
109
+ readonly 'alt-grey': "#1D1E20";
110
+ readonly 'action-low-primary': "#012B53";
110
111
  readonly 'contrast-grey': "#232427";
112
+ readonly 'contrast-success': "#18271E";
113
+ readonly 'contrast-error': "#2E1715";
114
+ readonly 'contrast-info': "#012448";
115
+ readonly 'contrast-warning': "#2E1C12";
116
+ readonly 'default-grey': "#151617";
117
+ readonly 'default-grey-hover': "#282A2D";
118
+ readonly 'default-grey-active': "#2D2F32";
119
+ readonly 'active-primary': "#2591FE";
120
+ readonly 'disabled-grey': "#323439";
121
+ readonly 'active-inverted': "#232427";
122
+ readonly 'transparent-hover': "rgba(255, 255, 255, 0.08)";
123
+ readonly 'action-high-primary': "#2591FE";
124
+ readonly 'action-high-primary-hover': "#0264C7";
125
+ readonly 'action-high-error': "#E62C1C";
126
+ readonly 'flat-error': "#E62C1C";
127
+ readonly 'flat-info': "#2591FE";
128
+ readonly 'flat-success': "#27A65C";
129
+ readonly 'flat-warning': "#F96B24";
130
+ readonly 'open-primary': "#012B53";
131
+ };
132
+ readonly border: {
133
+ readonly 'default-grey': "#323439";
134
+ readonly 'contrast-grey': "#5F6571";
135
+ readonly 'default-primary': "#2591FE";
136
+ readonly 'action-high-primary': "#B4D9FE";
137
+ readonly 'action-high-grey': "#EFF1F6";
138
+ readonly 'active-primary': "#B4D9FE";
139
+ readonly 'open-primary': "#012B53";
140
+ readonly 'disabled-grey': "#323439";
141
+ readonly 'plain-primary': "#B4D9FE";
142
+ readonly 'plain-grey': "#DEE3EC";
143
+ readonly 'plain-success': "#27A65C";
144
+ readonly 'plain-error': "#FAC0BB";
145
+ readonly 'plain-warning': "#F96B24";
146
+ readonly 'plain-info': "#2591FE";
147
+ readonly 'action-low-primary': "#033B72";
148
+ };
149
+ readonly text: {
150
+ readonly 'title-grey': "#F7FAFB";
151
+ readonly 'title-primary': "#B4D9FE";
152
+ readonly 'default-grey': "#CED5E1";
153
+ readonly 'mention-grey': "#8D97AC";
154
+ readonly 'label-grey': "#F7FAFB";
155
+ readonly 'action-high-primary': "#D2E8FE";
156
+ readonly 'action-high-grey': "#F7FAFB";
157
+ readonly 'action-high-info': "#B4D9FE";
158
+ readonly 'action-high-warning': "#FFC6AA";
159
+ readonly 'action-high-error': "#FAC0BB";
160
+ readonly 'inverted-grey': "#151617";
161
+ readonly 'inverted-primary': "#011E3A";
162
+ readonly 'active-primary': "#B4D9FE";
163
+ readonly 'active-grey': "#F7FAFB";
164
+ readonly 'disabled-grey': "#5F6571";
165
+ readonly 'default-success': "#3EEA86";
166
+ readonly 'default-error': "#FAC0BB";
167
+ readonly 'default-warning': "#FFC6AA";
168
+ readonly 'default-info': "#B4D9FE";
169
+ };
170
+ readonly system: {
171
+ readonly focus: "#0A76F6";
172
+ };
173
+ readonly illustration: {
174
+ readonly 'color-sun-default-yellow': "#FFE571";
175
+ readonly 'color-950-default-yellow': "#2C2404";
111
176
  };
112
177
  };
113
178
  /** @deprecated Utiliser light.background['action-high-primary'] ou les tokens du thème light selon le contexte */
@@ -1 +1 @@
1
- {"version":3,"file":"Palette.d.ts","sourceRoot":"","sources":["../../src/constants/Palette.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa;;QAEtB,kDAAkD;;;;;;;;YAQhD,mEAAmE;;;YAGnE,sFAAsF;;;;;;YAMtF,iDAAiD;;YAEjD,8CAA8C;;YAE9C,6CAA6C;;;YAG7C,mCAAmC;;YAEnC,mEAAmE;;;;;;;;;;;;;YAanE,oEAAoE;;YAEpE,wEAAwE;;;;YAIxE,qDAAqD;;;;YAIrD,sCAAsC;;;YAGtC,+DAA+D;;;;;;;;;YAS/D,wBAAwB;;;YAGxB,gCAAgC;;YAEhC,2DAA2D;;YAE3D,oCAAoC;;;YAGpC,mDAAmD;;;;;YAKnD,+CAA+C;;;;YAI/C,sDAAsD;;YAEtD,oCAAoC;;;;;;;;;;;;;;;IAgBxC,0DAA0D;;;YAGtD,0DAA0D;;;;YAI1D,0DAA0D;;YAE1D,0DAA0D;;;;IAK9D,kHAAkH;;IAElH,iGAAiG;;IAEjG,gGAAgG;;IAEhG,uFAAuF;;IAEvF,6FAA6F;;IAE7F,6FAA6F;;IAE7F,sDAAsD;;IAGtD,iEAAiE;;QAE/D,sDAAs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,SAAS,MAAM,GACd,MAAM,GAAG,MAAM,GACf;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAAE,CAAC;AAE7C,uEAAuE;AACvE,MAAM,MAAM,aAAa,GAAG,WAAW,CAAC,OAAO,aAAa,CAAC,CAAC;AAC9D,MAAM,MAAM,OAAO,GAAG,eAAe,CAAC,OAAO,aAAa,CAAC,CAAC;AAE5D;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC;AAKnE,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAChE,CAAC"}
@@ -98,17 +98,82 @@ export const CustomPalette = {
98
98
  'color-950-default-yellow': Colors['Ocre']['950'],
99
99
  },
100
100
  },
101
- /** @deprecated Ne pas utiliser pour de nouveaux usages */
101
+ /** Équivalents sombres des tokens light : mêmes clés, nuances inversées sur l'échelle. */
102
102
  dark: {
103
+ artwork: {
104
+ 'major-primary': Colors['BleuCaptive']['850'],
105
+ 'decorative-primary': Colors['BleuCaptive']['100'],
106
+ 'minor-secondary': Colors['Cerise']['600'],
107
+ },
108
+ background: {
109
+ 'alt-primary': Colors['BleuCaptive']['75'],
110
+ 'alt-grey': Colors['Neutre']['75'],
111
+ 'action-low-primary': Colors['BleuCaptive']['125'],
112
+ 'contrast-grey': Colors['Neutre']['100'],
113
+ 'contrast-success': Colors['VertSuccess']['100'],
114
+ 'contrast-error': Colors['RougeErreur']['100'],
115
+ 'contrast-info': Colors['BleuCaptive']['100'],
116
+ 'contrast-warning': Colors['OrangeWarning']['100'],
117
+ 'default-grey': Colors['Neutre']['50'],
118
+ 'default-grey-hover': Colors['Neutre']['125'],
119
+ 'default-grey-active': Colors['Neutre']['150'],
120
+ 'active-primary': Colors['BleuCaptive']['625'],
121
+ 'disabled-grey': Colors['Neutre']['175'],
122
+ 'active-inverted': Colors['Neutre']['100'],
123
+ 'transparent-hover': 'rgba(255, 255, 255, 0.08)',
124
+ 'action-high-primary': Colors['BleuCaptive']['625'],
125
+ 'action-high-primary-hover': Colors['BleuCaptive']['425'],
126
+ 'action-high-error': Colors['RougeErreur']['main-525'],
127
+ 'flat-error': Colors['RougeErreur']['main-525'],
128
+ 'flat-info': Colors['BleuCaptive']['625'],
129
+ 'flat-success': Colors['VertSuccess']['625'],
130
+ 'flat-warning': Colors['OrangeWarning']['625'],
131
+ 'open-primary': Colors['BleuCaptive']['125'],
132
+ },
133
+ border: {
134
+ 'default-grey': Colors['Neutre']['175'],
135
+ 'contrast-grey': Colors['Neutre']['425'],
136
+ 'default-primary': Colors['BleuCaptive']['625'],
137
+ 'action-high-primary': Colors['BleuCaptive']['850'],
138
+ 'action-high-grey': Colors['Neutre']['950'],
139
+ 'active-primary': Colors['BleuCaptive']['850'],
140
+ 'open-primary': Colors['BleuCaptive']['125'],
141
+ 'disabled-grey': Colors['Neutre']['175'],
142
+ 'plain-primary': Colors['BleuCaptive']['850'],
143
+ 'plain-grey': Colors['Neutre']['900'],
144
+ 'plain-success': Colors['VertSuccess']['625'],
145
+ 'plain-error': Colors['RougeErreur']['850'],
146
+ 'plain-warning': Colors['OrangeWarning']['625'],
147
+ 'plain-info': Colors['BleuCaptive']['625'],
148
+ 'action-low-primary': Colors['BleuCaptive']['200'],
149
+ },
103
150
  text: {
104
- /** @deprecated Ne pas utiliser pour de nouveaux usages */
151
+ 'title-grey': Colors['Neutre']['975'],
152
+ 'title-primary': Colors['BleuCaptive']['850'],
105
153
  'default-grey': Colors['Neutre']['850'],
154
+ 'mention-grey': Colors['Neutre']['625'],
155
+ 'label-grey': Colors['Neutre']['975'],
156
+ 'action-high-primary': Colors['BleuCaptive']['925'],
157
+ 'action-high-grey': Colors['Neutre']['975'],
158
+ 'action-high-info': Colors['BleuCaptive']['850'],
159
+ 'action-high-warning': Colors['OrangeWarning']['850'],
160
+ 'action-high-error': Colors['RougeErreur']['850'],
161
+ 'inverted-grey': Colors['Neutre']['50'],
162
+ 'inverted-primary': Colors['BleuCaptive']['75'],
163
+ 'active-primary': Colors['BleuCaptive']['850'],
164
+ 'active-grey': Colors['Neutre']['975'],
165
+ 'disabled-grey': Colors['Neutre']['425'],
166
+ 'default-success': Colors['VertSuccess']['850'],
167
+ 'default-error': Colors['RougeErreur']['850'],
168
+ 'default-warning': Colors['OrangeWarning']['850'],
169
+ 'default-info': Colors['BleuCaptive']['850'],
106
170
  },
107
- background: {
108
- /** @deprecated Ne pas utiliser pour de nouveaux usages */
109
- 'alt-primary': Colors.BleuCaptive['75'],
110
- /** @deprecated Ne pas utiliser pour de nouveaux usages */
111
- 'contrast-grey': Colors.Neutre['100'],
171
+ system: {
172
+ focus: Colors['Focus']['525'],
173
+ },
174
+ illustration: {
175
+ 'color-sun-default-yellow': Colors['Ocre']['moon-910'],
176
+ 'color-950-default-yellow': Colors['Ocre']['100'],
112
177
  },
113
178
  },
114
179
  /** @deprecated Utiliser light.background['action-high-primary'] ou les tokens du thème light selon le contexte */
@@ -7,6 +7,7 @@ export * from './Font';
7
7
  export * from './Grille';
8
8
  export * from './Link';
9
9
  export * from './LinkProps';
10
+ export * from './Motion';
10
11
  export * from './Palette';
11
12
  export * from './Radius';
12
13
  export * from './Sizes';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,WAAW,CAAC"}
@@ -7,6 +7,7 @@ export * from './Font';
7
7
  export * from './Grille';
8
8
  export * from './Link';
9
9
  export * from './LinkProps';
10
+ export * from './Motion';
10
11
  export * from './Palette';
11
12
  export * from './Radius';
12
13
  export * from './Sizes';
package/dist/default.css CHANGED
@@ -71,6 +71,7 @@
71
71
  --color-PinkVivid-800: #870557;
72
72
  --color-PinkVivid-900: #620042;
73
73
  --color-Focus-525: #0A76F6;
74
+ --color-OrangeWarning-100: #2E1C12;
74
75
  --color-OrangeWarning-425: #BC4401;
75
76
  --color-OrangeWarning-625: #F96B24;
76
77
  --color-OrangeWarning-850: #FFC6AA;
@@ -78,6 +79,7 @@
78
79
  --color-OrangeWarning-950: #FFEEE5;
79
80
  --color-OrangeWarning-975: #FFF5F0;
80
81
  --color-OrangeWarning-main-525: #D64D00;
82
+ --color-RougeErreur-100: #2E1715;
81
83
  --color-RougeErreur-425: #C62416;
82
84
  --color-RougeErreur-850: #FAC0BB;
83
85
  --color-RougeErreur-925: #FCDFDC;
@@ -476,9 +478,211 @@
476
478
  --illustration-color-sun-default-yellow: var(--color-Ocre-sun-403);
477
479
  --illustration-color-950-default-yellow: var(--color-Ocre-950);
478
480
  }
481
+ [data-color-mode='light'] {
482
+ --artwork-major-primary: var(--color-BleuCaptive-200);
483
+ --artwork-decorative-primary: var(--color-BleuCaptive-950);
484
+ --artwork-minor-secondary: var(--color-Cerise-600);
485
+ --background-alt-primary: var(--color-BleuCaptive-975);
486
+ --background-alt-grey: var(--color-Neutre-975);
487
+ --background-action-low-primary: var(--color-BleuCaptive-925);
488
+ --background-contrast-grey: var(--color-Neutre-950);
489
+ --background-contrast-success: var(--color-VertSuccess-950);
490
+ --background-contrast-error: var(--color-RougeErreur-950);
491
+ --background-contrast-info: var(--color-BleuCaptive-950);
492
+ --background-contrast-warning: var(--color-OrangeWarning-950);
493
+ --background-default-grey: var(--color-Neutre-1000);
494
+ --background-default-grey-hover: var(--color-Neutre-950);
495
+ --background-default-grey-active: var(--color-Neutre-925);
496
+ --background-active-primary: var(--color-BleuCaptive-sun-172);
497
+ --background-disabled-grey: var(--color-Neutre-925);
498
+ --background-active-inverted: var(--color-Neutre-1000);
499
+ --background-transparent-hover: rgba(0, 0, 0, 0.04);
500
+ --background-action-high-primary: var(--color-BleuCaptive-sun-172);
501
+ --background-action-high-primary-hover: var(--color-BleuCaptive-sun-172-hover);
502
+ --background-action-high-error: var(--color-RougeErreur-425);
503
+ --background-flat-error: var(--color-RougeErreur-425);
504
+ --background-flat-info: var(--color-BleuCaptive-425);
505
+ --background-flat-success: var(--color-VertSuccess-425);
506
+ --background-flat-warning: var(--color-OrangeWarning-425);
507
+ --background-open-primary: var(--color-BleuCaptive-925);
508
+ --border-default-grey: var(--color-Neutre-900);
509
+ --border-contrast-grey: var(--color-Neutre-625);
510
+ --border-default-primary: var(--color-BleuCaptive-425);
511
+ --border-action-high-primary: var(--color-BleuCaptive-sun-172);
512
+ --border-action-high-grey: var(--color-Neutre-50);
513
+ --border-active-primary: var(--color-BleuCaptive-sun-172);
514
+ --border-open-primary: var(--color-BleuCaptive-925);
515
+ --border-disabled-grey: var(--color-Neutre-925);
516
+ --border-plain-primary: var(--color-BleuCaptive-sun-172);
517
+ --border-plain-grey: var(--color-Neutre-200);
518
+ --border-plain-success: var(--color-VertSuccess-425);
519
+ --border-plain-error: var(--color-RougeErreur-425);
520
+ --border-plain-warning: var(--color-OrangeWarning-425);
521
+ --border-plain-info: var(--color-BleuCaptive-425);
522
+ --border-action-low-primary: var(--color-BleuCaptive-850);
523
+ --text-title-grey: var(--color-Neutre-50);
524
+ --text-title-primary: var(--color-BleuCaptive-sun-172);
525
+ --text-default-grey: var(--color-Neutre-200);
526
+ --text-mention-grey: var(--color-Neutre-425);
527
+ --text-label-grey: var(--color-Neutre-50);
528
+ --text-action-high-primary: var(--color-BleuCaptive-125);
529
+ --text-action-high-grey: var(--color-Neutre-50);
530
+ --text-action-high-info: var(--color-BleuCaptive-425);
531
+ --text-action-high-warning: var(--color-OrangeWarning-425);
532
+ --text-action-high-error: var(--color-RougeErreur-425);
533
+ --text-inverted-grey: var(--color-Neutre-1000);
534
+ --text-inverted-primary: var(--color-BleuCaptive-975);
535
+ --text-active-primary: var(--color-BleuCaptive-sun-172);
536
+ --text-active-grey: var(--color-Neutre-50);
537
+ --text-disabled-grey: var(--color-Neutre-625);
538
+ --text-default-success: var(--color-VertSuccess-425);
539
+ --text-default-error: var(--color-RougeErreur-425);
540
+ --text-default-warning: var(--color-OrangeWarning-425);
541
+ --text-default-info: var(--color-BleuCaptive-425);
542
+ --system-focus: var(--color-Focus-525);
543
+ --illustration-color-sun-default-yellow: var(--color-Ocre-sun-403);
544
+ --illustration-color-950-default-yellow: var(--color-Ocre-950);
545
+ color-scheme: light;
546
+ }
547
+ [data-color-mode='dark'] {
548
+ --artwork-major-primary: var(--color-BleuCaptive-850);
549
+ --artwork-decorative-primary: var(--color-BleuCaptive-sun-100);
550
+ --artwork-minor-secondary: var(--color-Cerise-600);
551
+ --background-alt-primary: var(--color-BleuCaptive-75);
552
+ --background-alt-grey: var(--color-Neutre-75);
553
+ --background-action-low-primary: var(--color-BleuCaptive-125);
554
+ --background-contrast-grey: var(--color-Neutre-100);
555
+ --background-contrast-success: var(--color-VertSuccess-100);
556
+ --background-contrast-error: var(--color-RougeErreur-100);
557
+ --background-contrast-info: var(--color-BleuCaptive-sun-100);
558
+ --background-contrast-warning: var(--color-OrangeWarning-100);
559
+ --background-default-grey: var(--color-Neutre-50);
560
+ --background-default-grey-hover: var(--color-Neutre-125);
561
+ --background-default-grey-active: var(--color-Neutre-150);
562
+ --background-active-primary: var(--color-BleuCaptive-625);
563
+ --background-disabled-grey: var(--color-Neutre-175);
564
+ --background-active-inverted: var(--color-Neutre-100);
565
+ --background-transparent-hover: rgba(255, 255, 255, 0.08);
566
+ --background-action-high-primary: var(--color-BleuCaptive-625);
567
+ --background-action-high-primary-hover: var(--color-BleuCaptive-425);
568
+ --background-action-high-error: var(--color-RougeErreur-main-525);
569
+ --background-flat-error: var(--color-RougeErreur-main-525);
570
+ --background-flat-info: var(--color-BleuCaptive-625);
571
+ --background-flat-success: var(--color-VertSuccess-625);
572
+ --background-flat-warning: var(--color-OrangeWarning-625);
573
+ --background-open-primary: var(--color-BleuCaptive-125);
574
+ --border-default-grey: var(--color-Neutre-175);
575
+ --border-contrast-grey: var(--color-Neutre-425);
576
+ --border-default-primary: var(--color-BleuCaptive-625);
577
+ --border-action-high-primary: var(--color-BleuCaptive-850);
578
+ --border-action-high-grey: var(--color-Neutre-950);
579
+ --border-active-primary: var(--color-BleuCaptive-850);
580
+ --border-open-primary: var(--color-BleuCaptive-125);
581
+ --border-disabled-grey: var(--color-Neutre-175);
582
+ --border-plain-primary: var(--color-BleuCaptive-850);
583
+ --border-plain-grey: var(--color-Neutre-900);
584
+ --border-plain-success: var(--color-VertSuccess-625);
585
+ --border-plain-error: var(--color-RougeErreur-850);
586
+ --border-plain-warning: var(--color-OrangeWarning-625);
587
+ --border-plain-info: var(--color-BleuCaptive-625);
588
+ --border-action-low-primary: var(--color-BleuCaptive-200);
589
+ --text-title-grey: var(--color-Neutre-975);
590
+ --text-title-primary: var(--color-BleuCaptive-850);
591
+ --text-default-grey: var(--color-Neutre-850);
592
+ --text-mention-grey: var(--color-Neutre-625);
593
+ --text-label-grey: var(--color-Neutre-975);
594
+ --text-action-high-primary: var(--color-BleuCaptive-925);
595
+ --text-action-high-grey: var(--color-Neutre-975);
596
+ --text-action-high-info: var(--color-BleuCaptive-850);
597
+ --text-action-high-warning: var(--color-OrangeWarning-850);
598
+ --text-action-high-error: var(--color-RougeErreur-850);
599
+ --text-inverted-grey: var(--color-Neutre-50);
600
+ --text-inverted-primary: var(--color-BleuCaptive-75);
601
+ --text-active-primary: var(--color-BleuCaptive-850);
602
+ --text-active-grey: var(--color-Neutre-975);
603
+ --text-disabled-grey: var(--color-Neutre-425);
604
+ --text-default-success: var(--color-VertSuccess-850);
605
+ --text-default-error: var(--color-RougeErreur-850);
606
+ --text-default-warning: var(--color-OrangeWarning-850);
607
+ --text-default-info: var(--color-BleuCaptive-850);
608
+ --system-focus: var(--color-Focus-525);
609
+ --illustration-color-sun-default-yellow: var(--color-Ocre-moon-910);
610
+ --illustration-color-950-default-yellow: var(--color-Ocre-100);
611
+ color-scheme: dark;
612
+ }
613
+ @media (prefers-color-scheme: dark) {
614
+ [data-color-mode='system'] {
615
+ --artwork-major-primary: var(--color-BleuCaptive-850);
616
+ --artwork-decorative-primary: var(--color-BleuCaptive-sun-100);
617
+ --artwork-minor-secondary: var(--color-Cerise-600);
618
+ --background-alt-primary: var(--color-BleuCaptive-75);
619
+ --background-alt-grey: var(--color-Neutre-75);
620
+ --background-action-low-primary: var(--color-BleuCaptive-125);
621
+ --background-contrast-grey: var(--color-Neutre-100);
622
+ --background-contrast-success: var(--color-VertSuccess-100);
623
+ --background-contrast-error: var(--color-RougeErreur-100);
624
+ --background-contrast-info: var(--color-BleuCaptive-sun-100);
625
+ --background-contrast-warning: var(--color-OrangeWarning-100);
626
+ --background-default-grey: var(--color-Neutre-50);
627
+ --background-default-grey-hover: var(--color-Neutre-125);
628
+ --background-default-grey-active: var(--color-Neutre-150);
629
+ --background-active-primary: var(--color-BleuCaptive-625);
630
+ --background-disabled-grey: var(--color-Neutre-175);
631
+ --background-active-inverted: var(--color-Neutre-100);
632
+ --background-transparent-hover: rgba(255, 255, 255, 0.08);
633
+ --background-action-high-primary: var(--color-BleuCaptive-625);
634
+ --background-action-high-primary-hover: var(--color-BleuCaptive-425);
635
+ --background-action-high-error: var(--color-RougeErreur-main-525);
636
+ --background-flat-error: var(--color-RougeErreur-main-525);
637
+ --background-flat-info: var(--color-BleuCaptive-625);
638
+ --background-flat-success: var(--color-VertSuccess-625);
639
+ --background-flat-warning: var(--color-OrangeWarning-625);
640
+ --background-open-primary: var(--color-BleuCaptive-125);
641
+ --border-default-grey: var(--color-Neutre-175);
642
+ --border-contrast-grey: var(--color-Neutre-425);
643
+ --border-default-primary: var(--color-BleuCaptive-625);
644
+ --border-action-high-primary: var(--color-BleuCaptive-850);
645
+ --border-action-high-grey: var(--color-Neutre-950);
646
+ --border-active-primary: var(--color-BleuCaptive-850);
647
+ --border-open-primary: var(--color-BleuCaptive-125);
648
+ --border-disabled-grey: var(--color-Neutre-175);
649
+ --border-plain-primary: var(--color-BleuCaptive-850);
650
+ --border-plain-grey: var(--color-Neutre-900);
651
+ --border-plain-success: var(--color-VertSuccess-625);
652
+ --border-plain-error: var(--color-RougeErreur-850);
653
+ --border-plain-warning: var(--color-OrangeWarning-625);
654
+ --border-plain-info: var(--color-BleuCaptive-625);
655
+ --border-action-low-primary: var(--color-BleuCaptive-200);
656
+ --text-title-grey: var(--color-Neutre-975);
657
+ --text-title-primary: var(--color-BleuCaptive-850);
658
+ --text-default-grey: var(--color-Neutre-850);
659
+ --text-mention-grey: var(--color-Neutre-625);
660
+ --text-label-grey: var(--color-Neutre-975);
661
+ --text-action-high-primary: var(--color-BleuCaptive-925);
662
+ --text-action-high-grey: var(--color-Neutre-975);
663
+ --text-action-high-info: var(--color-BleuCaptive-850);
664
+ --text-action-high-warning: var(--color-OrangeWarning-850);
665
+ --text-action-high-error: var(--color-RougeErreur-850);
666
+ --text-inverted-grey: var(--color-Neutre-50);
667
+ --text-inverted-primary: var(--color-BleuCaptive-75);
668
+ --text-active-primary: var(--color-BleuCaptive-850);
669
+ --text-active-grey: var(--color-Neutre-975);
670
+ --text-disabled-grey: var(--color-Neutre-425);
671
+ --text-default-success: var(--color-VertSuccess-850);
672
+ --text-default-error: var(--color-RougeErreur-850);
673
+ --text-default-warning: var(--color-OrangeWarning-850);
674
+ --text-default-info: var(--color-BleuCaptive-850);
675
+ --system-focus: var(--color-Focus-525);
676
+ --illustration-color-sun-default-yellow: var(--color-Ocre-moon-910);
677
+ --illustration-color-950-default-yellow: var(--color-Ocre-100);
678
+ color-scheme: dark;
679
+ }
680
+ }
479
681
 
480
682
  [data-alveole-focus]:focus-visible { outline: 2px solid #0A76F6 !important; outline-offset: 2px !important; }
481
683
  [data-alveole-focus]:focus:not(:focus-visible) { outline: none !important; }
482
684
  [data-alveole-focus='inset']:focus-visible { outline-offset: -2px !important; }
483
685
 
484
- [data-alveole-link] { text-underline-offset: 0.2em; }
686
+ [data-alveole-link] { text-underline-offset: 0.2em; }
687
+
688
+ :root { --motion-none: 0ms; --motion-instant: 100ms; --motion-fast: 150ms; --motion-base: 200ms; --motion-slow: 300ms; } @media (prefers-reduced-motion: reduce) { :root { --motion-none: 0ms; --motion-instant: 0ms; --motion-fast: 0ms; --motion-base: 0ms; --motion-slow: 0ms; } }
@@ -1,7 +1,7 @@
1
1
  import { Theme } from '../type';
2
2
  /** Ce que la generation du CSS lit du theme : le theme par defaut n'a besoin de rien d'autre. */
3
3
  type SourceDuCSS = {
4
- color: Pick<Theme['color'], '_constants' | '_rawLight'>;
4
+ color: Pick<Theme['color'], '_constants' | '_rawLight'> & Partial<Pick<Theme['color'], '_rawDark'>>;
5
5
  };
6
6
  export declare const generateCSSVariables: (theme: SourceDuCSS) => string;
7
7
  export declare const injectVariableCSS: (theme: SourceDuCSS) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"injectVariableCSS.d.ts","sourceRoot":"","sources":["../../src/helpers/injectVariableCSS.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAMhC,iGAAiG;AACjG,KAAK,WAAW,GAAG;IAAE,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,WAAW,CAAC,CAAA;CAAE,CAAC;AAwB/E,eAAO,MAAM,oBAAoB,GAAI,OAAO,WAAW,KAAG,MA8CzD,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,OAAO,WAAW,SAYnD,CAAC;AAEF,eAAO,MAAM,mBAAmB,QAAO,MAYtC,CAAC;AASF;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,GAAI,QAAO,WAA0B,KAAG,MAAM,EAK/E,CAAC"}
1
+ {"version":3,"file":"injectVariableCSS.d.ts","sourceRoot":"","sources":["../../src/helpers/injectVariableCSS.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAOhC,iGAAiG;AACjG,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,WAAW,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC;CACrG,CAAC;AAwBF,eAAO,MAAM,oBAAoB,GAAI,OAAO,WAAW,KAAG,MA4DzD,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,OAAO,WAAW,SAYnD,CAAC;AAEF,eAAO,MAAM,mBAAmB,QAAO,MAYtC,CAAC;AAUF;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,GAAI,QAAO,WAA0B,KAAG,MAAM,EAM/E,CAAC"}
@@ -5,6 +5,7 @@ import { RadiusList } from '../constants/Radius';
5
5
  import { CustomTypography } from '../constants/Typography';
6
6
  import { generateFocusRingCSS } from './focusRingCSS';
7
7
  import { generateLinkCSS } from './linkCSS';
8
+ import { generateMotionCSS } from './motionCSS';
8
9
  import { sanitizeCSSKey } from './sanitizeCSSKey';
9
10
  import { typographyVariableLines } from './typographyVariables';
10
11
  const buildColorVarMap = (constants) => {
@@ -58,14 +59,23 @@ export const generateCSSVariables = (theme) => {
58
59
  });
59
60
  // Semantic tokens typographiques (--typography-{...}-font-size, etc.)
60
61
  lines.push(...typographyVariableLines(CustomTypography, fontReverseMap));
62
+ const semanticLines = (palette) => Object.entries(palette).flatMap(([category, tokens]) => typeof tokens === 'object' && tokens !== null ? generateSemanticTokenLines(category, tokens, colorVarMap) : []);
61
63
  // Semantic tokens light (--{category}-{token}: var(--color-...))
62
- Object.entries(theme.color._rawLight).forEach(([category, tokens]) => {
63
- if (typeof tokens !== 'object' || tokens === null)
64
- return;
65
- lines.push(...generateSemanticTokenLines(category, tokens, colorVarMap));
66
- });
64
+ const lightLines = semanticLines(theme.color._rawLight);
65
+ lines.push(...lightLines);
67
66
  const rootBlock = `:root {\n${lines.join('\n')}\n}`;
68
- return rootBlock;
67
+ if (!theme.color._rawDark)
68
+ return rootBlock;
69
+ // Mode de couleur : ThemeProvider pose data-color-mode sur <html>. Les variables héritant,
70
+ // l'attribut posé sur un élément change aussi le mode de son seul sous-arbre.
71
+ const lightBody = `${lightLines.join('\n')}\n color-scheme: light;`;
72
+ const darkBody = `${semanticLines(theme.color._rawDark).join('\n')}\n color-scheme: dark;`;
73
+ return [
74
+ rootBlock,
75
+ `[data-color-mode='light'] {\n${lightBody}\n}`,
76
+ `[data-color-mode='dark'] {\n${darkBody}\n}`,
77
+ `@media (prefers-color-scheme: dark) {\n [data-color-mode='system'] {\n${darkBody}\n }\n}`,
78
+ ].join('\n');
69
79
  };
70
80
  export const injectVariableCSS = (theme) => {
71
81
  if (typeof document === 'undefined')
@@ -95,6 +105,7 @@ const DefaultTheme = {
95
105
  color: {
96
106
  _constants: Colors,
97
107
  _rawLight: CustomPalette.light,
108
+ _rawDark: CustomPalette.dark,
98
109
  },
99
110
  };
100
111
  /**
@@ -108,4 +119,5 @@ export const generateThemeCSSParts = (theme = DefaultTheme) => [
108
119
  generateCSSVariables(theme),
109
120
  generateFocusRingCSS(),
110
121
  generateLinkCSS(),
122
+ generateMotionCSS(),
111
123
  ];
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Les durées de mouvement en variables CSS, ramenées à zéro quand le système demande de réduire
3
+ * les animations. Seules les variables changent (ADR 0008) : aucun élément de l'application n'est visé.
4
+ */
5
+ export declare const generateMotionCSS: () => string;
6
+ //# sourceMappingURL=motionCSS.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"motionCSS.d.ts","sourceRoot":"","sources":["../../src/helpers/motionCSS.ts"],"names":[],"mappings":"AAOA;;;GAGG;AACH,eAAO,MAAM,iBAAiB,QAAO,MAC2E,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { MotionDuration } from '../constants/Motion';
2
+ const variables = (duree) => Object.entries(MotionDuration)
3
+ .map(([cle, ms]) => `--motion-${cle}: ${duree(ms)}ms;`)
4
+ .join(' ');
5
+ /**
6
+ * Les durées de mouvement en variables CSS, ramenées à zéro quand le système demande de réduire
7
+ * les animations. Seules les variables changent (ADR 0008) : aucun élément de l'application n'est visé.
8
+ */
9
+ export const generateMotionCSS = () => `:root { ${variables(ms => ms)} } @media (prefers-reduced-motion: reduce) { :root { ${variables(() => 0)} } }`;
@@ -0,0 +1,4 @@
1
+ export type ColorMode = 'light' | 'dark' | 'system';
2
+ /** Le mode réellement affiché. Le natif n'a pas de mode sombre : ses styles lisent `light`. */
3
+ export declare const resoudreMode: (colorMode: ColorMode, systeme: string | null | undefined) => "light" | "dark";
4
+ //# sourceMappingURL=resoudreMode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resoudreMode.d.ts","sourceRoot":"","sources":["../../src/helpers/resoudreMode.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEpD,+FAA+F;AAC/F,eAAO,MAAM,YAAY,GAAI,WAAW,SAAS,EAAE,SAAS,MAAM,GAAG,IAAI,GAAG,SAAS,KAAG,OAAO,GAAG,MAIjG,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { Platform } from 'react-native';
2
+ /** Le mode réellement affiché. Le natif n'a pas de mode sombre : ses styles lisent `light`. */
3
+ export const resoudreMode = (colorMode, systeme) => {
4
+ if (Platform.OS !== 'web')
5
+ return 'light';
6
+ if (colorMode === 'system')
7
+ return systeme === 'dark' ? 'dark' : 'light';
8
+ return colorMode;
9
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"useThemeBuilder.d.ts","sourceRoot":"","sources":["../../src/helpers/useThemeBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAKrC,OAAO,EAKL,WAAW,EAMX,aAAa,EAGd,MAAM,cAAc,CAAC;AAWtB,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,CAAC,EAAE,WAAW,CAAC,aAAa,CAAC,CAAC;CACpC,CAAC;AAEF,wBAAgB,eAAe,CAAC,MAAM,EAAE,aAAa,GAAG,KAAK,GAAG;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,CA6EnF"}
1
+ {"version":3,"file":"useThemeBuilder.d.ts","sourceRoot":"","sources":["../../src/helpers/useThemeBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAKrC,OAAO,EAKL,WAAW,EAMX,aAAa,EAGd,MAAM,cAAc,CAAC;AAWtB,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,CAAC,EAAE,WAAW,CAAC,aAAa,CAAC,CAAC;CACpC,CAAC;AAEF,wBAAgB,eAAe,CAAC,MAAM,EAAE,aAAa,GAAG,KAAK,GAAG;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,CAmFnF"}
@@ -43,7 +43,13 @@ export function useThemeBuilder(params) {
43
43
  variant,
44
44
  isVariant: useCallback(match => variant === match, [variant]),
45
45
  // Colors
46
- color: { _constants: Colors, _rawLight: rawMergedPalette.light, alpha, ...enCouleursDuTheme(mergedPalette) },
46
+ color: {
47
+ _constants: Colors,
48
+ _rawLight: rawMergedPalette.light,
49
+ _rawDark: rawMergedPalette.dark,
50
+ alpha,
51
+ ...enCouleursDuTheme(mergedPalette),
52
+ },
47
53
  // Shadows
48
54
  shadows: elevationStyle,
49
55
  // Typographies
@@ -26,6 +26,8 @@ export interface Theme {
26
26
  _constants: typeof Colors;
27
27
  /** Palette light avec valeurs hex brutes, utilisée par injectVariableCSS */
28
28
  _rawLight: PaletteSource['light'];
29
+ /** Palette dark avec valeurs hex brutes, utilisée par injectVariableCSS pour le mode sombre */
30
+ _rawDark: PaletteSource['dark'];
29
31
  } & Palette & {
30
32
  alpha: typeof alpha;
31
33
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Theme.d.ts","sourceRoot":"","sources":["../../src/type/Theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EACN,gBAAgB,EAChB,KAAK,EACL,OAAO,EACP,OAAO,EACP,aAAa,EACb,OAAO,EACP,UAAU,EACV,OAAO,EACR,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACxE,OAAO,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAA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jC,GAAG,OAAO,GAAG;QACV,KAAK,EAAE,OAAO,KAAK,CAAC;KACrB,CAAC;CACL"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alveole/theme",
3
- "version": "2.0.0-alpha.39",
3
+ "version": "2.0.0-alpha.40",
4
4
  "description": "Shared theme tokens and utilities.",
5
5
  "repository": {
6
6
  "type": "git",