forked from mozilla-mobile/android-components
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix-issue-9830
- Loading branch information
Showing
8 changed files
with
131 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
109 changes: 109 additions & 0 deletions
109
components/ui/colors/src/main/java/mozilla/components/ui/colors/PhotonColors.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
package mozilla.components.ui.colors | ||
|
||
import androidx.compose.ui.graphics.Color | ||
|
||
/** | ||
* Colors from the [Photon Design System](https://design.firefox.com/photon/visuals/color.html). | ||
* | ||
* _"Firefox colors are bold, vibrant and attractive. They enhance the experience by providing visual | ||
* clues and by bringing attention to primary actions."_ | ||
*/ | ||
@Suppress("MagicNumber") // It's a kind of magic ✨ | ||
object PhotonColors { | ||
val Blue40 = Color(0xff45a1ff) | ||
val Blue50 = Color(0xff0a84ff) | ||
val Blue60 = Color(0xff0060df) | ||
val Blue70 = Color(0xff003eaa) | ||
val Blue80 = Color(0xff002275) | ||
val Blue90 = Color(0xff000f40) | ||
|
||
val Magenta50 = Color(0xffff1ad9) | ||
val Magenta60 = Color(0xffed00b5) | ||
val Magenta70 = Color(0xffb5007f) | ||
val Magenta80 = Color(0xff7d004f) | ||
val Magenta90 = Color(0xff440027) | ||
|
||
val Green50 = Color(0xff30e60b) | ||
val Green60 = Color(0xff12bc00) | ||
val Green70 = Color(0xff058b00) | ||
val Green80 = Color(0xff006504) | ||
val Green90 = Color(0xff003706) | ||
|
||
val Red50 = Color(0xffff0039) | ||
val Red60 = Color(0xffd70022) | ||
val Red70 = Color(0xffa4000f) | ||
val Red80 = Color(0xff5a0002) | ||
val Red90 = Color(0xff3e0200) | ||
|
||
val Yellow50 = Color(0xffffe900) | ||
val Yellow60 = Color(0xffd7b600) | ||
val Yellow70 = Color(0xffa47f00) | ||
val Yellow80 = Color(0xff715100) | ||
val Yellow90 = Color(0xff3e2800) | ||
|
||
val Teal50 = Color(0xff00feff) | ||
val Teal60 = Color(0xff00c8d7) | ||
val Teal70 = Color(0xff008ea4) | ||
val Teal80 = Color(0xff005a71) | ||
val Teal90 = Color(0xff002d3e) | ||
|
||
val Purple50 = Color(0xff9400ff) | ||
val Purple60 = Color(0xff8000d7) | ||
val Purple70 = Color(0xff6200a4) | ||
val Purple80 = Color(0xff440071) | ||
val Purple90 = Color(0xff25003e) | ||
|
||
val Orange50 = Color(0xffff9400) | ||
val Orange60 = Color(0xffd76e00) | ||
val Orange70 = Color(0xffa44900) | ||
val Orange80 = Color(0xff712b00) | ||
val Orange90 = Color(0xff3e1300) | ||
|
||
val Ink20 = Color(0xff312A65) | ||
val Ink20A48 = Color(0x7A312A65) | ||
val Ink30 = Color(0xff2E255D) | ||
val Ink50 = Color(0xff291D4F) | ||
val Ink60 = Color(0xff271948) | ||
val Ink70 = Color(0xff363959) | ||
val Ink80 = Color(0xff20123A) | ||
val Ink90 = Color(0xff0f1126) | ||
|
||
val Grey10 = Color(0xfff9f9fa) | ||
val Grey20 = Color(0xffededf0) | ||
val Grey30 = Color(0xffd7d7db) | ||
val Grey40 = Color(0xffb1b1b3) | ||
val Grey50 = Color(0xff737373) | ||
val Grey60 = Color(0xff4a4a4f) | ||
val Grey70 = Color(0xff38383d) | ||
val Grey80 = Color(0xff2a2a2e) | ||
val Grey90 = Color(0xff0c0c0d) | ||
|
||
val LightGrey05 = Color(0xffFBFBFE) | ||
val LightGrey10 = Color(0xffF9F9FB) | ||
val LightGrey30 = Color(0xffE0E0E6) | ||
val LightGrey50 = Color(0xffBFBFC9) | ||
val LightGrey60 = Color(0xffAFAFBB) | ||
val LightGrey70 = Color(0xff9F9FAD) | ||
val LightGrey80 = Color(0xff8F8F9D) | ||
val LightGrey90 = Color(0xff80808E) | ||
|
||
val DarkGrey05 = Color(0xff5B5B66) | ||
val DarkGrey10 = Color(0xff52525E) | ||
val DarkGrey40 = Color(0xff3A3944) | ||
val DarkGrey50 = Color(0xff32313C) | ||
val DarkGrey80 = Color(0xff1C1B22) | ||
val DarkGrey90 = Color(0xff15141A) | ||
|
||
val Violet05 = Color(0xffE7DFFF) | ||
val Violet50 = Color(0xff9059FF) | ||
val Violet50A32 = Color(0x529059FF) | ||
val Violet50A48 = Color(0x7A9059FF) | ||
val Violet70 = Color(0xff592ACB) | ||
val Violet70A12 = Color(0x1F592ACB) | ||
|
||
val White = Color(0xffffffff) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters