@brightspot/ui 1.0.1-4 → 1.0.1-pr18.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 +4 -33
- package/custom-elements.json +187 -0
- package/dist/LucideDynamicLoader.d.ts +5 -0
- package/dist/LucideDynamicLoader.d.ts.map +1 -0
- package/dist/LucideDynamicLoader.js +4 -3
- package/dist/LucideDynamicLoader.js.map +1 -0
- package/dist/LucideDynamicLoader.ts +3 -3
- package/dist/components/badge/Badge.d.ts +83 -0
- package/dist/components/badge/Badge.d.ts.map +1 -0
- package/dist/components/badge/Badge.js +121 -0
- package/dist/components/badge/Badge.js.map +1 -0
- package/dist/global.d.ts +14 -0
- package/dist/storybook/assets/Badge.stories-DEsdluIh.js +121 -0
- package/dist/storybook/assets/{Button.stories-Cr7Qwtjy.js → Button.stories-gjqwP9Dd.js} +1 -1
- package/dist/storybook/assets/Color-64QXVMR3-zvVywvcs.js +1 -0
- package/dist/storybook/assets/{Colors.stories-DTkJ49c0.js → Colors.stories-BSHTes66.js} +2 -2
- package/dist/storybook/assets/{Heading.stories-DAeD9lW6.js → Heading.stories-CuxV5Ha4.js} +1 -1
- package/dist/storybook/assets/{Icon.stories-cnRmIS9M.js → Icon.stories-ECH3sQLo.js} +1592 -9552
- package/dist/storybook/assets/Loader.stories-C_Nt0MWZ.js +3 -0
- package/dist/storybook/assets/{ScrollShadow.stories-DPlCRYP5.js → ScrollShadow.stories-AVqXbAPK.js} +1 -1
- package/dist/storybook/assets/WithTooltip-SK46ZJ2J-CfHHW7CI.js +825 -0
- package/dist/storybook/assets/formatter-OMEEQ6HG-f5NO_AKZ.js +1 -0
- package/dist/storybook/assets/iframe-ubZg9Abb.css +1 -0
- package/dist/storybook/assets/iframe-zcxd989B.js +1087 -0
- package/dist/storybook/assets/index-DCmyvMEs.js +1 -0
- package/dist/storybook/assets/syntaxhighlighter-CAVLW7PM-MI_0amTU.js +6 -0
- package/dist/storybook/iframe.html +4 -4
- package/dist/storybook/index.html +2 -13
- package/dist/storybook/index.json +1 -1
- package/dist/storybook/project.json +1 -1
- package/dist/storybook/sb-addons/docs-1/manager-bundle.js +1 -149
- package/dist/storybook/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +158 -323
- package/dist/storybook/sb-manager/globals-runtime.js +79814 -65954
- package/dist/storybook/sb-manager/globals.js +7 -16
- package/dist/storybook/sb-manager/runtime.js +15451 -9508
- package/dist/storybook/vite-inject-mocker-entry.js +1 -17
- package/dist/tailwind-plugin-badge.d.ts +2 -0
- package/dist/tailwind-plugin-badge.d.ts.map +1 -0
- package/dist/tailwind-plugin-badge.js +28 -12
- package/dist/tailwind-plugin-badge.js.map +1 -0
- package/dist/tailwind-plugin-badge.ts +34 -15
- package/dist/tailwind-plugin-button.d.ts +2 -0
- package/dist/tailwind-plugin-button.d.ts.map +1 -0
- package/dist/tailwind-plugin-button.js +2 -5
- package/dist/tailwind-plugin-button.js.map +1 -0
- package/dist/tailwind-plugin-button.ts +8 -21
- package/dist/tailwind-plugin-heading.d.ts +2 -0
- package/dist/tailwind-plugin-heading.d.ts.map +1 -0
- package/dist/tailwind-plugin-heading.js +1 -0
- package/dist/tailwind-plugin-heading.js.map +1 -0
- package/dist/tailwind-plugin-icon.d.ts +2 -0
- package/dist/tailwind-plugin-icon.d.ts.map +1 -0
- package/dist/tailwind-plugin-icon.js +8 -7
- package/dist/tailwind-plugin-icon.js.map +1 -0
- package/dist/tailwind-plugin-icon.ts +16 -25
- package/dist/tailwind-plugin-loader.d.ts +2 -0
- package/dist/tailwind-plugin-loader.d.ts.map +1 -0
- package/dist/tailwind-plugin-loader.js +1 -0
- package/dist/tailwind-plugin-loader.js.map +1 -0
- package/dist/tailwind-plugin-scroll-shadow.d.ts +2 -0
- package/dist/tailwind-plugin-scroll-shadow.d.ts.map +1 -0
- package/dist/tailwind-plugin-scroll-shadow.js +16 -1
- package/dist/tailwind-plugin-scroll-shadow.js.map +1 -0
- package/dist/tailwind-plugin-scroll-shadow.ts +33 -22
- package/dist/tailwind-plugin-theme.d.ts +2 -0
- package/dist/tailwind-plugin-theme.d.ts.map +1 -0
- package/dist/tailwind-plugin-theme.js +2 -3
- package/dist/tailwind-plugin-theme.js.map +1 -0
- package/dist/tailwind-plugin-theme.ts +4 -15
- package/dist/tailwind.config.d.ts +693 -0
- package/dist/tailwind.config.d.ts.map +1 -0
- package/dist/tailwind.config.js +2 -4
- package/dist/tailwind.config.js.map +1 -0
- package/dist/tailwind.config.ts +2 -6
- package/dist/util/string.d.ts +3 -0
- package/dist/util/string.d.ts.map +1 -0
- package/dist/util/string.js +2 -1
- package/dist/util/string.js.map +1 -0
- package/dist/util/svg.d.ts +3 -0
- package/dist/util/svg.d.ts.map +1 -0
- package/dist/util/svg.js +1 -0
- package/dist/util/svg.js.map +1 -0
- package/dist/utils/EventEmitterMixin.d.ts +63 -0
- package/dist/utils/EventEmitterMixin.d.ts.map +1 -0
- package/dist/utils/EventEmitterMixin.js +74 -0
- package/dist/utils/EventEmitterMixin.js.map +1 -0
- package/package.json +47 -18
- package/dist/storybook/assets/Badge.stories-BTUP8EEA.js +0 -47
- package/dist/storybook/assets/Color-AVL7NMMY-FwGGzq-S.js +0 -1
- package/dist/storybook/assets/DocsRenderer-PQXLIZUC-czZuJbjz.js +0 -1286
- package/dist/storybook/assets/Loader.stories-i7TFXki_.js +0 -7
- package/dist/storybook/assets/iframe-CgQYHqh5.css +0 -1
- package/dist/storybook/assets/iframe-KLSeZXhG.js +0 -1059
- package/dist/storybook/assets/index-Du6pvkZG.js +0 -1
- package/dist/storybook/sb-manager/globals-module-info.js +0 -797
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import plugin from 'tailwindcss/plugin'
|
|
2
|
-
import icons from 'lucide-static/font/info.json'
|
|
3
1
|
import * as LucideExports from 'lucide-static/dist/cjs/lucide-static'
|
|
4
|
-
import
|
|
5
|
-
import
|
|
2
|
+
import icons from 'lucide-static/font/info.json' with { type: 'json' }
|
|
3
|
+
import plugin from 'tailwindcss/plugin'
|
|
4
|
+
import { pascalToKebab } from './util/string.js'
|
|
5
|
+
import { addNameSpaceXML, encodeSVG } from './util/svg.js'
|
|
6
6
|
declare let module: any
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -89,7 +89,7 @@ module.exports = plugin(
|
|
|
89
89
|
})
|
|
90
90
|
|
|
91
91
|
addComponents(
|
|
92
|
-
Object.entries(icons).map(
|
|
92
|
+
Object.entries(icons).map(value => {
|
|
93
93
|
return {
|
|
94
94
|
[prefix + value[0]]: {
|
|
95
95
|
'--tw-content': `'${value[1].encodedCode}'`,
|
|
@@ -99,7 +99,7 @@ module.exports = plugin(
|
|
|
99
99
|
)
|
|
100
100
|
matchUtilities(
|
|
101
101
|
{
|
|
102
|
-
'btu-icon-gradient':
|
|
102
|
+
'btu-icon-gradient': value => ({
|
|
103
103
|
'background-image': value,
|
|
104
104
|
'background-repeat': 'no-repeat',
|
|
105
105
|
'background-position': 'center',
|
|
@@ -108,30 +108,21 @@ module.exports = plugin(
|
|
|
108
108
|
},
|
|
109
109
|
{
|
|
110
110
|
values: {
|
|
111
|
-
ai:
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
'theme(backgroundImage.purple-gradient)',
|
|
121
|
-
rose:
|
|
122
|
-
'theme(backgroundImage.rose-gradient)',
|
|
123
|
-
success:
|
|
124
|
-
'theme(backgroundImage.success-gradient)',
|
|
125
|
-
teal:
|
|
126
|
-
'theme(backgroundImage.teal-gradient)',
|
|
127
|
-
warning:
|
|
128
|
-
'theme(backgroundImage.warning-gradient)',
|
|
111
|
+
ai: 'theme(backgroundImage.ai-gradient)',
|
|
112
|
+
error: 'theme(backgroundImage.error-gradient)',
|
|
113
|
+
gray: 'theme(backgroundImage.gray-gradient)',
|
|
114
|
+
primary: 'theme(backgroundImage.primary-gradient)',
|
|
115
|
+
purple: 'theme(backgroundImage.purple-gradient)',
|
|
116
|
+
rose: 'theme(backgroundImage.rose-gradient)',
|
|
117
|
+
success: 'theme(backgroundImage.success-gradient)',
|
|
118
|
+
teal: 'theme(backgroundImage.teal-gradient)',
|
|
119
|
+
warning: 'theme(backgroundImage.warning-gradient)',
|
|
129
120
|
},
|
|
130
121
|
},
|
|
131
122
|
)
|
|
132
123
|
matchUtilities(
|
|
133
124
|
{
|
|
134
|
-
'btu-icon':
|
|
125
|
+
'btu-icon': value => ({
|
|
135
126
|
'--Icon-size': value,
|
|
136
127
|
}),
|
|
137
128
|
},
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tailwind-plugin-loader.d.ts","sourceRoot":"","sources":["../src/tailwind-plugin-loader.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tailwind-plugin-loader.js","sourceRoot":"","sources":["../src/tailwind-plugin-loader.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,oBAAoB,CAAA;AAGvC;;;;;;;;;;;;;;;;;;GAkBG;AAEH,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC,UAAU,EAAE,aAAa,EAAE,KAAK,EAAE;IACxD,MAAM,MAAM,GAAG;QACb,eAAe,EAAE,MAAM;QACvB,OAAO,EAAE,OAAO;QAChB,OAAO,EAAE,mBAAmB;QAC5B,cAAc,EAAE,mKAAmK,kBAAkB,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAC,mCAAmC,kBAAkB,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC,2HAA2H,kBAAkB,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC,mCAAmC,kBAAkB,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAAC,65BAA65B;KAC99C,CAAA;IACD,aAAa,CAAC;QACZ,aAAa,EAAE,MAAM;KACtB,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tailwind-plugin-scroll-shadow.d.ts","sourceRoot":"","sources":["../src/tailwind-plugin-scroll-shadow.ts"],"names":[],"mappings":""}
|
|
@@ -62,7 +62,7 @@ module.exports = plugin(function ({ addComponents, addBase }) {
|
|
|
62
62
|
},
|
|
63
63
|
},
|
|
64
64
|
});
|
|
65
|
-
const stops = [25, 50, 100, 200, 300, 400, 500, 600, 700, 800, 900].forEach(
|
|
65
|
+
const stops = [25, 50, 100, 200, 300, 400, 500, 600, 700, 800, 900].forEach(n => {
|
|
66
66
|
const key = `.btu-scrollshadow-${n}`;
|
|
67
67
|
addComponents({
|
|
68
68
|
[key]: Object.assign({}, shared, {
|
|
@@ -77,7 +77,22 @@ module.exports = plugin(function ({ addComponents, addBase }) {
|
|
|
77
77
|
'animation-direction': 'reverse',
|
|
78
78
|
'animation-range': 'calc(100% - 3ch) calc(100% - 0ch)',
|
|
79
79
|
},
|
|
80
|
+
'[dir="rtl"] &:before': {
|
|
81
|
+
left: 'auto',
|
|
82
|
+
right: '0px',
|
|
83
|
+
'background-image': `linear-gradient(to right, transparent, oklch(var(--btu-theme-gray-${n})/0.9) 90% 100%)`,
|
|
84
|
+
'animation-direction': 'reverse',
|
|
85
|
+
'animation-range': 'calc(100% - 3ch) calc(100% - 0ch)',
|
|
86
|
+
},
|
|
87
|
+
'[dir="rtl"] &:after': {
|
|
88
|
+
right: 'auto',
|
|
89
|
+
left: '0px',
|
|
90
|
+
'background-image': `linear-gradient(to left, transparent, oklch(var(--btu-theme-gray-${n})/0.9) 90% 100%)`,
|
|
91
|
+
'animation-direction': 'normal',
|
|
92
|
+
'animation-range': '0ch 3ch',
|
|
93
|
+
},
|
|
80
94
|
}),
|
|
81
95
|
});
|
|
82
96
|
});
|
|
83
97
|
});
|
|
98
|
+
//# sourceMappingURL=tailwind-plugin-scroll-shadow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tailwind-plugin-scroll-shadow.js","sourceRoot":"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AG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;QAC9E,MAAM,GAAG,GAAG,qBAAqB,CAAC,EAAE,CAAA;QACpC,aAAa,CAAC;YACZ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE;gBAC/B,UAAU,EAAE;oBACV,IAAI,EAAE,KAAK;oBACX,kBAAkB,EAAE,oEAAoE,CAAC,kBAAkB;oBAC3G,iBAAiB,EAAE,SAAS;iBAC7B;gBACD,SAAS,EAAE;oBACT,KAAK,EAAE,KAAK;oBACZ,kBAAkB,EAAE,qEAAqE,CAAC,kBAAkB;oBAC5G,qBAAqB,EAAE,SAAS;oBAChC,iBAAiB,EAAE,mCAAmC;iBACvD;gBACD,sBAAsB,EAAE;oBACtB,IAAI,EAAE,MAAM;oBACZ,KAAK,EAAE,KAAK;oBACZ,kBAAkB,EAAE,qEAAqE,CAAC,kBAAkB;oBAC5G,qBAAqB,EAAE,SAAS;oBAChC,iBAAiB,EAAE,mCAAmC;iBACvD;gBACD,qBAAqB,EAAE;oBACrB,KAAK,EAAE,MAAM;oBACb,IAAI,EAAE,KAAK;oBACX,kBAAkB,EAAE,oEAAoE,CAAC,kBAAkB;oBAC3G,qBAAqB,EAAE,QAAQ;oBAC/B,iBAAiB,EAAE,SAAS;iBAC7B;aACF,CAAC;SACH,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
|
@@ -45,8 +45,7 @@ module.exports = plugin(function ({ addComponents, addBase }) {
|
|
|
45
45
|
position: 'sticky',
|
|
46
46
|
bottom: '0px',
|
|
47
47
|
top: '0px',
|
|
48
|
-
visibility:
|
|
49
|
-
'var(--visibility-if-can-scroll, var(--visibility-if-cant-scroll))',
|
|
48
|
+
visibility: 'var(--visibility-if-can-scroll, var(--visibility-if-cant-scroll))',
|
|
50
49
|
'z-index': '10',
|
|
51
50
|
},
|
|
52
51
|
},
|
|
@@ -68,24 +67,36 @@ module.exports = plugin(function ({ addComponents, addBase }) {
|
|
|
68
67
|
},
|
|
69
68
|
})
|
|
70
69
|
|
|
71
|
-
const stops = [25, 50, 100, 200, 300, 400, 500, 600, 700, 800, 900].forEach(
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
'
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
'
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
70
|
+
const stops = [25, 50, 100, 200, 300, 400, 500, 600, 700, 800, 900].forEach(n => {
|
|
71
|
+
const key = `.btu-scrollshadow-${n}`
|
|
72
|
+
addComponents({
|
|
73
|
+
[key]: Object.assign({}, shared, {
|
|
74
|
+
'&:before': {
|
|
75
|
+
left: '0px',
|
|
76
|
+
'background-image': `linear-gradient(to left, transparent, oklch(var(--btu-theme-gray-${n})/0.9) 90% 100%)`,
|
|
77
|
+
'animation-range': '0ch 3ch',
|
|
78
|
+
},
|
|
79
|
+
'&:after': {
|
|
80
|
+
right: '0px',
|
|
81
|
+
'background-image': `linear-gradient(to right, transparent, oklch(var(--btu-theme-gray-${n})/0.9) 90% 100%)`,
|
|
82
|
+
'animation-direction': 'reverse',
|
|
83
|
+
'animation-range': 'calc(100% - 3ch) calc(100% - 0ch)',
|
|
84
|
+
},
|
|
85
|
+
'[dir="rtl"] &:before': {
|
|
86
|
+
left: 'auto',
|
|
87
|
+
right: '0px',
|
|
88
|
+
'background-image': `linear-gradient(to right, transparent, oklch(var(--btu-theme-gray-${n})/0.9) 90% 100%)`,
|
|
89
|
+
'animation-direction': 'reverse',
|
|
90
|
+
'animation-range': 'calc(100% - 3ch) calc(100% - 0ch)',
|
|
91
|
+
},
|
|
92
|
+
'[dir="rtl"] &:after': {
|
|
93
|
+
right: 'auto',
|
|
94
|
+
left: '0px',
|
|
95
|
+
'background-image': `linear-gradient(to left, transparent, oklch(var(--btu-theme-gray-${n})/0.9) 90% 100%)`,
|
|
96
|
+
'animation-direction': 'normal',
|
|
97
|
+
'animation-range': '0ch 3ch',
|
|
98
|
+
},
|
|
99
|
+
}),
|
|
100
|
+
})
|
|
101
|
+
})
|
|
91
102
|
})
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tailwind-plugin-theme.d.ts","sourceRoot":"","sources":["../src/tailwind-plugin-theme.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,WAAW,GACnB,IAAI,GACJ,OAAO,GACP,OAAO,GACP,SAAS,GACT,MAAM,GACN,MAAM,GACN,QAAQ,GACR,MAAM,GACN,OAAO,GACP,SAAS,GACT,SAAS,CAAA"}
|
|
@@ -9,9 +9,7 @@ module.exports = plugin(function ({ addUtilities, theme }) {
|
|
|
9
9
|
const lightStylesHC = new Map();
|
|
10
10
|
const darkStylesHC = new Map();
|
|
11
11
|
const HCChromaFactor = 0.01;
|
|
12
|
-
const HCLightnessFactors = [
|
|
13
|
-
0.01, 0.01, 0.03, 0.07, 0.07, 0.07, 0.08, 0.08, 0.08, 0.09, 0.09,
|
|
14
|
-
];
|
|
12
|
+
const HCLightnessFactors = [0.01, 0.01, 0.03, 0.07, 0.07, 0.07, 0.08, 0.08, 0.08, 0.09, 0.09];
|
|
15
13
|
lightStyles.set('--btu-theme-primary-hue', '264'); /* 264 = Closest average primary hue to design system */
|
|
16
14
|
lightStyles.set('--btu-theme-error-hue', '27'); /* 27 = Closest average red hue to design system */
|
|
17
15
|
lightStyles.set('--btu-theme-success-hue', '157'); /* 157 = Closest average green hue to design system */
|
|
@@ -46,3 +44,4 @@ module.exports = plugin(function ({ addUtilities, theme }) {
|
|
|
46
44
|
'.darkTheme-highcontrast': Object.fromEntries(darkStylesHC.entries()),
|
|
47
45
|
});
|
|
48
46
|
});
|
|
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CAAC,cAAc,kBAAkB,CAAC,KAAK,EAAE,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,cAAc,KAAK,KAAK,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,cAAc,KAAK,CAC9K,CAAA;gBACH,CAAC;YACH,CAAC;QACH,CAAC;IACH,CAAC;IAED,YAAY,CAAC;QACX,aAAa,EAAE,MAAM,CAAC,WAAW,CAAC,WAAW,CAAC,OAAO,EAAE,CAAC;QACxD,0BAA0B,EAAE,MAAM,CAAC,WAAW,CAAC,aAAa,CAAC,OAAO,EAAE,CAAC;QACvE,YAAY,EAAE,MAAM,CAAC,WAAW,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC;QACtD,yBAAyB,EAAE,MAAM,CAAC,WAAW,CAAC,YAAY,CAAC,OAAO,EAAE,CAAC;KACtE,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
|
@@ -24,22 +24,11 @@ module.exports = plugin(function ({ addUtilities, theme }) {
|
|
|
24
24
|
const lightStylesHC = new Map()
|
|
25
25
|
const darkStylesHC = new Map()
|
|
26
26
|
const HCChromaFactor = 0.01
|
|
27
|
-
const HCLightnessFactors = [
|
|
28
|
-
0.01, 0.01, 0.03, 0.07, 0.07, 0.07, 0.08, 0.08, 0.08, 0.09, 0.09,
|
|
29
|
-
]
|
|
27
|
+
const HCLightnessFactors = [0.01, 0.01, 0.03, 0.07, 0.07, 0.07, 0.08, 0.08, 0.08, 0.09, 0.09]
|
|
30
28
|
|
|
31
|
-
lightStyles.set(
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
) /* 264 = Closest average primary hue to design system */
|
|
35
|
-
lightStyles.set(
|
|
36
|
-
'--btu-theme-error-hue',
|
|
37
|
-
'27',
|
|
38
|
-
) /* 27 = Closest average red hue to design system */
|
|
39
|
-
lightStyles.set(
|
|
40
|
-
'--btu-theme-success-hue',
|
|
41
|
-
'157',
|
|
42
|
-
) /* 157 = Closest average green hue to design system */
|
|
29
|
+
lightStyles.set('--btu-theme-primary-hue', '264') /* 264 = Closest average primary hue to design system */
|
|
30
|
+
lightStyles.set('--btu-theme-error-hue', '27') /* 27 = Closest average red hue to design system */
|
|
31
|
+
lightStyles.set('--btu-theme-success-hue', '157') /* 157 = Closest average green hue to design system */
|
|
43
32
|
lightStyles.set('--btu-theme-white', theme('colors.white.light'))
|
|
44
33
|
lightStyles.set('--btu-theme-black', theme('colors.black.light'))
|
|
45
34
|
|