@entur/tokens
Advanced tools
Comparing version 3.4.4 to 3.4.5
@@ -6,2 +6,13 @@ # Change Log | ||
## [3.4.5](https://bitbucket.org/enturas/design-system/compare/@entur/tokens@3.4.4...@entur/tokens@3.4.5) (2023-02-02) | ||
### Bug Fixes | ||
* **icons:** update default metro and ferry colour due to WCAG issues ([d69d78f](https://bitbucket.org/enturas/design-system/commits/d69d78f77137efe34d7a704e1658f4f4bd67a7df)) | ||
## [3.4.4](https://bitbucket.org/enturas/design-system/compare/@entur/tokens@3.4.3...@entur/tokens@3.4.4) (2023-01-19) | ||
@@ -8,0 +19,0 @@ |
@@ -81,3 +81,3 @@ 'use strict'; | ||
"default": { | ||
metro: '#de8108', | ||
metro: '#bf5826', | ||
bus: '#c5044e', | ||
@@ -93,3 +93,3 @@ plane: '#800664', | ||
train: '#00367f', | ||
ferry: '#0497bc', | ||
ferry: '#0c6693', | ||
carferry: '#0497bc', | ||
@@ -96,0 +96,0 @@ mobility: '#388f76' |
@@ -1,2 +0,2 @@ | ||
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}Object.defineProperty(exports,"__esModule",{value:!0});var a=e(require("hex-rgb")),r=function(e){return e/16},t={brand:{blue:"#181c56",lavender:"#aeb7e2",white:"#ffffff",coral:"#ff5959",peach:"#ffbf9e"},blues:{blue10:"#292b6a",blue20:"#393d79",blue30:"#54568c",blue40:"#656782",blue50:"#8285a8",blue60:"#babbcf",blue70:"#d1d4e3",blue80:"#ebebf1",blue90:"#f5f5f8"},greys:{grey:"#121212",grey10:"#2a2a2a",grey20:"#353535",grey30:"#4d4d4d",grey40:"#646464",grey50:"#949494",grey60:"#d1d3d3",grey70:"#e9e9e9",grey80:"#f3f3f3",grey90:"#f8f8f8"},validation:{sky:"#0082b9",skyContrast:"#64b3e7",skyTint:"#e1eff8",lava:"#d31b1b",lavaContrast:"#ff9494",lavaTint:"#ffcece",mint:"#1a8e60",mintContrast:"#5ac39a",mintTint:"#d0f1e3",canary:"#ffca28",canaryContrast:"#ffe082",canaryTint:"#fff4cd"},misc:{focus:"rgba(68, 192, 255, 0.5)",black:"#000000"},transport:{default:{metro:"#de8108",bus:"#c5044e",plane:"#800664",helicopter:"#800664",tram:"#642e88",funicular:"#642e88",cableway:"#642e88",taxi:"#181c56",bicycle:"#181c56",walk:"#181c56",train:"#00367f",ferry:"#0497bc",carferry:"#0497bc",mobility:"#388f76"},contrast:{metro:"#f08901",bus:"#ff6392",plane:"#fbafea",helicopter:"#e258c3",tram:"#b482fb",funicular:"#a476e5",cableway:"#a476e5",taxi:"#ffffff",bicycle:"#ffffff",walk:"#ffffff",train:"#42a5f5",ferry:"#6fdfff",carferry:"#6fdfff",mobility:"#00db9b"}},data:{default:{blue:"#181c56",coral:"#ff5959",jungle:"#0ea2a8",azure:"#2f98fa",lavender:"#8692ca",peach:"#ca825b",spring:"#57a257",lilac:"#8e57e3"},contrast:{blue:"#6466aa",coral:"#ff5959",jungle:"#0fc2b3",azure:"#64b2fb",lavender:"#aeb7e2",peach:"#ffbf9e",spring:"#7bc00b",lilac:"#ea8bea"}}},l=a.default(t.misc.black,{format:"array"}).toString().slice(0,-2),f=a.default(t.blues.blue20,{format:"array"}).toString().slice(0,-2),s={focus:"0 0 0 0.125rem "+t.brand.white+", 0 0 0 0.25rem "+t.brand.blue,focusContrast:"0 0 0 0.125rem "+t.brand.blue+", 0 0 0 0.25rem "+t.brand.white,cardShadow:"0 0.0625rem 0.1875rem 0 rgba("+l+", 0.12)",cardShadowHover:"0 0.125rem 1rem 0 rgba("+l+", 0.1)",cardShadowContrast:"0 0.0625rem 0.1875rem 0 rgba("+f+", 1)",cardShadowHoverContrast:"0 0.125rem 1rem 0 rgba("+f+", 1)",boxShadow:"0 0.0625rem 0.1875rem rgba("+l+", 0.25)",boxShadowContrast:"0 0.0625rem 0.1875rem rgba("+f+", 1)"},o=[0,4,8,12,16,24,32,40,48,56,64,72,80,88,96],g={none:o[0],default:o[4],extraSmall2:o[1],extraSmall:o[2],small:o[3],medium:o[4],large:o[5],extraLarge:o[6],extraLarge2:o[7],extraLarge3:o[8],extraLarge4:o[9],extraLarge5:o[10],extraLarge6:o[11],extraLarge7:o[12],extraLarge8:o[13],extraLarge9:o[14],rem:{none:r(o[0]),default:r(o[4]),extraSmall2:r(o[1]),extraSmall:r(o[2]),small:r(o[3]),medium:r(o[4]),large:r(o[5]),extraLarge:r(o[6]),extraLarge2:r(o[7]),extraLarge3:r(o[8]),extraLarge4:r(o[9]),extraLarge5:r(o[10]),extraLarge6:r(o[11]),extraLarge7:r(o[12]),extraLarge8:r(o[13]),extraLarge9:r(o[14])}},b=[10,12,14,16,20,24,28,32,40],m={extraSmall:b[0],small:b[1],medium:b[2],large:b[3],extraLarge:b[4],extraLarge2:b[5],extraLarge3:b[6],extraLarge4:b[7],extraLarge5:b[8],rem:{extraSmall:r(b[0]),small:r(b[1]),medium:r(b[2]),large:r(b[3]),extraLarge:r(b[4]),extraLarge2:r(b[5]),extraLarge3:r(b[6]),extraLarge4:r(b[7]),extraLarge5:r(b[8])}},d=[14,16,20,22,24,28,30,36,42,48,60],x={extraSmall:d[0],small:d[1],medium:d[2],large:d[3],extraLarge:d[4],extraLarge2:d[5],extraLarge3:d[6],extraLarge4:d[7],extraLarge5:d[8],extraLarge6:d[9],extraLarge7:d[10],rem:{extraSmall:r(d[0]),small:r(d[1]),medium:r(d[2]),large:r(d[3]),extraLarge:r(d[4]),extraLarge2:r(d[5]),extraLarge3:r(d[6]),extraLarge4:r(d[7]),extraLarge5:r(d[8]),extraLarge6:r(d[9]),extraLarge7:r(d[10])}},c={large:800,extraLarge:1200,rem:{large:r(800),extraLarge:r(1200)}},i=[1,2,4],u={default:i[1],small:i[0],medium:i[1],large:i[2],rem:{default:r(i[1]),small:r(i[0]),medium:r(i[1]),large:r(i[2])}},n=[1,4],L={default:n[0],small:n[0],medium:n[1],rem:{default:r(n[0]),small:r(n[0]),medium:r(n[1])}},y=[-1,0,10,20,30,40,50],p={behind:y[0],default:y[1],sticky:y[2],popover:y[3],overlay:y[4],modal:y[5],toast:y[6]},h=["0.1s","0.2s","0.5s"],S={fast:h[0],medium:h[1],slow:h[2]},w={focus:"2px solid "+t.brand.blue,focusContrast:"2px solid "+t.brand.white+" "},v=[2],k={focus:v[0],rem:{focus:r(v[0])}};exports.borderRadiuses=L,exports.borderWidths=u,exports.breakpoints=c,exports.colors=t,exports.fontSizes=m,exports.fontWeights={body:"500",heading:"600"},exports.lineHeights=x,exports.outlineOffsets=k,exports.outlines=w,exports.shadows=s,exports.space=g,exports.timings=S,exports.zIndexes=p; | ||
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}Object.defineProperty(exports,"__esModule",{value:!0});var a=e(require("hex-rgb")),r=function(e){return e/16},t={brand:{blue:"#181c56",lavender:"#aeb7e2",white:"#ffffff",coral:"#ff5959",peach:"#ffbf9e"},blues:{blue10:"#292b6a",blue20:"#393d79",blue30:"#54568c",blue40:"#656782",blue50:"#8285a8",blue60:"#babbcf",blue70:"#d1d4e3",blue80:"#ebebf1",blue90:"#f5f5f8"},greys:{grey:"#121212",grey10:"#2a2a2a",grey20:"#353535",grey30:"#4d4d4d",grey40:"#646464",grey50:"#949494",grey60:"#d1d3d3",grey70:"#e9e9e9",grey80:"#f3f3f3",grey90:"#f8f8f8"},validation:{sky:"#0082b9",skyContrast:"#64b3e7",skyTint:"#e1eff8",lava:"#d31b1b",lavaContrast:"#ff9494",lavaTint:"#ffcece",mint:"#1a8e60",mintContrast:"#5ac39a",mintTint:"#d0f1e3",canary:"#ffca28",canaryContrast:"#ffe082",canaryTint:"#fff4cd"},misc:{focus:"rgba(68, 192, 255, 0.5)",black:"#000000"},transport:{default:{metro:"#bf5826",bus:"#c5044e",plane:"#800664",helicopter:"#800664",tram:"#642e88",funicular:"#642e88",cableway:"#642e88",taxi:"#181c56",bicycle:"#181c56",walk:"#181c56",train:"#00367f",ferry:"#0c6693",carferry:"#0497bc",mobility:"#388f76"},contrast:{metro:"#f08901",bus:"#ff6392",plane:"#fbafea",helicopter:"#e258c3",tram:"#b482fb",funicular:"#a476e5",cableway:"#a476e5",taxi:"#ffffff",bicycle:"#ffffff",walk:"#ffffff",train:"#42a5f5",ferry:"#6fdfff",carferry:"#6fdfff",mobility:"#00db9b"}},data:{default:{blue:"#181c56",coral:"#ff5959",jungle:"#0ea2a8",azure:"#2f98fa",lavender:"#8692ca",peach:"#ca825b",spring:"#57a257",lilac:"#8e57e3"},contrast:{blue:"#6466aa",coral:"#ff5959",jungle:"#0fc2b3",azure:"#64b2fb",lavender:"#aeb7e2",peach:"#ffbf9e",spring:"#7bc00b",lilac:"#ea8bea"}}},l=a.default(t.misc.black,{format:"array"}).toString().slice(0,-2),f=a.default(t.blues.blue20,{format:"array"}).toString().slice(0,-2),s={focus:"0 0 0 0.125rem "+t.brand.white+", 0 0 0 0.25rem "+t.brand.blue,focusContrast:"0 0 0 0.125rem "+t.brand.blue+", 0 0 0 0.25rem "+t.brand.white,cardShadow:"0 0.0625rem 0.1875rem 0 rgba("+l+", 0.12)",cardShadowHover:"0 0.125rem 1rem 0 rgba("+l+", 0.1)",cardShadowContrast:"0 0.0625rem 0.1875rem 0 rgba("+f+", 1)",cardShadowHoverContrast:"0 0.125rem 1rem 0 rgba("+f+", 1)",boxShadow:"0 0.0625rem 0.1875rem rgba("+l+", 0.25)",boxShadowContrast:"0 0.0625rem 0.1875rem rgba("+f+", 1)"},o=[0,4,8,12,16,24,32,40,48,56,64,72,80,88,96],g={none:o[0],default:o[4],extraSmall2:o[1],extraSmall:o[2],small:o[3],medium:o[4],large:o[5],extraLarge:o[6],extraLarge2:o[7],extraLarge3:o[8],extraLarge4:o[9],extraLarge5:o[10],extraLarge6:o[11],extraLarge7:o[12],extraLarge8:o[13],extraLarge9:o[14],rem:{none:r(o[0]),default:r(o[4]),extraSmall2:r(o[1]),extraSmall:r(o[2]),small:r(o[3]),medium:r(o[4]),large:r(o[5]),extraLarge:r(o[6]),extraLarge2:r(o[7]),extraLarge3:r(o[8]),extraLarge4:r(o[9]),extraLarge5:r(o[10]),extraLarge6:r(o[11]),extraLarge7:r(o[12]),extraLarge8:r(o[13]),extraLarge9:r(o[14])}},b=[10,12,14,16,20,24,28,32,40],m={extraSmall:b[0],small:b[1],medium:b[2],large:b[3],extraLarge:b[4],extraLarge2:b[5],extraLarge3:b[6],extraLarge4:b[7],extraLarge5:b[8],rem:{extraSmall:r(b[0]),small:r(b[1]),medium:r(b[2]),large:r(b[3]),extraLarge:r(b[4]),extraLarge2:r(b[5]),extraLarge3:r(b[6]),extraLarge4:r(b[7]),extraLarge5:r(b[8])}},d=[14,16,20,22,24,28,30,36,42,48,60],x={extraSmall:d[0],small:d[1],medium:d[2],large:d[3],extraLarge:d[4],extraLarge2:d[5],extraLarge3:d[6],extraLarge4:d[7],extraLarge5:d[8],extraLarge6:d[9],extraLarge7:d[10],rem:{extraSmall:r(d[0]),small:r(d[1]),medium:r(d[2]),large:r(d[3]),extraLarge:r(d[4]),extraLarge2:r(d[5]),extraLarge3:r(d[6]),extraLarge4:r(d[7]),extraLarge5:r(d[8]),extraLarge6:r(d[9]),extraLarge7:r(d[10])}},c={large:800,extraLarge:1200,rem:{large:r(800),extraLarge:r(1200)}},i=[1,2,4],u={default:i[1],small:i[0],medium:i[1],large:i[2],rem:{default:r(i[1]),small:r(i[0]),medium:r(i[1]),large:r(i[2])}},n=[1,4],L={default:n[0],small:n[0],medium:n[1],rem:{default:r(n[0]),small:r(n[0]),medium:r(n[1])}},y=[-1,0,10,20,30,40,50],p={behind:y[0],default:y[1],sticky:y[2],popover:y[3],overlay:y[4],modal:y[5],toast:y[6]},h=["0.1s","0.2s","0.5s"],S={fast:h[0],medium:h[1],slow:h[2]},w={focus:"2px solid "+t.brand.blue,focusContrast:"2px solid "+t.brand.white+" "},v=[2],k={focus:v[0],rem:{focus:r(v[0])}};exports.borderRadiuses=L,exports.borderWidths=u,exports.breakpoints=c,exports.colors=t,exports.fontSizes=m,exports.fontWeights={body:"500",heading:"600"},exports.lineHeights=x,exports.outlineOffsets=k,exports.outlines=w,exports.shadows=s,exports.space=g,exports.timings=S,exports.zIndexes=p; | ||
//# sourceMappingURL=tokens.cjs.production.min.js.map |
@@ -73,3 +73,3 @@ import hexRgb from 'hex-rgb'; | ||
"default": { | ||
metro: '#de8108', | ||
metro: '#bf5826', | ||
bus: '#c5044e', | ||
@@ -85,3 +85,3 @@ plane: '#800664', | ||
train: '#00367f', | ||
ferry: '#0497bc', | ||
ferry: '#0c6693', | ||
carferry: '#0497bc', | ||
@@ -88,0 +88,0 @@ mobility: '#388f76' |
@@ -211,72 +211,1 @@ # EUROPEAN UNION PUBLIC LICENCE v. 1.2 | ||
All other changes or additions to this Appendix require the production of a new EUPL version. | ||
# Standard Nucleo License | ||
- Last updated: July 2, 2018 | ||
- [Github repo](https://github.com/NucleoApp/license-standard) | ||
By purchasing the Nucleo icons, you have the right to: | ||
- Use the Nucleo icons in unlimited personal and commercial projects, for yourself or a client, with no limitation to the number of impressions for your end product. | ||
- Use the Nucleo icons in applications, software, UI/UX design, print, and logo design. | ||
- Modify the Nucleo icons to create your icon variations. | ||
You don't have the right to: | ||
- Sublicense, resell, share, transfer, or otherwise redistribute the Nucleo icons (even for free or within a more complex downloadable file). | ||
- Use the Nucleo icons in a product that is directly competitive with Nucleo. | ||
## Limitations & Extended license | ||
- **For each project, you can use a maximum of 250 Nucleo icons** (intended per unique style: for example, if you're using the same icon in both the outline and glyph styles, or in 2 different sizes, you're using 2 icons). You can lift this limit by purchasing an Extended License. | ||
- If you're using Nucleo icons in templates, themes or plugins offered for sale, you can use a maximum of 100 Nucleo icons. You can lift this limit by purchasing an Extended License. | ||
- If you're using the Nucleo icons in open source projects, you can use a maximum of 100 Nucleo icons. | ||
- If you're interested in using the Nucleo icons in items offered for sale (or for free) where the Nucleo icons contribute to the core value of the product being sold/shared, you will need an Extended License (e.g., a CMS where users can browse the Nucleo icons and pick the ones to include in their design). | ||
[Learn more about the Extended License](https://nucleoapp.com/extended-license) | ||
## Freelance Projects & Contracted work | ||
If you're working on a project for a client, you can share with your client a maximum of 250 Nucleo icons per project. You can't share the Nucleo source files unless the client purchases a license. | ||
If the Nucleo icons contribute to the core value of the product being sold/shared, or if you (or your client) wish to include more than 250 icons in the project, the [Extended License](https://nucleoapp.com/extended-license) is required. | ||
## Templates, Themes, UI Kits & Plugins | ||
If you're using Nucleo icons in templates, themes or plugins offered for sale (e.g., UI kits, Wordpress Themes, HTML/CSS Templates), **you can include up to 100 icons in the downloadable source files**. This limitation applies to the icon fonts as well. | ||
The downloadable source file has to include the [Nucleo Copyright Notice](https://nucleoapp.com/copyright-notice). | ||
If the Nucleo icons contribute to the core value of the template, theme or plugin sold (e.g., a theme builder where users can browse Nucleo icons and pick the ones to include in their design), or if you wish to use more than 100 Nucleo icons, you will need an [Extended License](https://nucleoapp.com/extended-license). | ||
It's not possible to purchase an Extended License if the template, theme or plugin is distributed for free. | ||
If you're offering a free and pro version of your product, the free version cannot include more than 100 icons even if you purchased an Extended License to lift the limit. The Extended License applies only to the pro version of your product. | ||
## Open source projects | ||
If you're using the Nucleo icons in open source projects, **you can include up to 100 icons in the downloadable source files**. This limitation applies to the icon fonts as well. | ||
The downloadable source file has to include the [Nucleo Copyright Notice](https://nucleoapp.com/copyright-notice). | ||
It's not possible to purchase an Extended License for open source projects. | ||
## Sharing Nucleo icons with team members | ||
If you're the sole owner of a Nucleo license, you can share with your team members only the icons used in your work, with a maximum of 250 icons (e.g., if you're a designer, you can share with the developers of your team only the Nucleo icons used in your design files). | ||
Your team members cannot reuse the Nucleo icons in other projects unless they purchase a license. | ||
If more than one team member needs access to the Nucleo icons, you can consider purchasing a [team license](https://nucleoapp.com/pricing). | ||
## Design systems | ||
If you wish to include the Nucleo icons in a design system available on a public server, you can use a maximum of 250 Nucleo icons, even if your team purchased a Nucleo team license. | ||
If the design system is accessible only by the members of your organization (e.g., is hosted on a password protected server), but you're the sole owner of a Nucleo license, you can share with your colleagues a maximum of 250 Nucleo icons. | ||
If the design system is on a public server, you can lift the 250 icons limit by buying an [Extended License](https://nucleoapp.com/extended-license). However, please keep in mind you can't provide a link/button to download all the icons. | ||
If your team purchased a Nucleo team license that covers all the users with access to the design system, and the design system is not public (e.g., is hosted on a password protected server), then there's no limitation to the number of icons that can be included. | ||
If you're still unclear about what is or isn't allowed under this license, please contact us at info@nucleoapp.com. |
{ | ||
"name": "@entur/tokens", | ||
"version": "3.4.4", | ||
"version": "3.4.5", | ||
"license": "EUPL-1.2", | ||
@@ -29,3 +29,3 @@ "main": "dist/index.js", | ||
"flat": "^5.0.1", | ||
"fs-extra": "^8.1.0", | ||
"fs-extra": "^9.0.0", | ||
"path": "0.12.7", | ||
@@ -35,5 +35,5 @@ "ts-node": "^8.3.0" | ||
"dependencies": { | ||
"hex-rgb": "^4.1.0" | ||
"hex-rgb": "^4.3.0" | ||
}, | ||
"gitHead": "de71e205560a699e2dce301e133966dc9348c459" | ||
"gitHead": "224040bb9f98c2c8975ce76f0786265c9e3459e2" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
128741
Updatedhex-rgb@^4.3.0