@bcc-code/design-tokens 3.0.4 → 3.0.6
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 +101 -62
- package/build/bcc/aura-bcc-config.js +1148 -0
- package/build/bcc/tailwind-dark.css +97 -0
- package/build/bcc/tailwind-light.css +97 -0
- package/config/primevue.config.d.ts +7 -7
- package/config/primevue.config.js +23 -121
- package/package.json +42 -41
- package/build/bcc/primitives.js +0 -257
|
@@ -168,6 +168,7 @@
|
|
|
168
168
|
--spacing-600: 3rem; /** 48px */
|
|
169
169
|
--spacing-800: 4rem; /** 64px */
|
|
170
170
|
--spacing-1000: 5rem; /** 80px */
|
|
171
|
+
--spacing: 0.5rem;
|
|
171
172
|
--spacing-negative-25: -0.125rem; /** -2px */
|
|
172
173
|
--spacing-negative-50: -0.25rem; /** -4px */
|
|
173
174
|
--spacing-negative-75: -0.375rem; /** -6px */
|
|
@@ -451,3 +452,99 @@
|
|
|
451
452
|
@utility icon-* {
|
|
452
453
|
color: --value(--color-icon-*);
|
|
453
454
|
}
|
|
455
|
+
|
|
456
|
+
@utility p-* {
|
|
457
|
+
padding: --value(--spacing-*);
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
@utility px-* {
|
|
461
|
+
padding-inline: --value(--spacing-*);
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
@utility py-* {
|
|
465
|
+
padding-block: --value(--spacing-*);
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
@utility pt-* {
|
|
469
|
+
padding-top: --value(--spacing-*);
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
@utility pr-* {
|
|
473
|
+
padding-right: --value(--spacing-*);
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
@utility pb-* {
|
|
477
|
+
padding-bottom: --value(--spacing-*);
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
@utility pl-* {
|
|
481
|
+
padding-left: --value(--spacing-*);
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
@utility m-* {
|
|
485
|
+
margin: --value(--spacing-*);
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
@utility mx-* {
|
|
489
|
+
margin-inline: --value(--spacing-*);
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
@utility my-* {
|
|
493
|
+
margin-block: --value(--spacing-*);
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
@utility mt-* {
|
|
497
|
+
margin-top: --value(--spacing-*);
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
@utility mr-* {
|
|
501
|
+
margin-right: --value(--spacing-*);
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
@utility mb-* {
|
|
505
|
+
margin-bottom: --value(--spacing-*);
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
@utility ml-* {
|
|
509
|
+
margin-left: --value(--spacing-*);
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
@utility gap-* {
|
|
513
|
+
gap: --value(--spacing-*);
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
@utility gap-x-* {
|
|
517
|
+
column-gap: --value(--spacing-*);
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
@utility gap-y-* {
|
|
521
|
+
row-gap: --value(--spacing-*);
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
@utility -m-* {
|
|
525
|
+
margin: --value(--spacing-negative-*);
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
@utility -mx-* {
|
|
529
|
+
margin-inline: --value(--spacing-negative-*);
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
@utility -my-* {
|
|
533
|
+
margin-block: --value(--spacing-negative-*);
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
@utility -mt-* {
|
|
537
|
+
margin-top: --value(--spacing-negative-*);
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
@utility -mr-* {
|
|
541
|
+
margin-right: --value(--spacing-negative-*);
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
@utility -mb-* {
|
|
545
|
+
margin-bottom: --value(--spacing-negative-*);
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
@utility -ml-* {
|
|
549
|
+
margin-left: --value(--spacing-negative-*);
|
|
550
|
+
}
|
|
@@ -166,6 +166,7 @@
|
|
|
166
166
|
--spacing-600: 3rem; /** 48px */
|
|
167
167
|
--spacing-800: 4rem; /** 64px */
|
|
168
168
|
--spacing-1000: 5rem; /** 80px */
|
|
169
|
+
--spacing: 0.5rem;
|
|
169
170
|
--spacing-negative-25: -0.125rem; /** -2px */
|
|
170
171
|
--spacing-negative-50: -0.25rem; /** -4px */
|
|
171
172
|
--spacing-negative-75: -0.375rem; /** -6px */
|
|
@@ -535,3 +536,99 @@
|
|
|
535
536
|
@utility icon-* {
|
|
536
537
|
color: --value(--color-icon-*);
|
|
537
538
|
}
|
|
539
|
+
|
|
540
|
+
@utility p-* {
|
|
541
|
+
padding: --value(--spacing-*);
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
@utility px-* {
|
|
545
|
+
padding-inline: --value(--spacing-*);
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
@utility py-* {
|
|
549
|
+
padding-block: --value(--spacing-*);
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
@utility pt-* {
|
|
553
|
+
padding-top: --value(--spacing-*);
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
@utility pr-* {
|
|
557
|
+
padding-right: --value(--spacing-*);
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
@utility pb-* {
|
|
561
|
+
padding-bottom: --value(--spacing-*);
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
@utility pl-* {
|
|
565
|
+
padding-left: --value(--spacing-*);
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
@utility m-* {
|
|
569
|
+
margin: --value(--spacing-*);
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
@utility mx-* {
|
|
573
|
+
margin-inline: --value(--spacing-*);
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
@utility my-* {
|
|
577
|
+
margin-block: --value(--spacing-*);
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
@utility mt-* {
|
|
581
|
+
margin-top: --value(--spacing-*);
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
@utility mr-* {
|
|
585
|
+
margin-right: --value(--spacing-*);
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
@utility mb-* {
|
|
589
|
+
margin-bottom: --value(--spacing-*);
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
@utility ml-* {
|
|
593
|
+
margin-left: --value(--spacing-*);
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
@utility gap-* {
|
|
597
|
+
gap: --value(--spacing-*);
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
@utility gap-x-* {
|
|
601
|
+
column-gap: --value(--spacing-*);
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
@utility gap-y-* {
|
|
605
|
+
row-gap: --value(--spacing-*);
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
@utility -m-* {
|
|
609
|
+
margin: --value(--spacing-negative-*);
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
@utility -mx-* {
|
|
613
|
+
margin-inline: --value(--spacing-negative-*);
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
@utility -my-* {
|
|
617
|
+
margin-block: --value(--spacing-negative-*);
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
@utility -mt-* {
|
|
621
|
+
margin-top: --value(--spacing-negative-*);
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
@utility -mr-* {
|
|
625
|
+
margin-right: --value(--spacing-negative-*);
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
@utility -mb-* {
|
|
629
|
+
margin-bottom: --value(--spacing-negative-*);
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
@utility -ml-* {
|
|
633
|
+
margin-left: --value(--spacing-negative-*);
|
|
634
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
declare module "*primevue.config.js" {
|
|
2
|
-
export const BCCPreset: any;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
declare module "@bcc-code/design-tokens/primevue" {
|
|
6
|
-
export const BCCPreset: any;
|
|
7
|
-
}
|
|
1
|
+
declare module "*primevue.config.js" {
|
|
2
|
+
export const BCCPreset: any;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
declare module "@bcc-code/design-tokens/primevue" {
|
|
6
|
+
export const BCCPreset: any;
|
|
7
|
+
}
|
|
@@ -1,121 +1,23 @@
|
|
|
1
|
-
import { definePreset } from "@primeuix/themes";
|
|
2
|
-
import Aura from "@primeuix/themes/aura";
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
2: primitives["border-width"][2],
|
|
25
|
-
},
|
|
26
|
-
fontFamily: {
|
|
27
|
-
archivo: primitives["font-family"].archivo,
|
|
28
|
-
},
|
|
29
|
-
fontSize: {
|
|
30
|
-
xs: primitives["font-size"].xs,
|
|
31
|
-
xl: primitives["font-size"].xl,
|
|
32
|
-
sm: primitives["font-size"].sm,
|
|
33
|
-
md: primitives["font-size"].md,
|
|
34
|
-
lg: primitives["font-size"].lg,
|
|
35
|
-
"2xl": primitives["font-size"]["2xl"],
|
|
36
|
-
"3xl": primitives["font-size"]["3xl"],
|
|
37
|
-
"4xl": primitives["font-size"]["4xl"],
|
|
38
|
-
},
|
|
39
|
-
fontWeight: {
|
|
40
|
-
regular: primitives["font-weight"].regular,
|
|
41
|
-
medium: primitives["font-weight"].medium,
|
|
42
|
-
bold: primitives["font-weight"].bold,
|
|
43
|
-
},
|
|
44
|
-
lineHeight: {
|
|
45
|
-
1: primitives["line-height"][1],
|
|
46
|
-
2: primitives["line-height"][2],
|
|
47
|
-
3: primitives["line-height"][3],
|
|
48
|
-
4: primitives["line-height"][4],
|
|
49
|
-
5: primitives["line-height"][5],
|
|
50
|
-
6: primitives["line-height"][6],
|
|
51
|
-
7: primitives["line-height"][7],
|
|
52
|
-
8: primitives["line-height"][8],
|
|
53
|
-
9: primitives["line-height"][9],
|
|
54
|
-
10: primitives["line-height"][10],
|
|
55
|
-
},
|
|
56
|
-
space: {
|
|
57
|
-
0: primitives.space[0],
|
|
58
|
-
25: primitives.space[25],
|
|
59
|
-
50: primitives.space[50],
|
|
60
|
-
75: primitives.space[75],
|
|
61
|
-
100: primitives.space[100],
|
|
62
|
-
150: primitives.space[150],
|
|
63
|
-
200: primitives.space[200],
|
|
64
|
-
250: primitives.space[250],
|
|
65
|
-
300: primitives.space[300],
|
|
66
|
-
400: primitives.space[400],
|
|
67
|
-
500: primitives.space[500],
|
|
68
|
-
600: primitives.space[600],
|
|
69
|
-
800: primitives.space[800],
|
|
70
|
-
1000: primitives.space[1000],
|
|
71
|
-
negative: {
|
|
72
|
-
25: primitives.space.negative[25],
|
|
73
|
-
50: primitives.space.negative[50],
|
|
74
|
-
75: primitives.space.negative[75],
|
|
75
|
-
100: primitives.space.negative[100],
|
|
76
|
-
150: primitives.space.negative[150],
|
|
77
|
-
200: primitives.space.negative[200],
|
|
78
|
-
250: primitives.space.negative[250],
|
|
79
|
-
300: primitives.space.negative[300],
|
|
80
|
-
400: primitives.space.negative[400],
|
|
81
|
-
},
|
|
82
|
-
},
|
|
83
|
-
},
|
|
84
|
-
semantic: {
|
|
85
|
-
primary: {
|
|
86
|
-
50: "{dark-green.100}",
|
|
87
|
-
100: "{dark-green.200}",
|
|
88
|
-
200: "{dark-green.300}",
|
|
89
|
-
300: "{dark-green.400}",
|
|
90
|
-
400: "{dark-green.500}",
|
|
91
|
-
500: "{dark-green.600}",
|
|
92
|
-
600: "{dark-green.700}",
|
|
93
|
-
700: "{dark-green.800}",
|
|
94
|
-
800: "{dark-green.900}",
|
|
95
|
-
900: "{dark-green.1000}",
|
|
96
|
-
950: "{dark-green.1000}",
|
|
97
|
-
},
|
|
98
|
-
colorScheme: {
|
|
99
|
-
dark: {
|
|
100
|
-
shadow: {
|
|
101
|
-
overflow: {
|
|
102
|
-
default: darkTokens.elevation.shadow.overflow.default,
|
|
103
|
-
perimeter: darkTokens.elevation.shadow.overflow.perimeter,
|
|
104
|
-
spread: darkTokens.elevation.shadow.overflow.spread,
|
|
105
|
-
},
|
|
106
|
-
overlay: darkTokens.elevation.shadow.overlay,
|
|
107
|
-
raised: darkTokens.elevation.shadow.raised,
|
|
108
|
-
},
|
|
109
|
-
},
|
|
110
|
-
light: {
|
|
111
|
-
shadow: {
|
|
112
|
-
overflow: lightTokens.elevation.shadow.overlay,
|
|
113
|
-
overlay: lightTokens.elevation.shadow.overlay,
|
|
114
|
-
raised: lightTokens.elevation.shadow.raised,
|
|
115
|
-
},
|
|
116
|
-
},
|
|
117
|
-
},
|
|
118
|
-
},
|
|
119
|
-
});
|
|
120
|
-
|
|
121
|
-
export default BCCPreset;
|
|
1
|
+
import { definePreset } from "@primeuix/themes";
|
|
2
|
+
import Aura from "@primeuix/themes/aura";
|
|
3
|
+
|
|
4
|
+
import tokens from "../build/bcc/aura-bcc-config.js";
|
|
5
|
+
|
|
6
|
+
const BCCPreset = definePreset(Aura, {
|
|
7
|
+
primitive: {
|
|
8
|
+
...tokens["aura/primitive"],
|
|
9
|
+
},
|
|
10
|
+
semantic: {
|
|
11
|
+
...tokens["aura/semantic"],
|
|
12
|
+
colorScheme: {
|
|
13
|
+
dark: {
|
|
14
|
+
...tokens["aura/semantic/dark"],
|
|
15
|
+
},
|
|
16
|
+
light: {
|
|
17
|
+
...tokens["aura/semantic/light"],
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
export default BCCPreset;
|
package/package.json
CHANGED
|
@@ -1,41 +1,42 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@bcc-code/design-tokens",
|
|
3
|
-
"version": "3.0.
|
|
4
|
-
"description": "Design tokens build system",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"exports": {
|
|
7
|
-
"./css/light": "./build/bcc/light.css",
|
|
8
|
-
"./css/dark": "./build/bcc/dark.css",
|
|
9
|
-
"./tailwind/light": "./build/bcc/tailwind-light.css",
|
|
10
|
-
"./tailwind/dark": "./build/bcc/tailwind-dark.css",
|
|
11
|
-
"./primevue": {
|
|
12
|
-
"import": "./config/primevue.config.js",
|
|
13
|
-
"types": "./config/primevue.config.d.ts"
|
|
14
|
-
},
|
|
15
|
-
"./package.json": "./package.json"
|
|
16
|
-
},
|
|
17
|
-
"files": [
|
|
18
|
-
"build/**/*",
|
|
19
|
-
"config/primevue.config.js",
|
|
20
|
-
"config/primevue.config.d.ts",
|
|
21
|
-
"README.md",
|
|
22
|
-
"package.json"
|
|
23
|
-
],
|
|
24
|
-
"scripts": {
|
|
25
|
-
"build": "node export-tokens/build.js"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
"
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@bcc-code/design-tokens",
|
|
3
|
+
"version": "3.0.6",
|
|
4
|
+
"description": "Design tokens build system",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"exports": {
|
|
7
|
+
"./css/light": "./build/bcc/light.css",
|
|
8
|
+
"./css/dark": "./build/bcc/dark.css",
|
|
9
|
+
"./tailwind/light": "./build/bcc/tailwind-light.css",
|
|
10
|
+
"./tailwind/dark": "./build/bcc/tailwind-dark.css",
|
|
11
|
+
"./primevue": {
|
|
12
|
+
"import": "./config/primevue.config.js",
|
|
13
|
+
"types": "./config/primevue.config.d.ts"
|
|
14
|
+
},
|
|
15
|
+
"./package.json": "./package.json"
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"build/**/*",
|
|
19
|
+
"config/primevue.config.js",
|
|
20
|
+
"config/primevue.config.d.ts",
|
|
21
|
+
"README.md",
|
|
22
|
+
"package.json"
|
|
23
|
+
],
|
|
24
|
+
"scripts": {
|
|
25
|
+
"build": "node export-tokens/build.js",
|
|
26
|
+
"prepublishOnly": "npm run build"
|
|
27
|
+
},
|
|
28
|
+
"author": "BCC Code",
|
|
29
|
+
"license": "MIT",
|
|
30
|
+
"repository": {
|
|
31
|
+
"type": "git",
|
|
32
|
+
"url": "https://github.com/bcc-code/bcc-tokens.git"
|
|
33
|
+
},
|
|
34
|
+
"homepage": "https://github.com/bcc-code/bcc-tokens#readme",
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"@tokens-studio/sd-transforms": "^1.3.0",
|
|
37
|
+
"style-dictionary": "^5.0.0"
|
|
38
|
+
},
|
|
39
|
+
"peerDependencies": {
|
|
40
|
+
"@primeuix/themes": "^1.1.1"
|
|
41
|
+
}
|
|
42
|
+
}
|