@maggioli-design-system/design-tokens 13.7.1 → 14.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 +12 -3
- package/dist/android/colors.xml +562 -1452
- package/dist/css/colors-hex-brand-rnd.css +39 -37
- package/dist/css/colors-hex-brand.css +72 -70
- package/dist/css/colors-hex-default.css +732 -664
- package/dist/css/colors-hex-label.css +402 -334
- package/dist/css/colors-hex-status.css +138 -136
- package/dist/css/colors-hex-tones.css +171 -169
- package/dist/css/colors-hex.css +897 -2230
- package/dist/css/colors-rgb-brand-rnd.css +34 -32
- package/dist/css/colors-rgb-brand.css +65 -63
- package/dist/css/colors-rgb-default.css +692 -624
- package/dist/css/colors-rgb-label.css +399 -331
- package/dist/css/colors-rgb-status.css +124 -122
- package/dist/css/colors-rgb-tones.css +166 -164
- package/dist/css/colors-rgb.css +852 -2185
- package/dist/css/tailwind-theme-color.css +306 -0
- package/dist/css/tailwind-theme-typography.css +251 -0
- package/dist/css/transitions.css +45 -0
- package/dist/flutter/colors-brand-rnd.dart +20 -20
- package/dist/flutter/colors-brand.dart +41 -41
- package/dist/flutter/colors-default.dart +457 -413
- package/dist/flutter/colors-label.dart +264 -220
- package/dist/flutter/colors-status.dart +80 -80
- package/dist/flutter/colors-tones.dart +108 -108
- package/dist/flutter/colors.dart +563 -1453
- package/dist/flutter/fonts.dart +4 -4
- package/dist/ios/StyleDictionaryColor.h +136 -1026
- package/dist/ios/StyleDictionaryColor.m +551 -1441
- package/dist/ios-swift/StyleDictionary.swift +562 -1452
- package/dist/ios-swift/StyleDictionaryColor.swift +562 -1452
- package/dist/js/colors-css-vars.js +77 -574
- package/dist/js/tailwind-colors-css-vars.js +68 -513
- package/dist/js/tailwind-font-family.js +2 -2
- package/dist/js/tailwind-font-size.js +20 -2
- package/dist/js/tailwind-leading.js +2 -2
- package/dist/js/tailwind-props.js +61 -21
- package/dist/js/tailwind-screens.js +2 -2
- package/dist/json/coolors.json +626 -1620
- package/dist/json/css/transitions/duration.json +30 -0
- package/dist/json/figma-magma-colors.json +1 -1
- package/dist/json/figma-magma-tokens.json +1 -1
- package/dist/package.json +16 -23
- package/dist/scss/variables.scss +713 -2655
- package/dist/src/cli.mjs +2 -5
- package/dist/src/config/default-color.json +21 -0
- package/dist/src/config/{sd-color-all-platforms.config.js → styledictionary/sd-color-all-platforms.config.js} +5 -4
- package/dist/src/formats/css-tailwind-theme-color/css-tailwind-theme-color.js +27 -0
- package/dist/src/formats/css-tailwind-theme-color/template.hbs +27 -0
- package/dist/src/formats/css-tailwind-theme-typography/css-tailwind-theme-typography.js +43 -0
- package/dist/src/formats/css-tailwind-theme-typography/template.hbs +105 -0
- package/dist/src/formats/css-vars-hex/template.hbs +10 -8
- package/dist/src/formats/css-vars-rgb/template.hbs +4 -2
- package/dist/src/formats/css-vars-transitions/css-vars-transitions.js +23 -0
- package/dist/src/formats/css-vars-transitions/template.hbs +29 -0
- package/dist/src/formats/flutter-font/flutter-font.js +4 -4
- package/dist/src/formats/helpers.js +12 -7
- package/dist/src/formats/index.js +4 -1
- package/dist/src/formats/js-tailwind-props/js-tailwind-props.js +2 -3
- package/dist/src/lib/color.mjs +67 -37
- package/dist/src/lib/leonardo/index.js +33 -0
- package/dist/src/lib/leonardo/lib/backgroundcolor.js +54 -0
- package/dist/src/lib/leonardo/lib/chroma-plus.js +216 -0
- package/dist/src/lib/leonardo/lib/color.js +134 -0
- package/dist/src/lib/leonardo/lib/curve.js +132 -0
- package/dist/src/lib/leonardo/lib/theme.js +283 -0
- package/dist/src/lib/leonardo/lib/utils.js +505 -0
- package/dist/src/lib/utils.mjs +45 -12
- package/dist/style-dictionary/tokens/color/generated/brand-rnd.json +18 -18
- package/dist/style-dictionary/tokens/color/generated/brand.json +39 -39
- package/dist/style-dictionary/tokens/color/generated/default.json +555 -411
- package/dist/style-dictionary/tokens/color/generated/label.json +362 -218
- package/dist/style-dictionary/tokens/color/generated/status.json +78 -78
- package/dist/style-dictionary/tokens/color/generated/tones.json +104 -104
- package/dist/style-dictionary/tokens/cosmetic/border.json +9 -3
- package/dist/style-dictionary/tokens/cosmetic/box-shadow.json +63 -31
- package/dist/style-dictionary/tokens/css/transitions/duration.json +30 -0
- package/dist/style-dictionary/tokens/screen/default.json +3 -0
- package/dist/style-dictionary/tokens/sizing/{default.json → primitive.json} +54 -0
- package/dist/style-dictionary/tokens/sizing/radius.json +43 -0
- package/dist/style-dictionary/tokens/sizing/spacing.json +88 -0
- package/dist/style-dictionary/tokens/typography/default.json +4 -2
- package/package.json +16 -23
- package/dist/css/colors-hex-brand-apk.css +0 -281
- package/dist/css/colors-hex-brand-mindy.css +0 -50
- package/dist/css/colors-hex-brand-synbee.css +0 -83
- package/dist/css/colors-hex-synbee-v1.css +0 -1025
- package/dist/css/colors-rgb-brand-apk.css +0 -281
- package/dist/css/colors-rgb-brand-mindy.css +0 -50
- package/dist/css/colors-rgb-brand-synbee.css +0 -83
- package/dist/css/colors-rgb-synbee-v1.css +0 -1025
- package/dist/flutter/colors-brand-apk.dart +0 -196
- package/dist/flutter/colors-brand-mindy.dart +0 -42
- package/dist/flutter/colors-brand-synbee.dart +0 -64
- package/dist/flutter/colors-synbee-v1.dart +0 -692
- package/dist/src/config/deafult-color.json +0 -13
- package/dist/style-dictionary/tokens/color/generated/brand-apk.json +0 -584
- package/dist/style-dictionary/tokens/color/generated/brand-mindy.json +0 -78
- package/dist/style-dictionary/tokens/color/generated/brand-synbee.json +0 -150
- package/dist/style-dictionary/tokens/color/generated/synbee-v1.json +0 -2124
- package/dist/style-dictionary/tokens/color/themes.json +0 -32
- /package/dist/src/config/{sd-brand-color.config.js → styledictionary/sd-brand-color.config.js} +0 -0
package/README.md
CHANGED
|
@@ -4,6 +4,15 @@ Generates design tokens for colors and other type of agnostic tokens targeted on
|
|
|
4
4
|
|
|
5
5
|
This library is based on [Adobe Leonardo][adobe-leonardo] and [Amazon Style Dictionary][style-dictionary].
|
|
6
6
|
|
|
7
|
+
# Compatibility
|
|
8
|
+
|
|
9
|
+
Use the version of this package matching the major version of [`@maggioli-design-system/magma`](https://www.npmjs.com/package/@maggioli-design-system/magma) you are using:
|
|
10
|
+
|
|
11
|
+
| magma | design-tokens | styles |
|
|
12
|
+
| :--- | :--- | :--- |
|
|
13
|
+
| `1.x` (before Magma 2) | `13.x` (latest `13.7.2`) | `15.x` (latest `15.11.1`) |
|
|
14
|
+
| `2.x` and later | `>= 14` | `>= 16` |
|
|
15
|
+
|
|
7
16
|
# Installation
|
|
8
17
|
|
|
9
18
|
Install the component via `npm` by running the following command:
|
|
@@ -68,7 +77,7 @@ Basic config
|
|
|
68
77
|
```json
|
|
69
78
|
{
|
|
70
79
|
"colors": [
|
|
71
|
-
{ "color": "#94a3b8", "name": "tone.
|
|
80
|
+
{ "color": "#94a3b8", "name": "tone.porcelain" },
|
|
72
81
|
{ "color": "#EA3464", "name": "label.amaranth" }
|
|
73
82
|
]
|
|
74
83
|
}
|
|
@@ -79,7 +88,7 @@ You can export different color in different output file defining export field
|
|
|
79
88
|
```json
|
|
80
89
|
{
|
|
81
90
|
"colors": [
|
|
82
|
-
{ "color": "#94a3b8", "name": "tone.
|
|
91
|
+
{ "color": "#94a3b8", "name": "tone.porcelain", "export": ["tones"] },
|
|
83
92
|
{ "color": "#EA3464", "name": "label.amaranth", "export": ["label"] }
|
|
84
93
|
]
|
|
85
94
|
}
|
|
@@ -90,7 +99,7 @@ You can choose the ratio with which to generate the color scale with `ratios` fi
|
|
|
90
99
|
```json
|
|
91
100
|
{
|
|
92
101
|
"colors": [
|
|
93
|
-
{ "color": "#94a3b8", "name": "tone.
|
|
102
|
+
{ "color": "#94a3b8", "name": "tone.porcelain", "ratios": "tone" },
|
|
94
103
|
{ "color": "#EA3464", "name": "label.amaranth", "ratios": "v1" }
|
|
95
104
|
]
|
|
96
105
|
}
|