bch-style-dictionary 0.0.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.
Files changed (26) hide show
  1. package/README.md +15 -0
  2. package/package.json +31 -0
  3. package/tokens/converted/all.scss +20 -0
  4. package/tokens/converted/color/color-background.scss +3 -0
  5. package/tokens/converted/color/color-text.scss +9 -0
  6. package/tokens/converted/color/core-color.scss +8 -0
  7. package/tokens/converted/color-dark.scss +7 -0
  8. package/tokens/converted/color-light.scss +7 -0
  9. package/tokens/converted/color.scss +5 -0
  10. package/tokens/converted/spacing/core-spacing.scss +6 -0
  11. package/tokens/converted/spacing/spacing-box.scss +29 -0
  12. package/tokens/converted/spacing.scss +7 -0
  13. package/tokens/converted/src/color/raw/_core-color.scss +8 -0
  14. package/tokens/converted/src/color/raw/decision/dark/_decision-color-background.scss +11 -0
  15. package/tokens/converted/src/color/raw/decision/dark/_decision-color-text.scss +17 -0
  16. package/tokens/converted/src/color/raw/decision/light/_decision-color-background.scss +11 -0
  17. package/tokens/converted/src/color/raw/decision/light/_decision-color-text.scss +17 -0
  18. package/tokens/converted/src/color/web/core-color.scss +12 -0
  19. package/tokens/converted/src/color/web/dark/color-background.scss +7 -0
  20. package/tokens/converted/src/color/web/dark/color-text.scss +13 -0
  21. package/tokens/converted/src/color/web/light/color-background.scss +7 -0
  22. package/tokens/converted/src/color/web/light/color-text.scss +13 -0
  23. package/tokens/converted/src/spacing/raw/_core-spacing.scss +6 -0
  24. package/tokens/converted/src/spacing/raw/decision/_decision-spacing-box.scss +37 -0
  25. package/tokens/converted/src/spacing/web/core-spacing.scss +10 -0
  26. package/tokens/converted/src/spacing/web/spacing-box.scss +33 -0
