# @hopper-ui/styled-system

## 4.0.9

### Patch Changes

- 128beb2: feat(Avatar): add description prop to Avatar for secondary tooltip text; fix per-avatar tooltip hover regression in AvatarGroup
  - Add `--hop-comp-avatar-description-color` token to both brands for secondary text in the AvatarGroup tooltip

## 4.0.8

### Patch Changes

- 1ec8329: Update the ShareGate Tag to use sentence case instead of uppercase, and remove the letter-spacing (tracking) across all sizes.

## 4.0.7

### Patch Changes

- 33ce5d9: Update ShareGate secondary Button border-color, border-color-selected, and border-color-loading from `{neutral.border-weakest}` to `{neutral.border-weak}`.

## 4.0.6

### Patch Changes

- eb1512c: Update ShareGate Button font family from ABC Favorit Mono to Inter by referencing `{body.md.font-family}` instead of `{caption.md.font-family}`.

## 4.0.5

### Patch Changes

- 63fe56c: Update ShareGate SegmentedControl box-shadow layer #3 (offsetX: -1px, offsetY: 1px, blur: 2px) and item-box-shadow-selected layer #1 (offsetX: 1px, offsetY: 1px, blur: 4px).

## 4.0.4

### Patch Changes

- c1f7436: Mirror Workleap Button typography tokens in ShareGate: font-weight, text-transform, font-size, line-height, and letter-spacing for all sizes (md, sm, xs).

## 4.0.3

### Patch Changes

- c6fb2dc: Reduce ShareGate Button letter spacing to 1px for all sizes (md, sm, xs).

## 4.0.2

### Patch Changes

- f13005e: Added a new core border-radius token `--hop-border-radius-2-5` (12px).

## 4.0.1

### Patch Changes

- 98b8452: Fix the Button medium font-size, line-height, and letter-spacing for ShareGate

## 4.0.0

### Major Changes

- 62a9ea1: - Added theme-able typography support for the `Button` component via new `comp-button-text-*` tokens (font, font-weight, text-transform, and per-size font-size / line-height / letter-spacing)
  - Added a new `caption` semantic typography scale (`xl`, `lg`, `md`, `sm`) for both Workleap and ShareGate (light and dark)
  - Added `md` and `xs` sizes for `accent` semantic typography scale (Workleap and ShareGate)
  - Added `accent.md` and `accent.xs` semantic typography sizes (Workleap and ShareGate)
  - Added new core `font.size` tokens: `100` (10px)
  - Added new core `line-height` tokens: `1-1666`, `1-40`
  - Added a new core `letter-spacing` token category with `dense-10`, `dense-5`, `0`, `wide-5`, `wide-10`, `wide-15`, `wide-20`, `wide-25`, `wide-30`
  - Added `letterSpacing` styled-system prop support backed by the new `letter-spacing` core scale, plus a matching `UNSAFE_letterSpacing` escape hatch
  - **BREAKING**: the `letterSpacing` styled-system prop is now restricted to values from the new `letter-spacing` core scale. Consumers passing raw CSS values (e.g. `"2px"`, `"3.5px"`) must migrate to `UNSAFE_letterSpacing` or use a token from the scale.

### Patch Changes

- 6980cd4: Add Tag branding tokens

## 3.2.3

### Patch Changes

- a773289: - Updated "rose" core color tokens
  - Added `danger-surface-weak-selected` semantic token (Workleap and ShareGate, light and dark)
  - Updated ShareGate Danger semantic tokens to use the Rose palette
  - Updated ShareGate Status semantic tokens (Neutral, Progress, Positive, Caution, Inactive, Option1–6)
  - Updated ShareGate Button Danger component tokens: background now uses a Rose gradient (`rose.300` → `rose.600`) and the same inset box-shadow as the Primary variant; hover/pressed/selected states converted to single-stop gradients for smooth transitions

## 3.2.2

### Patch Changes

- e022a83: Update some badge ShareGate component tokens

## 3.2.1

### Patch Changes

