From c60f60b7d50e835847f3b3b76b5e3425a264f3ea Mon Sep 17 00:00:00 2001 From: Yves Tscherry Date: Thu, 29 Jul 2021 15:41:37 +0200 Subject: [PATCH] fix: add default to all colors --- designTokens/color.js | 65 +++++++++++++++++++++++++++++++++---------- designTokens/typo.js | 2 +- 2 files changed, 51 insertions(+), 16 deletions(-) diff --git a/designTokens/color.js b/designTokens/color.js index 8bd5cae4..b5965844 100644 --- a/designTokens/color.js +++ b/designTokens/color.js @@ -24,49 +24,84 @@ module.exports = { } }, midnight: { - value: 'rgba(21,21,21,1)' + default: { + value: 'rgba(21,21,21,1)' + } }, charcoal: { - value: 'rgba(33,33,33,1)' + default: { + value: 'rgba(33,33,33,1)' + } }, iron: { - value: 'rgba(68,68,68,1)' + default: { + value: 'rgba(68,68,68,1)' + } }, anthracite: { - value: 'rgba(90,90,90,1)' + default: { + value: 'rgba(90,90,90,1)' + } }, granite: { - value: 'rgba(104,104,104,1)' + default: { + value: 'rgba(104,104,104,1)' + } }, metal: { - value: 'rgba(118,118,118,1)' + default: { + value: 'rgba(118,118,118,1)' + } }, smoke: { - value: 'rgba(141,141,141,1)' + default: { + value: 'rgba(141,141,141,1)' + }, + alpha: { + 5: { + value: 'value: rgba(141,141,141,.05)' + } + } }, storm: { - value: 'rgba(168,168,168,1)' + default: { + value: 'rgba(168,168,168,1)' + } }, graphite: { - value: 'rgba(183,183,183,1)' + default: { + value: 'rgba(183,183,183,1)' + } }, cement: { - value: 'rgba(189,189,189,1)' + default: { + value: 'rgba(189,189,189,1)' + } }, platinum: { - value: 'rgba(205,205,205,1)' + default: { + value: 'rgba(205,205,205,1)' + } }, aluminium: { - value: 'rgba(210,210,210,1)' + default: { + value: 'rgba(210,210,210,1)' + } }, silver: { - value: 'rgba(220,220,220,1)' + default: { + value: 'rgba(220,220,220,1)' + } }, cloud: { - value: 'rgba(229,229,229,1)' + default: { + value: 'rgba(229,229,229,1)' + } }, milk: { - value: 'rgba(246,246,246,1)' + default: { + value: 'rgba(246,246,246,1)' + } }, red: { default: { diff --git a/designTokens/typo.js b/designTokens/typo.js index 0dc81858..2104b1c4 100644 --- a/designTokens/typo.js +++ b/designTokens/typo.js @@ -14,7 +14,7 @@ module.exports = { default: { fontColor: { - value: '{color.charcoal.value}' + value: '{color.charcoal.default.value}' }, fontFamily: { value: '{typo.font.family.sbbRoman.value}'