@loidolt/theme-tokens 0.6.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -13,6 +13,7 @@ import { colors, semantic, spacing, tokens } from '@loidolt/theme-tokens';
13
13
  ```css
14
14
  @import '@loidolt/theme-tokens/css';
15
15
  @import '@loidolt/theme-tokens/css/dark';
16
+ @import '@loidolt/theme-tokens/css/presets/soft'; /* built-in presets: loidolt, soft, compact */
16
17
  ```
17
18
 
18
19
  WCAG contrast arithmetic, for colours chosen at runtime:
@@ -26,3 +27,7 @@ getContrastTextColor(userColour); // the theme ink that reads best on it
26
27
 
27
28
  Named media frames live in `aspectRatio` (`square`, `video`, `photo`, `portrait`, `wide`) and as
28
29
  `--loidolt-aspect-*`.
30
+
31
+ Define your own style presets with `definePreset()`, write their stylesheets with
32
+ `presetStylesheets()`, and check them with `auditContrast()`. See the
33
+ [Presets](https://github.com/loidolt/loidolt-theme#presets) section of the main README.
@@ -36,6 +36,44 @@
36
36
  --loidolt-focus-ring: #f0895c;
37
37
  --loidolt-shadow-color: #000000;
38
38
  --loidolt-scrim: color-mix(in srgb, var(--loidolt-shadow-color) 78%, transparent);
39
+ --loidolt-chart-1: #e0672f;
40
+ --loidolt-chart-2: #6ea5bd;
41
+ --loidolt-chart-3: #93b287;
42
+ --loidolt-chart-4: #d9ab63;
43
+ --loidolt-chart-5: #c49ac0;
44
+ --loidolt-chart-6: #b8ad96;
45
+ --loidolt-chart-7: #6fb8a6;
46
+ --loidolt-chart-8: #c79a78;
47
+ --loidolt-chart-sequential-1: #3a2a1d;
48
+ --loidolt-chart-sequential-2: #6b4225;
49
+ --loidolt-chart-sequential-3: #a4602f;
50
+ --loidolt-chart-sequential-4: #d98a4d;
51
+ --loidolt-chart-sequential-5: #f2bd8a;
52
+ --loidolt-chart-diverging-1: #85b6ca;
53
+ --loidolt-chart-diverging-2: #5a8ea3;
54
+ --loidolt-chart-diverging-3: #35596a;
55
+ --loidolt-chart-diverging-4: #3a3d34;
56
+ --loidolt-chart-diverging-5: #7a4428;
57
+ --loidolt-chart-diverging-6: #bf6a3a;
58
+ --loidolt-chart-diverging-7: #f0895c;
59
+ --loidolt-chart-positive: #93b287;
60
+ --loidolt-chart-negative: #e88b81;
61
+ --loidolt-map-land: #161814;
62
+ --loidolt-map-water: #1d2b31;
63
+ --loidolt-map-park: #1f271c;
64
+ --loidolt-map-road: #2b2e26;
65
+ --loidolt-map-road-major: #3a3d34;
66
+ --loidolt-map-building: #24271f;
67
+ --loidolt-map-boundary: #787c6b;
68
+ --loidolt-map-label: #ebe7dc;
69
+ --loidolt-map-label-halo: #161814;
70
+ --loidolt-syntax-keyword: #a9441d;
71
+ --loidolt-syntax-string: #3f5139;
72
+ --loidolt-syntax-comment: #5f5b50;
73
+ --loidolt-syntax-constant: #7c4d17;
74
+ --loidolt-syntax-function: #265162;
75
+ --loidolt-syntax-parameter: #7a4a78;
76
+ --loidolt-syntax-punctuation: #474a42;
39
77
  }
40
78
 
