No description
- Zig 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
|
||
| .gitignore | ||
| build.zig | ||
| build.zig.zon | ||
| README.md | ||
| root.zig | ||
kosm_css
CSS for kosm: the css adapter, which claims .css files and enables generate and block.
generate writes every value as a custom property on :root. Nested structs join their names
with -, and _ becomes -:
try output.generate(.{ .file = "~/.config/app/kosm.css" }, .{ .kosm = .{ .tab_bar = color } });
:root {
--kosm-tab-bar: #268078ff;
}
| Value | Written as |
|---|---|
| color | the file's color format; default #rrggbbaa |
| string | a quoted CSS string |
| integer, float | the number |
kosm.raw(text) |
text, verbatim (10px, 1px solid red) |
| bool, list | an error: CSS has neither, so pass kosm.raw text |
block writes the same text between /* kosm:begin <id> */ and /* kosm:end */ in a CSS file
you otherwise write by hand.