Skip to content

Commit b6bbfd2

Browse files
authored
Add showbie-green-200 and yellows (#279)
1 parent 6f274bc commit b6bbfd2

File tree

5 files changed

+3085
-3080
lines changed

5 files changed

+3085
-3080
lines changed

.changeset/tasty-pandas-share.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@showbie/backpack-tokens': minor
3+
---
4+
5+
Add Showbie green-200 and yellows

package.json

+3
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
"prettier": {
2626
"singleQuote": true
2727
},
28+
"resolutions": {
29+
"@babel/compat-data": "^7.9.0"
30+
},
2831
"dependencies": {
2932
"@changesets/changelog-github": "0.4.0",
3033
"@changesets/cli": "2.16.0",

packages/backpack-tokens/docs/colour/showbie/README.md

+71-40
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,60 @@ Used for background colours within the previewer, as well as the async
100100
notification UI. Also available as a 95% opaque value by using
101101
`slate-900-95`.
102102

103+
104+
## Blue
105+
106+
### Blue 50
107+
108+
<ColorSwatch hue="blue" scale="50" />
109+
110+
A super-super-light blue used in:
111+
112+
- panel background for pending group invites
113+
- header background for post list headers (e.g. announcements-only,
114+
new live-update posts)
115+
- hover, active, and focused state of text box `.handle`, in
116+
slightly transparentized form.
117+
118+
#### Notes:
119+
120+
Hover variant was decided during dev (not spec'd via PSD) so it could
121+
be easily expressed as SCSS function relative to main definition.
122+
123+
Use in `.handle` states was decided during dev. Use here is not
124+
closely coupled with the other two contexts. Debatable whether the
125+
addition of transparency makes sense (default state of handles is
126+
opaque), and whether hover state is needed, given that the cursor also
127+
changes on hover.
128+
129+
### Blue 100
130+
131+
<ColorSwatch hue="blue" scale="100" />
132+
133+
Used for background-color of select boxes. Also used in AudioNote
134+
component controls.
135+
136+
### Blue 200
137+
138+
<ColorSwatch hue="blue" scale="200" />
139+
140+
Used as a background-color.
141+
142+
### Blue 500
143+
144+
<ColorSwatch hue="blue" scale="500" />
145+
146+
### Blue 600
147+
148+
<ColorSwatch hue="blue" scale="600" />
149+
150+
Used for fine lines and small objects in our primary blue (text,
151+
stroke, icons). Also used in AudioNote component controls.
152+
153+
### Blue 700
154+
155+
<ColorSwatch hue="blue" scale="700" />
156+
103157
## Red
104158

105159
### Red 50
@@ -146,6 +200,10 @@ for async notifications.
146200

147201
Background colour for positive notification messages.
148202

203+
### Green 200
204+
205+
<ColorSwatch hue="green" scale="200" />
206+
149207
### Green 500
150208

151209
<ColorSwatch hue="green" scale="500" />
@@ -157,55 +215,28 @@ Background colour for positive notification messages.
157215
Used for text or icons against a background colour of `green-100`. Added
158216
for async notifications.
159217

160-
## Blue
161-
162-
### Blue 50
163-
164-
<ColorSwatch hue="blue" scale="50" />
165-
166-
A super-super-light blue used in:
167-
168-
- panel background for pending group invites
169-
- header background for post list headers (e.g. announcements-only,
170-
new live-update posts)
171-
- hover, active, and focused state of text box `.handle`, in
172-
slightly transparentized form.
173-
174-
#### Notes:
175-
176-
Hover variant was decided during dev (not spec'd via PSD) so it could
177-
be easily expressed as SCSS function relative to main definition.
178-
179-
Use in `.handle` states was decided during dev. Use here is not
180-
closely coupled with the other two contexts. Debatable whether the
181-
addition of transparency makes sense (default state of handles is
182-
opaque), and whether hover state is needed, given that the cursor also
183-
changes on hover.
184-
185-
### Blue 100
218+
## Yellow
186219

187-
<ColorSwatch hue="blue" scale="100" />
220+
### Yellow 50
188221

189-
Used for background-color of select boxes. Also used in AudioNote
190-
component controls.
222+
<ColorSwatch hue="yellow" scale="50" />
191223

192-
### Blue 200
224+
### Yellow 100
193225

194-
<ColorSwatch hue="blue" scale="200" />
226+
<ColorSwatch hue="yellow" scale="100" />
195227

196-
Used as a background-color.
228+
### Yellow 200
197229

198-
### Blue 500
230+
<ColorSwatch hue="yellow" scale="200" />
199231

200-
<ColorSwatch hue="blue" scale="500" />
232+
### Yellow 500
201233

202-
### Blue 600
234+
<ColorSwatch hue="yellow" scale="500" />
203235

204-
<ColorSwatch hue="blue" scale="600" />
236+
### Yellow 600
205237

206-
Used for fine lines and small objects in our primary blue (text,
207-
stroke, icons). Also used in AudioNote component controls.
238+
<ColorSwatch hue="yellow" scale="600" />
208239

209-
### Blue 700
240+
### Yellow 700
210241

211-
<ColorSwatch hue="blue" scale="700" />
242+
<ColorSwatch hue="yellow" scale="700" />

packages/backpack-tokens/src/backpack-showbie.ts

+13-13
Original file line numberDiff line numberDiff line change
@@ -48,23 +48,23 @@ export const colors = {
4848
900: '',
4949
},
5050

51-
// yellow: {
52-
// 50: '',
53-
// 100: '', // '#faf0a6',
54-
// 200: '', // '#f7df68',
55-
// 300: '',
56-
// 400: '',
57-
// 500: '', // '#ddc62a', // aka 'rgb(221, 198, 42)',
58-
// 600: '',
59-
// 700: '',
60-
// 800: '',
61-
// 900: '',
62-
// },
51+
yellow: {
52+
50: '#FEFBED', // ally
53+
100: '#FCF5D4', // ally
54+
200: '#FAECA6', // ally
55+
// 300: '',
56+
// 400: '',
57+
500: '#B16301', // ally
58+
600: '#A75D00', // ally
59+
// 700: '',
60+
// 800: '',
61+
// 900: '',
62+
},
6363

6464
green: {
6565
50: '#EBF7EB', // a11y
6666
100: '#DAF0DA', // a11y
67-
200: '',
67+
200: '#C1E6C7', // ally
6868
300: '',
6969
400: '',
7070
500: '#158809', // ally

0 commit comments

Comments
 (0)