@times-design-system/theme-scss 2.0.2-alpha.8 → 2.2.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.
Files changed (32) hide show
  1. package/README.md +50 -56
  2. package/dist/palettes/business-dark.scss +185 -175
  3. package/dist/palettes/business-light.scss +10 -0
  4. package/dist/palettes/comment-dark.scss +185 -175
  5. package/dist/palettes/comment-light.scss +10 -0
  6. package/dist/palettes/core-dark.scss +184 -174
  7. package/dist/palettes/core-light.scss +10 -0
  8. package/dist/palettes/culture-dark.scss +185 -175
  9. package/dist/palettes/culture-light.scss +10 -0
  10. package/dist/palettes/home-dark.scss +185 -175
  11. package/dist/palettes/home-light.scss +10 -0
  12. package/dist/palettes/ireland-dark.scss +185 -175
  13. package/dist/palettes/ireland-light.scss +10 -0
  14. package/dist/palettes/lifeAndStyle-dark.scss +185 -175
  15. package/dist/palettes/lifeAndStyle-light.scss +10 -0
  16. package/dist/palettes/money-dark.scss +185 -175
  17. package/dist/palettes/money-light.scss +10 -0
  18. package/dist/palettes/obituaries-dark.scss +185 -175
  19. package/dist/palettes/obituaries-light.scss +10 -0
  20. package/dist/palettes/puzzles-dark.scss +185 -175
  21. package/dist/palettes/puzzles-light.scss +10 -0
  22. package/dist/palettes/sport-dark.scss +185 -175
  23. package/dist/palettes/sport-light.scss +10 -0
  24. package/dist/palettes/travel-dark.scss +185 -175
  25. package/dist/palettes/travel-light.scss +10 -0
  26. package/dist/palettes/uk-dark.scss +185 -175
  27. package/dist/palettes/uk-light.scss +10 -0
  28. package/dist/palettes/world-dark.scss +185 -175
  29. package/dist/palettes/world-light.scss +10 -0
  30. package/dist/tds-layout.scss +60 -6
  31. package/dist/tds-typography.scss +78 -35
  32. package/package.json +3 -3
package/README.md CHANGED
@@ -5,7 +5,7 @@ Times Design System SCSS theme package with pre-compiled palette files and utili
5
5
  ## Installation
6
6
 
7
7
  ```bash
8
- npm install @times-design-system/theme-scss
8
+ yarn add @times-design-system/theme-scss
9
9
  ```
10
10
 
11
11
  ## Usage
@@ -19,9 +19,9 @@ npm install @times-design-system/theme-scss
19
19
  // Import layout utilities
20
20
  @import '@times-design-system/theme-scss/tds-layout.scss';
21
21
 
22
- // Import a specific palette
23
- @import '@times-design-system/theme-scss/palettes/light-palette.scss';
24
- @import '@times-design-system/theme-scss/palettes/dark-palette.scss';
22
+ // Import a specific theme palette
23
+ @import '@times-design-system/theme-scss/palettes/core-light.scss';
24
+ @import '@times-design-system/theme-scss/palettes/core-dark.scss';
25
25
  ```
26
26
 
27
27
  ### Using Design Tokens in SCSS
@@ -29,21 +29,21 @@ npm install @times-design-system/theme-scss
29
29
  ```scss
30
30
  // Access color variables
31
31
  body {
32
- background-color: $tds-surface-canvas;
33
- color: $tds-text-primary;
32
+ background-color: $dark-core-surface-canvas;
33
+ color: $dark-core-text-primary;
34
34
  }
35
35
 
36
- // Use typography utilities
36
+ // Use typography mixins located in tds-typography.scss
37
37
  h1 {
38
- @include tds-heading-large;
39
- margin-bottom: $tds-spacing-200;
38
+ @include brand-heading-fluid-light-xlarge;
39
+ margin-bottom: $spacing-200;
40
40
  }
41
41
 
42
42
  // Use spacing tokens
43
43
  .component {
44
- padding: $tds-spacing-100;
45
- margin: $tds-spacing-050;
46
- border-radius: $tds-radius-100;
44
+ padding: $spacing-100;
45
+ margin: $spacing-050;
46
+ border-radius: $radius-100;
47
47
  }
48
48
  ```
49
49
 
@@ -53,48 +53,47 @@ All channel and brand palettes are included:
53
53
 
54
54
  ```
55
55
  dist/palettes/
