Skip to content

Commit 0f82ec2

Browse files
authored
Merge pull request #305 from ember-learn/secondary-colours
Secondary colors
2 parents 15dc3be + 3a8a1a5 commit 0f82ec2

File tree

2 files changed

+98
-3
lines changed

2 files changed

+98
-3
lines changed

addon/styles/global.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,19 @@
2626
--color-brand-hc-dark: #cf2d20;
2727
--color-brand-40: rgba(224, 78, 57, 0.4);
2828

29+
--color-blue-dark: #0076D6;
30+
--color-blue: #10AAFF;
31+
--color-blue-light: #DFFDFF;
32+
33+
--color-green: #8BE998;
34+
--color-green-light: #C7F9DE;
35+
36+
--color-yellow: #FFEC64;
37+
--color-yellow-light: #FFFAD6;
38+
39+
--color-lilac: #7650F1;
40+
--color-lilac-light: #D5CBFF;
41+
2942
--color-gray: #a2a3a8;
3043
--color-success: #d9f9e3;
3144
--color-danger: #ffd8e1;

docs/concepts/colors.md

Lines changed: 85 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,90 @@ The primary palette is applied across every page of the website and contains the
4444
{{/each}}
4545
</div>
4646

47-
## Secondary Colors
47+
## Illustration Colors
4848

49-
The secondary palette is applied to UI elements and it's not part of the base colors. The purpose of the secondary palette is to ensure the readability, usability, and accessibility of all UI elements and enhance the communication of actions, changes in state, or errors.
49+
These colors are for charts and diagrams only. The secondary palette is applied to UI elements and is not part of the base colors. The purpose of the secondary palette is to ensure the readability, usability, and accessibility of charts and diagrams and enhance the communication of actions, changes in state, or errors.
5050

51-
The secondary palette is yet to be defined.
51+
<div class="layout">
52+
<ColorPallet
53+
class="lg:col-2"
54+
@color="#0076D6"
55+
@name="Dark Blue"
56+
@variable="--color-blue-dark"
57+
@textClasses={{array 'text-sm' 'text-base' 'text-md' 'text-lg' 'text-xl'}}
58+
@textColorClasses={{array '' 'text-light'}}
59+
/>
60+
<ColorPallet
61+
class="lg:col-2"
62+
@color="#10AAFF"
63+
@name="Blue"
64+
@variable="--color-blue"
65+
@textClasses={{array 'text-sm' 'text-base' 'text-md' 'text-lg' 'text-xl'}}
66+
@textColorClasses={{array '' 'text-light'}}
67+
/>
68+
<ColorPallet
69+
class="lg:col-2"
70+
@color="#DFFDFF"
71+
@name="Light Blue"
72+
@variable="--color-blue-light"
73+
@textClasses={{array 'text-sm' 'text-base' 'text-md' 'text-lg' 'text-xl'}}
74+
@textColorClasses={{array '' 'text-light'}}
75+
/>
76+
</div>
77+
78+
<div class="layout">
79+
<ColorPallet
80+
class="lg:col-2"
81+
@color="#8BE998"
82+
@name="Green"
83+
@variable="--color-green"
84+
@textClasses={{array 'text-sm' 'text-base' 'text-md' 'text-lg' 'text-xl'}}
85+
@textColorClasses={{array '' 'text-light'}}
86+
/>
87+
<ColorPallet
88+
class="lg:col-2"
89+
@color="#C7F9DE"
90+
@name="Light Green"
91+
@variable="--color-green-light"
92+
@textClasses={{array 'text-sm' 'text-base' 'text-md' 'text-lg' 'text-xl'}}
93+
@textColorClasses={{array '' 'text-light'}}
94+
/>
95+
</div>
96+
97+
<div class="layout">
98+
<ColorPallet
99+
class="lg:col-2"
100+
@color="#FFEC64"
101+
@name="Yellow"
102+
@variable="--color-yellow"
103+
@textClasses={{array 'text-sm' 'text-base' 'text-md' 'text-lg' 'text-xl'}}
104+
@textColorClasses={{array '' 'text-light'}}
105+
/>
106+
<ColorPallet
107+
class="lg:col-2"
108+
@color="#FFFAD6"
109+
@name="Light Yellow"
110+
@variable="--color-yellow-light"
111+
@textClasses={{array 'text-sm' 'text-base' 'text-md' 'text-lg' 'text-xl'}}
112+
@textColorClasses={{array '' 'text-light'}}
113+
/>
114+
</div>
115+
116+
<div class="layout">
117+
<ColorPallet
118+
class="lg:col-2"
119+
@color="#7650F1"
120+
@name="Lilac"
121+
@variable="--color-lilac"
122+
@textClasses={{array 'text-sm' 'text-base' 'text-md' 'text-lg' 'text-xl'}}
123+
@textColorClasses={{array '' 'text-light'}}
124+
/>
125+
<ColorPallet
126+
class="lg:col-2"
127+
@color="#D5CBFF"
128+
@name="Light Lilac"
129+
@variable="--color-lilac-light"
130+
@textClasses={{array 'text-sm' 'text-base' 'text-md' 'text-lg' 'text-xl'}}
131+
@textColorClasses={{array '' 'text-light'}}
132+
/>
133+
</div>

0 commit comments

Comments
 (0)