@orsetra/shared-config 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,46 +1,46 @@
1
- {
2
- "name": "@orsetra/shared-config",
3
- "version": "1.0.2",
4
- "description": "Shared configuration files for Orsetra platform",
5
- "main": "./index.ts",
6
- "types": "./index.ts",
7
- "exports": {
8
- ".": "./index.ts",
9
- "./tailwind": "./tailwind.config.ts",
10
- "./tailwind/preset": "./tailwind/preset.js",
11
- "./theme": "./theme/index.ts",
12
- "./styles": "./styles/globals.css",
13
- "./styles/*": "./styles/*",
14
- "./typescript": "./tsconfig.json"
15
- },
16
- "files": [
17
- "index.ts",
18
- "tailwind.config.ts",
19
- "tailwind",
20
- "theme",
21
- "styles",
22
- "tsconfig.json",
23
- "README.md"
24
- ],
25
- "publishConfig": {
26
- "access": "public"
27
- },
28
- "repository": {
29
- "type": "git",
30
- "url": "https://github.com/orsetra/console-ui.git",
31
- "directory": "packages/shared-config"
32
- },
33
- "keywords": [
34
- "config",
35
- "tailwind",
36
- "typescript",
37
- "orsetra"
38
- ],
39
- "peerDependencies": {
40
- "tailwindcss": "^3.0.0"
41
- },
42
- "devDependencies": {
43
- "tailwindcss": "^3.4.17",
44
- "typescript": "^5"
45
- }
46
- }
1
+ {
2
+ "name": "@orsetra/shared-config",
3
+ "version": "1.0.4",
4
+ "description": "Shared configuration files for Orsetra platform",
5
+ "main": "./index.ts",
6
+ "types": "./index.ts",
7
+ "exports": {
8
+ ".": "./index.ts",
9
+ "./tailwind": "./tailwind.config.ts",
10
+ "./tailwind/preset": "./tailwind/preset.js",
11
+ "./theme": "./theme/index.ts",
12
+ "./styles": "./styles/globals.css",
13
+ "./styles/*": "./styles/*",
14
+ "./typescript": "./tsconfig.json"
15
+ },
16
+ "files": [
17
+ "index.ts",
18
+ "tailwind.config.ts",
19
+ "tailwind",
20
+ "theme",
21
+ "styles",
22
+ "tsconfig.json",
23
+ "README.md"
24
+ ],
25
+ "publishConfig": {
26
+ "access": "public"
27
+ },
28
+ "repository": {
29
+ "type": "git",
30
+ "url": "https://github.com/orsetra/console-ui.git",
31
+ "directory": "packages/shared-config"
32
+ },
33
+ "keywords": [
34
+ "config",
35
+ "tailwind",
36
+ "typescript",
37
+ "orsetra"
38
+ ],
39
+ "peerDependencies": {
40
+ "tailwindcss": "^3.0.0"
41
+ },
42
+ "devDependencies": {
43
+ "tailwindcss": "^3.4.17",
44
+ "typescript": "^5"
45
+ }
46
+ }
@@ -202,6 +202,22 @@
202
202
  }
203
203
  }
204
204
 
