Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / themes / bartik / color / color.inc
1 <?php
2
3 /**
4  * @file
5  * Lists available colors and color schemes for the Bartik theme.
6  */
7
8 $info = [
9   // Available colors and color labels used in theme.
10   'fields' => [
11     'top' => t('Header background top'),
12     'bottom' => t('Header background bottom'),
13     'bg' => t('Main background'),
14     'sidebar' => t('Sidebar background'),
15     'sidebarborders' => t('Sidebar borders'),
16     'footer' => t('Footer background'),
17     'titleslogan' => t('Title and slogan'),
18     'text' => t('Text color'),
19     'link' => t('Link color'),
20   ],
21   // Pre-defined color schemes.
22   'schemes' => [
23     'default' => [
24       'title' => t('Blue Lagoon (default)'),
25       'colors' => [
26         'top' => '#055a8e',
27         'bottom' => '#1d84c3',
28         'bg' => '#ffffff',
29         'sidebar' => '#f6f6f2',
30         'sidebarborders' => '#f9f9f9',
31         'footer' => '#292929',
32         'titleslogan' => '#fffeff',
33         'text' => '#3b3b3b',
34         'link' => '#0071b3',
35       ],
36     ],
37     'firehouse' => [
38       'title' => t('Firehouse'),
39       'colors' => [
40         'top' => '#cd2d2d',
41         'bottom' => '#d64e4e',
42         'bg' => '#ffffff',
43         'sidebar' => '#f1f4f0',
44         'sidebarborders' => '#ededed',
45         'footer' => '#1f1d1c',
46         'titleslogan' => '#fffeff',
47         'text' => '#888888',
48         'link' => '#d6121f',
49       ],
50     ],
51     'ice' => [
52       'title' => t('Ice'),
53       'colors' => [
54         'top' => '#d0d0d0',
55         'bottom' => '#c2c4c5',
56         'bg' => '#ffffff',
57         'sidebar' => '#ffffff',
58         'sidebarborders' => '#cccccc',
59         'footer' => '#016b83',
60         'titleslogan' => '#000000',
61         'text' => '#4a4a4a',
62         'link' => '#019dbf',
63       ],
64     ],
65     'plum' => [
66       'title' => t('Plum'),
67       'colors' => [
68         'top' => '#4c1c58',
69         'bottom' => '#593662',
70         'bg' => '#fffdf7',
71         'sidebar' => '#edede7',
72         'sidebarborders' => '#e7e7e7',
73         'footer' => '#2c2c28',
74         'titleslogan' => '#ffffff',
75         'text' => '#301313',
76         'link' => '#9d408d',
77       ],
78     ],
79     'slate' => [
80       'title' => t('Slate'),
81       'colors' => [
82         'top' => '#4a4a4a',
83         'bottom' => '#4e4e4e',
84         'bg' => '#ffffff',
85         'sidebar' => '#ffffff',
86         'sidebarborders' => '#d0d0d0',
87         'footer' => '#161617',
88         'titleslogan' => '#ffffff',
89         'text' => '#3b3b3b',
90         'link' => '#0073b6',
91       ],
92     ],
93   ],
94
95   // CSS files (excluding @import) to rewrite with new color scheme.
96   'css' => [
97     'css/colors.css',
98   ],
99
100   // Files to copy.
101   'copy' => [
102     'logo.svg',
103   ],
104
105   // Gradient definitions.
106   'gradients' => [
107     [
108       // (x, y, width, height).
109       'dimension' => [0, 0, 0, 0],
110       // Direction of gradient ('vertical' or 'horizontal').
111       'direction' => 'vertical',
112       // Keys of colors to use for the gradient.
113       'colors' => ['top', 'bottom'],
114     ],
115   ],
116
117   // Preview files.
118   'preview_library' => 'bartik/color.preview',
119   'preview_html' => 'color/preview.html',
120
121   // Attachments.
122   '#attached' => [
123     'drupalSettings' => [
124       'color' => [
125         // Put the logo path into JavaScript for the live preview.
126         'logo' => theme_get_setting('logo.url', 'bartik'),
127       ],
128     ],
129   ],
130 ];