feat: add styles

This commit is contained in:
Faynot
2026-06-02 13:03:23 +03:00
parent 4b5a340351
commit d82750081a
7 changed files with 907 additions and 354 deletions

View File

@@ -18,6 +18,10 @@ pub enum Value {
Rhei(String),
Null,
Array(Vec<Value>),
// glts
Call(String, Vec<Value>), // rgba(30, 30, 46, 0.88)
Unit(f64, String), // 8px, 120ms
Ident(String),
}
#[derive(Debug, Clone)]
@@ -57,6 +61,14 @@ pub enum Directive {
child_span: (u32, u32),
},
RheiBlock(String),
StyleRule {
selector: String,
prop_span: (u32, u32),
},
StyleAnim {
name: String,
frames: Vec<(String, (u32, u32))>,
},
}
#[derive(Debug, Default)]