@eeacms/volto-design-tokens 1.0.1 → 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,14 +4,54 @@ 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
- ### [0.1.1](https://github.com/eea/volto-design-tokens/compare/1.0.0...0.1.1) - 14 July 2023
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)]
28
+ ### [1.0.2](https://github.com/eea/volto-design-tokens/compare/1.0.1...1.0.2) - 29 August 2023
29
+
30
+ #### :bug: Bug Fixes
31
+
32
+ - fix: Change addon version [dana-cfc4 - [`251336d`](https://github.com/eea/volto-design-tokens/commit/251336daf9220cce0e86e603b61cfc9a2da5fd31)]
8
33
 
9
34
  #### :house: Internal changes
10
35
 
11
- - chore: Replace addon name [dana-cfc4 - [`bd18b00`](https://github.com/eea/volto-design-tokens/commit/bd18b006369b548ed2faef77e433cb3e52b5adda)]
12
- - chore: Change addon name, formatting [dana-cfc4 - [`8d96d9b`](https://github.com/eea/volto-design-tokens/commit/8d96d9bb5614db5695372e9e6cfff4ab195689ef)]
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
+
38
+ #### :house: Documentation changes
39
+
40
+ - docs: Cleanup Makefile, update DEVELOP documentation, i18n - refs #254894 [valentinab25 - [`5f437df`](https://github.com/eea/volto-design-tokens/commit/5f437df519d995eec1574078c7b323f229c0e4dd)]
41
+
42
+ #### :hammer_and_wrench: Others
43
+
44
+ - test: Update Makefile and docker-compose to align it with Jenkinsfile [valentinab25 - [`2db0dd0`](https://github.com/eea/volto-design-tokens/commit/2db0dd011ffdbbf9fb5649e7fae5c8f8e9c36e7a)]
45
+ - Update README.md [dana-cfc4 - [`0998283`](https://github.com/eea/volto-design-tokens/commit/09982830041c2a0aff4207bcacbc597efc9e6d1a)]
46
+ ### [1.0.1](https://github.com/eea/volto-design-tokens/compare/1.0.0...1.0.1) - 14 July 2023
47
+
48
+ #### :bug: Bug Fixes
49
+
50
+ - fix: correct version [Andrei Grigore - [`fde968c`](https://github.com/eea/volto-design-tokens/commit/fde968ca0c8c0417958d03021fbff3b8a91396a9)]
51
+
52
+ ## [1.0.0](https://github.com/eea/volto-design-tokens/compare/0.1.1...1.0.0) - 13 July 2023
13
53
 
14
- ## [1.0.0](https://github.com/eea/volto-design-tokens/compare/0.1.0...1.0.0) - 13 July 2023
54
+ ### [0.1.1](https://github.com/eea/volto-design-tokens/compare/0.1.0...0.1.1) - 14 July 2023
15
55
 
16
56
  ### 0.1.0 - 13 July 2023
17
57
 
package/DEVELOP.md CHANGED
@@ -2,6 +2,30 @@
2
2
 
3
3
  ## Develop
4
4
 
5
+ 1. Make sure you have `docker` and `docker compose` installed and running on your machine:
6
+
7
+ ```Bash
8
+ git clone https://github.com/eea/volto-design-tokens.git
9
+ cd volto-design-tokens
10
+ git checkout -b bugfix-123456 develop
11
+ make
12
+ make start
13
+ ```
14
+
15
+ 1. Wait for `Volto started at 0.0.0.0:3000` meesage
16
+
17
+ 1. Go to http://localhost:3000
18
+
19
+ 1. Initialize git hooks
20
+
21
+ ```Bash
22
+ yarn prepare
23
+ ```
24
+
25
+ 1. Happy hacking!
26
+
27
+ ### Or add @eeacms/volto-design-tokens to your Volto project
28
+
5
29
  Before starting make sure your development environment is properly set. See [Volto Developer Documentation](https://docs.voltocms.com/getting-started/install/)
6
30
 
7
31
  1. Make sure you have installed `yo`, `@plone/generator-volto` and `mrs-developer`
@@ -26,18 +50,15 @@ Before starting make sure your development environment is properly set. See [Vol
26
50
 
27
51
  1. Install
28
52
 
29
- yarn develop
53
+ make develop
30
54
  yarn
31
55
 
32
56
  1. Start backend
33
57
 
34
- docker pull plone
35
- 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
36
59
 
37
60
  ...wait for backend to setup and start - `Ready to handle requests`:
38
61
 
39
- docker logs -f plone
40
-
41
62
  ...you can also check http://localhost:8080/Plone
42
63
 
43
64
  1. Start frontend
@@ -49,3 +70,37 @@ Before starting make sure your development environment is properly set. See [Vol
49
70
  1. Happy hacking!
50
71
 
51
72
  cd src/addons/volto-design-tokens/
73
+
74
+ ## Cypress
75
+
76
+ To run cypress locally, first make sure you don't have any Volto/Plone running on ports `8080` and `3000`.
77
+
78
+ You don't have to be in a `clean-volto-project`, you can be in any Volto Frontend
79
+ project where you added `volto-design-tokens` to `mrs.developer.json`
80
+
81
+ Go to:
82
+
83
+ ```BASH
84
+ cd src/addons/volto-design-tokens/
85
+ ```
86
+
87
+ Start:
88
+
89
+ ```Bash
90
+ make
91
+ make start
92
+ ```
93
+
94
+ This will build and start with Docker a clean `Plone backend` and `Volto Frontend` with `volto-design-tokens` block installed.
95
+
96
+ Open Cypress Interface:
97
+
98
+ ```Bash
99
+ make cypress-open
100
+ ```
101
+
102
+ Or run it:
103
+
104
+ ```Bash
105
+ make cypress-run
106
+ ```
package/README.md CHANGED
@@ -19,14 +19,34 @@
19
19
 
20
20
  ## Features
21
21
 
22
- Demo GIF
22
+ Provides the following [EEA design system tokens](https://eea.github.io/):
23
+ * borders
24
+ * colors
25
+ * fonts
26
+ * shadows
27
+ * shapes
28
+ * sizes
29
+ * z-index
23
30
 
24
31
  ## Getting started
25
32
 
33
+ ### Try volto-design-tokens with Docker
34
+
35
+ git clone https://github.com/eea/volto-design-tokens.git
36
+ cd volto-design-tokens
37
+ make
38
+ make start
39
+
40
+ Go to http://localhost:3000
41
+
26
42
  ### Add volto-design-tokens to your Volto project
27
43
 
28
44
  1. Make sure you have a [Plone backend](https://plone.org/download) up-and-running at http://localhost:8080/Plone
29
45
 
46
+ ```Bash
47
+ docker compose up backend
48
+ ```
49
+
30
50
  1. Start Volto frontend
31
51
 
32
52
  * If you already have a volto project, just update `package.json`:
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,32 @@
1
+ version: "3"
2
+ services:
3
+ backend:
4
+ image: eeacms/plone-backend
5
+ ports:
6
+ - "8080:8080"
7
+ environment:
8
+ SITE: "Plone"
9
+ PROFILES: "eea.kitkat:testing"
10
+
11
+ frontend:
12
+ build:
13
+ context: ./
14
+ dockerfile: ./Dockerfile
15
+ args:
16
+ ADDON_NAME: "${ADDON_NAME}"
17
+ ADDON_PATH: "${ADDON_PATH}"
18
+ VOLTO_VERSION: ${VOLTO_VERSION:-16}
19
+ ports:
20
+ - "3000:3000"
21
+ - "3001:3001"
22
+ depends_on:
23
+ - backend
24
+ volumes:
25
+ - ./:/app/src/addons/${ADDON_PATH}
26
+ environment:
27
+ CI: "true"
28
+ NODE_ENV: "development"
29
+ RAZZLE_JEST_CONFIG: "src/addons/${ADDON_PATH}/jest-addon.config.js"
30
+ RAZZLE_INTERNAL_API_PATH: "http://backend:8080/Plone"
31
+ RAZZLE_DEV_PROXY_API_PATH: "http://backend:8080/Plone"
32
+ HOST: "0.0.0.0"
@@ -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
+
@@ -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
+
@@ -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
+
@@ -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/locales/volto.pot CHANGED
@@ -0,0 +1,16 @@
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Plone\n"
4
+ "POT-Creation-Date: 2023-06-28T10:48:22.678Z\n"
5
+ "Last-Translator: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
6
+ "Language-Team: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
7
+ "MIME-Version: 1.0\n"
8
+ "Content-Type: text/plain; charset=utf-8\n"
9
+ "Content-Transfer-Encoding: 8bit\n"
10
+ "Plural-Forms: nplurals=1; plural=0;\n"
11
+ "Language-Code: en\n"
12
+ "Language-Name: English\n"
13
+ "Preferred-Encodings: utf-8\n"
14
+ "Domain: volto\n"
15
+
16
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-design-tokens",
3
- "version": "1.0.1",
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;
@@ -1 +0,0 @@
1
- module.exports = require('@plone/volto/babel');