@justeattakeaway/pie-css 0.26.1 → 0.27.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/dist/index.css +10 -0
- package/package.json +5 -2
- package/scss/mixins/_font-theme.scss +3 -3
package/dist/index.css
CHANGED
|
@@ -155,6 +155,7 @@
|
|
|
155
155
|
--dt-color-container-base: rgb(255,255,255,0.72);
|
|
156
156
|
--dt-color-container-neutral: rgb(240,236,230,0.72);
|
|
157
157
|
--dt-color-container-prominent: rgb(255,255,255,0.4);
|
|
158
|
+
--dt-color-container-base-dark: rgb(43,42,40,0.62);
|
|
158
159
|
--dt-color-border-default: var(--dt-color-truffle-20);
|
|
159
160
|
--dt-color-border-subtle: var(--dt-color-truffle-10);
|
|
160
161
|
--dt-color-border-strong: var(--dt-color-truffle-30);
|
|
@@ -544,6 +545,13 @@
|
|
|
544
545
|
--dt-font-caption-strong-family: var(--dt-font-family-primary);
|
|
545
546
|
--dt-font-caption-strong-weight: var(--dt-font-weight-bold);
|
|
546
547
|
--dt-font-caption-strong-paragraph: var(--dt-font-paragraph-spacing-03);
|
|
548
|
+
/* Caption-strong-italic font theme */
|
|
549
|
+
--dt-font-caption-strong-italic-size: var(--dt-font-size-12);
|
|
550
|
+
--dt-font-caption-strong-italic-line-height: var(--dt-font-line-height-16);
|
|
551
|
+
--dt-font-caption-strong-italic-family: var(--dt-font-family-primary);
|
|
552
|
+
--dt-font-caption-strong-italic-weight: var(--dt-font-weight-extrabold);
|
|
553
|
+
--dt-font-caption-strong-italic-font-style: var(--dt-font-style-italic);
|
|
554
|
+
--dt-font-caption-strong-italic-paragraph: var(--dt-font-paragraph-spacing-03);
|
|
547
555
|
/* Caption-strong-link font theme */
|
|
548
556
|
--dt-font-caption-strong-link-size: var(--dt-font-size-12);
|
|
549
557
|
--dt-font-caption-strong-link-line-height: var(--dt-font-line-height-16);
|
|
@@ -688,6 +696,7 @@ html[data-color-mode="dark"] {
|
|
|
688
696
|
--dt-color-container-base: rgb(43,42,40,0.62);
|
|
689
697
|
--dt-color-container-neutral: rgb(89,86,79,0.72);
|
|
690
698
|
--dt-color-container-prominent: rgb(43,42,40,0.42);
|
|
699
|
+
--dt-color-container-base-dark: rgb(43,42,40,0.62);
|
|
691
700
|
--dt-color-border-default: var(--dt-color-truffle-70);
|
|
692
701
|
--dt-color-border-subtle: var(--dt-color-truffle-75);
|
|
693
702
|
--dt-color-border-strong: var(--dt-color-truffle-65);
|
|
@@ -864,6 +873,7 @@ html[data-color-mode="dark"] {
|
|
|
864
873
|
--dt-color-container-base: rgb(43,42,40,0.62);
|
|
865
874
|
--dt-color-container-neutral: rgb(89,86,79,0.72);
|
|
866
875
|
--dt-color-container-prominent: rgb(43,42,40,0.42);
|
|
876
|
+
--dt-color-container-base-dark: rgb(43,42,40,0.62);
|
|
867
877
|
--dt-color-border-default: var(--dt-color-truffle-70);
|
|
868
878
|
--dt-color-border-subtle: var(--dt-color-truffle-75);
|
|
869
879
|
--dt-color-border-strong: var(--dt-color-truffle-65);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@justeattakeaway/pie-css",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.27.0",
|
|
4
4
|
"description": "A styling library that provides both a shared collection of ready to use CSS styles to be used across JET web front-ends, and SCSS-based style helpers for our PIE Web Component library.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"cdnContentType": "text/css"
|
|
21
21
|
},
|
|
22
22
|
"scripts": {
|
|
23
|
-
"build": "run -T ts-node ./buildCss.ts && run -T sass scss/_internal/typography.scss dist/helpers/typography.css --no-source-map",
|
|
23
|
+
"build": "run -T ts-node ./buildCss.ts && run -T sass --load-path=../../../node_modules scss/_internal/typography.scss dist/helpers/typography.css --no-source-map",
|
|
24
24
|
"lint:scripts": "run -T eslint .",
|
|
25
25
|
"lint:scripts:fix": "yarn lint:scripts --fix",
|
|
26
26
|
"lint:style": "run -T stylelint ./**/*.{css,scss}",
|
|
@@ -37,6 +37,9 @@
|
|
|
37
37
|
"SASS"
|
|
38
38
|
],
|
|
39
39
|
"license": "Apache-2.0",
|
|
40
|
+
"dependencies": {
|
|
41
|
+
"@justeat/pie-design-tokens": "7.11.1"
|
|
42
|
+
},
|
|
40
43
|
"devDependencies": {
|
|
41
44
|
"@types/postcss-import": "14.0.3",
|
|
42
45
|
"include-media": "2.0.0",
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
@use 'sass:list';
|
|
3
3
|
@use 'sass:map';
|
|
4
4
|
|
|
5
|
-
//
|
|
6
|
-
//
|
|
7
|
-
@use '
|
|
5
|
+
// this is imported so that we have access to the SCSS design tokens
|
|
6
|
+
// Used mainly to check if font tokens exist using meta.variable-exists()
|
|
7
|
+
@use '@justeat/pie-design-tokens/dist/jet.scss' as *;
|
|
8
8
|
|
|
9
9
|
@mixin font-theme($token-name) {
|
|
10
10
|
// Define the wide breakpoint to be used in the responsive media query.
|