-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
77dee1a
commit 26f2c89
Showing
11 changed files
with
3,317 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[package] | ||
name = "radix-colors" | ||
description = "Rust port of Radix Colors." | ||
|
||
authors.workspace = true | ||
edition.workspace = true | ||
license.workspace = true | ||
repository.workspace = true | ||
version.workspace = true |
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,13 @@ | ||
<p align="center"> | ||
<a href="../../logo.svg" alt="Rust Radix logo"> | ||
<img src="../../logo.svg" width="300" height="200"> | ||
</a> | ||
</p> | ||
|
||
<h1 align="center">radix-colors</h1> | ||
|
||
A gorgeous, accessible color system. | ||
|
||
## Rust Radix | ||
|
||
[Rust Radix](https://github.com/NixySoftware/radix) is a Rust port of [Radix](https://www.radix-ui.com/colors). |
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,29 @@ | ||
pub const BLACK_A: [&str; 12] = [ | ||
"rgba(0, 0, 0, 0.05)", | ||
"rgba(0, 0, 0, 0.1)", | ||
"rgba(0, 0, 0, 0.15)", | ||
"rgba(0, 0, 0, 0.2)", | ||
"rgba(0, 0, 0, 0.3)", | ||
"rgba(0, 0, 0, 0.4)", | ||
"rgba(0, 0, 0, 0.5)", | ||
"rgba(0, 0, 0, 0.6)", | ||
"rgba(0, 0, 0, 0.7)", | ||
"rgba(0, 0, 0, 0.8)", | ||
"rgba(0, 0, 0, 0.9)", | ||
"rgba(0, 0, 0, 0.95)", | ||
]; | ||
|
||
pub const BLACK_P3_A: [&str; 12] = [ | ||
"color(display-p3 0 0 0 / 0.05)", | ||
"color(display-p3 0 0 0 / 0.1)", | ||
"color(display-p3 0 0 0 / 0.15)", | ||
"color(display-p3 0 0 0 / 0.2)", | ||
"color(display-p3 0 0 0 / 0.3)", | ||
"color(display-p3 0 0 0 / 0.4)", | ||
"color(display-p3 0 0 0 / 0.5)", | ||
"color(display-p3 0 0 0 / 0.6)", | ||
"color(display-p3 0 0 0 / 0.7)", | ||
"color(display-p3 0 0 0 / 0.8)", | ||
"color(display-p3 0 0 0 / 0.9)", | ||
"color(display-p3 0 0 0 / 0.95)", | ||
]; |
Oops, something went wrong.