@eeacms/volto-design-tokens 1.0.2 → 1.1.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.
@@ -0,0 +1,2 @@
1
+ [ -n "$CI" ] && exit 0
2
+ yarn lint-staged
package/CHANGELOG.md CHANGED
@@ -4,12 +4,37 @@ All notable changes to this project will be documented in this file. Dates are d
4
4
 
5
5
  Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6
6
 
7
+ ### [1.1.0](https://github.com/eea/volto-design-tokens/compare/1.0.2...1.1.0) - 8 August 2025
8
+
9
+ #### :rocket: New Features
10
+
11
+ - feat(tokens): Sync tokens with the latest version of volto-eea-design-system #6 from eea/update-tokens [David Ichim - [`94867e4`](https://github.com/eea/volto-design-tokens/commit/94867e420d1595574310d995fee048d4ba819e84)]
12
+
13
+ #### :house: Internal changes
14
+
15
+ - style: Automated code fix [eea-jenkins - [`795da6e`](https://github.com/eea/volto-design-tokens/commit/795da6e5af0dc81e7eb3e292a4e6c43f5284da4e)]
16
+ - chore: husky, lint-staged use fixed versions [valentinab25 - [`d5c8f91`](https://github.com/eea/volto-design-tokens/commit/d5c8f9110d3e806ff89c5030503e6263f4e7cac1)]
17
+ - chore:volto 16 in tests, update docs, fix stylelint overrides [valentinab25 - [`23a3ae9`](https://github.com/eea/volto-design-tokens/commit/23a3ae9ed0ca323126d2685175603552a690e50b)]
18
+
19
+ #### :hammer_and_wrench: Others
20
+
21
+ - Bump Version to 1.1.0 [dobri1408 - [`79d93a2`](https://github.com/eea/volto-design-tokens/commit/79d93a21938416fc31d5a6df6547ecf177883522)]
22
+ - fix lint [Dobricean Ioan Dorian - [`105dbeb`](https://github.com/eea/volto-design-tokens/commit/105dbeb2479cd3ebb77fac50b5b5685ee7f919c9)]
23
+ - rename [Dobricean Ioan Dorian - [`d8602b6`](https://github.com/eea/volto-design-tokens/commit/d8602b6dbffbed5431e6355abac41bc5174bc05f)]
24
+ - split programatic colors and non-programatic colors [Dobricean Ioan Dorian - [`397ddfb`](https://github.com/eea/volto-design-tokens/commit/397ddfb1773e00a36000be9c509001b2ef83c277)]
25
+ - update tokens [Dobricean Ioan Dorian - [`09a9a29`](https://github.com/eea/volto-design-tokens/commit/09a9a29c0fae310021b2c157a9819e516448022c)]
26
+ - update tokens [Dobricean Ioan Dorian - [`5301dff`](https://github.com/eea/volto-design-tokens/commit/5301dff94035a6407a4a1a0d563ce29a7e2225eb)]
27
+ - test: EN locales, pre-commit fix, feature PRs checks Refs #257193 [valentinab25 - [`8d486a1`](https://github.com/eea/volto-design-tokens/commit/8d486a1739cc3239c163c75795361402ad175daf)]
7
28
  ### [1.0.2](https://github.com/eea/volto-design-tokens/compare/1.0.1...1.0.2) - 29 August 2023
8
29
 
9
30
  #### :bug: Bug Fixes
10
31
 
11
32
  - fix: Change addon version [dana-cfc4 - [`251336d`](https://github.com/eea/volto-design-tokens/commit/251336daf9220cce0e86e603b61cfc9a2da5fd31)]
12
33
 
34
+ #### :house: Internal changes
35
+
36
+ - chore(docs): Update README.md with extra info about addon #4 from eea/develop [ichim-david - [`85925fa`](https://github.com/eea/volto-design-tokens/commit/85925fa05e0018b822ef91580fd5117c5a684c43)]
37
+
13
38
  #### :house: Documentation changes
14
39
 
15
40
  - docs: Cleanup Makefile, update DEVELOP documentation, i18n - refs #254894 [valentinab25 - [`5f437df`](https://github.com/eea/volto-design-tokens/commit/5f437df519d995eec1574078c7b323f229c0e4dd)]
package/DEVELOP.md CHANGED
@@ -16,12 +16,14 @@
16
16
 
17
17
  1. Go to http://localhost:3000
18
18
 
19
- 1. Happy hacking!
19
+ 1. Initialize git hooks
20
20
 
21
21
  ```Bash
22
- cd src/addons/volto-design-tokens/
22
+ yarn prepare
23
23
  ```
24
24
 
25
+ 1. Happy hacking!
26
+
25
27
  ### Or add @eeacms/volto-design-tokens to your Volto project
26
28
 
27
29
  Before starting make sure your development environment is properly set. See [Volto Developer Documentation](https://docs.voltocms.com/getting-started/install/)
@@ -48,18 +50,15 @@ Before starting make sure your development environment is properly set. See [Vol
48
50
 
49
51
  1. Install
50
52
 
51
- yarn develop
53
+ make develop
52
54
  yarn
53
55
 
54
56
  1. Start backend
55
57
 
56
- docker pull plone
57
- docker run -d --name plone -p 8080:8080 -e SITE=Plone -e PROFILES="profile-plone.restapi:blocks" plone
58
+ docker run --pull always -it --rm --name plone -p 8080:8080 -e SITE=Plone plone/plone-backend
58
59
 
59
60
  ...wait for backend to setup and start - `Ready to handle requests`:
60
61
 
61
- docker logs -f plone
62
-
63
62
  ...you can also check http://localhost:8080/Plone
64
63
 
65
64
  1. Start frontend
package/RELEASE.md CHANGED
@@ -20,9 +20,9 @@ You need to first install the [release-it](https://github.com/release-it/release
20
20
  ```
21
21
  npm install -g release-it
22
22
  ```
23
-
23
+
24
24
  Release-it uses the configuration written in the [`.release-it.json`](./.release-it.json) file located in the root of the repository.
25
-
25
+
26
26
  Release-it is a tool that automates 4 important steps in the release process:
27
27
 
28
28
  1. Version increase in `package.json` ( increased from the current version in `package.json`)
@@ -30,45 +30,45 @@ Release-it is a tool that automates 4 important steps in the release process:
30
30
  3. GitHub release on the commit with the changelog and package.json modification on the develop branch
31
31
  4. NPM release ( by default it's disabled, but can be enabled in the configuration file )
32
32
 
33
- To configure the authentification, you need to export GITHUB_TOKEN for [GitHub](https://github.com/settings/tokens)
33
+ To configure the authentification, you need to export GITHUB_TOKEN for [GitHub](https://github.com/settings/tokens)
34
34
 
35
35
  ```
36
36
  export GITHUB_TOKEN=XXX-XXXXXXXXXXXXXXXXXXXXXX
37
37
  ```
38
-
38
+
39
39
  To configure npm, you can use the `npm login` command or use a configuration file with a TOKEN :
40
-
40
+
41
41
  ```
42
42
  echo "//registry.npmjs.org/:_authToken=YYYYYYYYYYYYYYYYYYYYYYYYYYYYYY" > .npmrc
43
43
  ```
44
44
 
45
45
  #### Using release-it tool
46
-
46
+
47
47
  There are 3 yarn scripts that can be run to do the release
48
48
 
49
49
  ##### yarn release-beta
50
50
 
51
- Automatically calculates and presents 3 beta versions - patch, minor and major for you to choose ( or Other for manual input).
51
+ Automatically calculates and presents 3 beta versions - patch, minor and major for you to choose ( or Other for manual input).
52
52
 
53
53
  ```
54
- ? Select increment (next version):
55
- ❯ prepatch (0.1.1-beta.0)
56
- preminor (0.2.0-beta.0)
57
- premajor (1.0.0-beta.0)
58
- Other, please specify...
54
+ ? Select increment (next version):
55
+ ❯ prepatch (0.1.1-beta.0)
56
+ preminor (0.2.0-beta.0)
57
+ premajor (1.0.0-beta.0)
58
+ Other, please specify...
59
59
  ```
60
60
 
61
61
  ##### yarn release-major-beta
62
62
 
63
63
  Same as `yarn release-beta`, but with premajor version pre-selected.
64
-
64
+
65
65
  ##### yarn release
66
66
 
67
67
  Generic command, does not automatically add the `beta` to version, but you can still manually write it if you choose Other.
68
68
 
69
69
  #### Important notes
70
70
 
71
- > Do not use release-it tool on master branch, the commit on CHANGELOG.md file and the version increase in the package.json file can't be done without a PULL REQUEST.
71
+ > Do not use release-it tool on master branch, the commit on CHANGELOG.md file and the version increase in the package.json file can't be done without a PULL REQUEST.
72
72
 
73
73
  > Do not keep Pull Requests from develop to master branches open when you are doing beta releases from the develop branch. As long as a PR to master is open, an automatic script will run on every commit and will update both the version and the changelog to a production-ready state - ( MAJOR.MINOR.PATCH mandatory format for version).
74
74
 
package/cypress.config.js CHANGED
@@ -5,9 +5,9 @@ module.exports = defineConfig({
5
5
  defaultCommandTimeout: 8888,
6
6
  chromeWebSecurity: false,
7
7
  reporter: 'junit',
8
- video: true,
8
+ video: false,
9
9
  retries: {
10
- runMode: 8,
10
+ runMode: 2,
11
11
  openMode: 0,
12
12
  },
13
13
  reporterOptions: {
@@ -0,0 +1,14 @@
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: \n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: \n"
8
+ "Language: \n"
9
+ "Language-Team: \n"
10
+ "Content-Type: \n"
11
+ "Content-Transfer-Encoding: \n"
12
+ "Plural-Forms: \n"
13
+
14
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-design-tokens",
3
- "version": "1.0.2",
3
+ "version": "1.1.0",
4
4
  "description": "@eeacms/volto-design-tokens: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -16,14 +16,36 @@
16
16
  "type": "git",
17
17
  "url": "git@github.com:eea/volto-design-tokens.git"
18
18
  },
19
- "dependencies": {},
20
19
  "devDependencies": {
21
- "@plone/scripts": "*",
22
20
  "@cypress/code-coverage": "^3.10.0",
23
- "cypress-fail-fast": "^5.0.1",
21
+ "@plone/scripts": "*",
24
22
  "babel-plugin-transform-class-properties": "^6.24.1",
23
+ "cypress-fail-fast": "^5.0.1",
24
+ "husky": "^8.0.3",
25
+ "lint-staged": "^14.0.1",
25
26
  "md5": "^2.3.0"
26
27
  },
28
+ "lint-staged": {
29
+ "src/**/*.{js,jsx,ts,tsx,json}": [
30
+ "make lint-fix",
31
+ "make prettier-fix"
32
+ ],
33
+ "src/**/*.{jsx}": [
34
+ "make i18n"
35
+ ],
36
+ "theme/**/*.{css,less}": [
37
+ "make stylelint-fix"
38
+ ],
39
+ "src/**/*.{css,less}": [
40
+ "make stylelint-fix"
41
+ ],
42
+ "theme/**/*.overrides": [
43
+ "make stylelint-fix"
44
+ ],
45
+ "src/**/*.overrides": [
46
+ "make stylelint-fix"
47
+ ]
48
+ },
27
49
  "scripts": {
28
50
  "release": "release-it",
29
51
  "release-major-beta": "release-it major --preRelease=beta",
@@ -41,6 +63,7 @@
41
63
  "lint:fix": "make lint-fix",
42
64
  "i18n": "make i18n",
43
65
  "cypress:run": "make cypress-run",
44
- "cypress:open": "make cypress-open"
66
+ "cypress:open": "make cypress-open",
67
+ "prepare": "husky install"
45
68
  }
46
69
  }
package/src/colors.less CHANGED
@@ -40,8 +40,8 @@
40
40
 
41
41
  @blue-0: #a0d7ff;
42
42
  @blue-1: #47b3ff;
43
- @blue-2: #0a99ff;
44
- @blue-3: #0083e0;
43
+ @blue-2: #008ff5;
44
+ @blue-3: #0079cf;
45
45
  @blue-4: #006bb8;
46
46
  @blue-5: #004b7f;
47
47
  @blue-6: #003052;
@@ -0,0 +1,146 @@
1
+ /*-------------------
2
+ EEA Non-Programmatic Colors
3
+ --------------------*/
4
+
5
+ // Green Colors - Darker to lighter
6
+ @bottleGreen: #00665a;
7
+ @pineGreen: #007b6c;
8
+ @darkCyan: #00928f;
9
+ @pearlAqua: #74cbc8;
10
+ @powderBlue: #aedfe8;
11
+
12
+ // Blue Colors - Darker to lighter
13
+ @darkMidnightBlue: #0a3d61;
14
+ @darkCerulean: #004b7f;
15
+ @mediumPersianBlue: #0065a4;
16
+ @steelBlue: #478ea5;
17
+ @midBlue: #75c9db;
18
+
19
+ // Secondary Colors - Darker to lighter
20
+ @japaneseIndigo: #2e3e4c;
21
+ @deepBlue: #3d5265;
22
+ @UCLABlue: #54728c;
23
+ @weldonBlue: #7495b2;
24
+ @lightSteelBlue: #accae5;
25
+
26
+ //Gray Colors
27
+ @black: #000000;
28
+ @oldSilver: #808285;
29
+ @midGray: #bcbec0;
30
+ @silverGray: #e6e7e8;
31
+ @white: #ffffff;
32
+
33
+ /*--- Colors ---*/
34
+ @orange: #ff9933;
35
+ @yellow: #f2eb49;
36
+ @olive: #78ab66;
37
+ @green: @pineGreen;
38
+ @teal: #00928f;
39
+ @blue: @darkCerulean;
40
+ @violet: #6667ab;
41
+ @purple: #a530b8;
42
+ @pink: #f255d0;
43
+ @red: #b83230;
44
+ @brown: #ab8766;
45
+ @grey: #808285;
46
+
47
+ /*--- Light Colors ---*/
48
+ @lightRed: #ff8180;
49
+ @lightOrange: #ffbf80;
50
+ @lightYellow: #fdffb2;
51
+ @lightOlive: #b5ccad;
52
+ @lightGreen: #b9e8e2;
53
+ @lightTeal: #76c4bc;
54
+ @lightBlue: #75c9db;
55
+ @lightViolet: #bfc0ff;
56
+ @lightPurple: #de99ff;
57
+ @lightLavender: #e8d2fd;
58
+ @lightPink: #ffbff1;
59
+ @lightBrown: #d9c2ad;
60
+ @lightGrey: #e6e7e8;
61
+ @lightBlack: #2e3e4c;
62
+
63
+ /*--- Neutrals ---*/
64
+ @fullBlack: #000000;
65
+ @offWhite: #f9fafb;
66
+ @darkWhite: #f3f4f5;
67
+ @midWhite: #dcddde;
68
+ @headerWhite: #faf8f8; // Pastanaga
69
+
70
+ /*--- Colored Backgrounds ---*/
71
+ @redBackground: #f5c1c1; // Palette: alertError
72
+ @orangeBackground: #ffedde;
73
+ @yellowBackground: #fff8db;
74
+ @oliveBackground: #fbfdef;
75
+ @greenBackground: #e5f9e7;
76
+ @tealBackground: #edf1f2; // Palette: Breadcrumbs
77
+ @blueBackground: #f2f6f8;
78
+ @violetBackground: #eae7ff;
79
+ @purpleBackground: #b8c6c8; // Dublin Core Summary
80
+ @pinkBackground: #ffe3fb;
81
+ @brownBackground: #f1e2d3;
82
+
83
+ /*--- Colored Headers ---*/
84
+ @redHeaderColor: darken(@redTextColor, 5);
85
+ @oliveHeaderColor: darken(@oliveTextColor, 5);
86
+ @greenHeaderColor: darken(@greenTextColor, 5);
87
+ @yellowHeaderColor: darken(@yellowTextColor, 5);
88
+ @blueHeaderColor: darken(@blueTextColor, 5);
89
+ @tealHeaderColor: darken(@tealTextColor, 5);
90
+ @pinkHeaderColor: darken(@pinkTextColor, 5);
91
+ @violetHeaderColor: darken(@violetTextColor, 5);
92
+ @purpleHeaderColor: darken(@purpleTextColor, 5);
93
+ @orangeHeaderColor: darken(@orangeTextColor, 5);
94
+ @brownHeaderColor: darken(@brownTextColor, 5);
95
+
96
+ /*--- Colored Text ---*/
97
+ @redTextColor: @red;
98
+ @orangeTextColor: @orange;
99
+ @yellowTextColor: #b58105; // Yellow text is difficult to read
100
+ @oliveTextColor: #8abc1e; // Olive is difficult to read
101
+ @greenTextColor: #1ebc30; // Green is difficult to read
102
+ @tealTextColor: @teal;
103
+ @blueTextColor: @blue;
104
+ @violetTextColor: @violet;
105
+ @purpleTextColor: @purple;
106
+ @pinkTextColor: @pink;
107
+ @brownTextColor: @brown;
108
+
109
+ /*--- Colored Border ---*/
110
+ @redBorderColor: @redTextColor;
111
+ @orangeBorderColor: @orangeTextColor;
112
+ @yellowBorderColor: @yellowTextColor;
113
+ @oliveBorderColor: @oliveTextColor;
114
+ @greenBorderColor: @greenTextColor;
115
+ @tealBorderColor: @tealTextColor;
116
+ @blueBorderColor: @blueTextColor;
117
+ @violetBorderColor: @violetTextColor;
118
+ @purpleBorderColor: @purpleTextColor;
119
+ @pinkBorderColor: @pinkTextColor;
120
+ @brownBorderColor: @brownTextColor;
121
+
122
+ // Pastanaga custom borders colors
123
+ @greyBorderColor: #c7d5d8; // breadcrumbs border
124
+ @lightGreyBorderColor: #edf1f2; // breadcrumbs background
125
+ @sidebarToggleButtonHighlightColor: @grey;
126
+
127
+ /*--- Progress Colors ---*/
128
+ @progressBarFrom0to30: @midBlue;
129
+ @progressBarFrom30to40: @mediumPersianBlue;
130
+ @progressBarFrom40to60: @mediumPersianBlue;
131
+ @progressBarFrom60to70: @pineGreen;
132
+ @progressBarFrom70to90: @pineGreen;
133
+ @progressBarFrom90to100: @bottleGreen;
134
+
135
+ /*-------------------
136
+ Alpha Colors
137
+ --------------------*/
138
+
139
+ @subtleTransparentBlack: rgba(0, 0, 0, 0.03);
140
+ @transparentBlack: rgba(0, 0, 0, 0.05);
141
+ @strongTransparentBlack: rgba(0, 0, 0, 0.1);
142
+ @veryStrongTransparentBlack: rgba(0, 0, 0, 0.15);
143
+
144
+ @subtleTransparentWhite: rgba(255, 255, 255, 0.02);
145
+ @transparentWhite: rgba(255, 255, 255, 0.08);
146
+ @strongTransparentWhite: rgba(255, 255, 255, 0.15);
package/src/fonts.less CHANGED
@@ -34,6 +34,7 @@
34
34
  @font-size-8: 2.25rem;
35
35
  @font-size-9: 2.5rem;
36
36
  @font-size-10: 2.75rem;
37
+ @font-size-11: 4.5rem;
37
38
  @font-size-fluid-0: clamp(1.125rem, 2vw, 1.25rem);
38
39
  @font-size-fluid-1: clamp(1.25rem, 4vw, 1.625rem);
39
40
  @font-size-fluid-2: clamp(1.5rem, 6vw, 2rem);
package/src/sizes.less CHANGED
@@ -104,3 +104,7 @@
104
104
  @size-12: @size-11 + @space-20; // 240px
105
105
  @size-13: @size-12 + @space-20; // 320px
106
106
  @size-14: @size-13 + @size-11; // 480px
107
+
108
+ // start of variables to use instead of direct tokens
109
+ @component-padding: @rem-space-5;
110
+ @component-separator: @rem-space-8;