- ce0f650: - Add Callout and CompactCallout component tokens
  - Add border-box to Card component
- 964568d: - Update dark tokens for Information, Warning, Success for all themes.
  - Update dark tokens for Upsell (only for Workleap theme).
  - Update glassy modal related tokens.

## 3.2.0

### Minor Changes

- a5ae654: Support Glassy modals with a backdrop

### Patch Changes

- 7327855: Update icon-hover token in dark mode for ShareGate

## 3.1.10

### Patch Changes

- dfc7fb4: Added a new `elevation` prop to the Card component, and made `flat` the default so cards render without shadow unless opted in.
- 5790abf: Update Button tokens to match new ShareGate theme
- 66466d6: Add Listbox checkmark tokens
- db468be: Update Switch and SegmentedControl branding tokens
- 71d9ff7: Add ShareGate tokens for Tooltip component
- 781c702: Update background color of body when using ShareGate theme and withBodyStyle
- f3fd95a: Add Tabs branding tokens
- c0784b2: - Update Checkbox and Radio button tokens
  - Remove tactility-control core token
- 506256c: Update styles of Modal, Popover and PopoverBase in ShareGate theme.

  Add neutral-surface-transparent token.

## 3.1.9

### Patch Changes

- 171a611: - Updated Input and Card tokens for ShareGate theme
  - Removed border-radius.2-5 from core tokens
  - Removed tactility-card shadow from core tokens

## 3.1.8

### Patch Changes

- 5cb9d07: Add new colors, `secondary`, `*-inverse`, `*-always-light`, `*-always-dark`, and update some primary colors for ShareGate theme.

## 3.1.7

### Patch Changes

- 8d43263: - Add support for gradient color tokens: https://www.npmjs.com/package/style-dictionary-utils#gradientcss
  - Add support for shadow tokens: https://www.npmjs.com/package/style-dictionary-utils#shadowcss

## 3.1.6

### Patch Changes

- caf11f2: Fixed Workleap control disabled background color token using neutral.surface instead of neutral.surface-disabled, causing disabled Switch and SegmentedControl to appear white instead of grey

## 3.1.5

### Patch Changes

- 60c7679: Add Segmented Control and Switch component tokens for themeable branding:
  - Add `comp-control` tokens for background and border colors across all states (default, hover, press, selected, disabled, error, focus)
  - Add `comp-segmented-control` tokens for border radius, text color, icon color, and box shadow across states (default, selected)
  - Add `comp-switch` tokens for border radius, track filter, track box shadow, thumb filter, background color, and icon colors across all states (default, hover, press, selected, disabled)
  - Migrate SegmentedControl and SegmentedControlItem CSS from hardcoded semantic values to `--hop-comp-control-*` and `--hop-comp-segmented-control-*` tokens
  - Migrate Switch CSS from hardcoded semantic values to `--hop-comp-control-*` and `--hop-comp-switch-*` tokens

## 3.1.4

### Patch Changes

- 64874a1: Add Mark, Label component tokens and tactility shadows for themeable branding:
  - Add `comp-mark` tokens for background, border, check icon colors across all states (default, hover, press, focus, selected, disabled, error)
  - Add `comp-checkbox` and `comp-radio` tokens for border radius and box shadow overrides
  - Add `comp-label` tokens for text and icon colors across all states (default, hover, press, selected, disabled, focus, error)
  - Migrate Checkbox and Radio CSS from hardcoded semantic values to `--hop-comp-mark-*` and `--hop-comp-label-*` tokens
  - Rename `inset-bevel` shadow to `tactility-button` and add `tactility-card` and `tactility-control` shadow tokens

## 3.1.3

### Patch Changes

- 092c1a7: Add Card, Select, and Combobox component tokens for themeable branding:
  - Add `comp-card` tokens for border radius, background color, border color, and box shadow across both variants (main, second-level)
  - Migrate Card CSS from hardcoded semantic values to `--hop-comp-card-*` tokens
  - Add `comp-select` tokens for active and hover states (background, border, text colors)
  - Migrate Select and ComboBox CSS from hardcoded semantic values to `--hop-comp-select-*` and `--hop-comp-input-*` tokens.

