@times-design-system/theme-scss 2.12.1 → 2.13.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/README.md +5 -1
- package/dist/_tds-layout-tokens.scss +65 -0
- package/dist/tds-layout.scss +1 -65
- package/package.json +11 -4
package/README.md
CHANGED
|
@@ -16,9 +16,12 @@ yarn add @times-design-system/theme-scss
|
|
|
16
16
|
// Import typography utilities
|
|
17
17
|
@import '@times-design-system/theme-scss/tds-typography.scss';
|
|
18
18
|
|
|
19
|
-
// Import layout utilities
|
|
19
|
+
// Import layout utilities (variables, mixin and the .tds-grid class)
|
|
20
20
|
@import '@times-design-system/theme-scss/tds-layout.scss';
|
|
21
21
|
|
|
22
|
+
// Or import only the layout variables and mixin, without emitting any CSS
|
|
23
|
+
@import '@times-design-system/theme-scss/_tds-layout-tokens.scss';
|
|
24
|
+
|
|
22
25
|
// Import a specific theme palette
|
|
23
26
|
@import '@times-design-system/theme-scss/palettes/core-light.scss';
|
|
24
27
|
@import '@times-design-system/theme-scss/palettes/core-dark.scss';
|
|
@@ -70,6 +73,7 @@ dist/palettes/
|
|
|
70
73
|
|
|
71
74
|
```
|
|
72
75
|
dist/
|
|
76
|
+
├── _tds-layout-tokens.scss # Layout variables and grid mixin (no CSS output)
|
|
73
77
|
├── tds-layout.scss # Layout and grid utilities
|
|
74
78
|
├── tds-typography.scss # Typography mixins and utilities
|
|
75
79
|
└── palettes/ # Theme-specific SCSS palette files
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
$spacing-10: 18px;
|
|
2
|
+
$spacing-11: 20px;
|
|
3
|
+
$spacing-12: 23px;
|
|
4
|
+
$spacing-13: 24px;
|
|
5
|
+
$spacing-14: 28px;
|
|
6
|
+
$spacing-15: 32px;
|
|
7
|
+
$spacing-16: 36px;
|
|
8
|
+
$spacing-17: 40px;
|
|
9
|
+
$spacing-18: 48px;
|
|
10
|
+
$spacing-19: 56px;
|
|
11
|
+
$spacing-20: 64px;
|
|
12
|
+
$spacing-21: 80px;
|
|
13
|
+
$spacing-01: 2px;
|
|
14
|
+
$spacing-02: 3px;
|
|
15
|
+
$spacing-03: 4px;
|
|
16
|
+
$spacing-04: 6px;
|
|
17
|
+
$spacing-05: 8px;
|
|
18
|
+
$spacing-06: 10px;
|
|
19
|
+
$spacing-07: 12px;
|
|
20
|
+
$spacing-08: 14px;
|
|
21
|
+
$spacing-09: 16px;
|
|
22
|
+
$shadow-elevation-down-level-2: 0px 4px 8px 0px rgba(0,0,0,0.08);
|
|
23
|
+
$shadow-elevation-down-level-3: 0px 16px 24px 0px rgba(0,0,0,0.08);
|
|
24
|
+
$shadow-elevation-down-level-4: 0px 20px 32px 0px rgba(0,0,0,0.08);
|
|
25
|
+
$shadow-elevation-up-level-2: 0px -4px 8px 0px rgba(0,0,0,0.08);
|
|
26
|
+
$shadow-elevation-up-level-3: 0px -16px 24px 0px rgba(0,0,0,0.08);
|
|
27
|
+
$shadow-elevation-up-level-4: 0px -20px 32px 0px rgba(0,0,0,0.08);
|
|
28
|
+
$border-radius-50: 2px;
|
|
29
|
+
$border-radius-100: 4px;
|
|
30
|
+
$border-radius-150: 6px;
|
|
31
|
+
$border-radius-200: 8px;
|
|
32
|
+
$border-radius-300: 12px;
|
|
33
|
+
$border-radius-400: 16px;
|
|
34
|
+
$border-radius-full: 9999px;
|
|
35
|
+
$breakpoint-small: 0px;
|
|
36
|
+
$breakpoint-medium: 440px;
|
|
37
|
+
$breakpoint-large: 1024px;
|
|
38
|
+
$breakpoint-xLarge: 1440px;
|
|
39
|
+
|
|
40
|
+
@mixin responsive-tds-grid() {
|
|
41
|
+
// Mobile-first (small breakpoint)
|
|
42
|
+
grid-template-columns: repeat(4, 1fr);
|
|
43
|
+
grid-gap: 24px;
|
|
44
|
+
margin-inline: 20px;
|
|
45
|
+
max-width: 100%;
|
|
46
|
+
|
|
47
|
+
// Medium breakpoint
|
|
48
|
+
@media (min-width: 720px) {
|
|
49
|
+
grid-template-columns: repeat(12, 1fr);
|
|
50
|
+
grid-gap: 32px;
|
|
51
|
+
margin-inline: 24px;
|
|
52
|
+
max-width: 720px;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// Large breakpoint
|
|
56
|
+
@media (min-width: 976px) {
|
|
57
|
+
grid-template-columns: repeat(14, 1fr);
|
|
58
|
+
max-width: 976px;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// XLarge breakpoint
|
|
62
|
+
@media (min-width: 1144px) {
|
|
63
|
+
max-width: 1144px;
|
|
64
|
+
}
|
|
65
|
+
}
|
package/dist/tds-layout.scss
CHANGED
|
@@ -1,68 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
$spacing-11: 20px;
|
|
3
|
-
$spacing-12: 23px;
|
|
4
|
-
$spacing-13: 24px;
|
|
5
|
-
$spacing-14: 28px;
|
|
6
|
-
$spacing-15: 32px;
|
|
7
|
-
$spacing-16: 36px;
|
|
8
|
-
$spacing-17: 40px;
|
|
9
|
-
$spacing-18: 48px;
|
|
10
|
-
$spacing-19: 56px;
|
|
11
|
-
$spacing-20: 64px;
|
|
12
|
-
$spacing-21: 80px;
|
|
13
|
-
$spacing-01: 2px;
|
|
14
|
-
$spacing-02: 3px;
|
|
15
|
-
$spacing-03: 4px;
|
|
16
|
-
$spacing-04: 6px;
|
|
17
|
-
$spacing-05: 8px;
|
|
18
|
-
$spacing-06: 10px;
|
|
19
|
-
$spacing-07: 12px;
|
|
20
|
-
$spacing-08: 14px;
|
|
21
|
-
$spacing-09: 16px;
|
|
22
|
-
$shadow-elevation-down-level-2: 0px 4px 8px 0px rgba(0,0,0,0.08);
|
|
23
|
-
$shadow-elevation-down-level-3: 0px 16px 24px 0px rgba(0,0,0,0.08);
|
|
24
|
-
$shadow-elevation-down-level-4: 0px 20px 32px 0px rgba(0,0,0,0.08);
|
|
25
|
-
$shadow-elevation-up-level-2: 0px -4px 8px 0px rgba(0,0,0,0.08);
|
|
26
|
-
$shadow-elevation-up-level-3: 0px -16px 24px 0px rgba(0,0,0,0.08);
|
|
27
|
-
$shadow-elevation-up-level-4: 0px -20px 32px 0px rgba(0,0,0,0.08);
|
|
28
|
-
$border-radius-50: 2px;
|
|
29
|
-
$border-radius-100: 4px;
|
|
30
|
-
$border-radius-150: 6px;
|
|
31
|
-
$border-radius-200: 8px;
|
|
32
|
-
$border-radius-300: 12px;
|
|
33
|
-
$border-radius-400: 16px;
|
|
34
|
-
$border-radius-full: 9999px;
|
|
35
|
-
$breakpoint-small: 0px;
|
|
36
|
-
$breakpoint-medium: 440px;
|
|
37
|
-
$breakpoint-large: 1024px;
|
|
38
|
-
$breakpoint-xLarge: 1440px;
|
|
39
|
-
|
|
40
|
-
@mixin responsive-tds-grid() {
|
|
41
|
-
// Mobile-first (small breakpoint)
|
|
42
|
-
grid-template-columns: repeat(4, 1fr);
|
|
43
|
-
grid-gap: 24px;
|
|
44
|
-
margin-inline: 20px;
|
|
45
|
-
max-width: 100%;
|
|
46
|
-
|
|
47
|
-
// Medium breakpoint
|
|
48
|
-
@media (min-width: 720px) {
|
|
49
|
-
grid-template-columns: repeat(12, 1fr);
|
|
50
|
-
grid-gap: 32px;
|
|
51
|
-
margin-inline: 24px;
|
|
52
|
-
max-width: 720px;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
// Large breakpoint
|
|
56
|
-
@media (min-width: 976px) {
|
|
57
|
-
grid-template-columns: repeat(14, 1fr);
|
|
58
|
-
max-width: 976px;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
// XLarge breakpoint
|
|
62
|
-
@media (min-width: 1144px) {
|
|
63
|
-
max-width: 1144px;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
1
|
+
@import "tds-layout-tokens";
|
|
66
2
|
|
|
67
3
|
.tds-grid {
|
|
68
4
|
display: grid;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@times-design-system/theme-scss",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.13.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Times Design System theme package - pre-resolved color tokens for React",
|
|
6
6
|
"keywords": [
|
|
@@ -17,9 +17,12 @@
|
|
|
17
17
|
"exports": {
|
|
18
18
|
".": "./dist/index.js",
|
|
19
19
|
"./tds-layout.scss": "./dist/tds-layout.scss",
|
|
20
|
+
"./_tds-layout-tokens.scss": "./dist/_tds-layout-tokens.scss",
|
|
20
21
|
"./tds-typography.scss": "./dist/tds-typography.scss",
|
|
21
|
-
"./
|
|
22
|
-
"./
|
|
22
|
+
"./theme-apply.scss": "./dist/theme-apply.scss",
|
|
23
|
+
"./theme-classes.scss": "./dist/theme-classes.scss",
|
|
24
|
+
"./palettes/*": "./dist/palettes/*",
|
|
25
|
+
"./package.json": "./package.json"
|
|
23
26
|
},
|
|
24
27
|
"files": [
|
|
25
28
|
"dist/",
|
|
@@ -44,5 +47,9 @@
|
|
|
44
47
|
"url": "https://github.com/newsuk/times-design-system/issues"
|
|
45
48
|
},
|
|
46
49
|
"homepage": "https://github.com/newsuk/times-design-system#readme",
|
|
47
|
-
"
|
|
50
|
+
"sideEffects": [
|
|
51
|
+
"*.scss",
|
|
52
|
+
"*.css"
|
|
53
|
+
],
|
|
54
|
+
"gitHead": "000416306f162c9b78146c165606a7a1bfc84b29"
|
|
48
55
|
}
|