@govbr-ds/tokens 4.0.0-next.1 → 4.0.0-next.10

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 (43) hide show
  1. package/README.md +12 -130
  2. package/dist/css/themes/dark.css +77 -49
  3. package/dist/css/themes/light.css +77 -49
  4. package/dist/css/tokens.css +565 -513
  5. package/dist/js/themes/dark.js +77 -49
  6. package/dist/js/themes/light.js +77 -49
  7. package/dist/js/tokens.js +569 -517
  8. package/dist/json/themes/dark.json +1330 -389
  9. package/dist/json/themes/light.json +1326 -385
  10. package/dist/json/tokens.json +8029 -3195
  11. package/dist/scss/themes/dark.scss +80 -0
  12. package/dist/scss/themes/light.scss +80 -0
  13. package/dist/scss/tokens.scss +721 -0
  14. package/package.json +10 -11
  15. package/src/figma/tokens.json +1405 -527
  16. package/src/figma/variables/base14.json +66 -0
  17. package/src/figma/variables/color.json +2 -2
  18. package/src/figma/variables/component/manifest.json +12 -0
  19. package/src/figma/variables/component/text.json +46 -0
  20. package/src/figma/variables/dark.json +314 -0
  21. package/src/figma/variables/elevation.json +232 -0
  22. package/src/figma/variables/grid.json +120 -0
  23. package/src/figma/variables/guideline/componente.json +24 -0
  24. package/src/figma/variables/guideline/fundamento.json +24 -0
  25. package/src/figma/variables/guideline/geral.json +20 -0
  26. package/src/figma/variables/guideline/manifest.json +21 -0
  27. package/src/figma/variables/guideline/padrao.json +24 -0
  28. package/src/figma/variables/iconography.json +14 -0
  29. package/src/figma/variables/light.json +314 -0
  30. package/src/figma/variables/manifest.json +21 -4
  31. package/src/figma/variables/motion.json +112 -0
  32. package/src/figma/variables/pattern/manifest.json +12 -0
  33. package/src/figma/variables/pattern/skeleton.json +52 -0
  34. package/src/figma/variables/spacing.json +21 -1
  35. package/src/figma/variables/state.json +238 -0
  36. package/src/figma/variables/surface.json +28 -26
  37. package/src/figma/variables/typography.json +90 -112
  38. package/dist/scss/_tokens.scss +0 -674
  39. package/dist/scss/themes/_dark.scss +0 -55
  40. package/dist/scss/themes/_light.scss +0 -55
  41. package/src/style-dictionary/themes/dark.json +0 -3313
  42. package/src/style-dictionary/themes/light.json +0 -3313
  43. package/src/style-dictionary/tokens.json +0 -3045
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@govbr-ds/tokens",
3
- "version": "4.0.0-next.1",
3
+ "version": "4.0.0-next.10",
4
+ "type": "module",
4
5
  "description": "Tokens do Padrão Digital de Governo",
5
6
  "keywords": [
6
7
  "design system",
@@ -24,17 +25,15 @@
24
25
  ],
25
26
  "scripts": {
26
27
  "build": "run-s clear transform compile",
27
- "clear": "rimraf ./dist",
28
- "compile": "node build-tokens.js",
29
- "transform": "run-p transform:global transform:light transform:dark",
30
- "transform:dark": "token-transformer src/figma/tokens.json src/style-dictionary/themes/dark.json global,dark --resolveReferences false",
31
- "transform:global": "token-transformer src/figma/tokens.json src/style-dictionary/tokens.json global --resolveReferences false",
32
- "transform:light": "token-transformer src/figma/tokens.json src/style-dictionary/themes/light.json global,light --resolveReferences false"
28
+ "clear": "run-p clear:*",
29
+ "clear:dist": "rimraf ./dist",
30
+ "clear:temp": "rimraf ./temp",
31
+ "compile": "node scripts/build-tokens.js",
32
+ "transform": "node scripts/transform-tokens.js src/figma/tokens.json temp/",
33
+ "start": "run-s transform compile"
33
34
  },
34
35
  "dependencies": {
35
- "@tokens-studio/sd-transforms": "^0.12.2",
36
- "style-dictionary": "^3.9.2",
37
- "style-dictionary-utils": "^2.2.1",
38
- "token-transformer": "^0.0.33"
36
+ "@tokens-studio/sd-transforms": "^1.2.3",
37
+ "style-dictionary": "^4.0.1"
39
38
  }
40
39
  }