Skip to content

Commit c3977f2

Browse files
committed
Charts: map and define all custom properties
1 parent 61db6a1 commit c3977f2

2 files changed

Lines changed: 75 additions & 0 deletions

File tree

src/charts.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
// General
88
@import "general/variables";
9+
@import "general/properties";
910
@import "general/mixins";
1011

1112
// Components

src/general/_properties.scss

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
/*
2+
* Chart custom properties
3+
*/
4+
5+
// Colors
6+
@property --color,
7+
@property --color-1,
8+
@property --color-2,
9+
@property --color-3,
10+
@property --color-4,
11+
@property --color-5,
12+
@property --color-6,
13+
@property --color-7,
14+
@property --color-8,
15+
@property --color-9,
16+
@property --color-10,
17+
@property --chart-bg-color,
18+
@property --legend-border-color {
19+
syntax: '<color>';
20+
initial-value: transparent;
21+
inherits: true;
22+
}
23+
24+
// Heading
25+
@property --heading-size {
26+
syntax: '<length>';
27+
initial-value: 0;
28+
inherits: true;
29+
}
30+
31+
// Labels
32+
@property --labels-size {
33+
syntax: '<length>';
34+
initial-value: 0;
35+
inherits: true;
36+
}
37+
@property --labels-align {
38+
syntax: '<string>';
39+
initial-value: center;
40+
inherits: true;
41+
}
42+
43+
// Axes
44+
@property --primary-axis-width,
45+
@property --secondary-axes-width,
46+
@property --data-axes-width {
47+
syntax: '<length>';
48+
initial-value: 1px;
49+
inherits: true;
50+
}
51+
@property --primary-axis-style,
52+
@property --secondary-axes-style,
53+
@property --data-axes-style {
54+
syntax: '<line-style>';
55+
initial-value: solid;
56+
inherits: true;
57+
}
58+
@property --primary-axis-color,
59+
@property --secondary-axes-color,
60+
@property --data-axes-color {
61+
syntax: '<color>';
62+
initial-value: transparent;
63+
inherits: true;
64+
}
65+
66+
// Sizes
67+
@property --start,
68+
@property --end,
69+
@property --size,
70+
@property --line-size {
71+
syntax: '<number>';
72+
initial-value: 0;
73+
inherits: true;
74+
}

0 commit comments

Comments
 (0)