.TH css adding 2025-10-18 "grim" .Nm Grim .SH DESCRIPTION .BI SCOPE: .UR src/css_parser.cc .UE .BR .UR include/grim.h .UE .br The purpose of this document is to outline the process of adding new styles to CSS. .SH Defining a Property CSS Properties are parsed into ENUM's: .RS .B Property names are stored in KeyType .br .B Values are stored in UnitType .br .B Accepted values are mapped into kAccepts .RE .P .SH The process of converting a property Once the CSS object has been parsed by the parseCSS function it will loop through the properties it found within the object. It will search for the .B KeyType in the keySearch map, if it is found it will pass the KeyType and the string containing the value of the property to getUnits.