From d2d028ad9ff3efd95e3b5b87a62c550fef3283cb Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Mon, 25 Jul 2022 15:23:37 +0100 Subject: [PATCH] Update role colours --- packages/frontend-core/src/utils/roles.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/packages/frontend-core/src/utils/roles.js b/packages/frontend-core/src/utils/roles.js index 5c4aff2cf5..dc9138455d 100644 --- a/packages/frontend-core/src/utils/roles.js +++ b/packages/frontend-core/src/utils/roles.js @@ -7,10 +7,10 @@ const RolePriorities = { [Roles.PUBLIC]: 1, } const RoleColours = { - [Roles.ADMIN]: "var(--spectrum-global-color-static-seafoam-400)", - [Roles.POWER]: "var(--spectrum-global-color-static-purple-400)", - [Roles.BASIC]: "var(--spectrum-global-color-static-magenta-400)", - [Roles.PUBLIC]: "var(--spectrum-global-color-static-yellow-400)", + [Roles.ADMIN]: "var(--spectrum-global-color-static-red-400)", + [Roles.POWER]: "var(--spectrum-global-color-static-orange-400)", + [Roles.BASIC]: "var(--spectrum-global-color-static-green-400)", + [Roles.PUBLIC]: "var(--spectrum-global-color-static-blue-400)", } export const getRolePriority = roleId => { @@ -18,5 +18,7 @@ export const getRolePriority = roleId => { } export const getRoleColour = roleId => { - return RoleColours[roleId] ?? "rgb(20, 115, 230)" + return ( + RoleColours[roleId] ?? "var(--spectrum-global-color-static-magenta-400)" + ) }