@ptsecurity/mosaic 11.4.4 → 11.6.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/_theming.scss +368 -61
- package/_visual.scss +139 -14
- package/bundles/ptsecurity-mosaic-datepicker.umd.js +2 -1
- package/bundles/ptsecurity-mosaic-datepicker.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-datepicker.umd.min.js +1 -1
- package/bundles/ptsecurity-mosaic-datepicker.umd.min.js.map +1 -1
- package/bundles/ptsecurity-mosaic-design-tokens.umd.js +226 -15
- package/bundles/ptsecurity-mosaic-design-tokens.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-design-tokens.umd.min.js +1 -1
- package/bundles/ptsecurity-mosaic-design-tokens.umd.min.js.map +1 -1
- package/bundles/ptsecurity-mosaic-dropdown.umd.js +1 -1
- package/bundles/ptsecurity-mosaic-dropdown.umd.min.js +2 -2
- package/bundles/ptsecurity-mosaic-dropdown.umd.min.js.map +1 -1
- package/bundles/ptsecurity-mosaic-list.umd.js +10 -2
- package/bundles/ptsecurity-mosaic-list.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-list.umd.min.js +1 -1
- package/bundles/ptsecurity-mosaic-list.umd.min.js.map +1 -1
- package/bundles/ptsecurity-mosaic-navbar.umd.js +2 -2
- package/bundles/ptsecurity-mosaic-navbar.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-navbar.umd.min.js +2 -2
- package/bundles/ptsecurity-mosaic-navbar.umd.min.js.map +1 -1
- package/bundles/ptsecurity-mosaic-timepicker.umd.js +1 -1
- package/bundles/ptsecurity-mosaic-timepicker.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-timepicker.umd.min.js +1 -1
- package/bundles/ptsecurity-mosaic-timepicker.umd.min.js.map +1 -1
- package/design-tokens/ptsecurity-mosaic-design-tokens.metadata.json +1 -1
- package/design-tokens/style-dictionary/build.js +56 -0
- package/design-tokens/style-dictionary/configs/css.js +13 -0
- package/design-tokens/style-dictionary/configs/index.js +47 -0
- package/design-tokens/style-dictionary/configs/js.js +9 -0
- package/design-tokens/style-dictionary/configs/scss.js +23 -0
- package/design-tokens/style-dictionary/filters/color.js +7 -0
- package/design-tokens/style-dictionary/filters/palette.js +7 -0
- package/design-tokens/style-dictionary/filters/size.js +7 -0
- package/design-tokens/style-dictionary/filters/typography.js +7 -0
- package/design-tokens/style-dictionary/formats/palette.js +25 -0
- package/design-tokens/style-dictionary/formats/typography.js +52 -0
- package/design-tokens/style-dictionary/transformGroups/css.js +13 -0
- package/design-tokens/style-dictionary/transformGroups/scss.js +12 -0
- package/design-tokens/style-dictionary/transforms/attribute/palette.js +9 -0
- package/design-tokens/style-dictionary/transforms/attribute/prefix.js +11 -0
- package/design-tokens/style-dictionary/transforms/attribute/size.js +8 -0
- package/design-tokens/style-dictionary/transforms/attribute/typography.js +9 -0
- package/design-tokens/tokens/components/alert.json5 +83 -0
- package/design-tokens/tokens/components/autocomplete.json5 +11 -0
- package/design-tokens/tokens/components/badge.json5 +184 -0
- package/design-tokens/tokens/components/button-toggle.json5 +10 -0
- package/design-tokens/tokens/components/button.json5 +143 -0
- package/design-tokens/tokens/components/card.json5 +51 -0
- package/design-tokens/tokens/components/checkbox.json5 +39 -0
- package/design-tokens/tokens/components/datepicker.json5 +64 -0
- package/design-tokens/tokens/components/divider.json5 +8 -0
- package/design-tokens/tokens/components/dropdown.json5 +47 -0
- package/design-tokens/tokens/components/form-field.json5 +52 -0
- package/design-tokens/tokens/components/forms.json5 +52 -0
- package/design-tokens/tokens/components/input.json5 +13 -0
- package/design-tokens/tokens/components/link.json5 +56 -0
- package/design-tokens/tokens/components/list.json5 +19 -0
- package/design-tokens/tokens/components/modal.json5 +67 -0
- package/design-tokens/tokens/components/navbar.json5 +64 -0
- package/design-tokens/tokens/components/optgroup.json5 +10 -0
- package/design-tokens/tokens/components/option.json5 +12 -0
- package/design-tokens/tokens/components/popover.json5 +40 -0
- package/design-tokens/tokens/components/popup.json5 +18 -0
- package/design-tokens/tokens/components/progress-bar.json5 +13 -0
- package/design-tokens/tokens/components/progress-spinner.json5 +7 -0
- package/design-tokens/tokens/components/radio.json5 +45 -0
- package/design-tokens/tokens/components/select.json5 +25 -0
- package/design-tokens/tokens/components/sidepanel.json5 +30 -0
- package/design-tokens/tokens/components/table.json5 +15 -0
- package/design-tokens/tokens/components/tabs.json5 +25 -0
- package/design-tokens/tokens/components/tags.json5 +126 -0
- package/design-tokens/tokens/components/textarea.json5 +12 -0
- package/design-tokens/tokens/components/timepicker.json5 +7 -0
- package/design-tokens/tokens/components/toggle.json5 +55 -0
- package/design-tokens/tokens/components/tooltip.json5 +37 -0
- package/design-tokens/tokens/components/tree.json5 +12 -0
- package/design-tokens/tokens/properties/aliases.json5 +3 -0
- package/design-tokens/tokens/properties/colors.json5 +110 -0
- package/design-tokens/tokens/properties/font.json5 +12 -0
- package/design-tokens/tokens/properties/globals.json5 +30 -0
- package/design-tokens/tokens/properties/padding.json5 +3 -0
- package/design-tokens/tokens/properties/palette.json5 +163 -0
- package/design-tokens/tokens/properties/typography.json5 +140 -0
- package/design-tokens/tokens.d.ts +114 -8
- package/dropdown/ptsecurity-mosaic-dropdown.metadata.json +1 -1
- package/esm2015/datepicker/datepicker-input.directive.js +3 -2
- package/esm2015/design-tokens/tokens.js +115 -10
- package/esm2015/dropdown/dropdown-item.component.js +1 -1
- package/esm2015/list/list-selection.component.js +11 -3
- package/esm2015/navbar/navbar.component.js +1 -1
- package/esm2015/navbar/vertical-navbar.component.js +2 -2
- package/esm2015/timepicker/timepicker.directive.js +3 -3
- package/fesm2015/ptsecurity-mosaic-datepicker.js +2 -1
- package/fesm2015/ptsecurity-mosaic-datepicker.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-design-tokens.js +115 -10
- package/fesm2015/ptsecurity-mosaic-design-tokens.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-dropdown.js +1 -1
- package/fesm2015/ptsecurity-mosaic-list.js +10 -2
- package/fesm2015/ptsecurity-mosaic-list.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-navbar.js +2 -2
- package/fesm2015/ptsecurity-mosaic-navbar.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-timepicker.js +2 -2
- package/fesm2015/ptsecurity-mosaic-timepicker.js.map +1 -1
- package/list/ptsecurity-mosaic-list.metadata.json +1 -1
- package/navbar/ptsecurity-mosaic-navbar.metadata.json +1 -1
- package/package.json +5 -5
- package/prebuilt-themes/dark-theme.css +1 -1
- package/prebuilt-themes/default-theme.css +1 -1
- package/timepicker/ptsecurity-mosaic-timepicker.metadata.json +1 -1
- package/prebuilt-visual/default-visual.css +0 -1
@@ -0,0 +1,56 @@
|
|
1
|
+
const StyleDictionary = require('style-dictionary');
|
2
|
+
const getPlatformConfig = require('./configs');
|
3
|
+
|
4
|
+
// ==== Include custom transforms ====
|
5
|
+
require('./transforms/attribute/typography')(StyleDictionary);
|
6
|
+
require('./transforms/attribute/palette')(StyleDictionary);
|
7
|
+
require('./transforms/attribute/prefix')(StyleDictionary);
|
8
|
+
require('./transforms/attribute/size')(StyleDictionary);
|
9
|
+
|
10
|
+
// ==== Include custom filters ====
|
11
|
+
require('./filters/palette')(StyleDictionary);
|
12
|
+
require('./filters/color')(StyleDictionary);
|
13
|
+
require('./filters/size')(StyleDictionary);
|
14
|
+
require('./filters/typography')(StyleDictionary);
|
15
|
+
|
16
|
+
// ==== Include custom transform groups ====
|
17
|
+
require('./transformGroups/scss')(StyleDictionary);
|
18
|
+
require('./transformGroups/css')(StyleDictionary);
|
19
|
+
|
20
|
+
// ==== Include custom formats ====
|
21
|
+
require('./formats/typography')(StyleDictionary);
|
22
|
+
require('./formats/palette')(StyleDictionary);
|
23
|
+
|
24
|
+
// ==== Run build ====
|
25
|
+
console.log('Build started...');
|
26
|
+
console.log('==============================================');
|
27
|
+
|
28
|
+
module.exports = (themeConfig) => {
|
29
|
+
console.log('themeConfig: ', themeConfig);
|
30
|
+
|
31
|
+
if (!themeConfig || themeConfig.length === 0) {
|
32
|
+
console.error('Build Failed. Please set ThemeConfig, for example: ', {
|
33
|
+
name: 'default-theme',
|
34
|
+
buildPath: [
|
35
|
+
`packages/mosaic/design-tokens/tokens/properties/**/*.json5`,
|
36
|
+
`packages/mosaic/design-tokens/tokens/components/**/*.json5`
|
37
|
+
],
|
38
|
+
outputPath: 'packages/mosaic/design-tokens/'
|
39
|
+
}
|
40
|
+
)
|
41
|
+
process.exit(0);
|
42
|
+
}
|
43
|
+
|
44
|
+
themeConfig.map((platform) => {
|
45
|
+
// APPLY THE CONFIGURATION
|
46
|
+
// Very important: the registration of custom transforms
|
47
|
+
// needs to be done _before_ applying the configuration
|
48
|
+
const StyleDictionaryExtended = StyleDictionary.extend(getPlatformConfig(platform));
|
49
|
+
|
50
|
+
// FINALLY, BUILD ALL THE PLATFORMS
|
51
|
+
StyleDictionaryExtended.buildAllPlatforms();
|
52
|
+
});
|
53
|
+
|
54
|
+
console.log('\n==============================================');
|
55
|
+
console.log('\nBuild completed!');
|
56
|
+
}
|
@@ -0,0 +1,47 @@
|
|
1
|
+
const merge = require('lodash/merge');
|
2
|
+
|
3
|
+
const scssConfig = require('./scss');
|
4
|
+
const jsConfig = require('./js');
|
5
|
+
const cssConfig = require('./css');
|
6
|
+
|
7
|
+
const filterObj = {
|
8
|
+
options: {
|
9
|
+
showFileHeader: true
|
10
|
+
}
|
11
|
+
};
|
12
|
+
|
13
|
+
function filterOptions(platforms) {
|
14
|
+
const platformObj = {};
|
15
|
+
|
16
|
+
platforms.map(p => Object.assign(platformObj, p));
|
17
|
+
|
18
|
+
Object.keys(platformObj).forEach((p) => {
|
19
|
+
platformObj[p].files.map(f => merge(f, filterObj));
|
20
|
+
});
|
21
|
+
|
22
|
+
return platformObj;
|
23
|
+
}
|
24
|
+
|
25
|
+
function getSources(theme) {
|
26
|
+
|
27
|
+
return theme.buildPath;
|
28
|
+
}
|
29
|
+
|
30
|
+
function getConfigs(theme) {
|
31
|
+
|
32
|
+
scssConfig.scss.buildPath = theme.outputPath;
|
33
|
+
jsConfig.js.buildPath = theme.outputPath;
|
34
|
+
cssConfig.css.buildPath = theme.outputPath;
|
35
|
+
|
36
|
+
return filterOptions([scssConfig, jsConfig, cssConfig]);
|
37
|
+
}
|
38
|
+
|
39
|
+
module.exports = (theme) => {
|
40
|
+
|
41
|
+
return {
|
42
|
+
source: [
|
43
|
+
...getSources(theme)
|
44
|
+
],
|
45
|
+
platforms: getConfigs(theme)
|
46
|
+
};
|
47
|
+
};
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module.exports = {
|
2
|
+
scss: {
|
3
|
+
transformGroup: 'mc/scss',
|
4
|
+
files: [
|
5
|
+
{
|
6
|
+
destination: '_variables.scss',
|
7
|
+
format: 'scss/variables',
|
8
|
+
filter: 'color'
|
9
|
+
},
|
10
|
+
{
|
11
|
+
destination: '_palette.scss',
|
12
|
+
format: 'mc-scss/palette',
|
13
|
+
filter: 'palette'
|
14
|
+
},
|
15
|
+
{
|
16
|
+
destination: '_typography.scss',
|
17
|
+
format: 'mc-scss/typography',
|
18
|
+
mapName: 'mosaic',
|
19
|
+
filter: 'typography'
|
20
|
+
}
|
21
|
+
]
|
22
|
+
}
|
23
|
+
};
|
@@ -0,0 +1,25 @@
|
|
1
|
+
|
2
|
+
module.exports = (StyleDictionary) => {
|
3
|
+
StyleDictionary.registerFormat({
|
4
|
+
name: 'mc-scss/palette',
|
5
|
+
formatter: function (dictionary) {
|
6
|
+
return dictionary.allProperties
|
7
|
+
.map((prop) => `\$${prop.name}: ${getMapFromObj(prop.value)};\n`)
|
8
|
+
.join('\n');
|
9
|
+
}
|
10
|
+
})
|
11
|
+
};
|
12
|
+
|
13
|
+
function getMapFromObj(object) {
|
14
|
+
const result = Object.keys(object)
|
15
|
+
.map((key) => {
|
16
|
+
if (key === 'contrast') {
|
17
|
+
return `${key}: ${getMapFromObj(object[key])}`
|
18
|
+
}
|
19
|
+
|
20
|
+
return `${key}: ${object[key].value},\n`
|
21
|
+
})
|
22
|
+
.join('');
|
23
|
+
|
24
|
+
return `(\n${result}\n)`
|
25
|
+
}
|
@@ -0,0 +1,52 @@
|
|
1
|
+
module.exports = (StyleDictionary) => {
|
2
|
+
|
3
|
+
StyleDictionary.registerFormat({
|
4
|
+
name: 'mc-scss/typography',
|
5
|
+
formatter: function(dictionary) {
|
6
|
+
let string;
|
7
|
+
|
8
|
+
string = dictionary.allProperties
|
9
|
+
.map((prop) => {
|
10
|
+
let output = '';
|
11
|
+
|
12
|
+
const value = prop.attributes.category === 'asset' ? `"${ prop.value }"` : prop.value;
|
13
|
+
|
14
|
+
output += `$${ prop.name }: ${ value };`
|
15
|
+
|
16
|
+
if (prop.comment) {
|
17
|
+
output += ` // ${ prop.comment }`;
|
18
|
+
}
|
19
|
+
|
20
|
+
output += '\n';
|
21
|
+
|
22
|
+
return output;
|
23
|
+
})
|
24
|
+
.join('');
|
25
|
+
|
26
|
+
string += `\n$${this.mapName || 'tokens' }: ${processJsonNode(dictionary.properties, 0)};\n`;
|
27
|
+
|
28
|
+
return string;
|
29
|
+
}
|
30
|
+
})
|
31
|
+
};
|
32
|
+
|
33
|
+
|
34
|
+
function processJsonNode(obj, depth) {
|
35
|
+
let output = '';
|
36
|
+
|
37
|
+
if (obj.hasOwnProperty('value')) {
|
38
|
+
output += `$${obj.name}`;
|
39
|
+
} else {
|
40
|
+
output += '(\n'
|
41
|
+
output += Object.keys(obj).map((newKey) => {
|
42
|
+
const newProp = obj[newKey];
|
43
|
+
const indent = ' '.repeat(depth+1);
|
44
|
+
|
45
|
+
return `${indent}'${newKey}': ${processJsonNode(newProp, depth + 1)}`;
|
46
|
+
}).join(',\n');
|
47
|
+
|
48
|
+
output += '\n' + ' '.repeat(depth) + ')';
|
49
|
+
}
|
50
|
+
|
51
|
+
return output;
|
52
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
module.exports = (StyleDictionary) => {
|
2
|
+
StyleDictionary.registerTransform({
|
3
|
+
name: 'mc/prefix',
|
4
|
+
type: 'attribute',
|
5
|
+
transformer: (prop, options) => {
|
6
|
+
const prefix = options.files[0].prefix ? `${options.files[0].prefix}-` : '';
|
7
|
+
|
8
|
+
prop.name = `${prefix}${prop.name}`;
|
9
|
+
}
|
10
|
+
});
|
11
|
+
};
|
@@ -0,0 +1,83 @@
|
|
1
|
+
{
|
2
|
+
alert: {
|
3
|
+
'light-color-scheme': {
|
4
|
+
error: {
|
5
|
+
background: { value: '{light-color-scheme.error.palette.value.60.value}' },
|
6
|
+
border: { value: '{light-color-scheme.error.default.value}' },
|
7
|
+
icon: { value: '{light-color-scheme.error.default.value}' }
|
8
|
+
},
|
9
|
+
warning: {
|
10
|
+
background: { value: '{light-color-scheme.warning.palette.value.60.value}' },
|
11
|
+
border: { value: '{light-color-scheme.warning.default.value}' },
|
12
|
+
icon: { value: '{light-color-scheme.warning.palette.value.400.value}' }
|
13
|
+
},
|
14
|
+
success: {
|
15
|
+
background: { value: '{light-color-scheme.success.palette.value.60.value}' },
|
16
|
+
border: { value: '{light-color-scheme.success.default.value}' },
|
17
|
+
icon: { value: '{light-color-scheme.success.palette.value.400.value}' }
|
18
|
+
},
|
19
|
+
info: {
|
20
|
+
background: { value: '{light-color-scheme.info.palette.value.60.value}' },
|
21
|
+
border: { value: '{light-color-scheme.info.default.value}' },
|
22
|
+
icon: { value: '{light-color-scheme.info.palette.value.400.value}' }
|
23
|
+
},
|
24
|
+
default: {
|
25
|
+
background: { value: '{light-color-scheme.second.palette.value.60.value}' },
|
26
|
+
border: { value: '{light-color-scheme.second.default.value}' },
|
27
|
+
icon: { value: '{light-color-scheme.second.palette.value.200.value}' }
|
28
|
+
}
|
29
|
+
},
|
30
|
+
'dark-color-scheme': {
|
31
|
+
error: {
|
32
|
+
background: { value: '{dark-color-scheme.error.palette.value.700.value}' },
|
33
|
+
border: { value: '{dark-color-scheme.error.palette.value.700.value}' },
|
34
|
+
icon: { value: '{dark-color-scheme.error.default.value}' }
|
35
|
+
},
|
36
|
+
warning: {
|
37
|
+
background: { value: '{dark-color-scheme.warning.palette.value.700.value}' },
|
38
|
+
border: { value: '{dark-color-scheme.warning.palette.value.700.value}' },
|
39
|
+
icon: { value: '{dark-color-scheme.warning.default.value}' }
|
40
|
+
},
|
41
|
+
success: {
|
42
|
+
background: { value: '{dark-color-scheme.success.palette.value.700.value}' },
|
43
|
+
border: { value: '{dark-color-scheme.success.palette.value.700.value}' },
|
44
|
+
icon: { value: '{dark-color-scheme.success.default.value}' }
|
45
|
+
},
|
46
|
+
info: {
|
47
|
+
background: { value: '{dark-color-scheme.info.palette.value.700.value}' },
|
48
|
+
border: { value: '{dark-color-scheme.info.palette.value.700.value}' },
|
49
|
+
icon: { value: '{dark-color-scheme.info.default.value}' }
|
50
|
+
},
|
51
|
+
default: {
|
52
|
+
background: { value: '{dark-color-scheme.second.palette.value.700.value}' },
|
53
|
+
border: { value: '{dark-color-scheme.second.palette.value.700.value}' },
|
54
|
+
icon: { value: '{dark-color-scheme.second.default.value}' }
|
55
|
+
}
|
56
|
+
},
|
57
|
+
size: {
|
58
|
+
'border-width': { value: '1px' },
|
59
|
+
'border-radius': { value: '4px' },
|
60
|
+
|
61
|
+
'horizontal-padding': { value: '{padding.control-horizontal}' },
|
62
|
+
'vertical-padding': { value: '13px' },
|
63
|
+
|
64
|
+
'icon-margin': { value: '{margin.iconText_M-horizontal}' },
|
65
|
+
|
66
|
+
'close-button-width': { value: '16px' },
|
67
|
+
|
68
|
+
small: {
|
69
|
+
'vertical-padding': { value: '11px' }
|
70
|
+
}
|
71
|
+
},
|
72
|
+
font: {
|
73
|
+
default: {
|
74
|
+
header: { value: 'subheading' },
|
75
|
+
body: { value: 'body' }
|
76
|
+
},
|
77
|
+
small: {
|
78
|
+
header: { value: 'caption' },
|
79
|
+
body: { value: 'caption' }
|
80
|
+
}
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
@@ -0,0 +1,184 @@
|
|
1
|
+
{
|
2
|
+
badge: {
|
3
|
+
size: {
|
4
|
+
default: {
|
5
|
+
'min-width': { value: '10px' },
|
6
|
+
padding: { value: '0 8px' },
|
7
|
+
'border-width': { value: '1px' },
|
8
|
+
'border-radius': { value: '4px' },
|
9
|
+
height: { value: '24px' },
|
10
|
+
font: {
|
11
|
+
default: { value: 'caption' },
|
12
|
+
caps: { value: 'caption-caps' },
|
13
|
+
mono: { value: 'caption-mono'}
|
14
|
+
}
|
15
|
+
},
|
16
|
+
mini: {
|
17
|
+
height: { value: '16px' },
|
18
|
+
'min-width': { value: '10px' },
|
19
|
+
'border-width': { value: '1px' },
|
20
|
+
'border-radius': { value: '2px' },
|
21
|
+
padding: { value: '0 4px' },
|
22
|
+
font: {
|
23
|
+
default: { value: 'extra-small-text' },
|
24
|
+
caps: { value: 'extra-small-text-caps' },
|
25
|
+
mono: { value: 'extra-small-text-mono'}
|
26
|
+
}
|
27
|
+
}
|
28
|
+
},
|
29
|
+
font: {
|
30
|
+
default: {
|
31
|
+
default: { value: 'caption' },
|
32
|
+
caps: { value: 'caption-caps' },
|
33
|
+
mono: { value: 'caption-mono'}
|
34
|
+
},
|
35
|
+
mini: {
|
36
|
+
default: { value: 'extra-small-text' },
|
37
|
+
caps: { value: 'extra-small-text-caps' },
|
38
|
+
mono: { value: 'extra-small-text-mono'}
|
39
|
+
}
|
40
|
+
},
|
41
|
+
'light-color-scheme': {
|
42
|
+
solid: {
|
43
|
+
primary: {
|
44
|
+
background: { value: '{light-color-scheme.primary.palette.value.500.value}' },
|
45
|
+
color: { value: 'white' },
|
46
|
+
border: { value: '{light-color-scheme.primary.palette.value.500.value}' },
|
47
|
+
},
|
48
|
+
info: {
|
49
|
+
border: { value: '{light-color-scheme.primary.palette.value.500.value}' },
|
50
|
+
background: { value: '{light-color-scheme.primary.palette.value.500.value}' },
|
51
|
+
color: { value: 'white' }
|
52
|
+
},
|
53
|
+
success: {
|
54
|
+
border: { value: '{light-color-scheme.success.palette.value.500.value}' },
|
55
|
+
background: { value: '{light-color-scheme.success.palette.value.500.value}' },
|
56
|
+
color: { value: 'white' }
|
57
|
+
},
|
58
|
+
warning: {
|
59
|
+
border: { value: '{light-color-scheme.warning.palette.value.500.value}' },
|
60
|
+
background: { value: '{light-color-scheme.warning.palette.value.500.value}' },
|
61
|
+
color: { value: 'white' }
|
62
|
+
},
|
63
|
+
error: {
|
64
|
+
border: { value: '{light-color-scheme.error.palette.value.500.value}' },
|
65
|
+
background: { value: '{light-color-scheme.error.palette.value.500.value}' },
|
66
|
+
color: { value: 'white' }
|
67
|
+
},
|
68
|
+
transparent: {
|
69
|
+
border: { value: '{light-color-scheme.second.palette.value.200.value}' },
|
70
|
+
color: { value: '{light-color-scheme.primary.palette.value.contrast.300.value}' },
|
71
|
+
background: { value: 'transparent' }
|
72
|
+
},
|
73
|
+
light: {
|
74
|
+
border: { value: '{light-color-scheme.second.palette.value.100.value}' },
|
75
|
+
background: { value: '{light-color-scheme.second.palette.value.100.value}' },
|
76
|
+
color: { value: '{light-color-scheme.primary.palette.value.contrast.300.value}' }
|
77
|
+
},
|
78
|
+
second: {
|
79
|
+
border: { value: '{light-color-scheme.second.palette.value.600.value}' },
|
80
|
+
background: { value: '{light-color-scheme.second.palette.value.600.value}' },
|
81
|
+
color: { value: 'white' }
|
82
|
+
}
|
83
|
+
},
|
84
|
+
pastel: {
|
85
|
+
primary: {
|
86
|
+
background: { value: '{light-color-scheme.primary.palette.value.40.value}' },
|
87
|
+
border: { value: '{light-color-scheme.primary.palette.value.200.value}' },
|
88
|
+
color: { value: '{light-color-scheme.primary.palette.value.500.value}' }
|
89
|
+
},
|
90
|
+
info: {
|
91
|
+
background: { value: '{light-color-scheme.info.palette.value.40.value}' },
|
92
|
+
border: { value: '{light-color-scheme.primary.palette.value.200.value}' },
|
93
|
+
color: { value: '{light-color-scheme.info.palette.value.500.value}' }
|
94
|
+
},
|
95
|
+
success: {
|
96
|
+
background: { value: '{light-color-scheme.success.palette.value.40.value}' },
|
97
|
+
border: { value: '{light-color-scheme.success.palette.value.200.value}' },
|
98
|
+
color: { value: '{light-color-scheme.success.palette.value.560.value}' }
|
99
|
+
},
|
100
|
+
warning: {
|
101
|
+
background: { value: '{light-color-scheme.warning.palette.value.40.value}' },
|
102
|
+
border: { value: '{light-color-scheme.warning.palette.value.200.value}' },
|
103
|
+
color: { value: '{light-color-scheme.warning.palette.value.560.value}' }
|
104
|
+
},
|
105
|
+
error: {
|
106
|
+
background: { value: '{light-color-scheme.error.palette.value.40.value}' },
|
107
|
+
border: { value: '{light-color-scheme.error.palette.value.200.value}' },
|
108
|
+
color: { value: '{light-color-scheme.error.palette.value.500.value}' }
|
109
|
+
}
|
110
|
+
}
|
111
|
+
},
|
112
|
+
'dark-color-scheme': {
|
113
|
+
pastel: {
|
114
|
+
primary: {
|
115
|
+
background: { value: '{light-color-scheme.primary.palette.value.A100.value}' },
|
116
|
+
color: { value: '{light-color-scheme.primary.palette.value.100.value}' },
|
117
|
+
border: { value: '{light-color-scheme.primary.palette.value.700.value}' },
|
118
|
+
},
|
119
|
+
info: {
|
120
|
+
background: { value: '{light-color-scheme.primary.palette.value.100.value}' },
|
121
|
+
color: { value: '{light-color-scheme.primary.palette.value.100.value}' },
|
122
|
+
border: { value: '{light-color-scheme.primary.palette.value.A100.value}' }
|
123
|
+
},
|
124
|
+
success: {
|
125
|
+
border: { value: '{light-color-scheme.success.palette.value.700.value}' },
|
126
|
+
background: { value: '{light-color-scheme.success.palette.value.A100.value}' },
|
127
|
+
color: { value: '{light-color-scheme.success.palette.value.100.value}' }
|
128
|
+
},
|
129
|
+
warning: {
|
130
|
+
border: { value: '{light-color-scheme.warning.palette.value.700.value}' },
|
131
|
+
background: { value: '{light-color-scheme.warning.palette.value.A100.value}' },
|
132
|
+
color: { value: '{light-color-scheme.warning.palette.value.100.value}' }
|
133
|
+
},
|
134
|
+
error: {
|
135
|
+
border: { value: '{light-color-scheme.error.palette.value.700.value}' },
|
136
|
+
background: { value: '{light-color-scheme.error.palette.value.A100.value}' },
|
137
|
+
color: { value: '{light-color-scheme.error.palette.value.100.value}' }
|
138
|
+
}
|
139
|
+
},
|
140
|
+
solid: {
|
141
|
+
primary: {
|
142
|
+
background: { value: '{light-color-scheme.primary.palette.value.700.value}' },
|
143
|
+
color: { value: 'white' },
|
144
|
+
border: { value: '{light-color-scheme.primary.palette.value.700.value}' },
|
145
|
+
},
|
146
|
+
info: {
|
147
|
+
border: { value: '{light-color-scheme.primary.palette.value.800.value}' },
|
148
|
+
background: { value: '{light-color-scheme.primary.palette.value.800.value}' },
|
149
|
+
color: { value: 'white' }
|
150
|
+
},
|
151
|
+
success: {
|
152
|
+
border: { value: '{light-color-scheme.success.palette.value.700.value}' },
|
153
|
+
background: { value: '{light-color-scheme.success.palette.value.700.value}' },
|
154
|
+
color: { value: 'white' }
|
155
|
+
},
|
156
|
+
warning: {
|
157
|
+
border: { value: '{light-color-scheme.warning.palette.value.700.value}' },
|
158
|
+
background: { value: '{light-color-scheme.warning.palette.value.700.value}' },
|
159
|
+
color: { value: 'white' }
|
160
|
+
},
|
161
|
+
error: {
|
162
|
+
border: { value: '{light-color-scheme.error.palette.value.700.value}' },
|
163
|
+
background: { value: '{light-color-scheme.error.palette.value.700.value}' },
|
164
|
+
color: { value: 'white' }
|
165
|
+
},
|
166
|
+
transparent: {
|
167
|
+
border: { value: '{light-color-scheme.second.palette.value.500.value}' },
|
168
|
+
color: { value: '{light-color-scheme.second.palette.value.40.value}' },
|
169
|
+
background: { value: 'transparent' }
|
170
|
+
},
|
171
|
+
light: {
|
172
|
+
border: { value: '{light-color-scheme.second.palette.value.400.value}' },
|
173
|
+
background: { value: '{light-color-scheme.second.palette.value.400.value}' },
|
174
|
+
color: { value: 'white' }
|
175
|
+
},
|
176
|
+
second: {
|
177
|
+
border: { value: '{light-color-scheme.second.palette.value.700.value}' },
|
178
|
+
background: { value: '{light-color-scheme.second.palette.value.700.value}' },
|
179
|
+
color: { value: 'white' }
|
180
|
+
}
|
181
|
+
}
|
182
|
+
},
|
183
|
+
}
|
184
|
+
}
|