From 4e16e5098ebb40537f8089e87698e38edf230d58 Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Sat, 4 May 2024 16:08:23 +0300 Subject: [PATCH] Refactored overlay component tokens --- .../lib/themes/aura/confirmpopup/index.js | 19 ++++--------------- components/lib/themes/aura/dialog/index.js | 19 ++++--------------- components/lib/themes/aura/drawer/index.js | 19 ++++--------------- components/lib/themes/aura/popover/index.js | 19 ++++--------------- 4 files changed, 16 insertions(+), 60 deletions(-) diff --git a/components/lib/themes/aura/confirmpopup/index.js b/components/lib/themes/aura/confirmpopup/index.js index 13e74546a..f6ad4d3ea 100644 --- a/components/lib/themes/aura/confirmpopup/index.js +++ b/components/lib/themes/aura/confirmpopup/index.js @@ -1,18 +1,7 @@ export default { - colorScheme: { - light: { - root: { - background: '{surface.0}', - borderColor: '{surface.200}', - color: '{surface.700}' - } - }, - dark: { - root: { - background: '{surface.900}', - borderColor: '{surface.700}', - color: '{surface.0}' - } - } + root: { + background: '{content.background}', + borderColor: '{content.border.color}', + color: '{content.color}' } }; diff --git a/components/lib/themes/aura/dialog/index.js b/components/lib/themes/aura/dialog/index.js index 13e74546a..f6ad4d3ea 100644 --- a/components/lib/themes/aura/dialog/index.js +++ b/components/lib/themes/aura/dialog/index.js @@ -1,18 +1,7 @@ export default { - colorScheme: { - light: { - root: { - background: '{surface.0}', - borderColor: '{surface.200}', - color: '{surface.700}' - } - }, - dark: { - root: { - background: '{surface.900}', - borderColor: '{surface.700}', - color: '{surface.0}' - } - } + root: { + background: '{content.background}', + borderColor: '{content.border.color}', + color: '{content.color}' } }; diff --git a/components/lib/themes/aura/drawer/index.js b/components/lib/themes/aura/drawer/index.js index 13e74546a..f6ad4d3ea 100644 --- a/components/lib/themes/aura/drawer/index.js +++ b/components/lib/themes/aura/drawer/index.js @@ -1,18 +1,7 @@ export default { - colorScheme: { - light: { - root: { - background: '{surface.0}', - borderColor: '{surface.200}', - color: '{surface.700}' - } - }, - dark: { - root: { - background: '{surface.900}', - borderColor: '{surface.700}', - color: '{surface.0}' - } - } + root: { + background: '{content.background}', + borderColor: '{content.border.color}', + color: '{content.color}' } }; diff --git a/components/lib/themes/aura/popover/index.js b/components/lib/themes/aura/popover/index.js index 13e74546a..f6ad4d3ea 100644 --- a/components/lib/themes/aura/popover/index.js +++ b/components/lib/themes/aura/popover/index.js @@ -1,18 +1,7 @@ export default { - colorScheme: { - light: { - root: { - background: '{surface.0}', - borderColor: '{surface.200}', - color: '{surface.700}' - } - }, - dark: { - root: { - background: '{surface.900}', - borderColor: '{surface.700}', - color: '{surface.0}' - } - } + root: { + background: '{content.background}', + borderColor: '{content.border.color}', + color: '{content.color}' } };