|
@@ -0,0 +1,130 @@
|
|
|
|
|
+
|
|
|
|
|
+interface Theme {
|
|
|
|
|
+ dark: boolean,
|
|
|
|
|
+ colors: {
|
|
|
|
|
+ 'primary': string,
|
|
|
|
|
+ 'n-primary': string,
|
|
|
|
|
+ 'primary-alt': string,
|
|
|
|
|
+ 'n-primary-alt': string,
|
|
|
|
|
+ 'secondary': string,
|
|
|
|
|
+ 'n-secondary': string,
|
|
|
|
|
+ 'secondary-alt': string,
|
|
|
|
|
+ 'n-secondary-alt': string,
|
|
|
|
|
+ 'neutral-strong': string,
|
|
|
|
|
+ 'n-neutral-strong': string,
|
|
|
|
|
+ 'neutral': string,
|
|
|
|
|
+ 'n-neutral': string,
|
|
|
|
|
+ 'neutral-soft': string,
|
|
|
|
|
+ 'n-neutral-soft': string,
|
|
|
|
|
+ 'danger': string,
|
|
|
|
|
+ 'n-danger': string,
|
|
|
|
|
+ 'success': string,
|
|
|
|
|
+ 'n-success': string,
|
|
|
|
|
+ 'warning': string,
|
|
|
|
|
+ 'n-warning': string,
|
|
|
|
|
+ 'info': string,
|
|
|
|
|
+ 'n-info': string,
|
|
|
|
|
+ 'x-create-btn': string,
|
|
|
|
|
+ 'n-x-create-btn': string
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+export const lightTheme: Theme = {
|
|
|
|
|
+ dark: false,
|
|
|
|
|
+ colors: {
|
|
|
|
|
+ /**
|
|
|
|
|
+ * @see Cf. doc/colors.md pour le rôle de chaque couleur
|
|
|
|
|
+ */
|
|
|
|
|
+ // Global
|
|
|
|
|
+ 'primary': '#00ad8e',
|
|
|
|
|
+ 'n-primary': '#ffffff',
|
|
|
|
|
+
|
|
|
|
|
+ 'primary-alt': '#a9e0d6',
|
|
|
|
|
+ 'n-primary-alt': '#777777',
|
|
|
|
|
+
|
|
|
|
|
+ 'secondary': '#324150',
|
|
|
|
|
+ 'n-secondary': '#f5f5f5',
|
|
|
|
|
+
|
|
|
|
|
+ 'secondary-alt': '#2c3a48',
|
|
|
|
|
+ 'n-secondary-alt': '#ffffff',
|
|
|
|
|
+
|
|
|
|
|
+ 'neutral-strong': '#777777',
|
|
|
|
|
+ 'n-neutral-strong': '#ecf0f5',
|
|
|
|
|
+
|
|
|
|
|
+ 'neutral': '#f5f5f5',
|
|
|
|
|
+ 'n-neutral': '#777777',
|
|
|
|
|
+
|
|
|
|
|
+ 'neutral-soft': '#ecf0f5',
|
|
|
|
|
+ 'n-neutral-soft': '#464646',
|
|
|
|
|
+
|
|
|
|
|
+ // Content
|
|
|
|
|
+ 'danger': '#f56954',
|
|
|
|
|
+ 'n-danger': '#ffffff',
|
|
|
|
|
+
|
|
|
|
|
+ 'success': '#00a65a',
|
|
|
|
|
+ 'n-success': '#ffffff',
|
|
|
|
|
+
|
|
|
|
|
+ 'warning': '#f39c12',
|
|
|
|
|
+ 'n-warning': '#ffffff',
|
|
|
|
|
+
|
|
|
|
|
+ 'info': '#3c8dbc',
|
|
|
|
|
+ 'n-info': '#ffffff',
|
|
|
|
|
+
|
|
|
|
|
+ // Special cases
|
|
|
|
|
+ // TODO: voir ceux dont on peut se passer
|
|
|
|
|
+ 'x-create-btn': '#f39c12',
|
|
|
|
|
+ 'n-x-create-btn': '#ffffff',
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export const darkTheme: Theme = {
|
|
|
|
|
+ dark: true,
|
|
|
|
|
+ colors: {
|
|
|
|
|
+ /**
|
|
|
|
|
+ * @see Cf. doc/colors.md pour le rôle de chaque couleur
|
|
|
|
|
+ */
|
|
|
|
|
+ // Global
|
|
|
|
|
+ 'primary': '#00ad8e',
|
|
|
|
|
+ 'n-primary': '#ffffff',
|
|
|
|
|
+
|
|
|
|
|
+ 'primary-alt': '#a9e0d6',
|
|
|
|
|
+ 'n-primary-alt': '#777777',
|
|
|
|
|
+
|
|
|
|
|
+ 'secondary': '#324150',
|
|
|
|
|
+ 'n-secondary': '#f5f5f5',
|
|
|
|
|
+
|
|
|
|
|
+ 'secondary-alt': '#2c3a48',
|
|
|
|
|
+ 'n-secondary-alt': '#ffffff',
|
|
|
|
|
+
|
|
|
|
|
+ 'neutral-strong': '#595959',
|
|
|
|
|
+ 'n-neutral-strong': '#ecf0f5',
|
|
|
|
|
+
|
|
|
|
|
+ 'neutral': '#777777',
|
|
|
|
|
+ 'n-neutral': '#f5f5f5',
|
|
|
|
|
+
|
|
|
|
|
+ 'neutral-soft': '#090c11',
|
|
|
|
|
+ 'n-neutral-soft': '#cccccc',
|
|
|
|
|
+
|
|
|
|
|
+ // Content
|
|
|
|
|
+ 'danger': '#f56954',
|
|
|
|
|
+ 'n-danger': '#ffffff',
|
|
|
|
|
+
|
|
|
|
|
+ 'success': '#00a65a',
|
|
|
|
|
+ 'n-success': '#ffffff',
|
|
|
|
|
+
|
|
|
|
|
+ 'warning': '#f39c12',
|
|
|
|
|
+ 'n-warning': '#ffffff',
|
|
|
|
|
+
|
|
|
|
|
+ // TODO: on ne pourrait pas utiliser la couleur 'success' à la place?
|
|
|
|
|
+ 'info': '#3c8dbc',
|
|
|
|
|
+ 'n-info': '#ffffff',
|
|
|
|
|
+
|
|
|
|
|
+ // Special cases
|
|
|
|
|
+ // TODO: voir ceux dont on peut se passer
|
|
|
|
|
+ 'x-create-btn': '#f39c12',
|
|
|
|
|
+ 'n-x-create-btn': '#ffffff',
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+
|