@baloise/ds-tokens 20.0.0-next.10 → 20.0.0-next.11

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.
@@ -1351,6 +1351,8 @@
1351
1351
  --ds-button-size-lg-padding-x: var(--ds-alias-space-padding-md);
1352
1352
  --ds-body-color: var(--ds-alias-text-color-primary);
1353
1353
  --ds-body-surface: var(--ds-alias-surface-white);
1354
+ --ds-body-selection-color: var(--ds-alias-text-color-primary);
1355
+ --ds-body-selection-surface: var(--ds-alias-surface-selected);
1354
1356
  --ds-card-shadow-flat: var(--ds-alias-shadow-box-none);
1355
1357
  --ds-card-shadow-base: var(--ds-alias-shadow-box-base);
1356
1358
  --ds-card-shadow-hover: var(--ds-alias-shadow-box-elevated);
@@ -1352,6 +1352,8 @@
1352
1352
  --ds-button-size-lg-padding-x: var(--ds-alias-space-padding-md);
1353
1353
  --ds-body-color: var(--ds-alias-text-color-primary);
1354
1354
  --ds-body-surface: var(--ds-alias-surface-white);
1355
+ --ds-body-selection-color: var(--ds-alias-text-color-primary);
1356
+ --ds-body-selection-surface: var(--ds-alias-surface-selected);
1355
1357
  --ds-card-shadow-flat: var(--ds-alias-shadow-box-none);
1356
1358
  --ds-card-shadow-base: var(--ds-alias-shadow-box-base);
1357
1359
  --ds-card-shadow-hover: var(--ds-alias-shadow-box-elevated);
@@ -2,7 +2,7 @@
2
2
  * Do not edit directly, this file was auto-generated.
3
3
  */
4
4
 
