@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.
Files changed (111) hide show
  1. package/_theming.scss +368 -61
  2. package/_visual.scss +139 -14
  3. package/bundles/ptsecurity-mosaic-datepicker.umd.js +2 -1
  4. package/bundles/ptsecurity-mosaic-datepicker.umd.js.map +1 -1
  5. package/bundles/ptsecurity-mosaic-datepicker.umd.min.js +1 -1
  6. package/bundles/ptsecurity-mosaic-datepicker.umd.min.js.map +1 -1
  7. package/bundles/ptsecurity-mosaic-design-tokens.umd.js +226 -15
  8. package/bundles/ptsecurity-mosaic-design-tokens.umd.js.map +1 -1
  9. package/bundles/ptsecurity-mosaic-design-tokens.umd.min.js +1 -1
  10. package/bundles/ptsecurity-mosaic-design-tokens.umd.min.js.map +1 -1
  11. package/bundles/ptsecurity-mosaic-dropdown.umd.js +1 -1
  12. package/bundles/ptsecurity-mosaic-dropdown.umd.min.js +2 -2
  13. package/bundles/ptsecurity-mosaic-dropdown.umd.min.js.map +1 -1
  14. package/bundles/ptsecurity-mosaic-list.umd.js +10 -2
  15. package/bundles/ptsecurity-mosaic-list.umd.js.map +1 -1
  16. package/bundles/ptsecurity-mosaic-list.umd.min.js +1 -1
  17. package/bundles/ptsecurity-mosaic-list.umd.min.js.map +1 -1
  18. package/bundles/ptsecurity-mosaic-navbar.umd.js +2 -2
  19. package/bundles/ptsecurity-mosaic-navbar.umd.js.map +1 -1
  20. package/bundles/ptsecurity-mosaic-navbar.umd.min.js +2 -2
  21. package/bundles/ptsecurity-mosaic-navbar.umd.min.js.map +1 -1
  22. package/bundles/ptsecurity-mosaic-timepicker.umd.js +1 -1
  23. package/bundles/ptsecurity-mosaic-timepicker.umd.js.map +1 -1
  24. package/bundles/ptsecurity-mosaic-timepicker.umd.min.js +1 -1
  25. package/bundles/ptsecurity-mosaic-timepicker.umd.min.js.map +1 -1
  26. package/design-tokens/ptsecurity-mosaic-design-tokens.metadata.json +1 -1
  27. package/design-tokens/style-dictionary/build.js +56 -0
  28. package/design-tokens/style-dictionary/configs/css.js +13 -0
  29. package/design-tokens/style-dictionary/configs/index.js +47 -0
  30. package/design-tokens/style-dictionary/configs/js.js +9 -0
  31. package/design-tokens/style-dictionary/configs/scss.js +23 -0
  32. package/design-tokens/style-dictionary/filters/color.js +7 -0
  33. package/design-tokens/style-dictionary/filters/palette.js +7 -0
  34. package/design-tokens/style-dictionary/filters/size.js +7 -0
  35. package/design-tokens/style-dictionary/filters/typography.js +7 -0
  36. package/design-tokens/style-dictionary/formats/palette.js +25 -0
  37. package/design-tokens/style-dictionary/formats/typography.js +52 -0
  38. package/design-tokens/style-dictionary/transformGroups/css.js +13 -0
  39. package/design-tokens/style-dictionary/transformGroups/scss.js +12 -0
  40. package/design-tokens/style-dictionary/transforms/attribute/palette.js +9 -0
  41. package/design-tokens/style-dictionary/transforms/attribute/prefix.js +11 -0
  42. package/design-tokens/style-dictionary/transforms/attribute/size.js +8 -0
  43. package/design-tokens/style-dictionary/transforms/attribute/typography.js +9 -0
  44. package/design-tokens/tokens/components/alert.json5 +83 -0
  45. package/design-tokens/tokens/components/autocomplete.json5 +11 -0
  46. package/design-tokens/tokens/components/badge.json5 +184 -0
  47. package/design-tokens/tokens/components/button-toggle.json5 +10 -0
  48. package/design-tokens/tokens/components/button.json5 +143 -0
  49. package/design-tokens/tokens/components/card.json5 +51 -0
  50. package/design-tokens/tokens/components/checkbox.json5 +39 -0
  51. package/design-tokens/tokens/components/datepicker.json5 +64 -0
  52. package/design-tokens/tokens/components/divider.json5 +8 -0
  53. package/design-tokens/tokens/components/dropdown.json5 +47 -0
  54. package/design-tokens/tokens/components/form-field.json5 +52 -0
  55. package/design-tokens/tokens/components/forms.json5 +52 -0
  56. package/design-tokens/tokens/components/input.json5 +13 -0
  57. package/design-tokens/tokens/components/link.json5 +56 -0
  58. package/design-tokens/tokens/components/list.json5 +19 -0
  59. package/design-tokens/tokens/components/modal.json5 +67 -0
  60. package/design-tokens/tokens/components/navbar.json5 +64 -0
  61. package/design-tokens/tokens/components/optgroup.json5 +10 -0
  62. package/design-tokens/tokens/components/option.json5 +12 -0
  63. package/design-tokens/tokens/components/popover.json5 +40 -0
  64. package/design-tokens/tokens/components/popup.json5 +18 -0
  65. package/design-tokens/tokens/components/progress-bar.json5 +13 -0
  66. package/design-tokens/tokens/components/progress-spinner.json5 +7 -0
  67. package/design-tokens/tokens/components/radio.json5 +45 -0
  68. package/design-tokens/tokens/components/select.json5 +25 -0
  69. package/design-tokens/tokens/components/sidepanel.json5 +30 -0
  70. package/design-tokens/tokens/components/table.json5 +15 -0
  71. package/design-tokens/tokens/components/tabs.json5 +25 -0
  72. package/design-tokens/tokens/components/tags.json5 +126 -0
  73. package/design-tokens/tokens/components/textarea.json5 +12 -0
  74. package/design-tokens/tokens/components/timepicker.json5 +7 -0
  75. package/design-tokens/tokens/components/toggle.json5 +55 -0
  76. package/design-tokens/tokens/components/tooltip.json5 +37 -0
  77. package/design-tokens/tokens/components/tree.json5 +12 -0
  78. package/design-tokens/tokens/properties/aliases.json5 +3 -0
  79. package/design-tokens/tokens/properties/colors.json5 +110 -0
  80. package/design-tokens/tokens/properties/font.json5 +12 -0
  81. package/design-tokens/tokens/properties/globals.json5 +30 -0
  82. package/design-tokens/tokens/properties/padding.json5 +3 -0
  83. package/design-tokens/tokens/properties/palette.json5 +163 -0
  84. package/design-tokens/tokens/properties/typography.json5 +140 -0
  85. package/design-tokens/tokens.d.ts +114 -8
  86. package/dropdown/ptsecurity-mosaic-dropdown.metadata.json +1 -1
  87. package/esm2015/datepicker/datepicker-input.directive.js +3 -2
  88. package/esm2015/design-tokens/tokens.js +115 -10
  89. package/esm2015/dropdown/dropdown-item.component.js +1 -1
  90. package/esm2015/list/list-selection.component.js +11 -3
  91. package/esm2015/navbar/navbar.component.js +1 -1
  92. package/esm2015/navbar/vertical-navbar.component.js +2 -2
  93. package/esm2015/timepicker/timepicker.directive.js +3 -3
  94. package/fesm2015/ptsecurity-mosaic-datepicker.js +2 -1
  95. package/fesm2015/ptsecurity-mosaic-datepicker.js.map +1 -1
  96. package/fesm2015/ptsecurity-mosaic-design-tokens.js +115 -10
  97. package/fesm2015/ptsecurity-mosaic-design-tokens.js.map +1 -1
  98. package/fesm2015/ptsecurity-mosaic-dropdown.js +1 -1
  99. package/fesm2015/ptsecurity-mosaic-list.js +10 -2
  100. package/fesm2015/ptsecurity-mosaic-list.js.map +1 -1
  101. package/fesm2015/ptsecurity-mosaic-navbar.js +2 -2
  102. package/fesm2015/ptsecurity-mosaic-navbar.js.map +1 -1
  103. package/fesm2015/ptsecurity-mosaic-timepicker.js +2 -2
  104. package/fesm2015/ptsecurity-mosaic-timepicker.js.map +1 -1
  105. package/list/ptsecurity-mosaic-list.metadata.json +1 -1
  106. package/navbar/ptsecurity-mosaic-navbar.metadata.json +1 -1
  107. package/package.json +5 -5
  108. package/prebuilt-themes/dark-theme.css +1 -1
  109. package/prebuilt-themes/default-theme.css +1 -1
  110. package/timepicker/ptsecurity-mosaic-timepicker.metadata.json +1 -1
  111. 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,13 @@