package/README.md ADDED
@@ -0,0 +1,15 @@
1
+ # Basic Style Dictionary
2
+
3
+ This example code is bare-bones to show you what this framework can do. If you have the style-dictionary module installed globally, you can `cd` into this directory and run:
4
+
5
+ ```bash
6
+ npx style-dictionary build
7
+ ```
8
+
9
+ Otherwise, install Style Dictionary locally for this project first, `cd` into this directory and run:
10
+
11
+ ```bash
12
+ npm init -y && npm install style-dictionary
13
+ ```
14
+
15
+ and then run the above command.
package/package.json ADDED
@@ -0,0 +1,31 @@
1
+ {
2
+ "name": "bch-style-dictionary",
3
+ "version": "0.0.0",
4
+ "files": [
5
+ "tokens/converted/"
6
+ ],
7
+ "scripts": {
8
+ "ng": "ng",
9
+ "start": "ng serve",
10
+ "build": "node build.js",
11
+ "figma:archive": "node tools/token-archivist.js",
12
+ "figma:clean": "node tools/token-cleaner.js",
13
+ "figma:split": "node tools/token-splitter.js",
14
+ "core-styles:create": "node tools/core-styles-creator.js",
15
+ "decision-tokens:create": "node tools/decision-tokens-creator.js",
16
+ "web-tokens:create": "node tools/web-tokens-creator.js",
17
+ "core-web-tokens:create": "node tools/core-web-tokens-creator.js",
18
+ "library-tokens:create": "node tools/library-tokens-creator.js",
19
+ "summary-tokens:create": "node tools/summary-tokens-creator.js",
20
+ "all-tokens:create": "node tools/all-tokens-creator.js",
21
+ "design-tokens:create": "node tools/design-tokens-creator.js",
22
+ "watch": "ng build --watch --configuration development",
23
+ "test": "ng test",
24
+ "lint": "ng lint"
25
+ },
26
+ "packageManager": "npm@11.9.0",
27
+ "devDependencies": {
28
+ "@types/node": "^25.7.0",
29
+ "style-dictionary": "^5.4.0"
30
+ }
31
+ }
@@ -0,0 +1,20 @@
1
+ @use "color-dark";
2
+ @use "color-light";
3
+ @use "color";
4
+ @use "spacing";
5
+
6
+ @mixin bch-design-language {
7
+ :root {
8
+ // color dark tokens
9
+ @include color-dark.tokens;
10
+
11
+ // color light tokens
12
+ @include color-light.tokens;
13
+
14
+ // color tokens
15
+ @include color.tokens;
16
+
17
+ // spacing tokens
18
+ @include spacing.tokens;
19
+ }
20
+ }
@@ -0,0 +1,3 @@
1
+ $background-color-primary: var(--bch-decision-color-background-background-color-primary);
2
+
3
+ $background-color-secondary: var(--bch-decision-color-background-background-color-secondary);
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Primary color for text
3
+ */
4
+ $text-color-primary: var(--bch-decision-color-text-text-color-primary);
5
+
6
+ /**
7
+ * Secondary color for text
8
+ */
9
+ $text-color-secondary: var(--bch-decision-color-text-text-color-secondary);
@@ -0,0 +1,8 @@
1
+ $color-white: var(--bch-core-color-color-white);
2
+ $color-black: var(--bch-core-color-color-black);
3
+ $color-neutral-300: var(--bch-core-color-color-neutral-300);
4
+ $color-neutral-600: var(--bch-core-color-color-neutral-600);
5
+ $color-neutral-900: var(--bch-core-color-color-neutral-900);
6
+ $color-blue-300: var(--bch-core-color-color-blue-300);
7
+ $color-blue-600: var(--bch-core-color-color-blue-600);
8
+ $color-blue-900: var(--bch-core-color-color-blue-900);
@@ -0,0 +1,7 @@
1
+ @use "./src/color/web/dark/color-background";
2
+ @use "./src/color/web/dark/color-text";
3
+
4
+ @mixin tokens {
5
+ @include color-background.tokens;
6
+ @include color-text.tokens;
7
+ }
@@ -0,0 +1,7 @@
1
+ @use "./src/color/web/light/color-background";
2
+ @use "./src/color/web/light/color-text";
3
+
4
+ @mixin tokens {
5
+ @include color-background.tokens;
6
+ @include color-text.tokens;
7
+ }
@@ -0,0 +1,5 @@
1
+ @use "./src/color/web/core-color";
2
+
3
+ @mixin tokens {
4
+ @include core-color.tokens;
5
+ }
@@ -0,0 +1,6 @@
1
+ $spacing-spacing-2: var(--bch-core-spacing-spacing-spacing-2);
2
+ $spacing-spacing-5: var(--bch-core-spacing-spacing-spacing-5);
3
+ $spacing-spacing-10: var(--bch-core-spacing-spacing-spacing-10);
4
+ $spacing-spacing-15: var(--bch-core-spacing-spacing-spacing-15);
5
+ $spacing-spacing-20: var(--bch-core-spacing-spacing-spacing-20);
6
+ $spacing-spacing-25: var(--bch-core-spacing-spacing-spacing-25);
@@ -0,0 +1,29 @@
1
+ /**
2
+ * 2 px spacing for boxex
3
+ */
4
+ $spacing-box-xs: var(--bch-decision-spacing-box-spacing-box-xs);
5
+
6
+ /**
7
+ * 5 px spacing for boxex
8
+ */
9
+ $spacing-box-s: var(--bch-decision-spacing-box-spacing-box-s);
10
+
11
+ /**
12
+ * 10 px spacing for boxex
13
+ */
14
+ $spacing-box-m: var(--bch-decision-spacing-box-spacing-box-m);
15
+
16
+ /**
17
+ * 15 px spacing for boxex
18
+ */
19
+ $spacing-box-l: var(--bch-decision-spacing-box-spacing-box-l);
20
+
21
+ /**
22
+ * 20 px spacing for boxex
23
+ */
24
+ $spacing-box-xl: var(--bch-decision-spacing-box-spacing-box-xl);
25
+
26
+ /**
27
+ * 25 px spacing for boxex
28
+ */
29
+ $spacing-box-xxl: var(--bch-decision-spacing-box-spacing-box-xxl);
@@ -0,0 +1,7 @@
1
+ @use "./src/spacing/web/core-spacing";
2
+ @use "./src/spacing/web/spacing-box";
3
+
4
+ @mixin tokens {
5
+ @include core-spacing.tokens;
6
+ @include spacing-box.tokens;
7
+ }
@@ -0,0 +1,8 @@
1
+ $color-white: #ffffff;
2
+ $color-black: #000000;
3
+ $color-neutral-300: #333333;
4
+ $color-neutral-600: #666666;
5
+ $color-neutral-900: #999999;
6
+ $color-blue-300: #3333ff;
7
+ $color-blue-600: #6666ff;
8
+ $color-blue-900: #9999ff;
@@ -0,0 +1,11 @@
1
+ /** Design Language Configuration
2
+ * Do not use directly in project
3
+ * @access private
4
+ */
5
+
6
+ @use "../../core-color";
7
+
8
+ $background-color-primary: core-color.$color-white;
9
+
10
+ $background-color-secondary: core-color.$color-black;
11
+
@@ -0,0 +1,17 @@
1
+ /** Design Language Configuration
2
+ * Do not use directly in project
3
+ * @access private
4
+ */
5
+
6
+ @use "../../core-color";
7
+
8
+ /**
9
+ * Primary color for text
10
+ */
11
+ $text-color-primary: core-color.$color-neutral-300;
12
+
13
+ /**
14
+ * Secondary color for text
15
+ */
16
+ $text-color-secondary: core-color.$color-neutral-900;
17
+
@@ -0,0 +1,11 @@
1
+ /** Design Language Configuration
2
+ * Do not use directly in project
3
+ * @access private
4
+ */
5
+
6
+ @use "../../core-color";
7
+
8
+ $background-color-primary: core-color.$color-black;
9
+
10
+ $background-color-secondary: core-color.$color-white;
11
+
@@ -0,0 +1,17 @@
1
+ /** Design Language Configuration
2
+ * Do not use directly in project
3
+ * @access private
4
+ */
5
+
6
+ @use "../../core-color";
7
+
8
+ /**
9
+ * Primary color for text
10
+ */
11
+ $text-color-primary: core-color.$color-neutral-900;
12
+
13
+ /**
14
+ * Secondary color for text
15
+ */
16
+ $text-color-secondary: core-color.$color-neutral-300;
17
+
@@ -0,0 +1,12 @@
1
+ @use "../raw/core-color";
2
+
3
+ @mixin tokens {
4
+ --bch-core-color-color-white: #{core-color.$color-white};
5
+ --bch-core-color-color-black: #{core-color.$color-black};
6
+ --bch-core-color-color-neutral-300: #{core-color.$color-neutral-300};
7
+ --bch-core-color-color-neutral-600: #{core-color.$color-neutral-600};
8
+ --bch-core-color-color-neutral-900: #{core-color.$color-neutral-900};
9
+ --bch-core-color-color-blue-300: #{core-color.$color-blue-300};
10
+ --bch-core-color-color-blue-600: #{core-color.$color-blue-600};
11
+ --bch-core-color-color-blue-900: #{core-color.$color-blue-900};
12
+ }
@@ -0,0 +1,7 @@
1
+ @use "../../raw/decision/dark/decision-color-background";
2
+
3
+ @mixin tokens {
4
+ --bch-decision-color-background-background-color-primary: #{decision-color-background.$background-color-primary};
5
+
6
+ --bch-decision-color-background-background-color-secondary: #{decision-color-background.$background-color-secondary};
7
+ }
@@ -0,0 +1,13 @@
1
+ @use "../../raw/decision/dark/decision-color-text";
2
+
3
+ @mixin tokens {
4
+ /**
5
+ * Primary color for text
6
+ */
7
+ --bch-decision-color-text-text-color-primary: #{decision-color-text.$text-color-primary};
8
+
9
+ /**
10
+ * Secondary color for text
11
+ */
12
+ --bch-decision-color-text-text-color-secondary: #{decision-color-text.$text-color-secondary};
13
+ }
@@ -0,0 +1,7 @@
1
+ @use "../../raw/decision/light/decision-color-background";
2
+
3
+ @mixin tokens {
4
+ --bch-decision-color-background-background-color-primary: #{decision-color-background.$background-color-primary};
5
+
6
+ --bch-decision-color-background-background-color-secondary: #{decision-color-background.$background-color-secondary};
7
+ }
@@ -0,0 +1,13 @@
1
+ @use "../../raw/decision/light/decision-color-text";
2
+
3
+ @mixin tokens {
4
+ /**
5
+ * Primary color for text
6
+ */
7
+ --bch-decision-color-text-text-color-primary: #{decision-color-text.$text-color-primary};
8
+
9
+ /**
10
+ * Secondary color for text
11
+ */
12
+ --bch-decision-color-text-text-color-secondary: #{decision-color-text.$text-color-secondary};
13
+ }
@@ -0,0 +1,6 @@
1
+ $spacing-spacing-2: 2;
2
+ $spacing-spacing-5: 5;
3
+ $spacing-spacing-10: 10;
4
+ $spacing-spacing-15: 15;
5
+ $spacing-spacing-20: 20;
6
+ $spacing-spacing-25: 25;
@@ -0,0 +1,37 @@
1
+ /** Design Language Configuration
2
+ * Do not use directly in project
3
+ * @access private
4
+ */
5
+
6
+ @use "../core-spacing";
7
+
8
+ /**
9
+ * 2 px spacing for boxex
10
+ */
11
+ $spacing-box-xs: core-spacing.$spacing-spacing-2;
12
+
13
+ /**
14
+ * 5 px spacing for boxex
15
+ */
16
+ $spacing-box-s: core-spacing.$spacing-spacing-5;
17
+
18
+ /**
19
+ * 10 px spacing for boxex
20
+ */
21
+ $spacing-box-m: core-spacing.$spacing-spacing-10;
22
+
23
+ /**
24
+ * 15 px spacing for boxex
25
+ */
26
+ $spacing-box-l: core-spacing.$spacing-spacing-15;
27
+
28
+ /**
29
+ * 20 px spacing for boxex
30
+ */
31
+ $spacing-box-xl: core-spacing.$spacing-spacing-20;
32
+
33
+ /**
34
+ * 25 px spacing for boxex
35
+ */
36
+ $spacing-box-xxl: core-spacing.$spacing-spacing-25;
37
+
@@ -0,0 +1,10 @@
1
+ @use "../raw/core-spacing";
2
+
3
+ @mixin tokens {
4
+ --bch-core-spacing-spacing-spacing-2: #{core-spacing.$spacing-spacing-2};
5
+ --bch-core-spacing-spacing-spacing-5: #{core-spacing.$spacing-spacing-5};
6
+ --bch-core-spacing-spacing-spacing-10: #{core-spacing.$spacing-spacing-10};
7
+ --bch-core-spacing-spacing-spacing-15: #{core-spacing.$spacing-spacing-15};
8
+ --bch-core-spacing-spacing-spacing-20: #{core-spacing.$spacing-spacing-20};
9
+ --bch-core-spacing-spacing-spacing-25: #{core-spacing.$spacing-spacing-25};
10
+ }
@@ -0,0 +1,33 @@
1
+ @use "../raw/decision/decision-spacing-box";
2
+
3
+ @mixin tokens {
4
+ /**
5
+ * 2 px spacing for boxex
6
+ */
7
+ --bch-decision-spacing-box-spacing-box-xs: #{decision-spacing-box.$spacing-box-xs};
8
+
9
+ /**
10
+ * 5 px spacing for boxex
11
+ */
12
+ --bch-decision-spacing-box-spacing-box-s: #{decision-spacing-box.$spacing-box-s};
13
+
14
+ /**
15
+ * 10 px spacing for boxex
16
+ */
17
+ --bch-decision-spacing-box-spacing-box-m: #{decision-spacing-box.$spacing-box-m};
18
+
19
+ /**
20
+ * 15 px spacing for boxex
21
+ */
22
+ --bch-decision-spacing-box-spacing-box-l: #{decision-spacing-box.$spacing-box-l};
23
+
24
+ /**
25
+ * 20 px spacing for boxex
26
+ */
27
+ --bch-decision-spacing-box-spacing-box-xl: #{decision-spacing-box.$spacing-box-xl};
28
+
29
+ /**
30
+ * 25 px spacing for boxex
31
+ */
32
+ --bch-decision-spacing-box-spacing-box-xxl: #{decision-spacing-box.$spacing-box-xxl};
33
+ }