41
79
  @media (prefers-color-scheme: dark) {
@@ -76,5 +114,43 @@
76
114
  --loidolt-focus-ring: #f0895c;
77
115
  --loidolt-shadow-color: #000000;
78
116
  --loidolt-scrim: color-mix(in srgb, var(--loidolt-shadow-color) 78%, transparent);
117
+ --loidolt-chart-1: #e0672f;
118
+ --loidolt-chart-2: #6ea5bd;
119
+ --loidolt-chart-3: #93b287;
120
+ --loidolt-chart-4: #d9ab63;
121
+ --loidolt-chart-5: #c49ac0;
122
+ --loidolt-chart-6: #b8ad96;
123
+ --loidolt-chart-7: #6fb8a6;
124
+ --loidolt-chart-8: #c79a78;
125
+ --loidolt-chart-sequential-1: #3a2a1d;
126
+ --loidolt-chart-sequential-2: #6b4225;
127
+ --loidolt-chart-sequential-3: #a4602f;
128
+ --loidolt-chart-sequential-4: #d98a4d;
129
+ --loidolt-chart-sequential-5: #f2bd8a;
130
+ --loidolt-chart-diverging-1: #85b6ca;
131
+ --loidolt-chart-diverging-2: #5a8ea3;
132
+ --loidolt-chart-diverging-3: #35596a;
133
+ --loidolt-chart-diverging-4: #3a3d34;
134
+ --loidolt-chart-diverging-5: #7a4428;
135
+ --loidolt-chart-diverging-6: #bf6a3a;
136
+ --loidolt-chart-diverging-7: #f0895c;
137
+ --loidolt-chart-positive: #93b287;
138
+ --loidolt-chart-negative: #e88b81;
139
+ --loidolt-map-land: #161814;
140
+ --loidolt-map-water: #1d2b31;
141
+ --loidolt-map-park: #1f271c;
142
+ --loidolt-map-road: #2b2e26;
143
+ --loidolt-map-road-major: #3a3d34;
144
+ --loidolt-map-building: #24271f;
145
+ --loidolt-map-boundary: #787c6b;
146
+ --loidolt-map-label: #ebe7dc;
147
+ --loidolt-map-label-halo: #161814;
148
+ --loidolt-syntax-keyword: #a9441d;
149
+ --loidolt-syntax-string: #3f5139;
150
+ --loidolt-syntax-comment: #5f5b50;
151
+ --loidolt-syntax-constant: #7c4d17;
152
+ --loidolt-syntax-function: #265162;
153
+ --loidolt-syntax-parameter: #7a4a78;
154
+ --loidolt-syntax-punctuation: #474a42;
79
155
  }
80
156
  }
package/dist/dark.css CHANGED
@@ -36,4 +36,42 @@
36
36
  --loidolt-focus-ring: #f0895c;
37
37
  --loidolt-shadow-color: #000000;
38
38
  --loidolt-scrim: color-mix(in srgb, var(--loidolt-shadow-color) 78%, transparent);
39
+ --loidolt-chart-1: #e0672f;
40
+ --loidolt-chart-2: #6ea5bd;
41
+ --loidolt-chart-3: #93b287;
42
+ --loidolt-chart-4: #d9ab63;
43
+ --loidolt-chart-5: #c49ac0;
44
+ --loidolt-chart-6: #b8ad96;
45
+ --loidolt-chart-7: #6fb8a6;
46
+ --loidolt-chart-8: #c79a78;
47
+ --loidolt-chart-sequential-1: #3a2a1d;
48
+ --loidolt-chart-sequential-2: #6b4225;
49
+ --loidolt-chart-sequential-3: #a4602f;
50
+ --loidolt-chart-sequential-4: #d98a4d;
51
+ --loidolt-chart-sequential-5: #f2bd8a;
52
+ --loidolt-chart-diverging-1: #85b6ca;
53
+ --loidolt-chart-diverging-2: #5a8ea3;
54
+ --loidolt-chart-diverging-3: #35596a;
55
+ --loidolt-chart-diverging-4: #3a3d34;
56
+ --loidolt-chart-diverging-5: #7a4428;
57
+ --loidolt-chart-diverging-6: #bf6a3a;
58
+ --loidolt-chart-diverging-7: #f0895c;
59
+ --loidolt-chart-positive: #93b287;
60
+ --loidolt-chart-negative: #e88b81;
61
+ --loidolt-map-land: #161814;
62
+ --loidolt-map-water: #1d2b31;
63
+ --loidolt-map-park: #1f271c;
64
+ --loidolt-map-road: #2b2e26;
65
+ --loidolt-map-road-major: #3a3d34;
66
+ --loidolt-map-building: #24271f;
67
+ --loidolt-map-boundary: #787c6b;
68
+ --loidolt-map-label: #ebe7dc;
69
+ --loidolt-map-label-halo: #161814;
70
+ --loidolt-syntax-keyword: #a9441d;
71
+ --loidolt-syntax-string: #3f5139;
72
+ --loidolt-syntax-comment: #5f5b50;
73
+ --loidolt-syntax-constant: #7c4d17;
74
+ --loidolt-syntax-function: #265162;
75
+ --loidolt-syntax-parameter: #7a4a78;
76
+ --loidolt-syntax-punctuation: #474a42;
39
77
  }