1
+ module.exports = {
2
+ css: {
3
+ transformGroup: 'mc/css',
4
+ files: [
5
+ {
6
+ destination: 'css-tokens.css',
7
+ format: 'css/variables',
8
+ filter: 'size',
9
+ prefix: 'mc'
10
+ }
11
+ ]
12
+ }
13
+ };
@@ -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,9 @@
1
+ module.exports = {
2
+ js: {
3
+ transformGroup: 'js',
4
+ files: [{
5
+ destination: 'tokens.ts',
6
+ format: 'javascript/es6'
7
+ }]
8
+ }
9
+ };
@@ -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,7 @@
1
+ module.exports = (StyleDictionary) => {
2
+
3
+ StyleDictionary.registerFilter({
4
+ name: 'color',
5
+ matcher: (prop) => !prop.attributes.palette && !prop.attributes.typography
6
+ })
7
+ }
@@ -0,0 +1,7 @@
1
+ module.exports = (StyleDictionary) => {
2
+
3
+ StyleDictionary.registerFilter({
4
+ name: 'palette',
5
+ matcher: (prop) => prop.attributes.palette
6
+ })
7
+ }
@@ -0,0 +1,7 @@
1
+ module.exports = (StyleDictionary) => {
2
+
3
+ StyleDictionary.registerFilter({
4
+ name: 'size',
5
+ matcher: (prop) => prop.attributes.size
6
+ })
7
+ }
@@ -0,0 +1,7 @@
1
+ module.exports = (StyleDictionary) => {
2
+
3
+ StyleDictionary.registerFilter({
4
+ name: 'typography',
5
+ matcher: (prop) => prop.attributes.typography
6
+ })
7
+ }
@@ -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,13 @@
1
+ module.exports = (StyleDictionary) => {
2
+
3
+ StyleDictionary.registerTransformGroup({
4
+ name: 'mc/css',
5
+ transforms: [
6
+ 'attribute/cti',
7
+ 'mc-attribute/size',
8
+ 'name/cti/kebab',
9
+ 'color/css',
10
+ 'mc/prefix'
11
+ ]
12
+ });
13
+ };
@@ -0,0 +1,12 @@
1
+ module.exports = (StyleDictionary) => {
2
+
3
+ StyleDictionary.registerTransformGroup({
4
+ name: 'mc/scss',
5
+ transforms: [
6
+ 'attribute/cti',
7
+ 'mc-attribute/palette',
8
+ 'mc-attribute/typography',
9
+ 'name/cti/kebab'
10
+ ]
11
+ });
12
+ }
@@ -0,0 +1,9 @@
1
+ module.exports = (StyleDictionary) => {
2
+
3
+ StyleDictionary.registerTransform({
4
+ name: 'mc-attribute/palette',
5
+ type: 'attribute',
6
+ matcher: (prop) => prop.name === 'palette',
7
+ transformer: (prop) => ({ palette: true })
8
+ });
9
+ };
@@ -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,8 @@
1
+ module.exports = (StyleDictionary) => {
2
+ StyleDictionary.registerTransform({
3
+ name: 'mc-attribute/size',
4
+ type: 'attribute',
5
+ matcher: (prop) => prop.attributes.type === 'size',
6
+ transformer: (prop) => ({size: true})
7
+ });
8
+ }
@@ -0,0 +1,9 @@
1
+ module.exports = (StyleDictionary) => {
2
+
3
+ StyleDictionary.registerTransform({
4
+ name: 'mc-attribute/typography',
5
+ type: 'attribute',
6
+ matcher: (prop) => prop.attributes.category === 'typography',
7
+ transformer: (prop) => ({typography: true})
8
+ });
9
+ };
@@ -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,11 @@
1
+ {
2
+ autocomplete: {
3
+ size: {
4
+ panel: {
5
+ padding: { value: '4px 0' },
6
+ 'max-height': { value: '256px' },
7
+ 'border-radius': { value: '3px' }
8
+ }
9
+ }
10
+ }
11
+ }
@@ -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
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ 'button-toggle': {
3
+ size: {
4
+ border: {
5
+ size: { value: '1px' },
6
+ radius: { value: '3px' }
7
+ }
8
+ }
9
+ }
10
+ }