205
+ /* ==============================================
206
+ CLASSES UTILITAIRES - Semantic UI Colors
207
+ ============================================== */
208
+ /* Ces classes sont utilisées par shared-ui components */
209
+ .text-text-primary { color: #161616; }
210
+ .text-text-secondary { color: #525252; }
211
+ .text-text-placeholder { color: #a8a8a8; }
212
+ .text-text-disabled { color: #c6c6c6; }
213
+ .bg-ui-background { background-color: #f4f4f4; }
214
+ .border-ui-border { border-color: #e0e0e0; }
215
+ .text-interactive { color: #0f62fe; }
216
+ .bg-interactive { background-color: #0f62fe; }
217
+ .bg-interactive\/10 { background-color: rgba(15, 98, 254, 0.1); }
218
+ .hover\:bg-ui-background:hover { background-color: #f4f4f4; }
219
+ .hover\:text-text-primary:hover { color: #161616; }
220
+
205
221
  /* ==============================================
206
222
  CLASSES UTILITAIRES IBM
207
223
  ============================================== */
@@ -9,6 +9,14 @@ module.exports = {
9
9
  fontSize,
10
10
  colors: {
11
11
  ...colors,
12
+ // Semantic UI colors
13
+ 'text-primary': '#161616',
14
+ 'text-secondary': '#525252',
15
+ 'text-placeholder': '#a8a8a8',
16
+ 'text-disabled': '#c6c6c6',
17
+ 'ui-background': '#f4f4f4',
18
+ 'ui-border': '#e0e0e0',
19
+ 'interactive': '#0f62fe',
12
20
  // Zitadel Theme Colors
13
21
  'background-light': {
14
22
  100: 'var(--theme-light-background-100)',
package/theme/index.js ADDED
@@ -0,0 +1,198 @@
1
+ /**
2
+ * Thème Tailwind basé sur IBM Carbon Design System v11
3
+ */
4
+
5
+ const colors = {
6
+ "carbon-bg": "#ffffff",
7
+ "carbon-bg-hover": "#e5e5e5",
8
+ "carbon-bg-active": "#c6c6c6",
9
+ "carbon-bg-selected": "#e0e0e0",
10
+ "carbon-bg-inverse": "#393939",
11
+ "carbon-layer-01": "#f4f4f4",
12
+ "carbon-layer-02": "#ffffff",
13
+ "carbon-layer-03": "#f4f4f4",
14
+ "carbon-layer-accent-01": "#e0e0e0",
15
+ "carbon-field-01": "#f4f4f4",
16
+ "carbon-field-02": "#ffffff",
17
+ "carbon-text-primary": "#161616",
18
+ "carbon-text-secondary": "#525252",
19
+ "carbon-text-placeholder": "#a8a8a8",
20
+ "carbon-text-helper": "#6f6f6f",
21
+ "carbon-text-error": "#da1e28",
22
+ "carbon-text-inverse": "#ffffff",
23
+ "carbon-text-on-color": "#ffffff",
24
+ "carbon-text-disabled": "#c6c6c6",
25
+ "carbon-link-primary": "#0f62fe",
26
+ "carbon-link-secondary": "#0043ce",
27
+ "carbon-link-visited": "#8a3ffc",
28
+ "carbon-link-inverse": "#78a9ff",
29
+ "carbon-icon-primary": "#161616",
30
+ "carbon-icon-secondary": "#525252",
31
+ "carbon-icon-disabled": "#c6c6c6",
32
+ "carbon-icon-inverse": "#ffffff",
33
+ "carbon-icon-on-color": "#ffffff",
34
+ "carbon-border-subtle": "#e0e0e0",
35
+ "carbon-border-strong": "#8d8d8d",
36
+ "carbon-border-inverse": "#161616",
37
+ "carbon-border-interactive": "#0f62fe",
38
+ "carbon-border-disabled": "#c6c6c6",
39
+ "carbon-support-error": "#da1e28",
40
+ "carbon-support-error-inverse": "#fa4d56",
41
+ "carbon-support-success": "#24a148",
42
+ "carbon-support-success-inverse": "#42be65",
43
+ "carbon-support-warning": "#f1c21b",
44
+ "carbon-support-warning-inverse": "#f1c21b",
45
+ "carbon-support-info": "#0043ce",
46
+ "carbon-support-info-inverse": "#4589ff",
47
+ "carbon-interactive": "#0f62fe",
48
+ "carbon-interactive-hover": "#0353e9",
49
+ "carbon-interactive-active": "#002d9c",
50
+ "carbon-focus": "#0f62fe",
51
+ "carbon-focus-inset": "#ffffff",
52
+ "carbon-focus-inverse": "#ffffff",
53
+ "carbon-button-primary": "#0f62fe",
54
+ "carbon-button-primary-hover": "#0353e9",
55
+ "carbon-button-primary-active": "#002d9c",
56
+ "carbon-button-secondary": "#393939",
57
+ "carbon-button-secondary-hover": "#4c4c4c",
58
+ "carbon-button-secondary-active": "#6f6f6f",
59
+ "carbon-button-tertiary": "#0f62fe",
60
+ "carbon-button-tertiary-hover": "#0353e9",
61
+ "carbon-button-tertiary-active": "#002d9c",
62
+ "carbon-button-danger-primary": "#da1e28",
63
+ "carbon-button-danger-secondary": "#da1e28",
64
+ "carbon-button-danger-hover": "#ba1b23",
65
+ "carbon-button-danger-active": "#750e13",
66
+ "carbon-button-disabled": "#c6c6c6",
67
+ "carbon-blue-10": "#edf5ff",
68
+ "carbon-blue-20": "#d0e2ff",
69
+ "carbon-blue-30": "#a6c8ff",
70
+ "carbon-blue-40": "#78a9ff",
71
+ "carbon-blue-50": "#4589ff",
72
+ "carbon-blue-60": "#0f62fe",
73
+ "carbon-blue-70": "#0043ce",
74
+ "carbon-blue-80": "#002d9c",
75
+ "carbon-blue-90": "#001d6c",
76
+ "carbon-blue-100": "#001141",
77
+ "carbon-green-10": "#defbe6",
78
+ "carbon-green-20": "#a7f0ba",
79
+ "carbon-green-30": "#6fdc8c",
80
+ "carbon-green-40": "#42be65",
81
+ "carbon-green-50": "#24a148",
82
+ "carbon-green-60": "#198038",
83
+ "carbon-green-70": "#0e6027",
84
+ "carbon-green-80": "#044317",
85
+ "carbon-green-90": "#022d0d",
86
+ "carbon-green-100": "#071908",
87
+ "carbon-red-10": "#fff1f1",
88
+ "carbon-red-20": "#ffd7d9",
89
+ "carbon-red-30": "#ffb3b8",
90
+ "carbon-red-40": "#ff8389",
91
+ "carbon-red-50": "#fa4d56",
92
+ "carbon-red-60": "#da1e28",
93
+ "carbon-red-70": "#a2191f",
94
+ "carbon-red-80": "#750e13",
95
+ "carbon-red-90": "#520408",
96
+ "carbon-red-100": "#2d0709",
97
+ "carbon-yellow-10": "#fcf4d6",
98
+ "carbon-yellow-20": "#fddc69",
99
+ "carbon-yellow-30": "#f1c21b",
100
+ "carbon-yellow-40": "#d2a106",
101
+ "carbon-yellow-50": "#b28600",
102
+ "carbon-yellow-60": "#8e6a00",
103
+ "carbon-yellow-70": "#684e00",
104
+ "carbon-yellow-80": "#483700",
105
+ "carbon-yellow-90": "#302400",
106
+ "carbon-yellow-100": "#1c1500",
107
+ "carbon-gray-10": "#f4f4f4",
108
+ "carbon-gray-20": "#e0e0e0",
109
+ "carbon-gray-30": "#c6c6c6",
110
+ "carbon-gray-40": "#a8a8a8",
111
+ "carbon-gray-50": "#8d8d8d",
112
+ "carbon-gray-60": "#6f6f6f",
113
+ "carbon-gray-70": "#525252",
114
+ "carbon-gray-80": "#393939",
115
+ "carbon-gray-90": "#262626",
116
+ "carbon-gray-100": "#161616"
117
+ }
118
+
119
+ const spacing = {
120
+ "carbon-spacing-01": "0.125rem",
121
+ "carbon-spacing-02": "0.25rem",
122
+ "carbon-spacing-03": "0.5rem",
123
+ "carbon-spacing-04": "0.75rem",
124
+ "carbon-spacing-05": "1rem",
125
+ "carbon-spacing-06": "1.5rem",
126
+ "carbon-spacing-07": "2rem",
127
+ "carbon-spacing-08": "2.5rem",
128
+ "carbon-spacing-09": "3rem",
129
+ "carbon-spacing-10": "4rem",
130
+ "carbon-spacing-11": "5rem",
131
+ "carbon-spacing-12": "6rem",
132
+ "carbon-spacing-13": "10rem"
133
+ }
134
+
135
+ const fontSize = {
136
+ "carbon-text-xs": ["0.75rem", { lineHeight: "1.34" }],
137
+ "carbon-text-sm": ["0.875rem", { lineHeight: "1.29" }],
138
+ "carbon-text-md": ["1rem", { lineHeight: "1.5" }],
139
+ "carbon-text-lg": ["1.125rem", { lineHeight: "1.4" }],
140
+ "carbon-text-xl": ["1.25rem", { lineHeight: "1.4" }],
141
+ "carbon-text-2xl": ["1.5rem", { lineHeight: "1.334" }],
142
+ "carbon-text-3xl": ["1.75rem", { lineHeight: "1.29" }],
143
+ "carbon-text-4xl": ["2rem", { lineHeight: "1.25" }],
144
+ "carbon-text-5xl": ["2.25rem", { lineHeight: "1.25" }],
145
+ "carbon-text-6xl": ["2.625rem", { lineHeight: "1.199" }],
146
+ "carbon-text-7xl": ["3.375rem", { lineHeight: "1.19" }]
147
+ }
148
+
149
+ const fontFamily = {
150
+ "carbon-sans": [
151
+ "IBM Plex Sans",
152
+ "-apple-system",
153
+ "BlinkMacSystemFont",
154
+ "Segoe UI",
155
+ "Roboto",
156
+ "Helvetica Neue",
157
+ "Arial",
158
+ "sans-serif"
159
+ ],
160
+ "carbon-mono": [
161
+ "IBM Plex Mono",
162
+ "Menlo",
163
+ "DejaVu Sans Mono",
164
+ "Bitstream Vera Sans Mono",
165
+ "Courier",
166
+ "monospace"
167
+ ],
168
+ "carbon-serif": [
169
+ "IBM Plex Serif",
170
+ "Georgia",
171
+ "Times New Roman",
172
+ "serif"
173
+ ]
174
+ }
175
+
176
+ const borderRadius = {
177
+ "carbon-none": "0",
178
+ "carbon-sm": "0.125rem",
179
+ "carbon-md": "0.25rem",
180
+ "carbon-lg": "0.5rem"
181
+ }
182
+
183
+ const boxShadow = {
184
+ "carbon-none": "none",
185
+ "carbon-sm": "0 1px 2px 0 rgba(0, 0, 0, 0.3)",
186
+ "carbon-md": "0 2px 6px 0 rgba(0, 0, 0, 0.3)",
187
+ "carbon-lg": "0 4px 8px 0 rgba(0, 0, 0, 0.1)",
188
+ "carbon-xl": "0 8px 16px 0 rgba(0, 0, 0, 0.1)"
189
+ }
190
+
191
+ module.exports = {
192
+ colors,
193
+ spacing,
194
+ fontSize,
195
+ fontFamily,
196
+ borderRadius,
197
+ boxShadow
198
+ }