@synerise/ds-typography 2.0.11 → 2.1.1

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/CHANGELOG.md CHANGED
@@ -3,6 +3,25 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.1.1](https://github.com/synerise/synerise-design/compare/@synerise/ds-typography@2.1.0...@synerise/ds-typography@2.1.1) (2026-11-03)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-typography
9
+
10
+
11
+
12
+
13
+
14
+ # [2.1.0](https://github.com/synerise/synerise-design/compare/@synerise/ds-typography@2.0.11...@synerise/ds-typography@2.1.0) (2026-10-29)
15
+
16
+
17
+ ### Features
18
+
19
+ * integrate Token Studio design tokens across the design system ([aabb447](https://github.com/synerise/synerise-design/commit/aabb447edfb2d0c85e3de1f07e809ef84083453b))
20
+
21
+
22
+
23
+
24
+
6
25
  ## [2.0.11](https://github.com/synerise/synerise-design/compare/@synerise/ds-typography@2.0.10...@synerise/ds-typography@2.0.11) (2026-10-28)
7
26
 
8
27
  **Note:** Version bump only for package @synerise/ds-typography
package/CLAUDE.md CHANGED
@@ -108,15 +108,15 @@ Type exported from `Ellipsis.tsx` (re-exported via `export * from './Text'`).
108
108
 
109
109
  ### `Description`
110
110
 
111
- Styled `<div>` for secondary/help text. Props: `disabled?: boolean` (reduces opacity to 0.4). Color: `grey-600`.
111
+ Styled `<div>` for secondary/help text. Props: `disabled?: boolean` (opacity `var(--ds-opacity-disabled)`). Color: `var(--ds-color-text-base-muted)`.
112
112
 
113
113
  ### `ErrorText`
114
114
 
115
- Styled `<div>` for field error messages. Color: `red-600`, bottom margin 4px. No custom props.
115
+ Styled `<div>` for field error messages. Color: `var(--ds-color-text-danger-default)`, bottom margin 4px. No custom props.
116
116
 
117
117
  ### `Label`
118
118
 
119
- Styled `<label>` for form field labels. Color: `grey-800`, font-weight 500, `display: block`, `cursor: pointer`. No custom props.
119
+ Styled `<label>` for form field labels. Color: `var(--ds-color-text-base-default)`, font-weight 500, `display: block`, `cursor: pointer`. No custom props.
120
120
 
121
121
  ### `macro`
122
122
 
@@ -124,9 +124,9 @@ Namespace of reusable styled-components CSS snippets for typography styling in c
124
124
 
125
125
  | Export | Description |
126
126
  |--------|-------------|
127
- | `h700`–`h100` | Heading scales (font-size, line-height, letter-spacing, grey-800 color) |
127
+ | `h700`–`h100` | Heading scales (font-size, line-height, letter-spacing, `var(--ds-color-text-base-default)` color) |
128
128
  | `medium`, `small`, `xsmall` | Body text scales |
129
- | `link` | Blue-600 link style with hover |
129
+ | `link` | `var(--ds-color-text-brand-default)` link style with hover |
130
130
  | `linkbutton` | Grey link variant |
131
131
  | `heading`, `regular` | Base weight/color mixins used by heading/body macros |
132
132
  | `tag`, `tooltip`, `xsAvatar`, `xlAvatar`, `xlAvatarIcon` | Specific UI element sizes |
@@ -176,7 +176,7 @@ const MyHeading = styled.div`
176
176
 
177
177
  ## Styling
178
178
 
179
- All styled primitives live in `CommonElements.ts`. Typography tokens come from `macro-utils.ts` (hardcoded scale values using `theme.palette` for colour). No variant prop on styled elements — size is selected by mapping to a different component.
179
+ All styled primitives live in `CommonElements.ts`. Typography tokens come from `macro-utils.ts` (hardcoded scale values using `var(--ds-color-text-*)` tokens for colour). No variant prop on styled elements — size is selected by mapping to a different component.
180
180
 
181
181
  `EllipsisText` sets `overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 100%` on a `<div>`, and makes inner heading/text elements `display: inline` or inherit parent styles.
182
182
 
@@ -3,15 +3,15 @@ import { h700, h600, h500, h400, h300, h200, h100, medium, small, xsmall } from
3
3
  const Description = /* @__PURE__ */ styled.div.withConfig({
4
4
  displayName: "CommonElements__Description",
5
5
  componentId: "sc-102d2aw-0"
6
- })(["color:", ";", ""], (props) => props.theme.palette["grey-600"], (props) => props.disabled ? `opacity: 0.4;` : "");
6
+ })(["color:var(--ds-color-text-base-muted);", ""], (props) => props.disabled ? `opacity: var(--ds-opacity-disabled);` : "");
7
7
  const ErrorText = /* @__PURE__ */ styled.div.withConfig({
8
8
  displayName: "CommonElements__ErrorText",
9
9
  componentId: "sc-102d2aw-1"
10
- })(["color:", ";margin-bottom:4px;"], (props) => props.theme.palette["red-600"]);
10
+ })(["color:var(--ds-color-text-danger-default);margin-bottom:4px;"]);
11
11
  const Label = /* @__PURE__ */ styled.label.withConfig({
12
12
  displayName: "CommonElements__Label",
13
13
  componentId: "sc-102d2aw-2"
14
- })(["color:", ";font-weight:500;display:block;cursor:pointer;"], (props) => props.theme.palette["grey-800"]);
14
+ })(["color:var(--ds-color-text-base-default);font-weight:500;display:block;cursor:pointer;"]);
15
15
  const MediumText = /* @__PURE__ */ styled.span.withConfig({
16
16
  displayName: "CommonElements__MediumText",
17
17
  componentId: "sc-102d2aw-3"
@@ -1,17 +1,17 @@
1
- export declare const heading: import('styled-components').FlattenInterpolation<import('styled-components').ThemeProps<any>>;
1
+ export declare const heading: import('styled-components').FlattenSimpleInterpolation;
2
2
  export declare const regular: import('styled-components').FlattenSimpleInterpolation;
3
- export declare const h700: import('styled-components').FlattenInterpolation<import('styled-components').ThemeProps<any>>;
4
- export declare const h600: import('styled-components').FlattenInterpolation<import('styled-components').ThemeProps<any>>;
5
- export declare const h500: import('styled-components').FlattenInterpolation<import('styled-components').ThemeProps<any>>;
6
- export declare const h400: import('styled-components').FlattenInterpolation<import('styled-components').ThemeProps<any>>;
7
- export declare const h300: import('styled-components').FlattenInterpolation<import('styled-components').ThemeProps<any>>;
8
- export declare const h200: import('styled-components').FlattenInterpolation<import('styled-components').ThemeProps<any>>;
9
- export declare const h100: import('styled-components').FlattenInterpolation<import('styled-components').ThemeProps<any>>;
3
+ export declare const h700: import('styled-components').FlattenSimpleInterpolation;
4
+ export declare const h600: import('styled-components').FlattenSimpleInterpolation;
5
+ export declare const h500: import('styled-components').FlattenSimpleInterpolation;
6
+ export declare const h400: import('styled-components').FlattenSimpleInterpolation;
7
+ export declare const h300: import('styled-components').FlattenSimpleInterpolation;
8
+ export declare const h200: import('styled-components').FlattenSimpleInterpolation;
9
+ export declare const h100: import('styled-components').FlattenSimpleInterpolation;
10
10
  export declare const medium: import('styled-components').FlattenSimpleInterpolation;
11
11
  export declare const small: import('styled-components').FlattenSimpleInterpolation;
12
12
  export declare const xsmall: import('styled-components').FlattenSimpleInterpolation;
13
- export declare const link: import('styled-components').FlattenInterpolation<import('styled-components').ThemeProps<any>>;
14
- export declare const linkbutton: import('styled-components').FlattenInterpolation<import('styled-components').ThemeProps<any>>;
13
+ export declare const link: import('styled-components').FlattenSimpleInterpolation;
14
+ export declare const linkbutton: import('styled-components').FlattenSimpleInterpolation;
15
15
  export declare const tag: import('styled-components').FlattenSimpleInterpolation;
16
16
  export declare const tooltip: import('styled-components').FlattenSimpleInterpolation;
17
17
  export declare const xsAvatar: import('styled-components').FlattenSimpleInterpolation;
@@ -1,5 +1,5 @@
1
1
  import { css } from "styled-components";
2
- const heading = /* @__PURE__ */ css(["font-weight:500;color:", ";"], (props) => props.theme.palette["grey-800"]);
2
+ const heading = /* @__PURE__ */ css(["font-weight:500;color:var(--ds-color-text-base-default);"]);
3
3
  const regular = /* @__PURE__ */ css(["font-weight:400;"]);
4
4
  const h700 = /* @__PURE__ */ css(["", ";font-size:24px;line-height:1.17;letter-spacing:-0.05px;"], heading);
5
5
  const h600 = /* @__PURE__ */ css(["", ";font-size:21px;line-height:1.24;letter-spacing:-0.05px;"], heading);
@@ -11,8 +11,8 @@ const h100 = /* @__PURE__ */ css(["", ";font-size:10px;line-height:1.6;letter-sp
11
11
  const medium = /* @__PURE__ */ css(["", ";font-size:14px;line-height:1.43;"], regular);
12
12
  const small = /* @__PURE__ */ css(["", ";font-size:13px;line-height:1.38;"], regular);
13
13
  const xsmall = /* @__PURE__ */ css(["", ";font-size:11px;line-height:1.45;letter-spacing:0.05px;"], regular);
14
- const link = /* @__PURE__ */ css(["font-size:13px;font-weight:500;transition:0.2s ease-in-out;color:", ";&:hover{text-decoration:underline;color:", ";}"], (props) => props.theme.palette["blue-600"], (props) => props.theme.palette["blue-500"]);
15
- const linkbutton = /* @__PURE__ */ css(["", ";color:", ";&:hover{color:", ";}"], link, (props) => props.theme.palette["grey-600"], (props) => props.theme.palette["grey-800"]);
14
+ const link = /* @__PURE__ */ css(["font-size:13px;font-weight:500;transition:0.2s ease-in-out;color:var(--ds-color-text-brand-default);&:hover{text-decoration:underline;color:var(--ds-color-text-brand-defaulthover);}"]);
15
+ const linkbutton = /* @__PURE__ */ css(["", ";color:var(--ds-color-text-base-muted);&:hover{color:var(--ds-color-text-base-default);}"], link);
16
16
  const tag = /* @__PURE__ */ css(["font-size:11px;"]);
17
17
  const tooltip = /* @__PURE__ */ css(["font-size:11px;"]);
18
18
  const xsAvatar = /* @__PURE__ */ css(["font-size:11px;"]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-typography",
3
- "version": "2.0.11",
3
+ "version": "2.1.1",
4
4
  "description": "Typography UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "synerise/synerise-design",
@@ -42,8 +42,8 @@
42
42
  ],
43
43
  "types": "dist/index.d.ts",
44
44
  "dependencies": {
45
- "@synerise/ds-tooltip": "^2.0.11",
46
- "@synerise/ds-utils": "^2.2.2",
45
+ "@synerise/ds-tooltip": "^2.1.1",
46
+ "@synerise/ds-utils": "^2.3.1",
47
47
  "classnames": "^2.5.1",
48
48
  "lodash.debounce": "^4.0.8"
49
49
  },
@@ -56,5 +56,5 @@
56
56
  "react": ">=16.9.0 <= 18.3.1",
57
57
  "styled-components": "^5.3.3"
58
58
  },
59
- "gitHead": "c356039703d8826bbbdb6dadcb18bb008fea8bc5"
59
+ "gitHead": "2d2a540b35fddf8855da45f0dec2f4612c6d87b6"
60
60
  }