From 6c22b8f9e5989b77cf68e5722cec7a0194894617 Mon Sep 17 00:00:00 2001 From: jld3103 Date: Sun, 6 Aug 2023 17:36:05 +0200 Subject: [PATCH] refactor(neon): Align colors with design guidelines --- packages/neon/neon/lib/src/theme/colors.dart | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/packages/neon/neon/lib/src/theme/colors.dart b/packages/neon/neon/lib/src/theme/colors.dart index 1c1f2652..1255dd94 100644 --- a/packages/neon/neon/lib/src/theme/colors.dart +++ b/packages/neon/neon/lib/src/theme/colors.dart @@ -6,10 +6,24 @@ import 'package:nextcloud/nextcloud.dart'; abstract final class NcColors { /// Nextcloud blue. /// - /// The default primary clolor as specified by the - /// [design guidlines](https://docs.nextcloud.com/server/latest/developer_manual/design/foundations.html#primary-color). + /// The default primary color as specified by the [design guidelines](https://docs.nextcloud.com/server/latest/developer_manual/design/foundations.html#primary-color). static const Color primary = Color(0xFF0082C9); + /// Nextcloud success. + /// + /// The success color as specified by the [design guidelines](https://docs.nextcloud.com/server/latest/developer_manual/design/foundations.html#status-and-indicators). + static const Color success = Colors.green; + + /// Nextcloud error. + /// + /// The error color as specified by the [design guidelines](https://docs.nextcloud.com/server/latest/developer_manual/design/foundations.html#status-and-indicators). + static const Color error = Colors.red; + + /// Nextcloud warning. + /// + /// The warning color as specified by the [design guidelines](https://docs.nextcloud.com/server/latest/developer_manual/design/foundations.html#status-and-indicators). + static const Color warning = Colors.orange; + /// The [ColorScheme.background] color used on OLED devices. /// /// This color is only used at the users discretion.