File tree Expand file tree Collapse file tree 1 file changed +36
-1
lines changed Expand file tree Collapse file tree 1 file changed +36
-1
lines changed Original file line number Diff line number Diff line change @@ -319,6 +319,40 @@ const pagination = {
319319 }
320320}
321321
322+ const stateLabels = {
323+ sizes : {
324+ small : {
325+ padding : `${ space [ 1 ] } ${ space [ 2 ] } ` ,
326+ fontSize : fontSizes [ 0 ]
327+ } ,
328+ normal : {
329+ padding : `${ space [ 2 ] } 12px` ,
330+ fontSize : fontSizes [ 1 ]
331+ }
332+ } ,
333+
334+ status : {
335+ issueClosed : {
336+ backgroundColor : red [ 5 ]
337+ } ,
338+ pullClosed : {
339+ backgroundColor : red [ 5 ]
340+ } ,
341+ pullMerged : {
342+ backgroundColor : purple [ 5 ]
343+ } ,
344+ issueOpened : {
345+ backgroundColor : '#159739' // custom green
346+ } ,
347+ pullOpened : {
348+ backgroundColor : '#159739' // custom green
349+ } ,
350+ draft : {
351+ backgroundColor : gray [ 5 ]
352+ }
353+ }
354+ }
355+
322356const { scale : _excludeScaleColors , ...functionalColors } = filterObject ( primitives . colors . light , value =>
323357 isColorValue ( value )
324358)
@@ -348,7 +382,8 @@ const theme = {
348382 pagination,
349383 popovers,
350384 flash,
351- flashIcon
385+ flashIcon,
386+ stateLabels
352387}
353388
354389module . exports = {
You can’t perform that action at this time.
0 commit comments