This commit is contained in:
Nathan Sobo 2023-07-24 23:27:14 -06:00
parent 19e4cad7a9
commit 54a7419fa2
13 changed files with 518 additions and 107 deletions

View file

@ -0,0 +1,157 @@
pub mod color {
use gpui::color::Color;
pub fn background(elevation: f32) -> Color {
todo!()
}
}
pub mod text {
pub fn xs() -> f32 {
0.75
}
pub fn sm() -> f32 {
0.875
}
pub fn base() -> f32 {
1.0
}
pub fn lg() -> f32 {
1.125
}
pub fn xl() -> f32 {
1.25
}
pub fn xxl() -> f32 {
1.5
}
pub fn xxxl() -> f32 {
1.875
}
pub fn xxxx() -> f32 {
2.25
}
pub fn xxxxx() -> f32 {
3.0
}
pub fn xxxxxx() -> f32 {
4.0
}
}
pub mod padding {
pub fn p1() -> f32 {
0.25
}
pub fn p2() -> f32 {
0.5
}
pub fn p3() -> f32 {
0.75
}
pub fn p4() -> f32 {
1.0
}
pub fn p5() -> f32 {
1.25
}
pub fn p6() -> f32 {
1.5
}
pub fn p8() -> f32 {
2.0
}
pub fn p10() -> f32 {
2.5
}
pub fn p12() -> f32 {
3.0
}
pub fn p16() -> f32 {
4.0
}
pub fn p20() -> f32 {
5.0
}
pub fn p24() -> f32 {
6.0
}
pub fn p32() -> f32 {
8.0
}
}
pub mod margin {
pub fn m1() -> f32 {
0.25
}
pub fn m2() -> f32 {
0.5
}
pub fn m3() -> f32 {
0.75
}
pub fn m4() -> f32 {
1.0
}
pub fn m5() -> f32 {
1.25
}
pub fn m6() -> f32 {
1.5
}
pub fn m8() -> f32 {
2.0
}
pub fn m10() -> f32 {
2.5
}
pub fn m12() -> f32 {
3.0
}
pub fn m16() -> f32 {
4.0
}
pub fn m20() -> f32 {
5.0
}
pub fn m24() -> f32 {
6.0
}
pub fn m32() -> f32 {
8.0
}
}