## 3.1.2

### Patch Changes

- 8dc9376: Add Input component tokens for themeable branding:
  - Add `-comp-field` tokens for background, border, text, icon, placeholder, and prefill colors across all states (default, hover, focus, disabled, error)
  - Migrate Input, InputGroup, TextArea, TextField, SearchField, NumberField, and RemainingCharacterCount CSS from hardcoded semantic values to `--hop-comp-field-*` tokens.

## 3.1.1

### Patch Changes

- d55064b: Add Button component tokens for themeable branding:
  - Add `comp-button` tokens for all variants: primary, secondary, upsell, danger, ghost-primary, ghost-secondary, ghost-danger, and disabled states
  - Migrate Button and ToggleButton CSS from hardcoded semantic values to `--hop-comp-button-*` tokens.

## 3.1.0

### Minor Changes

- e4f524a: Add ShareGate tokens and core token updates:
  - Add new core color palettes: `persimmon`, `iris`, `limeburst`
  - Update `rock` color palette values
  - Add `inset-bevel` elevation token
  - Add `rounded-2-5` (12px) border radius
  - Update ShareGate semantic tokens: primary uses `iris`, upsell uses `limeburst`
  - Add `primary.surface-weak-selected` token to Workleap and ShareGate themes
  - Fix minor Workleap primary token values

## 3.0.1

### Patch Changes

- b7e55be: Improve typing of useColorSchemeValue

## 3.0.0

### Major Changes

- cd95303: This update introduces a theming system in Hopper, allowing applications to customize the appearance of Hopper components to match different brands.
  Workleap application's will need to import a new CSS file for the `workleap` theme to ensure proper styling, but no changes are expected to the visual appearance.
  A Sharegate theme as been introduced, but will be updated in future updates, for now it's mostly identical to the `workleap` theme.

  BREAKING
  - You need to import the css files for the themes you want to support in your application (@hopper-ui/styled-system/theme/workleap.css)
  - The `HopperProvider` component now accepts a `theme` that needs to match the selected theme. The default theme is `workleap` but the CSS file is still required to be imported.
  - For "@hopper-ui/components", the peer dependency for `@hopper-ui/styled-system` has been updated to version 3. Make sure to update it in your project to avoid any compatibility issues.
  - For "@hopper-ui/components", the peer dependency for `@hopper-ui/icons` has been updated to version 3. Make sure to update it in your project to avoid any compatibility issues.

## 2.5.14

### Patch Changes

- 02f1caa: Fix outline property in the styled system that was not working properly. Also added token values to it and an UNSAFE\_ property

## 2.5.13

### Patch Changes

- 48988fb: Bump and standardize dependencies

## 2.5.12

### Patch Changes

- 3297b20: Update dependencies

## 2.5.11

### Patch Changes

- 39d9c13: Update all dependencies

## 2.5.10

### Patch Changes

- 006d60a: Updated react-aria dependencies.

## 2.5.9

### Patch Changes

- 122a375: fix: transition property now works properly

## 2.5.8

### Patch Changes

- f37782e: Extends some CSS property types

  Changes:
  - Updated the CssBorder type definition to include DataType.LineStyle.
  - Added 0 as a valid value for GridAutoColumnsValue, GridAutoRowsValue, GridTemplateColumnsValue, GridTemplateRowsValue.
  - Added additional values such as "-moz-max-content", "-moz-min-content", "-webkit-fit-content" and 0 to HeightValue.
  - Added "normal" and 0 to LineHeightValue.
  - Added "auto" and 0 to SimpleMarginValue and ComplexMarginValue. Added 0 to SimplePaddingValue and ComplexPaddingValue.
  - Added 0 to RowGapValue.
  - Added "none" to SizingValue.
  - Added 0, "-moz-max-content", "-moz-min-content", "-webkit-fit-content", "-moz-fit-content", "-webkit-max-content", "intrinsic", and "min-intrinsic" to WidthValue.

