From 8cdf2f54a8eaf097ea42bca2bda669adc55f7a05 Mon Sep 17 00:00:00 2001 From: tomara_x <86204514+tomara-x@users.noreply.github.com> Date: Wed, 28 Feb 2024 23:26:41 +0200 Subject: [PATCH] bevy palette --- crates/bevy_color/src/palettes/bevy.rs | 44 ++++++++++++++++++++++++++ crates/bevy_color/src/palettes/mod.rs | 1 + 2 files changed, 45 insertions(+) create mode 100644 crates/bevy_color/src/palettes/bevy.rs diff --git a/crates/bevy_color/src/palettes/bevy.rs b/crates/bevy_color/src/palettes/bevy.rs new file mode 100644 index 0000000000000..6326947494445 --- /dev/null +++ b/crates/bevy_color/src/palettes/bevy.rs @@ -0,0 +1,44 @@ +//! Bevy color palette. from [rfcs/69-editor-design-system](https://github.com/coreh/bevy-rfcs/blob/editor-design-system/rfcs/69-editor-design-system.md) + +use crate::Srgba; + +///
+pub const BACKGROUND: Srgba = Srgba::new(0.11764706, 0.11764706, 0.13333334, 1.0); +///
+pub const FOREGROUND: Srgba = Srgba::new(0.9254902, 0.9254902, 0.9254902, 1.0); +///
+pub const SURFACE_M2: Srgba = Srgba::new(0.105882354, 0.105882354, 0.10980392, 1.0); +///
+pub const SURFACE_M1: Srgba = Srgba::new(0.11764706, 0.11764706, 0.12156863, 1.0); +///
+pub const SURFACE: Srgba = Srgba::new(0.13725491, 0.13725491, 0.14901961, 1.0); +///
+pub const SURFACE_P1: Srgba = Srgba::new(0.16862746, 0.17254902, 0.18431373, 1.0); +///
+pub const SURFACE_P2: Srgba = Srgba::new(0.21960784, 0.21960784, 0.21960784, 1.0); +///
+pub const ACCENT: Srgba = Srgba::new(0.05490196, 0.64705884, 0.9137255, 1.0); +///
+pub const ANIMATION: Srgba = Srgba::new(0.5137255, 0.09411765, 0.2627451, 1.0); +///
+pub const ASSET: Srgba = Srgba::new(0.5764706, 0.2, 0.91764706, 1.0); +///
+pub const CODE: Srgba = Srgba::new(0.96862745, 0.29803923, 0.0, 1.0); +///
+pub const LIGHT: Srgba = Srgba::new(0.9882353, 0.827451, 0.3019608, 1.0); +///
+pub const RESOURCE: Srgba = Srgba::new(0.0627451, 0.7254902, 0.5058824, 1.0); +///
+pub const PRIMARY: Srgba = Srgba::new(0.4745098, 0.60784316, 0.73333335, 1.0); +///
+pub const PRIMARY_DARK: Srgba = Srgba::new(0.34117648, 0.43529412, 0.5254902, 1.0); +///
+pub const DESTRUCTIVE: Srgba = Srgba::new(0.73333335, 0.4745098, 0.6117647, 1.0); +///
+pub const DESTRUCTIVE_DARK: Srgba = Srgba::new(0.5254902, 0.34117648, 0.40392157, 1.0); +///
+pub const X: Srgba = Srgba::new(0.6, 0.0, 0.0, 1.0); +///
+pub const Y: Srgba = Srgba::new(0.0, 0.46666667, 0.0, 1.0); +///
+pub const Z: Srgba = Srgba::new(0.0, 0.0, 0.8, 1.0); diff --git a/crates/bevy_color/src/palettes/mod.rs b/crates/bevy_color/src/palettes/mod.rs index f062ebedbabc1..5e847b5a32c4c 100644 --- a/crates/bevy_color/src/palettes/mod.rs +++ b/crates/bevy_color/src/palettes/mod.rs @@ -2,3 +2,4 @@ pub mod basic; pub mod css; +pub mod bevy;