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.
- package/README.md +15 -0
- package/package.json +31 -0
- package/tokens/converted/all.scss +20 -0
- package/tokens/converted/color/color-background.scss +3 -0
- package/tokens/converted/color/color-text.scss +9 -0
- package/tokens/converted/color/core-color.scss +8 -0
- package/tokens/converted/color-dark.scss +7 -0
- package/tokens/converted/color-light.scss +7 -0
- package/tokens/converted/color.scss +5 -0
- package/tokens/converted/spacing/core-spacing.scss +6 -0
- package/tokens/converted/spacing/spacing-box.scss +29 -0
- package/tokens/converted/spacing.scss +7 -0
- package/tokens/converted/src/color/raw/_core-color.scss +8 -0
- package/tokens/converted/src/color/raw/decision/dark/_decision-color-background.scss +11 -0
- package/tokens/converted/src/color/raw/decision/dark/_decision-color-text.scss +17 -0
- package/tokens/converted/src/color/raw/decision/light/_decision-color-background.scss +11 -0
- package/tokens/converted/src/color/raw/decision/light/_decision-color-text.scss +17 -0
- package/tokens/converted/src/color/web/core-color.scss +12 -0
- package/tokens/converted/src/color/web/dark/color-background.scss +7 -0
- package/tokens/converted/src/color/web/dark/color-text.scss +13 -0
- package/tokens/converted/src/color/web/light/color-background.scss +7 -0
- package/tokens/converted/src/color/web/light/color-text.scss +13 -0
- package/tokens/converted/src/spacing/raw/_core-spacing.scss +6 -0
- package/tokens/converted/src/spacing/raw/decision/_decision-spacing-box.scss +37 -0
- package/tokens/converted/src/spacing/web/core-spacing.scss +10 -0
- 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,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,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,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,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,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
|
+
}
|