## 2.5.7

### Patch Changes

- 4f84364: Revert the "All root elements now properly set their base typography" PR. Modal/Popover/Tooltips now sets their fonts properly themselves

## 2.5.6

### Patch Changes

- b56f903: All root elements now properly set their base typography

## 2.5.5

### Patch Changes

- 911767d: Exported a getRootCSSClasses function

## 2.5.4

### Patch Changes

- | 37a2b22:                     | Token                   | Category    | New Value |
  | ---------------------------- | ----------------------- | ----------- | --------- |
  | --hop-danger-border-press    | Semantic dark - colors  | amanita-400 |
  | --hop-danger-icon-selected   | Semantic dark - colors  | amanita-100 |
  | --hop-danger-border-selected | Semantic light - colors | amanita-400 |
  | --hop-danger-border-press    | Semantic light - colors | amanita-300 |
  | --hop-danger-icon-weak       | Semantic light - colors | amanita-400 |

## 2.5.3

### Patch Changes

- 41b0468: Modified the following tokens:

  **Added**

  | Token                     | Category                |
  | ------------------------- | ----------------------- |
  | --hop-danger-icon-weakest | Semantic token - colors |

## 2.5.2

### Patch Changes

- aca7251: Updated the upsell colors

## 2.5.1

### Patch Changes

- 0448ab1: Updated peer dependency versions range

## 2.5.0

### Minor Changes

- 2506f03: Added support to React 19

## 2.4.1

### Patch Changes

- d098c47: Updated all dependencies.

## 2.4.0

### Minor Changes

- 6b443bd: Added hop-dataviz-categorical-sequence-category11-hover token

## 2.3.3

### Patch Changes

- 7f8b609: Adjusted text-neutral-weakest color

## 2.3.2

### Patch Changes

- 41cbec0: Fixed a token typo

## 2.3.1

### Patch Changes

- 2f8f383: Patched neutral-border-press token color

## 2.3.0

### Minor Changes

- 47cb86f: Added space-10 token (1px)

## 2.2.0

### Minor Changes

- a3ee503: Added two tokens / updated one token

## 2.1.2

### Patch Changes

- a16cf30: Fixed wrong token

## 2.1.1

### Patch Changes

- 3cbbcf4: Fix mapping of borderColor

## 2.1.0

### Minor Changes

- d689dd8: Added new status tokens - updated some status tokens

## 2.0.2

### Patch Changes

- ac53639: Added slot method to utilities for Orbiter's interoperability

## 2.0.1

### Patch Changes

- 8ad853b: Retro fitted active color tokens to ease with migrations, these will be deprecated eventually.

## 2.0.0

### Major Changes