56
- ├── light-palette.scss # Light mode palette
57
- ├── dark-palette.scss # Dark mode palette
58
- ├── light-brand-colors.scss # Light brand colors
59
- ├── dark-brand-colors.scss # Dark brand colors
60
- ├── light-channels.scss # Light channel colors
61
- ├── dark-channels.scss # Dark channel colors
62
- └── ... (20+ additional palettes)
56
+ ├── core-light.scss # Core theme (light mode)
57
+ ├── core-dark.scss # Core theme (dark mode)
58
+ ├── business-light.scss # Business theme (light mode)
59
+ ├── business-dark.scss # Business theme (dark mode)
60
+ ├── culture-light.scss # Culture theme (light mode)
61
+ ├── culture-dark.scss # Culture theme (dark mode)
62
+ ├── home-light.scss # Home theme (light mode)
63
+ ├── home-dark.scss # Home theme (dark mode)
64
+ ├── sport-light.scss # Sport theme (light mode)
65
+ ├── sport-dark.scss # Sport theme (dark mode)
66
+ └── ... (14 additional theme variants)
63
67
  ```
64
68
 
65
69
  ## Package Contents
66
70
 
67
71
  ```
68
72
  dist/
69
- ├── tds-layout.scss # Layout and grid utilities
70
- ├── tds-typography.scss # Typography mixins and utilities
71
- ├── variables.css # CSS custom properties (compatible)
72
- └── palettes/ # SCSS palette files
73
- ├── light-*.scss
74
- ├── dark-*.scss
75
- └── foundation-*.scss
73
+ ├── tds-layout.scss # Layout and grid utilities
74
+ ├── tds-typography.scss # Typography mixins and utilities
75
+ └── palettes/ # Theme-specific SCSS palette files
76
+ ├── business-light.scss
77
+ ├── business-dark.scss
78
+ ├── core-light.scss
79
+ ├── core-dark.scss
80
+ └── ... (24 total theme variants)
76
81
  ```
77
82
 
78
83
  ## Available Tokens
79
84
 
80
85
  ### Color Tokens
81
86
 
82
- All tokens follow a consistent naming pattern:
87
+ All tokens follow a consistent naming pattern of $[MODE]-[THEME]-[TOKEN]. Colour tokens have been published in both light and dark mode files for each theme, where the client will be responsible for resolving dynamic references to tokens for the associated theme/channel.
83
88
 
84
89
  ```scss
85
- // Semantic colors (light mode)
86
- $tds-text-primary
87
- $tds-text-secondary
88
- $tds-text-tertiary
89
- $tds-surface-canvas
90
- $tds-surface-level-1
91
- $tds-border-primary
92
-
93
- // Brand colors
94
- $tds-brand-home-500
95
- $tds-brand-business-500
96
- $tds-brand-sport-500
97
- // ... and more channels
90
+ // Semantic colors
91
+ $[MODE-THEME]-text-primary
92
+ $[MODE-THEME]-text-secondary
93
+ $[MODE-THEME]-text-tertiary
94
+ $[MODE-THEME]-surface-canvas
95
+ $[MODE-THEME]-surface-level-1
96
+ $[MODE-THEME]-border-primary
98
97
 
99
98
  // Dark mode variants
100
99
  // Use the palette files or CSS custom properties with light-dark()
@@ -103,30 +102,25 @@ $tds-brand-sport-500
103
102
  ### Spacing Tokens
104
103
 
105
104
  ```scss
106
- $tds-spacing-025 // 0.25rem
107
- $tds-spacing-050 // 0.5rem
108
- $tds-spacing-100 // 1rem
109
- $tds-spacing-200 // 1.5rem
110
- // ... scales up to $tds-spacing-400
105
+ $spacing-025 // 0.25rem
106
+ $spacing-050 // 0.5rem
107
+ $spacing-100 // 1rem
108
+ $spacing-200 // 1.5rem
109
+ // ... scales up to $spacing-400
111
110
  ```
112
111
 
113
112
  ### Typography
114
113
 
115
114
  ```scss
116
115
  // Use typography mixins
117
- @include tds-heading-large;
118
- @include tds-body-standard;
119
- @include tds-label-small;
116
+ @include brand-heading-fluid-light-large;
117
+ @include utility-body-regular-medium;
118
+ @include utility-label-small;
120
119
  ```
121
120
 
122
121
  ## Dark Mode Support
123
122
 
124
- The package includes dedicated dark mode palettes. Use CSS custom properties with `light-dark()` for best results:
125
-
126
- ```scss
127
- color: light-dark($tds-text-primary, $tds-text-primary-dark);
128
- background: light-dark($tds-surface-canvas, $tds-surface-canvas-dark);
129
- ```
123
+ The package includes dedicated dark mode palettes that can be referenced where applicable.
130
124
 
131
125
  ## Compatibility
132
126
 
@@ -139,10 +133,10 @@ background: light-dark($tds-surface-canvas, $tds-surface-canvas-dark);
139
133
  To rebuild the package after modifying tokens:
140
134
 
141
135
  ```bash
142
- npm run build
136
+ yarn build
143
137
  ```
144
138
 
145
- This will compile SCSS files with deduplication and asset distribution.
139
+ This will compile SCSS files with asset distribution.
146
140
 
147
141
  ## License
148
142