the_border css px base_color css color fff css id header color base_co

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
the_border = css.px(1)
base_color = css.color(fff)
css.id('header',
color = base_color * 3,
border-left = the_border,
border-right = the_border * 3,
)
css.class('footer',
color = (base_color + css.color(111)) *1.5
)
"""
Result:
#header {
color: #2fffffd;
border-left: 1;
border-right: 3;
}
.footer {
color: #1999998;
}
"""