- c5c6b30: ## @hopper-ui/tokens

  **Added**

  | Token                                 |
  | ------------------------------------- |
  | danger-text-selected                  |
  | danger-border-selected                |
  | danger-icon-selected                  |
  | danger-icon-weak-hover                |
  | danger-icon-weak-press                |
  | danger-surface-selected               |
  | danger-surface-weak-hover             |
  | danger-surface-weak-press             |
  | danger-text-weak-hover                |
  | danger-text-weak-press                |
  | decorative-option5-surface-weak-hover |
  | neutral-surface-weak-selected         |
  | neutral-surface-weakest-selected      |
  | neutral-border-selected               |
  | neutral-icon-selected                 |
  | neutral-icon-strong-hover             |
  | neutral-icon-weak-press               |
  | neutral-surface-selected              |
  | neutral-text-weak-hover               |
  | neutral-text-weak-press               |
  | primary-border-selected               |
  | primary-icon-selected                 |
  | primary-surface-selected              |
  | primary-surface-strong-selected       |
  | primary-surface-weak-hover            |
  | primary-surface-weak-press            |
  | primary-text-selected                 |
  | upsell-border-selected                |
  | upsell-icon-selected                  |
  | upsell-icon-hover                     |
  | upsell-icon-weak-hover                |
  | upsell-icon-weak-press                |
  | upsell-surface-selected               |
  | upsell-surface-weak-hover             |
  | upsell-surface-weak-press             |
  | upsell-text-selected                  |
  | upsell-text-weak                      |
  | upsell-text-weak-hover                |
  | upsell-text-weak-press                |

  **Renamed**

  Use this as a reference to fix all breaking changes.

  | Old Token name                | New Token name               |
  | ----------------------------- | ---------------------------- |
  | danger-border-active          | danger-border-press          |
  | danger-icon-active            | danger-icon-press            |
  | danger-text-active            | danger-text-press            |
  | danger-surface-active         | danger-surface-press         |
  | neutral-border-active         | neutral-border-press         |
  | neutral-icon-active           | neutral-icon-press           |
  | neutral-surface-active        | neutral-surface-press        |
  | neutral-surface-weak-active   | neutral-surface-weak-press   |
  | neutral-text-active           | neutral-text-press           |
  | primary-border-active         | primary-border-press         |
  | primary-icon-active           | primary-icon-press           |
  | primary-surface-active        | primary-surface-press        |
  | primary-text-active           | primary-text-press           |
  | primary-surface-strong-active | primary-surface-strong-press |
  | upsell-border-active          | upsell-border-press          |
  | upsell-icon-active            | upsell-icon-press            |
  | upsell-surface-active         | upsell-surface-press         |
  | upsell-text-active            | upsell-text-press            |

  **Updated**

  | Token                        |
  | ---------------------------- |
  | danger-surface-hover         |
  | danger-surface-strong        |
  | danger-surface-strong-hover  |
  | danger-text-weak             |
  | status-progress-text         |
  | status-progress-icon         |
  | primary-surface-strong-hover |
  | primary-text                 |
  | primary-surface-hover        |
  | upsell-surface-hover         |
  | upsell-surface-weak          |
  | upsell-text                  |
  | upsell-icon                  |
  | upsell-text-hover            |

  ## @hopper-ui/components
  - Added a press state to Links
  - Added a press state to Buttons
  - Added a press state to Checkbbox
  - Added a press state to Switch
  - Added a press state to Radio
  - Added numerous tests to test Pressed States of components

## 1.2.0

### Minor Changes

- c6004a4: #### Changed

  **Semantic dark**

  | Token                           | Value   | Status |
  | ------------------------------- | ------- | ------ |
  | --hop-primary-text-strong-hover | samoyed | update |

## 1.1.0

### Minor Changes

- 6a2fe45: Added offset tokens to semantic Typographic composite tokens

## 1.0.0

### Major Changes

- 93a1a16: - Changed the useStyledSystem hook to return an object containing the className and the style, instead of merging it with the input props.
  - Added some sizing options while we wait for the sizing tokens

## 0.3.0

### Minor Changes

- aa5d10b: Added font fallback to font tokens

## 0.2.8

### Patch Changes

- 2f18e75: - Upsell disabled surface value has been set to treasure-25
  - Upsell surface value has been set to treasure-75

## 0.2.7

### Patch Changes

- 7717443: StyledSystemProvider now accepts a ref

## 0.2.6

### Patch Changes

- 2639596: Updated some dependencies + move some to peer dependency.
  Fixed a warning that was being thrown in the console regarding SSR.

## 0.2.5

### Patch Changes

- f5729c5: Modified the isStyledSystemProps to returns true when the UNSAFE\_ props are passed

## 0.2.4

### Patch Changes

- 20515b9: Modify the breakpoint context to not throw, so components can render even if no provider has been declared

## 0.2.3

### Patch Changes

- 7f259c1: Changed build target to target ES2019
- eb5de30: Updated neutral surface strong value in dark mode

## 0.2.2

### Patch Changes

- f40a266: Optimized the build output

## 0.2.1

### Patch Changes

- a31b7e2: Updated the heading small line height token to the right core token

## 0.2.0

### Minor Changes

- 0c4a1c7: Added main, types and style to the package.json

## 0.1.0

### Minor Changes

- 7ef9681: Updated styled system exports