5
- [data-theme="erv"], :host([data-theme="erv"]) {
5
+ [data-theme="orange-vacations"], :host([data-theme="orange-vacations"]) {
6
6
  /* Global tokens */
7
7
  --ds-global-dimension-border-0: 0rem;
8
8
  --ds-global-dimension-border-1: 0.125rem;
@@ -1351,6 +1351,8 @@
1351
1351
  --ds-button-size-lg-padding-x: var(--ds-alias-space-padding-md);
1352
1352
  --ds-body-color: var(--ds-alias-text-color-primary);
1353
1353
  --ds-body-surface: var(--ds-alias-surface-white);
1354
+ --ds-body-selection-color: var(--ds-alias-text-color-primary);
1355
+ --ds-body-selection-surface: var(--ds-alias-surface-selected);
1354
1356
  --ds-card-shadow-flat: var(--ds-alias-shadow-box-none);
1355
1357
  --ds-card-shadow-base: var(--ds-alias-shadow-box-base);
1356
1358
  --ds-card-shadow-hover: var(--ds-alias-shadow-box-elevated);
@@ -2266,7 +2268,7 @@
2266
2268
  /* Device tokens: Tablet */
2267
2269
 
2268
2270
  @media (min-width: 769px) {
2269
- [data-theme="erv"], :host([data-theme="erv"]) {
2271
+ [data-theme="orange-vacations"], :host([data-theme="orange-vacations"]) {
2270
2272
  /* Alias tokens */
2271
2273
  --ds-alias-breakpoint: var(--ds-global-dimension-breakpoint-1);
2272
2274
 
@@ -2309,7 +2311,7 @@
2309
2311
  /* Device tokens: Desktop */
2310
2312
 
2311
2313
  @media (min-width: 1024px) {
2312
- [data-theme="erv"], :host([data-theme="erv"]) {
2314
+ [data-theme="orange-vacations"], :host([data-theme="orange-vacations"]) {
2313
2315
  /* Alias tokens */
2314
2316
  --ds-alias-breakpoint: var(--ds-global-dimension-breakpoint-2);
2315
2317
 
@@ -1351,6 +1351,8 @@
1351
1351
  --ds-button-size-lg-padding-x: var(--ds-alias-space-padding-md);
1352
1352
  --ds-body-color: var(--ds-alias-text-color-primary);
1353
1353
  --ds-body-surface: var(--ds-alias-surface-white);
1354
+ --ds-body-selection-color: var(--ds-alias-text-color-primary);
1355
+ --ds-body-selection-surface: var(--ds-alias-surface-selected);
1354
1356
  --ds-card-shadow-flat: var(--ds-alias-shadow-box-none);
1355
1357
  --ds-card-shadow-base: var(--ds-alias-shadow-box-base);
1356
1358
  --ds-card-shadow-hover: var(--ds-alias-shadow-box-elevated);
@@ -32109,6 +32109,58 @@
32109
32109
  "Body",
32110
32110
  "Font"
32111
32111
  ]
32112
+ },
32113
+ "Selection": {
32114
+ "Color": {
32115
+ "key": "{🧩 Component.Body.Selection.Color}",
32116
+ "$type": "color",
32117
+ "$value": "#000d6e",
32118
+ "filePath": "tokens/Base.tokens.json",
32119
+ "isSource": true,
32120
+ "original": {
32121
+ "$type": "color",
32122
+ "$value": "{🔗 Alias.🔤 Text.Color.Primary}",
32123
+ "key": "{🧩 Component.Body.Selection.Color}"
32124
+ },
32125
+ "name": "ds-body-selection-color",
32126
+ "attributes": {
32127
+ "category": "🧩 Component",
32128
+ "type": "Body",
32129
+ "item": "Selection",
32130
+ "subitem": "Color"
32131
+ },
32132
+ "path": [
32133
+ "🧩 Component",
32134
+ "Body",
32135
+ "Selection",
32136
+ "Color"
32137
+ ]
32138
+ },
32139
+ "Surface": {
32140
+ "key": "{🧩 Component.Body.Selection.Surface}",
32141
+ "$type": "color",
32142
+ "$value": "#cccfe2",
32143
+ "filePath": "tokens/Base.tokens.json",
32144
+ "isSource": true,
32145
+ "original": {
32146
+ "$type": "color",
32147
+ "$value": "{🔗 Alias.🎨 Surface.Selected}",
32148
+ "key": "{🧩 Component.Body.Selection.Surface}"
32149
+ },
32150
+ "name": "ds-body-selection-surface",
32151
+ "attributes": {
32152
+ "category": "🧩 Component",
32153
+ "type": "Body",
32154
+ "item": "Selection",
32155
+ "subitem": "Surface"
32156
+ },
32157
+ "path": [
32158
+ "🧩 Component",
32159
+ "Body",
32160
+ "Selection",
32161
+ "Surface"
32162
+ ]
32163
+ }
32112
32164
  }
32113
32165
  },
32114
32166
  "Card": {
@@ -822,6 +822,8 @@ export const DsComponentButtonSizeLgPaddingX = "1.5rem";
822
822
  export const DsComponentBodyColor = "#000d6e";
823
823
  export const DsComponentBodySurface = "#ffffff";
824
824
  export const DsComponentBodyFont = {"fontFamily":"\"BaloiseCreateText, Arial, sans-serif\"","fontSize":"1rem","fontWeight":"400","lineHeight":"1.5"};
825
+ export const DsComponentBodySelectionColor = "#000d6e";
826
+ export const DsComponentBodySelectionSurface = "#cccfe2";
825
827
  export const DsComponentCardShadowFlat = null;
826
828
  export const DsComponentCardShadowBase = null;
827
829
  export const DsComponentCardShadowHover = null;
@@ -45,8 +45,10 @@ export function mergeTokenTree(base, brand) {
45
45
  * was written to disk so Style Dictionary can read it as `source`.
46
46
  */
47
47
  export function createBrandConfig(mode) {
48
- const brandLower = mode.toLowerCase();
49
- const tmpFile = `tokens/.${brandLower}-full.tmp.json`;
48
+ // PascalCase brand name → kebab-case (e.g. "OrangeVacations" → "orange-vacations") for CSS
49
+ // output, export paths, and the `data-theme` attribute value.
50
+ const brandSlug = mode.replace(/([a-z0-9])([A-Z])/g, '$1-$2').toLowerCase();
51
+ const tmpFile = `tokens/.${brandSlug}-full.tmp.json`;
50
52
  const baseJson = JSON.parse(readFileSync(`tokens/Base.tokens.json`, 'utf8'));
51
53
  const brandJson = JSON.parse(readFileSync(`tokens/${mode}.tokens.json`, 'utf8'));
52
54
  const mergedTokens = mergeTokenTree(baseJson, brandJson);
@@ -62,7 +64,7 @@ export function createBrandConfig(mode) {
62
64
  files: [
63
65
  {
64
66
  format: 'ds/css/variables-brand',
65
- destination: `css/${brandLower}.tokens.css`,
67
+ destination: `css/${brandSlug}.tokens.css`,
66
68
  options: {
67
69
  selector: ':host, :root',
68
70
  outputReferences: true,
@@ -70,9 +72,9 @@ export function createBrandConfig(mode) {
70
72
  },
71
73
  {
72
74
  format: 'ds/css/variables-brand',
73
- destination: `css/${brandLower}.override.css`,
75
+ destination: `css/${brandSlug}.override.css`,
74
76
  options: {
75
- selector: `[data-theme="${brandLower}"], :host([data-theme="${brandLower}"])`,
77
+ selector: `[data-theme="${brandSlug}"], :host([data-theme="${brandSlug}"])`,
76
78
  outputReferences: true,
77
79
  },
78
80
  },
@@ -17,7 +17,7 @@ import { createBrandConfig } from './config.brand.js';
17
17
  const StyleDictionaryBase = new StyleDictionary(ConfigBase);
18
18
  StyleDictionaryBase.buildAllPlatforms();
19
19
  // Brand builds — add new brand names here (must match tokens/<Name>.tokens.json)
20
- const brands = ['Tcs', 'ERV'];
20
+ const brands = ['OrangeVacations'];
21
21
  for (const brand of brands) {
22
22
  const { config, cleanup } = createBrandConfig(brand);
23
23
  try {
@@ -819,6 +819,8 @@
819
819
  "ds-body-color": "#000d6e",
820
820
  "ds-body-surface": "#ffffff",
821
821
  "ds-body-font": {"fontFamily":"\"BaloiseCreateText, Arial, sans-serif\"","fontSize":"1rem","fontWeight":"400","lineHeight":"1.5"},
822
+ "ds-body-selection-color": "#000d6e",
823
+ "ds-body-selection-surface": "#cccfe2",
822
824
  "ds-card-shadow-flat": null,
823
825
  "ds-card-shadow-base": null,
824
826
  "ds-card-shadow-hover": null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@baloise/ds-tokens",
3
- "version": "20.0.0-next.10",
3
+ "version": "20.0.0-next.11",
4
4
  "description": "The Helvetia Design System is an open source project for styling awesome web applications that follow the Helvetia corporate styling guidelines.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -19,10 +19,8 @@
19
19
  "./dist/docs/base.tokens.json": "./dist/docs/base.tokens.json",
20
20
  "./css/base": "./dist/css/base.tokens.css",
21
21
  "./css/base-override": "./dist/css/base.override.css",
22
- "./css/erv": "./dist/css/erv.tokens.css",
23
- "./css/erv-override": "./dist/css/erv.override.css",
24
- "./css/tcs": "./dist/css/tcs.tokens.css",
25
- "./css/tcs-override": "./dist/css/tcs.override.css"
22
+ "./css/orange-vacations": "./dist/css/orange-vacations.tokens.css",
23
+ "./css/orange-vacations-override": "./dist/css/orange-vacations.override.css"
26
24
  },
27
25
  "devDependencies": {
28
26
  "eslint": "10.10.0",