@cnamts/synapse 0.0.0-alpha.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.
- package/LICENSE +21 -0
- package/README.md +2 -0
- package/dist/design-system-v3.d.ts +246 -0
- package/dist/design-system-v3.js +5425 -0
- package/dist/design-system-v3.umd.cjs +2 -0
- package/dist/style.css +1 -0
- package/package.json +104 -0
- package/src/assets/tokens.scss +500 -0
- package/src/components/Alert/Alert.mdx +36 -0
- package/src/components/Alert/Alert.stories.ts +115 -0
- package/src/components/Alert/Alert.vue +248 -0
- package/src/components/Alert/locales.ts +3 -0
- package/src/components/Alert/tests/Alert.spec.ts +105 -0
- package/src/components/Alert/tests/__snapshots__/Alert.spec.ts.snap +15 -0
- package/src/components/BackBtn/BackBtn.mdx +26 -0
- package/src/components/BackBtn/BackBtn.stories.ts +138 -0
- package/src/components/BackBtn/BackBtn.vue +60 -0
- package/src/components/BackBtn/locales.ts +3 -0
- package/src/components/BackBtn/tests/BackBtn.spec.ts +103 -0
- package/src/components/BackBtn/tests/__snapshots__/BackBtn.spec.ts.snap +9 -0
- package/src/components/BackToTopBtn/BackToTopBtn.mdx +52 -0
- package/src/components/BackToTopBtn/BackToTopBtn.stories.ts +188 -0
- package/src/components/BackToTopBtn/BackToTopBtn.vue +137 -0
- package/src/components/BackToTopBtn/config.ts +12 -0
- package/src/components/BackToTopBtn/locales.ts +3 -0
- package/src/components/BackToTopBtn/tests/BackToTopBtn.spec.ts +173 -0
- package/src/components/BackToTopBtn/tests/__snapshots__/BackToTopBtn.spec.ts.snap +17 -0
- package/src/components/Beta/beta.mdx +5 -0
- package/src/components/CopyBtn/CopyBtn.mdx +38 -0
- package/src/components/CopyBtn/CopyBtn.stories.ts +209 -0
- package/src/components/CopyBtn/CopyBtn.vue +103 -0
- package/src/components/CopyBtn/config.ts +17 -0
- package/src/components/CopyBtn/locales.ts +3 -0
- package/src/components/CopyBtn/tests/CopyBtn.spec.ts +99 -0
- package/src/components/CopyBtn/tests/__snapshots__/CopyBtn.spec.ts.snap +7 -0
- package/src/components/Deprecated/deprecated.mdx +5 -0
- package/src/components/DownloadBtn/DownloadBtn.mdx +94 -0
- package/src/components/DownloadBtn/DownloadBtn.stories.ts +211 -0
- package/src/components/DownloadBtn/DownloadBtn.vue +113 -0
- package/src/components/DownloadBtn/config.ts +13 -0
- package/src/components/DownloadBtn/tests/DownloadBtn.spec.ts +82 -0
- package/src/components/DownloadBtn/tests/__snapshots__/DownloadBtn.spec.ts.snap +17 -0
- package/src/components/DownloadBtn/tests/data/filePromise.ts +53 -0
- package/src/components/DownloadBtn/tests/data/test.json +0 -0
- package/src/components/FranceConnectBtn/FranceConnectBtn.mdx +34 -0
- package/src/components/FranceConnectBtn/FranceConnectBtn.stories.ts +92 -0
- package/src/components/FranceConnectBtn/FranceConnectBtn.vue +154 -0
- package/src/components/FranceConnectBtn/locales.ts +6 -0
- package/src/components/FranceConnectBtn/tests/FranceConnectBtn.spec.ts +62 -0
- package/src/components/FranceConnectBtn/tests/__snapshots__/FranceConnectBtn.spec.ts.snap +36 -0
- package/src/components/LangBtn/LangBtn.mdx +37 -0
- package/src/components/LangBtn/LangBtn.stories.ts +147 -0
- package/src/components/LangBtn/LangBtn.vue +167 -0
- package/src/components/LangBtn/config.ts +17 -0
- package/src/components/LangBtn/locales.ts +3 -0
- package/src/components/LangBtn/tests/Config.spec.ts +24 -0
- package/src/components/LangBtn/tests/LangBtn.spec.ts +283 -0
- package/src/components/LangBtn/tests/__snapshots__/LangBtn.spec.ts.snap +11 -0
- package/src/components/LangBtn/types.d.ts +7 -0
- package/src/components/NotificationBar/NotificationBar.mdx +94 -0
- package/src/components/NotificationBar/NotificationBar.stories.ts +366 -0
- package/src/components/NotificationBar/NotificationBar.vue +296 -0
- package/src/components/NotificationBar/options.ts +15 -0
- package/src/components/NotificationBar/tests/NotificationBar.spec.ts +332 -0
- package/src/components/NotificationBar/tests/__snapshots__/NotificationBar.spec.ts.snap +7 -0
- package/src/components/NotificationBar/types.ts +7 -0
- package/src/components/PageContainer/PageContainer.mdx +29 -0
- package/src/components/PageContainer/PageContainer.stories.ts +115 -0
- package/src/components/PageContainer/PageContainer.vue +68 -0
- package/src/components/PageContainer/tests/PageContainer.spec.ts +56 -0
- package/src/components/PageContainer/tests/__snapshots__/PageContainer.spec.ts.snap +7 -0
- package/src/components/SkipLink/SkipLink.mdx +55 -0
- package/src/components/SkipLink/SkipLink.stories.ts +70 -0
- package/src/components/SkipLink/SkipLink.vue +79 -0
- package/src/components/SkipLink/locales.ts +3 -0
- package/src/components/SkipLink/tests/__snapshots__/skipLink.spec.ts.snap +3 -0
- package/src/components/SkipLink/tests/skipLink.spec.ts +46 -0
- package/src/components/index.ts +8 -0
- package/src/composables/useCustomizableOptions.ts +23 -0
- package/src/designTokens/bootstrapColors.md +66 -0
- package/src/designTokens/cnamColors.md +193 -0
- package/src/designTokens/index.ts +15 -0
- package/src/designTokens/tokens/bootstrap/bootstrapColors.ts +158 -0
- package/src/designTokens/tokens/bootstrap/bootstrapLightTheme.ts +22 -0
- package/src/designTokens/tokens/cnam/cnamColors.ts +171 -0
- package/src/designTokens/tokens/cnam/cnamContextual.ts +58 -0
- package/src/designTokens/tokens/cnam/cnamLightTheme.ts +90 -0
- package/src/designTokens/tokens/cnam/cnamSemantic.ts +87 -0
- package/src/designTokens/tokens/json/contextual-tokens.json +156 -0
- package/src/designTokens/tokens/json/primitives.json +209 -0
- package/src/designTokens/tokens/json/semantic.json +120 -0
- package/src/designTokens/utils/convertGaps.ts +11 -0
- package/src/designTokens/utils/convertSemanticsToken.ts +32 -0
- package/src/designTokens/utils/createFlattenTheme.ts +19 -0
- package/src/designTokens/utils/index.ts +4 -0
- package/src/main.ts +2 -0
- package/src/services/NotificationService.ts +27 -0
- package/src/stories/Fondamentaux/Accessibilite/Accessibilite.mdx +52 -0
- package/src/stories/Fondamentaux/Accessibilite/Accessibilite.stories.ts +36 -0
- package/src/stories/Fondamentaux/Accessibilite/AccessibiliteItems.ts +706 -0
- package/src/stories/Fondamentaux/Accessibilite/constants/ExpertiseLevelEnum.ts +5 -0
- package/src/stories/Fondamentaux/Accessibilite/constants/RGAALevelEnum.ts +4 -0
- package/src/stories/Fondamentaux/EcoConception/EcoConception.mdx +24 -0
- package/src/stories/Fondamentaux/EcoConception/Econception.stories.ts +30 -0
- package/src/stories/Fondamentaux/EcoConception/ecoDesignItems.ts +55 -0
- package/src/stories/GuideDuDev/CommentContribuer.mdx +22 -0
- package/src/stories/GuideDuDev/components.stories.ts +23 -0
- package/src/stories/GuideDuDev/moduleDeNotification.mdx +182 -0
- package/src/stories/GuideDuDev/vuetifyOptions.mdx +72 -0
- package/src/stories/Guidelines/Colors.mdx +220 -0
- package/src/stories/Guidelines/CustomisationEtThemes.mdx +3 -0
- package/src/stories/Guidelines/Introduction.mdx +35 -0
- package/src/stories/Guidelines/Typo.mdx +53 -0
- package/src/stories/Home/Accueil.mdx +7 -0
- package/src/stories/Home/PolitiqueDeConfidentialite.mdx +4 -0
- package/src/stories/Home/synapse.webp +0 -0
- package/src/temp/TestA11y.vue +14 -0
- package/src/temp/TestComponent.vue +37 -0
- package/src/temp/TestDTComponent.vue +93 -0
- package/src/temp/customizableOptions.vue +18 -0
- package/src/temp/gridsTests.vue +54 -0
- package/src/temp/options.json +5 -0
- package/src/types/vuetifyTypes.ts +3 -0
- package/src/utils/convertToUnit/index.ts +16 -0
- package/src/utils/convertToUnit/test/convertToUnit.spec.ts +32 -0
- package/src/utils/functions/copyToClipboard/index.ts +38 -0
- package/src/utils/functions/copyToClipboard/tests/copyToClipboard.spec.ts +104 -0
- package/src/utils/functions/downloadFile/index.ts +37 -0
- package/src/utils/functions/downloadFile/tests/downloadFile.spec.ts +69 -0
- package/src/utils/functions/downloadFile/types.ts +1 -0
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
export const cnamColorsTokens = {
|
|
2
|
+
orange: {
|
|
3
|
+
darken80: '#2d100b',
|
|
4
|
+
darken60: '#5a2017',
|
|
5
|
+
darken40: '#862f22',
|
|
6
|
+
darken20: '#b33f2e',
|
|
7
|
+
base: '#e04f39',
|
|
8
|
+
lighten20: '#e67261',
|
|
9
|
+
lighten40: '#ec9588',
|
|
10
|
+
lighten60: '#f3b9b0',
|
|
11
|
+
lighten80: '#f9dcd7',
|
|
12
|
+
lighten90: '#fcedeb',
|
|
13
|
+
lighten97: '#fefaf9',
|
|
14
|
+
},
|
|
15
|
+
yellow: {
|
|
16
|
+
darken80: '#302407',
|
|
17
|
+
darken60: '#60480e',
|
|
18
|
+
darken40: '#906b15',
|
|
19
|
+
darken20: '#c08f1c',
|
|
20
|
+
base: '#f0b323',
|
|
21
|
+
lighten20: '#f3c24f',
|
|
22
|
+
lighten40: '#f6d17b',
|
|
23
|
+
lighten60: '#f9e1a7',
|
|
24
|
+
lighten80: '#fcf0d3',
|
|
25
|
+
lighten90: '#fdf7e9',
|
|
26
|
+
lighten97: '#fffdf8',
|
|
27
|
+
},
|
|
28
|
+
green: {
|
|
29
|
+
darken80: '#112717',
|
|
30
|
+
darken60: '#224e2d',
|
|
31
|
+
darken40: '#347444',
|
|
32
|
+
darken20: '#459b5a',
|
|
33
|
+
base: '#56c271',
|
|
34
|
+
lighten20: '#78ce8d',
|
|
35
|
+
lighten40: '#9adaaa',
|
|
36
|
+
lighten60: '#bbe7c6',
|
|
37
|
+
lighten80: '#ddf3e3',
|
|
38
|
+
lighten90: '#eef9f1',
|
|
39
|
+
lighten97: '#fafdfb',
|
|
40
|
+
},
|
|
41
|
+
turquoise: {
|
|
42
|
+
darken80: '#00221c',
|
|
43
|
+
darken60: '#004439',
|
|
44
|
+
darken40: '#006755',
|
|
45
|
+
darken20: '#008972',
|
|
46
|
+
base: '#00ab8e',
|
|
47
|
+
lighten20: '#33bca5',
|
|
48
|
+
lighten40: '#66cdbb',
|
|
49
|
+
lighten60: '#99ddd2',
|
|
50
|
+
lighten80: '#cceee8',
|
|
51
|
+
lighten90: '#e5f7f4',
|
|
52
|
+
lighten97: '#f7fcfc',
|
|
53
|
+
},
|
|
54
|
+
blue: {
|
|
55
|
+
darken80: '#020d1f',
|
|
56
|
+
darken60: '#051a3e',
|
|
57
|
+
darken40: '#07275c',
|
|
58
|
+
darken20: '#0a347b',
|
|
59
|
+
base: '#0c419a',
|
|
60
|
+
lighten20: '#3d67ae',
|
|
61
|
+
lighten40: '#6d8dc2',
|
|
62
|
+
lighten60: '#9eb3d7',
|
|
63
|
+
lighten80: '#ced9eb',
|
|
64
|
+
lighten90: '#e7ecf5',
|
|
65
|
+
lighten97: '#f8f9fc',
|
|
66
|
+
},
|
|
67
|
+
cyan: {
|
|
68
|
+
darken80: '#00212d',
|
|
69
|
+
darken60: '#004259',
|
|
70
|
+
darken40: '#006386',
|
|
71
|
+
darken20: '#0084b2',
|
|
72
|
+
base: '#00a5df',
|
|
73
|
+
lighten20: '#33b7e5',
|
|
74
|
+
lighten40: '#66c9ec',
|
|
75
|
+
lighten60: '#99dbf2',
|
|
76
|
+
lighten80: '#ccedf9',
|
|
77
|
+
lighten90: '#e5f6fc',
|
|
78
|
+
lighten97: '#f7fcfe',
|
|
79
|
+
},
|
|
80
|
+
frostedBlue: {
|
|
81
|
+
darken80: '#142327',
|
|
82
|
+
darken60: '#28464d',
|
|
83
|
+
darken40: '#3d6874',
|
|
84
|
+
darken20: '#518b9a',
|
|
85
|
+
base: '#65aec1',
|
|
86
|
+
lighten20: '#84becd',
|
|
87
|
+
lighten40: '#a3ceda',
|
|
88
|
+
lighten60: '#c1dfe6',
|
|
89
|
+
lighten80: '#e0eff3',
|
|
90
|
+
lighten90: '#f0f7f9',
|
|
91
|
+
lighten97: '#fafdfd',
|
|
92
|
+
},
|
|
93
|
+
parma: {
|
|
94
|
+
darken80: '#171c26',
|
|
95
|
+
darken60: '#2f384d',
|
|
96
|
+
darken40: '#465473',
|
|
97
|
+
darken20: '#5e709a',
|
|
98
|
+
base: '#758cc0',
|
|
99
|
+
lighten20: '#91a3cd',
|
|
100
|
+
lighten40: '#acbad9',
|
|
101
|
+
lighten60: '#c8d1e6',
|
|
102
|
+
lighten80: '#e3e8f2',
|
|
103
|
+
lighten90: '#f1f3f9',
|
|
104
|
+
lighten97: '#fbfcfd',
|
|
105
|
+
},
|
|
106
|
+
mauve: {
|
|
107
|
+
darken80: '#201224',
|
|
108
|
+
darken60: '#402449',
|
|
109
|
+
darken40: '#60376d',
|
|
110
|
+
darken20: '#804992',
|
|
111
|
+
base: '#a05bb6',
|
|
112
|
+
lighten20: '#b37cc5',
|
|
113
|
+
lighten40: '#c69dd3',
|
|
114
|
+
lighten60: '#d9bde2',
|
|
115
|
+
lighten80: '#ecdef0',
|
|
116
|
+
lighten90: '#f5eff8',
|
|
117
|
+
lighten97: '#fcfafd',
|
|
118
|
+
},
|
|
119
|
+
pink: {
|
|
120
|
+
darken80: '#2d051a',
|
|
121
|
+
darken60: '#5a0a34',
|
|
122
|
+
darken40: '#87104d',
|
|
123
|
+
darken20: '#b41567',
|
|
124
|
+
base: '#e11a81',
|
|
125
|
+
lighten20: '#e7489a',
|
|
126
|
+
lighten40: '#ed76b3',
|
|
127
|
+
lighten60: '#f3a3cd',
|
|
128
|
+
lighten80: '#f9d1e6',
|
|
129
|
+
lighten90: '#fce8f2',
|
|
130
|
+
lighten97: '#fef8fb',
|
|
131
|
+
},
|
|
132
|
+
brick: {
|
|
133
|
+
darken80: '#291112',
|
|
134
|
+
darken60: '#522224',
|
|
135
|
+
darken40: '#7b3237',
|
|
136
|
+
darken20: '#a44349',
|
|
137
|
+
base: '#cd545b',
|
|
138
|
+
lighten20: '#d7767c',
|
|
139
|
+
lighten40: '#e1989d',
|
|
140
|
+
lighten60: '#ebbbbd',
|
|
141
|
+
lighten80: '#f5ddde',
|
|
142
|
+
lighten90: '#faeeef',
|
|
143
|
+
lighten97: '#fdfafa',
|
|
144
|
+
},
|
|
145
|
+
grey: {
|
|
146
|
+
darken80: '#111212',
|
|
147
|
+
darken60: '#222324',
|
|
148
|
+
darken40: '#323535',
|
|
149
|
+
darken20: '#434647',
|
|
150
|
+
base: '#545859',
|
|
151
|
+
lighten20: '#76797a',
|
|
152
|
+
lighten40: '#989b9b',
|
|
153
|
+
lighten60: '#bbbcbd',
|
|
154
|
+
lighten80: '#dddede',
|
|
155
|
+
lighten90: '#eeeeee',
|
|
156
|
+
lighten97: '#fafafa',
|
|
157
|
+
},
|
|
158
|
+
white: {
|
|
159
|
+
20: 'rgba(255, 255, 255, 0.2000)',
|
|
160
|
+
38: 'rgba(255, 255, 255, 0.3800)',
|
|
161
|
+
40: 'rgba(255, 255, 255, 0.4000)',
|
|
162
|
+
70: 'rgba(255, 255, 255, 0.7000)',
|
|
163
|
+
8: 'rgba(255, 255, 255, 0.0800)',
|
|
164
|
+
0: 'rgba(255, 255, 255, 0.0000)',
|
|
165
|
+
base: '#ffffff',
|
|
166
|
+
},
|
|
167
|
+
transparentBlue: {
|
|
168
|
+
transparentBlue18: '#a6d4eb',
|
|
169
|
+
transparentBlue8: '#ebf0f7',
|
|
170
|
+
},
|
|
171
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export const cnamContextualTokens = {
|
|
2
|
+
colors: {
|
|
3
|
+
background: '#ffffff',
|
|
4
|
+
border: '#dddddd',
|
|
5
|
+
text: '#333333',
|
|
6
|
+
icon: '#666666',
|
|
7
|
+
overlay: 'rgba(0, 0, 0, 0.5)',
|
|
8
|
+
interactive: '#007bff',
|
|
9
|
+
},
|
|
10
|
+
gap: {
|
|
11
|
+
0: '0',
|
|
12
|
+
1: '4px',
|
|
13
|
+
2: '8px',
|
|
14
|
+
3: '122px',
|
|
15
|
+
4: '16px',
|
|
16
|
+
5: '20px',
|
|
17
|
+
6: '24px',
|
|
18
|
+
7: '28px',
|
|
19
|
+
8: '32px',
|
|
20
|
+
9: '36px',
|
|
21
|
+
10: '40px',
|
|
22
|
+
11: '44px',
|
|
23
|
+
12: '48px',
|
|
24
|
+
13: '52px',
|
|
25
|
+
14: '56px',
|
|
26
|
+
15: '60px',
|
|
27
|
+
16: '64px',
|
|
28
|
+
},
|
|
29
|
+
iconSize: {
|
|
30
|
+
xsmall: '8px',
|
|
31
|
+
small: '16px',
|
|
32
|
+
default: '24px',
|
|
33
|
+
large: '32px',
|
|
34
|
+
},
|
|
35
|
+
radius: {
|
|
36
|
+
rounded0: '0',
|
|
37
|
+
rounded: '4px',
|
|
38
|
+
roundedLg: '8px',
|
|
39
|
+
roundedPill: '64px',
|
|
40
|
+
},
|
|
41
|
+
padding: {
|
|
42
|
+
0: '0',
|
|
43
|
+
2: '8px',
|
|
44
|
+
3: '12px',
|
|
45
|
+
4: '16px',
|
|
46
|
+
6: '24px',
|
|
47
|
+
8: '32px',
|
|
48
|
+
10: '40px',
|
|
49
|
+
14: '56px',
|
|
50
|
+
16: '64px',
|
|
51
|
+
},
|
|
52
|
+
fontSize: {
|
|
53
|
+
titres: '24px',
|
|
54
|
+
titresAlternatifs: '20px',
|
|
55
|
+
corpsDeTexte: '16px',
|
|
56
|
+
liensEtLibelles: '14px',
|
|
57
|
+
},
|
|
58
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { cnamColorsTokens } from './cnamColors'
|
|
2
|
+
import { cnamSemanticTokens } from './cnamSemantic'
|
|
3
|
+
|
|
4
|
+
export const cnamLightTheme = {
|
|
5
|
+
primary: cnamColorsTokens.blue.base,
|
|
6
|
+
secondary: cnamColorsTokens.cyan.darken40,
|
|
7
|
+
accent: cnamColorsTokens.cyan.base,
|
|
8
|
+
error: cnamColorsTokens.orange.darken20,
|
|
9
|
+
info: cnamColorsTokens.blue.base,
|
|
10
|
+
success: cnamColorsTokens.green.base,
|
|
11
|
+
warning: cnamColorsTokens.yellow.base,
|
|
12
|
+
risquePro: cnamColorsTokens.brick.base,
|
|
13
|
+
onBackground: cnamSemanticTokens.colors.background.surface,
|
|
14
|
+
onSurfaceAlt: cnamSemanticTokens.colors.background.surfaceAlt,
|
|
15
|
+
onSurface: cnamSemanticTokens.colors.background.surface,
|
|
16
|
+
onWarning: cnamSemanticTokens.colors.background.warning,
|
|
17
|
+
overlayFullpage: cnamSemanticTokens.colors.overlay.fullpage,
|
|
18
|
+
overlayOnDark: cnamSemanticTokens.colors.overlay.onDark,
|
|
19
|
+
overlayOnLight: cnamSemanticTokens.colors.overlay.onLight,
|
|
20
|
+
interactiveDefault: cnamSemanticTokens.colors.interactive.default,
|
|
21
|
+
interactiveHover: cnamSemanticTokens.colors.interactive.hover,
|
|
22
|
+
interactivePressed: cnamSemanticTokens.colors.interactive.pressed,
|
|
23
|
+
interactiveFocus: cnamSemanticTokens.colors.interactive.focus,
|
|
24
|
+
interactiveDisabled: cnamSemanticTokens.colors.interactive.disabled,
|
|
25
|
+
interactiveHoverOnSelected: cnamSemanticTokens.colors.interactive.hoverOnSelected,
|
|
26
|
+
backgroundMain: cnamSemanticTokens.colors.background.main,
|
|
27
|
+
backgroundSurface: cnamSemanticTokens.colors.background.surface,
|
|
28
|
+
backgroundSurfaceAlt: cnamSemanticTokens.colors.background.surfaceAlt,
|
|
29
|
+
backgroungMainAlt: cnamSemanticTokens.colors.background.mainAlt,
|
|
30
|
+
backgroungRaised: cnamSemanticTokens.colors.background.raised,
|
|
31
|
+
backgroundAccent: cnamSemanticTokens.colors.background.accent,
|
|
32
|
+
backgroungAccentContrasted: cnamSemanticTokens.colors.background.accentContrasted,
|
|
33
|
+
backgroundAccentAlt: cnamSemanticTokens.colors.background.accentAlt,
|
|
34
|
+
backgroundInfo: cnamSemanticTokens.colors.background.info,
|
|
35
|
+
backgroundInfoSubdued: cnamSemanticTokens.colors.background.infoSubdued,
|
|
36
|
+
backgroundInfoContrasted: cnamSemanticTokens.colors.background.infoContrasted,
|
|
37
|
+
backgroundSuccess: cnamSemanticTokens.colors.background.success,
|
|
38
|
+
backgroundSuccessSubdued: cnamSemanticTokens.colors.background.successSubdued,
|
|
39
|
+
backgroundSuccessContrasted: cnamSemanticTokens.colors.background.successContrasted,
|
|
40
|
+
backgroundWarning: cnamSemanticTokens.colors.background.warning,
|
|
41
|
+
backgroundWarningSubdued: cnamSemanticTokens.colors.background.warningSubdued,
|
|
42
|
+
backgroundWarningContrasted: cnamSemanticTokens.colors.background.warningContrasted,
|
|
43
|
+
backgroundError: cnamSemanticTokens.colors.background.error,
|
|
44
|
+
backgroundErrorSubdued: cnamSemanticTokens.colors.background.errorSubdued,
|
|
45
|
+
backgroundErrorContrasted: cnamSemanticTokens.colors.background.errorContrasted,
|
|
46
|
+
backgroundDisabled: cnamSemanticTokens.colors.background.disabled,
|
|
47
|
+
backgroundDisabledOnDark: cnamSemanticTokens.colors.background.disabledOnDark,
|
|
48
|
+
backgroundAssure: cnamSemanticTokens.colors.background.assure,
|
|
49
|
+
backgroundProfessionnel: cnamSemanticTokens.colors.background.professionnel,
|
|
50
|
+
backgroundEntreprise: cnamSemanticTokens.colors.background.entreprise,
|
|
51
|
+
borderDarker: cnamSemanticTokens.colors.border.darker,
|
|
52
|
+
borderBase: cnamSemanticTokens.colors.border.base,
|
|
53
|
+
borderSubdued: cnamSemanticTokens.colors.border.subdued,
|
|
54
|
+
borderAccent: cnamSemanticTokens.colors.border.accent,
|
|
55
|
+
borderAccentContrasted: cnamSemanticTokens.colors.border.accentContrasted,
|
|
56
|
+
borderAccentOnDark: cnamSemanticTokens.colors.border.accentOnDark,
|
|
57
|
+
borderInfo: cnamSemanticTokens.colors.border.info,
|
|
58
|
+
borderSuccess: cnamSemanticTokens.colors.border.success,
|
|
59
|
+
borderWarning: cnamSemanticTokens.colors.border.warning,
|
|
60
|
+
borderError: cnamSemanticTokens.colors.border.error,
|
|
61
|
+
borderOnDark: cnamSemanticTokens.colors.border.onDark,
|
|
62
|
+
borderDisabled: cnamSemanticTokens.colors.border.disabled,
|
|
63
|
+
borderDisabledOnDark: cnamSemanticTokens.colors.border.disabledOnDark,
|
|
64
|
+
textBase: cnamSemanticTokens.colors.text.base,
|
|
65
|
+
textAccent: cnamSemanticTokens.colors.text.accent,
|
|
66
|
+
textAccentContrasted: cnamSemanticTokens.colors.text.accentContrasted,
|
|
67
|
+
textSubdued: cnamSemanticTokens.colors.text.subdued,
|
|
68
|
+
textInfo: cnamSemanticTokens.colors.text.info,
|
|
69
|
+
textSuccess: cnamSemanticTokens.colors.text.success,
|
|
70
|
+
textWarning: cnamSemanticTokens.colors.text.warning,
|
|
71
|
+
textError: cnamSemanticTokens.colors.text.error,
|
|
72
|
+
textDisabled: cnamSemanticTokens.colors.text.disabled,
|
|
73
|
+
textOnDark: cnamSemanticTokens.colors.text.onDark,
|
|
74
|
+
textSubduedOnDark: cnamSemanticTokens.colors.text.subduedOnDark,
|
|
75
|
+
textDisabledOnDark: cnamSemanticTokens.colors.text.disabledOnDark,
|
|
76
|
+
iconBase: cnamSemanticTokens.colors.icon.base,
|
|
77
|
+
iconSubdued: cnamSemanticTokens.colors.icon.subdued,
|
|
78
|
+
iconSubduedOnDark: cnamSemanticTokens.colors.icon.subduedOnDark,
|
|
79
|
+
iconAccent: cnamSemanticTokens.colors.icon.accent,
|
|
80
|
+
iconAccentContrasted: cnamSemanticTokens.colors.icon.accentContrasted,
|
|
81
|
+
iconInfo: cnamSemanticTokens.colors.icon.info,
|
|
82
|
+
iconSuccess: cnamSemanticTokens.colors.icon.success,
|
|
83
|
+
iconWarning: cnamSemanticTokens.colors.icon.warning,
|
|
84
|
+
iconError: cnamSemanticTokens.colors.icon.error,
|
|
85
|
+
iconOnDark: cnamSemanticTokens.colors.icon.onDark,
|
|
86
|
+
iconDisabled: cnamSemanticTokens.colors.icon.disabled,
|
|
87
|
+
iconDisabledOnDark: cnamSemanticTokens.colors.icon.disabledOnDark,
|
|
88
|
+
transparentBlue18: cnamColorsTokens.blue.base,
|
|
89
|
+
transparentBlue8: cnamColorsTokens.transparentBlue.transparentBlue8,
|
|
90
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
export const cnamSemanticTokens = {
|
|
2
|
+
colors: {
|
|
3
|
+
background: {
|
|
4
|
+
main: '#e7ecf5',
|
|
5
|
+
surface: '#ffffff',
|
|
6
|
+
mainAlt: '#ffffff',
|
|
7
|
+
surfaceAlt: '#e7ecf5',
|
|
8
|
+
raised: '#f8f9fc',
|
|
9
|
+
accent: '#0c419a',
|
|
10
|
+
accentContrasted: '#07275c',
|
|
11
|
+
accentAlt: '#111212',
|
|
12
|
+
info: '#ced9eb',
|
|
13
|
+
infoSubdued: '#e7ecf5',
|
|
14
|
+
infoContrasted: '#0c419a',
|
|
15
|
+
success: '#cceee8',
|
|
16
|
+
successSubdued: '#e5f7f4',
|
|
17
|
+
successContrasted: '#56c271',
|
|
18
|
+
warning: '#fcf0d3',
|
|
19
|
+
warningSubdued: '#fdf7e9',
|
|
20
|
+
warningContrasted: '#f0b323',
|
|
21
|
+
error: '#f9dcd7',
|
|
22
|
+
errorSubdued: '#fcedeb',
|
|
23
|
+
errorContrasted: '#b33f2e',
|
|
24
|
+
disabled: '#dddede',
|
|
25
|
+
disabledOnDark: 'rgba(255, 255, 255, 0.0800)',
|
|
26
|
+
assure: '#ed76b3',
|
|
27
|
+
professionnel: '#66c9ec',
|
|
28
|
+
entreprise: '#f0b323',
|
|
29
|
+
},
|
|
30
|
+
border: {
|
|
31
|
+
darker: '#222324',
|
|
32
|
+
base: '#989b9b',
|
|
33
|
+
subdued: '#dddede',
|
|
34
|
+
accent: '#0c419a',
|
|
35
|
+
accentContrasted: '#07275c',
|
|
36
|
+
accentOnDark: '#ffffff',
|
|
37
|
+
info: '#0c419a',
|
|
38
|
+
success: '#224e2d',
|
|
39
|
+
warning: '#60480e',
|
|
40
|
+
error: '#b33f2e',
|
|
41
|
+
onDark: 'rgba(255, 255, 255, 0.7)',
|
|
42
|
+
disabled: '#dddede',
|
|
43
|
+
disabledOnDark: 'rgba(255, 255, 255, 0.4)',
|
|
44
|
+
},
|
|
45
|
+
text: {
|
|
46
|
+
base: '#222324',
|
|
47
|
+
accent: '#0c419a',
|
|
48
|
+
accentContrasted: '#07275c',
|
|
49
|
+
subdued: '#545859',
|
|
50
|
+
info: '#0c419a',
|
|
51
|
+
success: '#224e2d',
|
|
52
|
+
warning: '#60480e',
|
|
53
|
+
error: '#b33f2e',
|
|
54
|
+
disabled: '#989b9b',
|
|
55
|
+
onDark: '#ffffff',
|
|
56
|
+
subduedOnDark: 'rgba(255, 255, 255, 0.7)',
|
|
57
|
+
disabledOnDark: 'rgba(255, 255, 255, 0.4)',
|
|
58
|
+
},
|
|
59
|
+
icon: {
|
|
60
|
+
base: '#222324',
|
|
61
|
+
subdued: '#545859',
|
|
62
|
+
subduedOnDark: 'rgba(255, 255, 255, 0.7)',
|
|
63
|
+
accent: '#0c419a',
|
|
64
|
+
accentContrasted: '#07275c',
|
|
65
|
+
info: '#0c419a',
|
|
66
|
+
success: '#224e2d',
|
|
67
|
+
warning: '#60480e',
|
|
68
|
+
error: '#b33f2e',
|
|
69
|
+
onDark: '#ffffff',
|
|
70
|
+
disabled: '#989b9b',
|
|
71
|
+
disabledOnDark: 'rgba(255, 255, 255, 0.4)',
|
|
72
|
+
},
|
|
73
|
+
overlay: {
|
|
74
|
+
fullpage: '#989b9b',
|
|
75
|
+
onDark: '#ffffff',
|
|
76
|
+
onLight: '#0c419a',
|
|
77
|
+
},
|
|
78
|
+
interactive: {
|
|
79
|
+
default: 'rgba(255, 255, 255, 0.0000)',
|
|
80
|
+
hover: '#e7ecf5',
|
|
81
|
+
pressed: '#ced9eb',
|
|
82
|
+
focus: '#e7ecf5',
|
|
83
|
+
disabled: 'rgba(255, 255, 255, 0.0000)',
|
|
84
|
+
hoverOnSelected: '#ced9eb',
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contextual-tokens": {
|
|
3
|
+
"colors": {
|
|
4
|
+
"background": {
|
|
5
|
+
"main": { "value": "{Colors.Blue.lighten-90}" },
|
|
6
|
+
"surface": { "value": "{Neutral.white}" },
|
|
7
|
+
"main-alt": { "value": "{Neutral.white}" },
|
|
8
|
+
"surface-alt": { "value": "{Colors.Blue.lighten-90}" },
|
|
9
|
+
"raised": { "value": "{Colors.Blue.lighten-97}" },
|
|
10
|
+
"accent": { "value": "{Primary.base}" },
|
|
11
|
+
"accent-contrasted": { "value": "{Primary.darker-2}" },
|
|
12
|
+
"accent-alt": { "value": "{Neutral.black-lighter}" },
|
|
13
|
+
"info": { "value": "{Info.info-lighter}" },
|
|
14
|
+
"info-subdued": { "value": "{Info.info-lightest}" },
|
|
15
|
+
"info-contrasted": { "value": "{Info.default}" },
|
|
16
|
+
"success": { "value": "{Success.lighter}" },
|
|
17
|
+
"success-subdued": { "value": "{Success.lightest}" },
|
|
18
|
+
"success-contrasted": { "value": "{Success.default}" },
|
|
19
|
+
"warning": { "value": "{Warning.lighter}" },
|
|
20
|
+
"warning-subdued": { "value": "{Warning.lightest}" },
|
|
21
|
+
"warning-contrasted": { "value": "{Warning.default}" },
|
|
22
|
+
"error": { "value": "{Danger.lighter}" },
|
|
23
|
+
"error-subdued": { "value": "{Danger.lightest}" },
|
|
24
|
+
"error-contrasted": { "value": "{Danger.default}" },
|
|
25
|
+
"disabled": { "value": "{Neutral.grey}" },
|
|
26
|
+
"disabled-ondark": { "value": "{Neutral.white-alpha-lighter-3}" },
|
|
27
|
+
"assure": { "value": "{User.Assure}" },
|
|
28
|
+
"professionnel": { "value": "{User.Professionnel}" },
|
|
29
|
+
"entreprise": { "value": "{User.Entreprise}" }
|
|
30
|
+
},
|
|
31
|
+
"border": {
|
|
32
|
+
"darker": { "value": "{Neutral.black}" },
|
|
33
|
+
"base": { "value": "{Neutral.black-lighter-2}" },
|
|
34
|
+
"subdued": { "value": "{Neutral.grey}" },
|
|
35
|
+
"accent": { "value": "{Primary.base}" },
|
|
36
|
+
"accent-contrasted": { "value": "{Primary.darker-2}" },
|
|
37
|
+
"accent-ondark": { "value": "{Neutral.white}" },
|
|
38
|
+
"info": { "value": "{Primary.base}" },
|
|
39
|
+
"success": { "value": "{Success.darker}" },
|
|
40
|
+
"warning": { "value": "{Warning.darker}" },
|
|
41
|
+
"error": { "value": "{Danger.default}" },
|
|
42
|
+
"ondark": { "value": "{Neutral.white-alpha}" },
|
|
43
|
+
"disabled": { "value": "{Neutral.grey}" },
|
|
44
|
+
"disabled-ondark": { "value": "{Neutral.white-alpha-lighter-2}" }
|
|
45
|
+
},
|
|
46
|
+
"text": {
|
|
47
|
+
"base": { "value": "{Neutral.black}" },
|
|
48
|
+
"accent": { "value": "{Primary.base}" },
|
|
49
|
+
"accent-contrasted": { "value": "{Primary.darker-2}" },
|
|
50
|
+
"subdued": { "value": "{Neutral.black-lighter}" },
|
|
51
|
+
"info": { "value": "{Primary.base}" },
|
|
52
|
+
"success": { "value": "{Success.darker}" },
|
|
53
|
+
"warning": { "value": "{Warning.darker}" },
|
|
54
|
+
"error": { "value": "{Danger.default}" },
|
|
55
|
+
"disabled": { "value": "{Neutral.black-lighter-2}" },
|
|
56
|
+
"ondark": { "value": "{Neutral.white}" },
|
|
57
|
+
"subdued-ondark": { "value": "{Neutral.white-alpha}" },
|
|
58
|
+
"disabled-ondark": { "value": "{Neutral.white-alpha-lighter}" }
|
|
59
|
+
},
|
|
60
|
+
"icon": {
|
|
61
|
+
"base": { "value": "{Neutral.black}" },
|
|
62
|
+
"subdued": { "value": "{Neutral.black-lighter}" },
|
|
63
|
+
"subdued-ondark": { "value": "{Neutral.white-alpha}" },
|
|
64
|
+
"accent": { "value": "{Primary.base}" },
|
|
65
|
+
"accent-contrasted": { "value": "{Primary.darker-2}" },
|
|
66
|
+
"info": { "value": "{Primary.base}" },
|
|
67
|
+
"success": { "value": "{Success.darker}" },
|
|
68
|
+
"warning": { "value": "{Warning.darker}" },
|
|
69
|
+
"error": { "value": "{Danger.default}" },
|
|
70
|
+
"ondark": { "value": "{Neutral.white}" },
|
|
71
|
+
"disabled": { "value": "{Neutral.black-lighter-2}" },
|
|
72
|
+
"disabled-ondark": { "value": "{Neutral.white-alpha-lighter}" }
|
|
73
|
+
},
|
|
74
|
+
"overlay": {
|
|
75
|
+
"fullpage": { "value": "{Neutral.black-lighter-2}" },
|
|
76
|
+
"ondark": { "value": "{Neutral.white}" },
|
|
77
|
+
"onlight": { "value": "{Primary.base}" }
|
|
78
|
+
},
|
|
79
|
+
"interactive": {
|
|
80
|
+
"default": { "value": "{Colors.none}" },
|
|
81
|
+
"hover": { "value": "{Primary.lighter-4}" },
|
|
82
|
+
"pressed": { "value": "{Primary.lighter-3}" },
|
|
83
|
+
"focus": { "value": "{Primary.lighter-4}" },
|
|
84
|
+
"disabled": { "value": "{Colors.none}" },
|
|
85
|
+
"hover-on-selected": { "value": "{Primary.lighter-3}" }
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"gap": {
|
|
89
|
+
"0": { "value": "{Values.0}" },
|
|
90
|
+
"1": { "value": "{Values.4}" },
|
|
91
|
+
"2": { "value": "{Values.8}" },
|
|
92
|
+
"3": { "value": "{Values.12}" },
|
|
93
|
+
"4": { "value": "{Values.16}" },
|
|
94
|
+
"5": { "value": "{Values.20}" },
|
|
95
|
+
"6": { "value": "{Values.24}" },
|
|
96
|
+
"7": { "value": "{Values.28}" },
|
|
97
|
+
"8": { "value": "{Values.32}" },
|
|
98
|
+
"9": { "value": "{Values.36}" },
|
|
99
|
+
"10": { "value": "{Values.40}" },
|
|
100
|
+
"11": { "value": "{Values.44}" },
|
|
101
|
+
"12": { "value": "{Values.48}" },
|
|
102
|
+
"13": { "value": "{Values.52}" },
|
|
103
|
+
"14": { "value": "{Values.56}" },
|
|
104
|
+
"15": { "value": "{Values.60}" },
|
|
105
|
+
"16": { "value": "{Values.64}" }
|
|
106
|
+
},
|
|
107
|
+
"icon-size": {
|
|
108
|
+
"xsmall": { "value": "{Font-size.8}" },
|
|
109
|
+
"small": { "value": "{Font-size.16}" },
|
|
110
|
+
"default": { "value": "{Font-size.24}" },
|
|
111
|
+
"large": { "value": "{Font-size.32}" }
|
|
112
|
+
},
|
|
113
|
+
"radius": {
|
|
114
|
+
"rounded-0": { "value": "{Values.0}" },
|
|
115
|
+
"rounded": { "value": "{Values.4}" },
|
|
116
|
+
"rounded-lg": { "value": "{Values.8}" },
|
|
117
|
+
"rounded-pill": { "value": "{Values.64}" }
|
|
118
|
+
},
|
|
119
|
+
"padding": {
|
|
120
|
+
"0": { "value": "{Values.0}" },
|
|
121
|
+
"2": { "value": "{Values.8}" },
|
|
122
|
+
"3": { "value": "{Values.12}" },
|
|
123
|
+
"4": { "value": "{Values.16}" },
|
|
124
|
+
"6": { "value": "{Values.24}" },
|
|
125
|
+
"8": { "value": "{Values.32}" },
|
|
126
|
+
"10": { "value": "{Values.40}" },
|
|
127
|
+
"14": { "value": "{Values.56}" },
|
|
128
|
+
"16": { "value": "{Values.64}" }
|
|
129
|
+
},
|
|
130
|
+
"font-size": {
|
|
131
|
+
"titres": {
|
|
132
|
+
"h1": { "value": "{Font-size.32}" },
|
|
133
|
+
"h2": { "value": "{Font-size.28}" },
|
|
134
|
+
"h3": { "value": "{Font-size.24}" },
|
|
135
|
+
"h4": { "value": "{Font-size.20}" },
|
|
136
|
+
"overline": { "value": "{Font-size.18}" }
|
|
137
|
+
},
|
|
138
|
+
"titres-alternatifs": {
|
|
139
|
+
"display-1": { "value": "{Font-size.40}" },
|
|
140
|
+
"display-2": { "value": "{Font-size.30}" }
|
|
141
|
+
},
|
|
142
|
+
"corps-de-texte": {
|
|
143
|
+
"body": { "value": "{Font-size.16}" },
|
|
144
|
+
"body-large": { "value": "{Font-size.18}" },
|
|
145
|
+
"caption": { "value": "{Font-size.14}" }
|
|
146
|
+
},
|
|
147
|
+
"liens-et-libelles": {
|
|
148
|
+
"inline-link": { "value": "{Font-size.16}" },
|
|
149
|
+
"tab-label": { "value": "{Font-size.14}" },
|
|
150
|
+
"label-small": { "value": "{Font-size.12}" },
|
|
151
|
+
"button-label": { "value": "{Font-size.16}" },
|
|
152
|
+
"button-label-small": { "value": "{Font-size.14}" }
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|