@bgord/design 0.7.0 → 0.9.2

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.
@@ -14,6 +14,7 @@ import { FontWeightGenerator } from './font-weight-generator';
14
14
  import { LineHeightsGenerator } from './line-height-generator';
15
15
  import { FlexDirectionsGenerator } from './flex-directions-generator';
16
16
  import { BackgroundsGenerator } from './backgrounds-generator';
17
+ import { FontColorsGenerator } from './font-colors-generator';
17
18
 
18
19
  import {
19
20
  Spacing,
@@ -32,7 +33,19 @@ import {
32
33
 
33
34
  class GeneratorProcessor {
34
35
  async process(generators: GeneratorInterface[]) {
35
- let output = '';
36
+ let output = `
37
+ /* General */
38
+
39
+ * {
40
+ box-sizing: border-box;
41
+ line-height: 24px;
42
+ padding: 0;
43
+ margin: 0;
44
+ }
45
+
46
+ small {
47
+ display: block;
48
+ }\n\n`;
36
49
 
37
50
  for (const generator of generators) {
38
51
  output += generator.generateHeader();
@@ -77,6 +90,7 @@ export async function main() {
77
90
 
78
91
  new FontSizeGenerator(config),
79
92
  new FontWeightGenerator(config),
93
+ new FontColorsGenerator(config),
80
94
  new LineHeightsGenerator(config),
81
95
 
82
96
  new BackgroundsGenerator(config),
package/src/tokens.ts CHANGED
@@ -32,9 +32,9 @@ export const Displays: Record<DisplayType, string> = {
32
32
  type AxisPlacementType = 'start' | 'end' | 'between' | 'center' | 'baseline';
33
33
 
34
34
  export const AxisPlacements: Record<AxisPlacementType, string> = {
35
- start: 'start',
36
- end: 'end',
37
- between: 'between',
35
+ start: 'flex-start',
36
+ end: 'flex-end',
37
+ between: 'space-between',
38
38
  center: 'center',
39
39
  baseline: 'baseline',
40
40
  };