Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@atlaskit/tokens

atlassian2.5mApache-2.06.5.0TypeScript support: included

Design tokens are the single source of truth to name and store design decisions.

readme

Tokens

Tokens are a single source of truth to name and store Atlassian design decisions.

Installation

yarn add @atlaskit/tokens

Usage

View documentation.

BabelPlugin

A babel plugin to optimise performance and support fallbacks for Design System tokens.

It replaces any calls to the @atlaskit/tokens token() function with the CSS value the function would return (i.e. var(--token-name) or variations with fallbacks).

If there’s no fallback, the plugin (optionally) finds the token’s value from the default Atlassian theme, and sets it as the fallback.

If there is a fallback defined in code, it’s inserted into the style (expressions are inserted using template strings).

Usage

Add the plugin to your babel configuration:

{
  "plugins": [
    ["@atlaskit/tokens/babel-plugin", { "shouldUseAutoFallback": true }]
  ]
}

Options

Currently the plugin supports one option, shouldUseAutoFallback. When not disabled, the plugin will fetch the token's value in the default Atlassian theme (currently atlassian-light) and use it as the fallback value.

This is useful for cases where tokens are in use, but token definitions aren't guaranteed to be present in the top-level page CSS.

changelog

@atlaskit/tokens

6.5.0

Minor Changes

  • d65b31774de31 - Removed deprecated border radius and border width tokens from CSS type.

6.4.3

Patch Changes

6.4.2

Patch Changes

6.4.1

Patch Changes

  • 437668dfbdec9 - Add explicit types to a number of DST components

6.4.0

Minor Changes

  • 25ac893657f27 - Extending setGlobalTheme to accept a function as an argument to update theme properties without reinitializing defaults. For example this can be used when switching color mode:

    setGlobalTheme((themeState) => ({
     ...themeState,
     colorMode: themeState.colorMode === 'light' ? 'dark' : 'light',
    }));

6.3.3

Patch Changes

6.3.2

Patch Changes

6.3.1

Patch Changes

6.3.0

Minor Changes

  • d4a45d8562c6d - Added radius.tile token to be used exclusively for creating tiles.

6.2.0

Minor Changes

  • b2cbc15f17d6a - Added radius.tile token to be used exclusively for creating tiles.

6.1.4

Patch Changes

  • 255837cfba315 - Internal changes to how border radius is applied.

6.1.3

Patch Changes

  • 23bcc5bbc9cee - Internal changes to how border radius is applied.

6.1.2

Patch Changes

  • 3b5b4a919aaaf - Internal changes to how border radius is applied.

6.1.1

Patch Changes

6.1.0

Minor Changes

  • fcd8f46058cd2 - Added new radius and border width tokens. Added new shape themes: shape-rounder and shape-roundest. Note these new themes are experimental and may be deleted without notice. Deprecated old border radius and border width tokens.

6.0.0

Major Changes

5.6.3

Patch Changes

  • #193214 c661806a65543 - Internal changes to how border radius and border width values are applied. No visual change.

5.6.2

Patch Changes

5.6.1

Patch Changes

  • Updated dependencies

5.6.0

Minor Changes

  • #188275 3be70f03be763 - Deprecating existing typography theme ids (typography-adg3, typography-modernized and typography-refreshed) in favour of a new typography theme id. Using the new typography theme id enables the latest refreshed typography resulting in no functional change. This new typography theme id is enabled by default behind a feature flag. If testing successful, this change will be made available in a later release.

5.5.0

Minor Changes

  • #184245 f8d9018702c99 - Update DesignTokenStyles type to support using '50%' value for inset properties in @atlaskit/css.

5.4.1

Patch Changes

5.4.0

Minor Changes

5.3.0

Minor Changes

  • #172429 efcc283cecdfe - Added metric typography tokens which can be used via the CSS font shorthand.

5.2.1

Patch Changes

5.2.0

Minor Changes

  • #165589 6cfd5bcd946b6 - Introduction of metric text tokens for typography to be used in charts,dashboards and various neumerical information copies.

5.1.0

Minor Changes

  • #166633 c146842d9f44f - Adds an @atlaskit/tokens/token-metadata entrypoint to better share raw metadata across packages for MCP server and similar code generation.

5.0.0

Major Changes

  • #164028 fe8647c2f54c6 - The shouldForceAutoFallback option is now set to true by default. Please be aware that upgrading to this major version will cause all explicitly set fallback values (the values in the second argument of token function) in your codebase to be ignored. Instead, these values will be automatically replaced with default values that correspond to the default theme during build time. As a result, the UI may change if certain themes are not yet enabled. If some themes are not ready for this change, you can use the forceAutoFallbackExemptions option to prevent automatic replacement for them during build time. Also, this update might lead to test failures if your tests are designed to verify explicit fallback values. You can explicitly set this value to false if you wish to keep all your current fallback values intact. Read more: https://atlassian.design/tokens/use-tokens-in-code#migration-to-tokens

4.9.1

Patch Changes

4.9.0

Minor Changes

  • #156778 d137f762d8efc - Expand @atlaskit/css borderRadius API to include {number}px and {number}rem values.

4.8.2

Patch Changes

4.8.1

Patch Changes

  • #145286 1da0ecb159341 - Tiny wording change on @atlaskit/tokens/babel-plugin to more clearly describe the error without string literal argument(s)

4.8.0

Minor Changes

Patch Changes

  • Updated dependencies

4.7.0

Minor Changes

  • #137774 02ed87dfa643c - Adds forceAutoFallbackExemptions that allows skipping certain tokens from fallback enforcement

4.6.0

Minor Changes

4.5.2

Patch Changes

4.5.1

Patch Changes

4.5.0

Minor Changes

4.4.1

Patch Changes

  • #124329 b0d988fe689d9 - Consolidate ADS themes by adding the icon.color.subtlest with the value equal to icon.color.subtle to non-brand-refresh themes

4.4.0

Minor Changes

4.3.2

Patch Changes

4.3.1

Patch Changes

4.3.0

Minor Changes

  • #121081 90c226d24a7ac - Expand dimension type in @atlaskit/css to include vw/vh and percentage values.

4.2.0

Minor Changes

4.1.0

Minor Changes

4.0.0

Major Changes

Patch Changes

  • Updated dependencies

3.3.2

Patch Changes

  • #115124 e22fce04b0119 - Narrow type definition for overflowWrap and textDecorationLine properties. This change does not impact the @atlaskit/tokens API directly, but it does narrow types of css properties/tokens used via @atlaskit/css.

3.3.1

Patch Changes

  • Updated dependencies

3.3.0

Minor Changes

Patch Changes

  • Updated dependencies

3.2.0

Minor Changes

  • #102495 cf97e4ada8d52 - Modernized typography theme now applies a font weight of 653 for bold instead of 700. This includes heading tokens and the individual font.weight.bold token.

Patch Changes

  • #105744 bc9ed5e4ee94d - Updated 'ak-postbuild' script to also build '@atlaskit/platform-feature-flags'

3.1.0

Minor Changes

3.0.0

Major Changes

  • #102047 3cc4b295175a6 - Removed deprecated tokens:

    • font.size.X
    • font.lineHeight.X
    • font.letterSpacing.X
    • font.family.sans
    • font.family.monospace

    Typography should be applied via composite tokens, i.e. font.heading.X and font.body.X instead. Use font.family.heading or font.family.body instead of font.family.sans. Use font.family.code instead of font.family.monospace.

2.5.1

Patch Changes

2.5.0

Minor Changes

  • #177967 f387ab1f662e4 - Updated the visual refresh color.chart token values. Reduced the required contrast for a chart color token.

2.4.3

Patch Changes

2.4.2

Patch Changes

2.4.1

Patch Changes

2.4.0

Minor Changes

  • #169533 7cee6c17dfdaf - Expands type coverage for the fontWeight property to include vendor defaults such as 'inherit' 'initial' 'unset'.

    This change does not impact the @atlaskit/tokens API directly, but it does expand type coverage of css properties/tokens used via @atlaskit/css.

Patch Changes

  • Updated dependencies

2.3.0

Minor Changes

2.2.0

Minor Changes

  • #160957 d0fdd33f28249 - [ux] Default typography theme changed to modernized behind feature flag platform-default-typography-modernized. If testing is successful the change will be available in a later release.

2.1.0

Minor Changes

  • #159268 487d22f32a93f - In the DesignTokenStyles schema which controls @atlaskit/css type interfaces:
    • Adds zIndex: -1|0|1 as a valid options
    • Blocks the background property from being used, use backgroundColor or another property directly instead

2.0.5

Patch Changes

  • #158114 01676a379617b - Modifies our bounded CSS type schema to allow both numeric and string 0 values for ease-of-use.

2.0.4

Patch Changes

2.0.3

Patch Changes

2.0.2

Patch Changes

  • Updated dependencies

2.0.1

Patch Changes

  • #146966 a0a364753d2c7 - Modifies our bounded CSS type schema to allow both numeric and string 0 values for ease-of-use.

2.0.0

Major Changes

  • #145551 d477dc32ae480 - Changes the @atlaskit/tokens/babel-plugin's 'shouldUseAutoFallback' configuration to be true by default as this is currently the expectation within a majority of Atlassian's frontend code.

    To opt-out (which likely means you must be using fallbacks manually or can guarantee theming is turned on), you would have config like this in Babel, Webpack, or similar:

    "plugins": [
      ["@atlaskit/tokens/babel-plugin", { "shouldUseAutoFallback": false }]
    ]

Patch Changes

  • #145551 d477dc32ae480 - Removes 'shouldUseAutoFallbacks' config on '@atlaskit/tokens/babel-plugin' as this is now the default.

1.61.0

Minor Changes

1.60.0

Minor Changes

  • #138792 59c6812e1be91 - Update the @atlaskit/css schema to include:

    • border and font shorthand token values
    • Background and color -hovered and -pressed tokens are available in the non-psuedo-states for patterns like <div css={[isHovered && hoveredStyles]} />
    • Adds more commonly used media queries

1.59.1

Patch Changes

1.59.0

Minor Changes

  • #130373 dd80abd23af36 - Added experimental typography-refreshed theme. This should not be used at this stage.

1.58.0

Minor Changes

  • #127511 db30e29344013 - Widening range of react and react-dom peer dependencies from ^16.8.0 || ^17.0.0 || ~18.2.0 to the wider range of ^16.8.0 || ^17.0.0 || ^18.0.0` (where applicable).

    This change has been done to enable usage of `react@18.3as well as to have a consistent peer dependency range forreactandreact-domfor/platform` packages.

Patch Changes

  • Updated dependencies

1.57.0

Minor Changes

  • #126723 b637fc4edb5b9 - [ux] tokens-babel-plugin accepts shouldForceAutoFallback which overrides fallback values regardless of provided fallback.

1.56.3

Patch Changes

  • #125137 f50390862bd7b - Updated shadow tokens to use the new colours from visual refresh colour palettes. Changes are also behind the visual refresh feature flag.

1.56.2

Patch Changes

  • #121959 44763b631bec5 - Renamed typography-minor3 theme to typography-modernized. There are no visual changes, purely just a rename.

1.56.1

Patch Changes

  • #121520 4217ca1a57749 - Internal change only. Prefix unused argument of getThemeOverridePreferences with an underscore.

1.56.0

Minor Changes

1.55.0

Minor Changes

  • #120811 f66512151ee38 - Removed responsive behaviour from heading tokens. Heading tokens will no longer scale down on smaller displays. This may be reintroduced in the future with different behaviour.

1.54.1

Patch Changes

1.54.0

Minor Changes

  • #119869 c9fbedbef614e - The DesignTokenStyles type now allows transparent and currentcolor for backgrounds, and transparent for text colors.

1.53.2

Patch Changes

  • #116982 a8a3ff480c6a1 - Cleaned up feature flag platform.design-system-team.mutation-observer-performance-improvement_8usdg.

1.53.1

Patch Changes

  • Updated dependencies

1.53.0

Minor Changes

1.52.0

Minor Changes

1.51.0

Minor Changes

  • #111016 d131599730792 - Explicitly set jsxRuntime to classic via pragma comments in order to avoid issues where jsxRuntime is implicitly set to automatic.

1.50.0

Minor Changes

  • #110191 c3dc02298f8aa - [ux] Change heading xsmall lineheight from 16 to 20 for minor third theme.

1.49.1

Patch Changes

1.49.0

Minor Changes

1.48.0

Minor Changes

  • #98637 ae9502319628 - Export FontFamilyToken and FontWeightToken types. Added descriptions for typography tokens. Internal changes to token ordering logic.

1.47.0

Minor Changes

  • #98149 45101e24202a - Change the state of the following tokens from deprecated to active:

    • font.family.body
    • font.family.code
    • font.family.heading

1.46.0

Minor Changes

Patch Changes

  • #98562 5c59b4fec679 - ThemeMutationObserver only ever creates one instance of a mutation observer which reduces memory impacts at scale. This change is behind a platform feature flag - "platform.design-system-team.mutation-observer-performance-improvement_8usdg"

1.45.1

Patch Changes

  • #96516 fc7451742d3b - Remove the version from non-production warns to avoid internal conflicts as debugging like this should not be necessary; this package should be a singleton.

1.45.0

Minor Changes

  • #94675 5d9e1dccacca - [ux] Update input border color token to meet 3:1 color contrast ratioLight theme: color.border.input: #091E4224 → #8590A2Dark mode: color.border.input: #A6C5E229 → #738496

1.44.1

Patch Changes

  • #96059 e511f40c0989 - Generate a local prebuilt version of this package (to use the babel plugin internally in local consumption more performantly)–should not interfere with distribution at all.

1.44.0

Minor Changes

  • #94487 9c81d48cda91 - Removed deprecated experimental font.ui tokens. These experimental tokens were not documented and not intended for use. The font.body tokens should be used instead.

1.43.2

Patch Changes

1.43.1

Patch Changes

1.43.0

Minor Changes

1.42.1

Patch Changes

1.42.0

Minor Changes

1.41.2

Patch Changes

1.41.1

Patch Changes

1.41.0

Minor Changes

  • #80805 427c2dd9e0d6 - [ux] Update input border color token to meet 3:1 color contrast ratio

    Light theme: color.border.input: #091E4224 → #8590A2 Dark mode: color.border.input: #A6C5E229 →

    738496

  • #79670 28b71d14576b - Adds autofallback support for Spacing, Typography, and Shape themes to the babel plugin.

1.40.0

Minor Changes

1.39.1

Patch Changes

1.39.0

Minor Changes

1.38.0

Minor Changes

  • #74836 66062ea65d5b - Added font family tokens for our brand font for headings and body text.

1.37.2

Patch Changes

1.37.1

Patch Changes

1.37.0

Minor Changes

1.36.0

Minor Changes

1.35.0

Minor Changes

1.34.1

Patch Changes

1.34.0

Minor Changes

  • #67463 caac5b953575 - Fixed an issue where typography tokens referenced font family tokens that may not exist on a page, causing fallbacks to break.

1.33.0

Minor Changes

  • #63526 e8835feffae9 - Internal change to improve token sorting logic for typography tokens. Typography tokens are now marked as active though they are still in development and not recommend for use without prior approval from ADS.

1.32.0

Minor Changes

  • #63504 668f6aa3ca86 - Adds an entrypoint @atlaskit/tokens/css-type-schema containing a type definition for css values contrained to tokens.

1.31.0

Minor Changes

1.30.0

Minor Changes

  • #59752 df0bbb7c4cc1 - Removed minor-second typography theme: typography. ADG3 and Minor third themes remain as the two typography themes.

1.29.2

Patch Changes

  • #59147 f12e489f23b0 - Re-build and deploy packages to NPM to resolve React/Compiled not found error (HOT-106483).

1.29.1

Patch Changes

  • #57118 b9bd80957181 - Upgrade Emotion v10 (@emotion/core) to Emotion v11 (@emotion/react). No behaviour change expected.

1.29.0

Minor Changes

Patch Changes

  • #43718 8aebcad547a - Deprecated tokens are now warned against even when a replacement token has not been specified

1.28.2

Patch Changes

1.28.1

Patch Changes

1.28.0

Minor Changes

  • #41365 fab3ce9e39a - Added smaller variants of heading tokens that get used for screen widths 1023px and below (Minor Third scale only). For example font.heading.xlarge will switch to the styles defined by font.heading.large on smaller screens.

1.27.0

Minor Changes

  • #41516 e6f589d4777 - [ux] This version releases changes that were feature flagged in version 1.25.0; they include minor adjustments to our color palette and design tokens.

    These changes make certain colors more distinguishable, improves the visual appearance of warning and yellow accent backgrounds, and reduces saturation for subtle backgrounds in dark mode.

Palette changes

All saturated palettes
  • Saturation for 1000 shades reduced for all saturated palettes to reduce eye strain when placed against subtle UI in dark mode
Red
  • Saturation reduced on entire scale
  • Hue adjusted to create more separation from orange
Orange
  • Saturation reduced on entire scale
  • Hue adjusted to create more separation from yellow
Lime
  • Saturation for 100 shades reduced
Green
  • Saturation for 100 shades reduced
Teal
  • Hue adjusted to create more separation from green
All palette changes
  • Red100 has changed from #FFEDEB to #ffeceb
  • Red200 has changed from #FFD2CC to #ffd5d2
  • Red300 has changed from #FF9C8F to #fd9891
  • Red400 has changed from #F87462 to #f87168
  • Red500 has changed from #EF5C48 to #f15b50
  • Red600 has changed from #E34935 to #e2483d
  • Red700 has changed from #CA3521 to #c9372c
  • Red800 has changed from #AE2A19 to #ae2e24
  • Red900 has changed from #601E16 to #5d1f1a
  • Red1000 has changed from #4F1C16 to #42221F
  • Orange100 has changed from #FFF4E5 to #fff3eb
  • Orange200 has changed from #FFE2BD to #fedec8
  • Orange300 has changed from #FEC57B to #fec195
  • Orange400 has changed from #FAA53D to #fea362
  • Orange500 has changed from #F18D13 to #f38a3f
  • Orange600 has changed from #D97008 to #e56910
  • Orange700 has changed from #B65C02 to #c25100
  • Orange800 has changed from #974F0C to #A54800
  • Orange900 has changed from #5F3811 to #702e00
  • Orange1000 has changed from #4A2B0F to #38291e
  • Yellow1000 has changed from #3F3102 to #332E1B
  • Lime100 has changed from #EEFBDA to #EFFFD6
  • Lime1000 has changed from #2A3818 to #28311B
  • Green100 has changed from #DFFCF0 to #DCFFF1
  • Green1000 has changed from #143C2B to #1C3329
  • Teal100 has changed from #E3FAFC to #E7F9FF
  • Teal200 has changed from #C1F0F5 to #C6EDFB
  • Teal300 has changed from #8BDBE5 to #9DD9EE
  • Teal400 has changed from #60C6D2 to #6CC3E0
  • Teal500 has changed from #37B4C3 to #42B2D7
  • Teal600 has changed from #1D9AAA to #2898BD
  • Teal700 has changed from #1D7F8C to #227D9B
  • Teal800 has changed from #206B74 to #206A83
  • Teal900 has changed from #1D474C to #164555
  • Teal1000 has changed from #15373B to #1E3137
  • Blue1000 has changed from #092957 to #1C2B41
  • Purple1000 has changed from #2B2451 to #2B273F
  • Magenta1000 has changed from #421F34 to #3D2232

Token changes

Yellow accent backgrounds

Mapped to lighter shades to create differentiation with orange, and increase vibrancy:

  • [Light theme] color.background.yellow.subtle: Yellow400Yellow300
  • [Light theme] color.background.accent.yellow.subtle.hovered: Yellow300Yellow400
  • [Light theme] color.background.accent.yellow.subtle.pressed: Yellow200Yellow500
Bold warning backgrounds

Mapped to lighter shades to increase vibrancy:

  • [Light theme] color.background.warning.bold: Yellow400Yellow300
  • [Dark mode]: color.background.warning.bold: Yellow400Yellow300
  • [Light theme] color.background.warning.bold.hovered: Yellow500Yellow400
  • [Dark mode]: color.background.warning.bold.hovered: Yellow300Yellow400
  • [Light theme] color.background.warning.bold.pressed: Yellow600Yellow500
  • [Dark mode]: color.background.warning.bold.pressed: Yellow200Yellow500
Icon

Mapped red/danger icons to darker shades to create distinction between orange and red icons:

  • [Light theme]: color.icon.accent.red: Red600Red700
  • [Dark theme]: color.icon.accent.red: Red500Red600
  • [Dark theme]: color.icon.accent.yellow: Yellow500Yellow300
  • [Light theme]: color.icon.danger: Red600Red700
  • [Dark theme]: color.icon.warning: Yellow500Yellow300

1.26.1

Patch Changes

  • #40324 67b68e00b3f - Removed un-exported schema information from src and the package bundle

1.26.0

Minor Changes

  • #40801 f0f44726caa - We are testing increased contrast themes behind a feature flag. These are alternative themes that enable according to user contrast system preferences. If testing is successful they will be available in a later release.

1.25.2

Patch Changes

1.25.1

Patch Changes

1.25.0

Minor Changes

  • #40253 6125697f0b4 - We are testing adjustments to our color palette and design tokens behind a feature flag. These changes make certain colors more distinguishable, improves the visual appearance of warning and yellow accent backgrounds, and reduces saturation for subtle backgrounds in dark mode.

    These changes are available behind a feature flag; if this test is successful it will be available in an upcoming minor release.

1.24.0

Minor Changes

1.23.0

Minor Changes

  • #38420 5a967ac2397 - Adds two new synchronous theme configuration utilities:

    • enableGlobalTheme is a synchronous version of setGlobalTheme that sets data attributes on the page and takes a themeLoader
    • UNSAFE_loadCustomThemeStyles provides a synchronous way to generate and apply custom theme styles to the page. It can be accessed from a new entrypoint, @atlaskit/tokens/custom-themes

1.22.1

Patch Changes

  • #40072 7b6548e6ad0 - Internally moves the logic which applies spacing as a defaulty enabled theme to be more inline with other themes.

1.22.0

Minor Changes

  • #39854 3d5c5dbe08c - Adds UNSAFE_textTransformUppercase token. This token should not be used directly unless to aid a migration.

1.21.1

Patch Changes

  • #39653 12c0a5a6f2e - The tokens Babel plugin will now add opacity to shadow token values if they don't already contain them.

1.21.0

Minor Changes

  • #39578 9eee297c402 - Added negative space tokens from -2px to -32px (space.negative.025 to space.negative.400).

1.20.1

Patch Changes

1.20.0

Minor Changes

  • #38118 0a95595cd3e - Space tokens are now enabled by default whenever setGlobalTheme is called.

1.19.0

Minor Changes

  • #39430 ff1a0d8dcfd - Introduces 80 new accent interaction tokens:

    • color.background.accent.blue.subtlest.hovered
    • color.background.accent.blue.subtlest.pressed
    • color.background.accent.blue.subtler.hovered
    • color.background.accent.blue.subtler.pressed
    • color.background.accent.blue.subtle.hovered
    • color.background.accent.blue.subtle.pressed
    • color.background.accent.blue.bolder.hovered
    • color.background.accent.blue.bolder.pressed

    • color.background.accent.lime.subtlest.hovered

    • color.background.accent.lime.subtlest.pressed
    • color.background.accent.lime.subtler.hovered
    • color.background.accent.lime.subtler.pressed
    • color.background.accent.lime.subtle.hovered
    • color.background.accent.lime.subtle.pressed
    • color.background.accent.lime.bolder.hovered
    • color.background.accent.lime.bolder.pressed

    • color.background.accent.red.subtlest.hovered

    • color.background.accent.red.subtlest.pressed
    • color.background.accent.red.subtler.hovered
    • color.background.accent.red.subtler.pressed
    • color.background.accent.red.subtle.hovered
    • color.background.accent.red.subtle.pressed
    • color.background.accent.red.bolder.hovered
    • color.background.accent.red.bolder.pressed

    • color.background.accent.orange.subtlest.hovered

    • color.background.accent.orange.subtlest.pressed
    • color.background.accent.orange.subtler.hovered
    • color.background.accent.orange.subtler.pressed
    • color.background.accent.orange.subtle.hovered
    • color.background.accent.orange.subtle.pressed
    • color.background.accent.orange.bolder.hovered
    • color.background.accent.orange.bolder.pressed

    • color.background.accent.yellow.subtlest.hovered

    • color.background.accent.yellow.subtlest.pressed
    • color.background.accent.yellow.subtler.hovered
    • color.background.accent.yellow.subtler.pressed
    • color.background.accent.yellow.subtle.hovered
    • color.background.accent.yellow.subtle.pressed
    • color.background.accent.yellow.bolder.hovered
    • color.background.accent.yellow.bolder.pressed

    • color.background.accent.green.subtlest.hovered

    • color.background.accent.green.subtlest.pressed
    • color.background.accent.green.subtler.hovered
    • color.background.accent.green.subtler.pressed
    • color.background.accent.green.subtle.hovered
    • color.background.accent.green.subtle.pressed
    • color.background.accent.green.bolder.hovered
    • color.background.accent.green.bolder.pressed

    • color.background.accent.teal.subtlest.hovered

    • color.background.accent.teal.subtlest.pressed
    • color.background.accent.teal.subtler.hovered
    • color.background.accent.teal.subtler.pressed
    • color.background.accent.teal.subtle.hovered
    • color.background.accent.teal.subtle.pressed
    • color.background.accent.teal.bolder.hovered
    • color.background.accent.teal.bolder.pressed

    • color.background.accent.purple.subtlest.hovered

    • color.background.accent.purple.subtlest.pressed
    • color.background.accent.purple.subtler.hovered
    • color.background.accent.purple.subtler.pressed
    • color.background.accent.purple.subtle.hovered
    • color.background.accent.purple.subtle.pressed
    • color.background.accent.purple.bolder.hovered
    • color.background.accent.purple.bolder.pressed

    • color.background.accent.magenta.subtlest.hovered

    • color.background.accent.magenta.subtlest.pressed
    • color.background.accent.magenta.subtler.hovered
    • color.background.accent.magenta.subtler.pressed
    • color.background.accent.magenta.subtle.hovered
    • color.background.accent.magenta.subtle.pressed
    • color.background.accent.magenta.bolder.hovered
    • color.background.accent.magenta.bolder.pressed

    • color.background.accent.gray.subtlest.hovered

    • color.background.accent.gray.subtlest.pressed
    • color.background.accent.gray.subtler.hovered
    • color.background.accent.gray.subtler.pressed
    • color.background.accent.gray.subtle.hovered
    • color.background.accent.gray.subtle.pressed
    • color.background.accent.gray.bolder.hovered
    • color.background.accent.gray.bolder.pressed

1.18.0

Minor Changes

1.17.1

Patch Changes

  • #38368 11d00ba7be0 - Fixes style-dictionary token references. allowing semantic tokens to be aliases of other semantic tokens

1.17.0

Minor Changes

1.16.0

Minor Changes

  • #37789 031034da425 - Introduces surface detection through the use of design tokens/CSS variables:

    • The utility.elevation.surface.current design token allows UI to be styled with a color based on a parent element's surface color.
    • The CURRENT_SURFACE_CSS_VAR constant is exported to enable the current surface CSS variable to be set.

1.15.2

Patch Changes

  • #39128 3c114ea4257 - Update type definitions to conform to inherited changes from @types/react@16.14.15.

1.15.1

Patch Changes

  • #38620 2b79cf3df13 - Patches certain token values in the internal typography theme.

1.15.0

Minor Changes

1.14.2

Patch Changes

  • #37003 8e1667c2c03 - Adds the ability to specify a fallback theme in the tokens Babel plugin via the defaultTheme option. Also adds 'legacy-light' as one of the available themes, while keeping 'light' as the default if nothing is provided.

1.14.1

Patch Changes

  • #37532 b423f118bb8 - Adjusted color generation system for custom theming to improve accessibility.

1.14.0

Minor Changes

  • #37768 d9d7c284713 - Add custom theming support to ThemeObjectToString and ThemeStringToObject functions.

1.13.2

Patch Changes

  • #37534 f29001ccc8c - Renamed type "CustomBrandSchema" to "ThemeOptionsSchema" for experimental custom theming API

1.13.1

Patch Changes

  • #37182 74f7af9882b - [ux] correct fallback color of token color.border.focused to meet contrast requirement

1.13.0

Minor Changes

  • #36967 bc512702bdc - Introduces new brand background tokens.

    • color.background.brand.subtlest - Use for the background of elements used to reinforce our brand, but with less emphasis.
    • color.background.brand.subtlest.hovered - Hovered state of color.background.brand.subtlest.
    • color.background.brand.subtlest.pressed - Pressed state of color.background.brand.subtlest.

    • color.background.brand.boldest - Use for the background of elements used to reinforce our brand, that need to stand out a lot.

    • color.background.brand.boldest.hovered - Hovered state of color.background.brand.boldest.
    • color.background.brand.boldest.pressed - Pressed state of color.background.brand.boldest.

    Updates custom color generation system with new brand background tokens.

1.12.0

Minor Changes

  • #36501 beba2779d31 - Add experimental support for custom theming via the UNSAFE_themeOptions field in themeState.

    This option is supported in the following functions:

    • setGlobalTheme(): optionally generates and loads customized themes based on the options provided, and sets the data-custom-theme attribute on page's HTML tag.
    • getThemeStyles(): returns additional style objects for constructing custom theme <style> tags.
    • getThemeHtmlAttrs(): now supports the data-custom-theme attribute.

    Custom themes are generated at runtime based on the options provided. The theme generation logic is lazy-loaded only when UNSAFE_themeOptions is set.

1.11.3

Patch Changes

1.11.2

Patch Changes

  • #36334 5f3a4279435 - Fixes invalid default values assigned to shadow tokens in the token-default-values.tsx artifact
  • #36279 694b79161b8 - Corrects Lime chart tokens in the dark mode theme so they use the correct base tokens

1.11.1

Patch Changes

  • #35441 7053f18ecc5 - Added suggest metadata to shape tokens to aid future migration suggestions.
  • ba43427b3e8 - Internal changes to account for introduction of shape/radius tokens.

1.11.0

Minor Changes

  • #36265 c96e003db64 - Following on from 1.7.0, shape tokens are no longer being enabled behind a feature flag. Only space tokens will be enabled by default when the feature flag is active.

1.10.2

Patch Changes

1.10.1

Patch Changes

  • #36072 7fb8fb4fbbb - - Fixed an issue where getCSSCustomProperty would return the incorrect CSS variable names for space tokens.
    • Updated space token descriptions.

1.10.0

Minor Changes

  • #33680 31426322355 - - Add a new getAllThemeStyles() function that can be used for generating theme CSS files at build time.
    • Add an optional callback parameter to setGlobalTheme() that overrides the default theme loading functionality with the callback.

1.9.1

Patch Changes

1.9.0

Minor Changes

  • #34744 06fb6792d1f - Subtle adjustments to some color design tokens to improve the dark theme. These changes were previously being tested behind a feature flag.

1.8.1

Patch Changes

1.8.0

Minor Changes

  • #35526 e200f2340ed - Introduces new lime token set.

    • color.text.accent.lime - Use for lime text on subtlest and subtler lime accent backgrounds when there is no meaning tied to the color.
    • color.text.accent.lime.bolder - Use for lime text on subtle lime accent backgrounds when there is no meaning tied to the color.
    • color.background.accent.lime.subtlest - Use for lime backgrounds when there is no meaning tied to the color. Reserved for when you only want a hint of color.
    • color.background.accent.lime.subtler - Use for lime backgrounds when there is no meaning tied to the color, such as colored tags.
    • color.background.accent.lime.subtle - Use for vibrant lime backgrounds when there is no meaning tied to the color, such as colored tags.
    • color.background.accent.lime.bolder - Use for lime backgrounds when there is no meaning tied to the color, and the background needs to pass min 3:1 contrast requirements.
    • color.icon.accent.lime - Use for lime icons on non-bold backgrounds when there is no meaning tied to the color, such as file type icons.
    • color.border.accent.lime - Use for lime borders on non-bold backgrounds when there is no meaning tied to the color.
    • color.chart.lime - For data visualisation only.
    • color.chart.lime.hovered - Hovered state of color.chart.lime
    • color.chart.lime.bolder - For data visualisation only.
    • color.chart.lime.bolder.hovered - Hovered state of color.chart.lime.bolder
    • color.chart.lime.boldest - For data visualisation only.
    • color.chart.lime.boldest.hovered - Hovered state of color.chart.lime.boldest

1.7.0

Minor Changes

  • #35590 85b5f222844 - We are testing shape and space tokens behind a feature flag. These tokens will be enabled by default whenever setGlobalTheme is called. If this test is successful it will be available in a later release.

1.6.0

Minor Changes

  • #35385 191bbd4a3c2 - Public changes to types for setGlobalTheme to match API - previously themes could be incorrectly applied ie the light theme could theoretically take the space theme as a valid value. No behavior changes. Internally the shape theme has been moved from experimental status. These tokens are now active however they remain disabled by default.

Patch Changes

  • 98edc7e8b62 - Patch for tokens metadata and descriptions.

1.5.2

Patch Changes

1.5.1

Patch Changes

  • #33652 e7ea6832ad2 - Bans the use of React.FC/React.FunctionComponent type in ADS components as part of the React 18 migration work. The change is internal only and should not introduce any changes for the component consumers.

1.5.0

Minor Changes

  • #34217 43d186af89c - [ux] Updates spacing, typography metadata to apply rems or pixels depending on the target platform.

Patch Changes

  • 019af32072d - Add shape token handling to the ensure-design-token-usage-spacing rule.

1.4.4

Patch Changes

1.4.3

Patch Changes

  • #33905 32e364bed0b - We are testing color tweaks to the dark theme behind a feature flag.

1.4.2

Patch Changes

1.4.1

Patch Changes

1.4.0

Minor Changes

1.3.2

Patch Changes

  • #33299 bae41641c82 - Enable the dark theme tweaks for Confluence behind a feature flag.

1.3.1

Patch Changes

  • #32858 e55ef3fcfac - Fixes an issue where the dark theme tweaks (currently behind a feature flag) were not being displayed in some cases due to a race condition.

1.3.0

Minor Changes

Patch Changes

  • Updated dependencies

1.2.19

Patch Changes

1.2.18

Patch Changes

  • #32533 ea8c1af425d - Fixes a bug in setGlobalTheme() that caused both the light and dark themes to load when auto theme switching was disabled — only one of the themes should be loaded in this case. It also fixes a bug in getThemeStyles(), where the default color themes were loaded instead of the specified theme.

1.2.17

Patch Changes

  • #32434 6cf7fc4647d - Adds color-scheme css property to color themes to ensure the correct scheme is used at all times. Previously this was only part of the css-reset however in instances where that is not used this property will always be applied

1.2.16

Patch Changes

  • #32333 1ddf6dd6387 - Adds a beta contrast checking tool to token examples utilising a new "token pairing" algorithm to find recommended pairs of foreground and background tokens. There is no change to API or bundle size.

1.2.15

Patch Changes

  • #32424 2e01c9c74b5 - DUMMY remove before merging to master; dupe adf-schema via adf-utils

1.2.14

Patch Changes

1.2.13

Patch Changes

  • #32311 a02eed2974e - Move codegen into @atlassian scope to publish it to private registry

1.2.12

Patch Changes

  • #32209 ec8f1ac379a - Tweaks to dark theme tokens (background.selected and background.selected.pressed) behind a feature flag.

1.2.11

Patch Changes

  • #32057 8ec4434b4c2 - The return type for useThemeObserver now omits auto as a possible option for colorMode. From the perspective of observers auto does not exist because colorMode is precalculated at runtime.

1.2.10

Patch Changes

1.2.9

Patch Changes

  • #31793 aef90f8953b - Tweaks to a subset of dark theme tokens behind a feature flag.

1.2.8

Patch Changes

  • #31886 de4f079569a - The tokens babel-plugin will no longer run on files in node_module directories. This is to avoid attempting to transform legacy tokens from older transitive dependencies.

1.2.7

Patch Changes

1.2.6

Patch Changes

  • #31242 cfe48bb7ece - Internal change only. Replace usages of Inline/Stack with stable version from @atlaskit/primitives.

1.2.5

Patch Changes

1.2.4

Patch Changes

  • #30998 2717641f696 - The getTokenValue helper now strips leading or trailing spaces if they exist.

1.2.3

Patch Changes

  • #30894 e2b8df300f2 - Pull responsive helpers from @atlaskit/primitives/responsive instead of @atlaskit/grid as they've been moved.

1.2.2

Patch Changes

1.2.1

Patch Changes

1.2.0

Minor Changes

  • #30055 64d30817221 - Introduce experimental 'shape' tokens for use with border properties.

1.1.0

Minor Changes

  • #29387 4b9aea55b97 - Removed various unused experimental spacing tokens in favor of the space.X token format.

    Removed:

    • spacing.scale
    • spacing.scaleLinear
    • spacing.size
    • spacing.gap
    • spacing.inset
    • spacing.ecl
    • spacing.ccc

1.0.0

Major Changes

  • #27634 512be9e1854 - This PR introduces the 1.0 stable version of @atlaskit/tokens. With the changes introduced here, the tokens package will be considered stable and feature-complete moving forward.

💥 Breaking change: Theme lazy-loading

Previously, themes were exposed as static CSS files via custom entry-points. This worked quite well but had a couple of obvious drawbacks.

  1. CSS files depend on webpack/css-loading mechanisms (style-loader/css-loader) which aren't available in all environments.

  2. Configuration and ordering of themes happened entirely in products, which becomes increasingly harder to maintain as new themes & functionality are introduced

We have moved this to a lazy-loaded JS solution. Themes are now codegen'd into Javascript modules, wrapped in a template literal string, then lazy-loaded and mounted to the head of the document when required at runtime.

Benefits include:

  • More control over the ordering and composition of themes

  • Automatic lazy-loading of new themes when setGlobalTheme is called by the client

  • Simplified bundler configuration

  • Improved portability

  • Integrates with a new SSR solution for theme loading

Changes:

If you set themes using setGlobalTheme in your app, you can now remove manual imports of theme CSS files from your app. The themes will be automatically added when setGlobalTheme is called.

-import("atlassian-light.css") from '@atlaskit/tokens/css'
-import("atlassian-legacy-dark.css") from '@atlaskit/tokens/css'
-setGlobalTheme("light", true)
+setGlobalTheme({light: "light", dark: "legacy-dark", colorMode: 'auto'})

If your app supports server-side rendering, further work is required to ensure themes are loaded on the page before first paint. See below for details on the new SSR utilities.

💥 Breaking change: Removal of deprecated & deleted tokens

As per our versioning strategy, MAJOR versions is when we remove all deprecated and sunset tokens. This provides significant bundle size improvements to token CSS files.

If you have been using our lint rules @atlaskit/design-system/no-unsafe-design-token-usage and @atlaskit/design-system/no-deprecated-design-token-usage, these tokens should already be triggering eslint errors from the version they were deprecated.

Please run yarn eslint --fix or similar to automate your migration before upgrading to 1.0.0.

Please see below for a full list of removed tokens and their replacements.

Note: MISSING_TOKEN is also being removed. This was a utility token to support early migration efforts; as tokens are now visible to end-users, please ensure all usages are removed from your app.

💥 Breaking change: setGlobalTheme & ThemeObserver & useThemeObserver

ThemeState configuration object

setGlobalTheme, ThemeMutationObserver & useThemeObserver now input and output theme preferences as a themeState object rather than a space-separated string. This enables:

  • Stronger type safety

  • Explicit definition of themes to render in light and dark mode.

  • Improved extensibility options for new types of themes, such as spacing and typography.

themeState has the following default values, which set the standard Atlassian color themes, and enables automatic color mode switching based on the user's system preference:

{
  colorMode: 'auto',
  dark: 'dark',
  light: 'light',
  spacing: undefined,
  typography: undefined,
};

Any usages of setGlobalTheme need` to be updated to the new object syntax:

-setGlobalTheme('light');
+setGlobalTheme({ light: 'light', colorMode: 'light' ...});

Changes to colorMode

Previously, the current color mode (i.e. "light" or "dark" mode) was inferred from the color theme passed into setGlobalTheme. A second parameter, shouldMatchSystem, set data-color-mode to 'auto' and matched the current theme to operating system settings:

setGlobalTheme('legacy-dark'); // a "dark" theme, so color mode is set to 'dark'
setGlobalTheme('light', true); // color mode is 'light' or 'dark' depending on system theme

Now, the current color mode, as well as which themes to render in each color mode, can be configured via the themeState object:

setGlobalTheme({
  dark: 'dark' // in dark mode, use the 'dark' theme
  light: 'light' // in light mode, use the 'light' theme
  colorMode: 'auto', // Set the color mode automatically based on system preference
});

If your app previously set the second parameter, shouldMatchSystem, this feature is now enabled by default.

// Automatic theme switching
-setGlobalTheme('light', true)
+setGlobalTheme({light: 'light', dark: 'dark', 'auto'})
// OR, since setGlobalTheme has default values
+setGlobalTheme({})

// Light theme
-setGlobalTheme('light')
+setGlobalTheme({light: 'light', colorMode: 'light'})
// OR
+setGlobalTheme({colorMode: 'light'})

// Dark theme
-setGlobalTheme('dark')
+setGlobalTheme({dark: 'dark', colorMode: 'dark'})
// OR
+setGlobalTheme({colorMode: 'dark'})

Color mode switching is enabled by default

As noted above, automatic theme switching is now enabled by default. To disable automatic theme switching, set colorMode to either 'light' or 'dark'.

🔀 Breaking behavioural change: data-theme & data-color-mode

The way this state is reflected on the DOM has been updated to match the changes above:

-<html data-theme="light" data-color-mode="light">
+<html data-theme="light:light dark:dark spacing:compact" data-color-mode="light">

Theme state on the DOM is primarily to store data in a place that can be accessed from anywhere in the app, and secondly to activate CSS selectors.

Two new utilities, themeStringToObject and themeObjectToString, allow conversion from string to object syntax if necessary.

🔀 Breaking change: System-level theme switching

Token auto theme switching now uses a Javascript-based solution, rather than embedding media queries in theme CSS files. If colorMode is set to 'auto', media query event listeners will trigger when the system theme changes, and update data-color-mode to 'light' or 'dark' automatically.

This provides several benefits:

  • Significant (~50%) improvements to bundle size for token CSS files compared to the pre-release version of @atlaskit/tokens.

  • Simpler logic for switching an experience based on the current theme:

    • Previously, experiences using theme observers had to check a combination of the data-color-mode attribute use media queries to to correctly match the currently rendered color mode in light, dark and 'auto' color modes. Now, the data-color-mode attribute always matches the currently rendered color mode, and media queries are no longer required.

As a result of this change, the data-color-mode attribute no longer supports the value 'auto'. If your experience checked for this value, this logic can now be removed, as data-color-mode will always reflect the currently rendered theme.

✨ New: server-side rendering utility functions

Three new utility functions provide the logic required to load and display the correct themes in your server-rendered output, preventing a flash of incorrectly themed content on first paint. Each accepts the same themeState object representing the user's stored theme preference:

  • getThemeStyles provides the contents of <style> tags to attach to the head of your server-side rendered document

  • getThemeHtmlAttributes provides data-attributes to set on the root of your document.

  • getSSRAutoScript provides a script to detect the system theme and configure the color mode before first paint.

For more information on these utilities, check the @atlaskit/tokens API documentation on atlassian.design.

🐞 Fixes

Observer fixes:

useThemeObserver & ThemeMutationObserver now listen to changes on data-theme instead of data-color-mode.

Previously changes between two themes that both have a light color mode would not trigger an event since data-color-mode would not be updated. With this fix, the event fires on every call to setGlobalTheme regardless if there is a change to the theme or not.

Automatic theme switching changes:

Previously, the order of themes determined which one rendered. If you had multiple 'light' themes in your app, the order of the CSS files in the DOM determined which one rendered in "auto" mode.

Now, the theme that renders when the system is in 'light' and 'dark' mode is deterministic, and explicitly configured via the themeState object.

🚮 Removed tokens

The following tokens have been moved from the deprecated & deleted to removed state in their lifecycles. These tokens will no longer exist and will not be functional moving forward, tooling will begin to error wherever they're used.

  • color.text.highEmphasis => color.text
  • color.text.link.pressed => color.link.pressed
  • color.text.link.resting => color.link
  • color.text.lowEmphasis => color.text.subtlest
  • color.text.mediumEmphasis => color.text.subtle
  • color.text.onBold => color.text.inverse
  • color.text.onBoldWarning => color.text.warning.inverse
  • color.border.focus => color.border.focused
  • color.border.neutral => color.border
  • color.background.accent.blue => color.background.accent.blue.subtler
  • color.background.accent.blue.bold => color.background.accent.blue.subtle
  • color.background.accent.red => color.background.accent.red.subtler
  • color.background.accent.red.bold => color.background.accent.red.subtle
  • color.background.accent.orange => color.background.accent.orange.subtler
  • color.background.accent.orange.bold => color.background.accent.orange.subtle
  • color.background.accent.yellow => color.background.accent.yellow.subtler
  • color.background.accent.yellow.bold => color.background.accent.yellow.subtle
  • color.background.accent.green => color.background.accent.green.subtler
  • color.background.accent.green.bold => color.background.accent.green.subtle
  • color.background.accent.teal => color.background.accent.teal.subtler
  • color.background.accent.teal.bold => color.background.accent.teal.subtle
  • color.background.accent.purple => color.background.accent.purple.subtler
  • color.background.accent.purple.bold => color.background.accent.purple.subtle
  • color.background.accent.magenta => color.background.accent.magenta.subtler
  • color.background.accent.magenta.bold => color.background.accent.magenta.subtle
  • color.background.inverse => color.background.inverse.subtle
  • color.background.brand => color.background.selected
  • color.background.brand.hovered => color.background.selected.hovered
  • color.background.brand.pressed => color.background.selected.pressed
  • color.background.selected.resting => color.background.selected
  • color.background.selected.hover => color.background.selected.hovered
  • color.background.blanket => color.blanket
  • color.background.boldBrand.hover => color.background.brand.bold.hovered
  • color.background.boldBrand.pressed => color.background.brand.bold.pressed
  • color.background.boldBrand.resting => color.background.brand.bold
  • color.background.boldDanger.hover => color.background.danger.bold.hovered
  • color.background.boldDanger.pressed => color.background.danger.bold.pressed
  • color.background.boldDanger.resting => color.background.danger.bold
  • color.background.boldDiscovery.hover => color.background.discovery.bold.hovered
  • color.background.boldDiscovery.pressed => color.background.discovery.bold.pressed
  • color.background.boldDiscovery.resting => color.background.discovery.bold
  • color.background.boldNeutral.hover => color.background.neutral.bold.hovered
  • color.background.boldNeutral.pressed => color.background.neutral.bold.pressed
  • color.background.boldNeutral.resting => color.background.neutral.bold
  • color.background.boldSuccess.hover => color.background.success.bold.hovered
  • color.background.boldSuccess.pressed => color.background.success.bold.pressed
  • color.background.boldSuccess.resting => color.background.success.bold
  • color.background.boldWarning.hover => color.background.warning.bold.hovered
  • color.background.boldWarning.pressed => color.background.warning.bold.pressed
  • color.background.boldWarning.resting => color.background.warning.bold
  • color.background.card => elevation.surface.raised
  • color.background.default => elevation.surface
  • color.background.overlay => elevation.surface.overlay
  • color.background.subtleBorderedNeutral.pressed => color.background.input.pressed
  • color.background.subtleBorderedNeutral.resting => color.background.input
  • color.background.subtleBrand.hover => color.background.selected.hovered
  • color.background.subtleBrand.pressed => color.background.selected.pressed
  • color.background.subtleBrand.resting => color.background.selected
  • color.background.subtleDanger.hover => color.background.danger.hovered
  • color.background.subtleDanger.pressed => color.background.danger.pressed
  • color.background.subtleDanger.resting => color.background.danger
  • color.background.subtleDiscovery.hover => color.background.discovery.hovered
  • color.background.subtleDiscovery.pressed => color.background.discovery.pressed
  • color.background.subtleDiscovery.resting => color.background.discovery
  • color.background.subtleNeutral.hover => color.background.neutral.hovered
  • color.background.subtleNeutral.pressed => color.background.neutral.pressed
  • color.background.subtleNeutral.resting => color.background.neutral
  • color.background.subtleSuccess.hover => color.background.success.hovered
  • color.background.subtleSuccess.pressed => color.background.success.pressed
  • color.background.subtleSuccess.resting => color.background.success
  • color.background.subtleWarning.hover => color.background.warning.hovered
  • color.background.subtleWarning.pressed => color.background.warning.pressed
  • color.background.subtleWarning.resting => color.background.warning
  • color.background.sunken => elevation.surface.sunken
  • color.background.transparentNeutral.hover => color.background.neutral.subtle.hovered
  • color.background.transparentNeutral.pressed => color.background.neutral.subtle.pressed
  • color.interaction.inverse.hovered => color.background.inverse.subtle.hovered
  • color.interaction.inverse.pressed => color.background.inverse.subtle.pressed
  • color.accent.boldBlue => color.background.accent.blue.bolder
  • color.accent.boldGreen => color.background.accent.green.bolder
  • color.accent.boldOrange => color.background.accent.orange.bolder
  • color.accent.boldPurple => color.background.accent.purple.bolder
  • color.accent.boldRed => color.background.accent.red.bolder
  • color.accent.boldTeal => color.background.accent.teal.bolder
  • color.accent.subtleBlue => color.background.accent.blue.subtler
  • color.accent.subtleGreen => color.background.accent.green.subtler
  • color.accent.subtleMagenta => color.background.accent.magenta.subtler
  • color.accent.subtleOrange => color.background.accent.orange.subtler
  • color.accent.subtlePurple => color.background.accent.purple.subtler
  • color.accent.subtleRed => color.background.accent.red.subtler
  • color.accent.subtleTeal => color.background.accent.teal.subtler
  • color.iconBorder.brand => color.icon.brand
  • color.iconBorder.danger => color.icon.danger
  • color.iconBorder.discovery => color.icon.discovery
  • color.iconBorder.success => color.icon.success
  • color.iconBorder.warning => color.icon.warning
  • color.overlay.hover => color.interaction.hovered
  • color.overlay.pressed => color.interaction.pressed
  • shadow.card => elevation.shadow.raised
  • shadow.overlay => elevation.shadow.overlay
  • utility.UNSAFE_util.transparent => utility.UNSAFE.transparent
  • utility.UNSAFE_util.MISSING_TOKEN => No replacement

0.13.5

Patch Changes

0.13.4

Patch Changes

  • #28784 48c9ecca2c4 - - @atlaskit/tokens/figma-sync entrypoint added to sync design tokens to the ADS Figma library (not intended for external use).
    • Tokens are now sorted by a predefined order across artifact output, ensuring consistency across experiences.

0.13.3

Patch Changes

  • #27875 0438a9318a1 - Tweaked the values of the Neutral500 and Neutral500 base tokens and updated text.accent.gray.bolder to improve color contrast:

    • Adjust Neutral500 from #8993A5 to #8590A2 so that it passes 3:1 contrast against sunken surfaces in light mode
    • Adjust Neutral500A from #091E42 @ 48% to #091E42 @ 49% to match color of Neutral500 on default surfaces
    • Update text.accent.gray.bolder to use Neutral1100 so gray tags pass contrast requirements
  • 765c27c301e - Adds new chart tokens for data visualisation and charts.

    27 generic chart tokens and hovered state tokens:

    • color.chart.[color].bold
    • color.chart.[color].bolder
    • color.chart.[color].boldest

    12 semantic chart tokens and hovered state tokens:

    • color.chart.brand
    • color.chart.neutral
    • color.chart.success
    • color.chart.success.bold
    • color.chart.danger
    • color.chart.danger.bold
    • color.chart.warning
    • color.chart.warning.bold
    • color.chart.information
    • color.chart.information.bold
    • color.chart.discovery
    • color.chart.discovery.bold

    8 categorical chart tokens and hovered state tokens:

    • color.chart.categorical.1
    • color.chart.categorical.2
    • color.chart.categorical.3
    • color.chart.categorical.4
    • color.chart.categorical.5
    • color.chart.categorical.6
    • color.chart.categorical.7
    • color.chart.categorical.8

0.13.2

Patch Changes

  • #28159 716af1d3387 - Bump @atlaskit/heading from 1.0.0 to 1.0.1 to avoid resolving to poison dependency version

0.13.1

Patch Changes

  • #27730 a5eed85fe2e - Added a new getTokenValue() API - it accepts a dot-separated token name and a fallback value, and returns the current computed CSS value for the resulting CSS Custom Property. This should be used when the CSS cascade isn't available, eg. <canvas> elements, JS charting libraries, etc.

0.13.0

Minor Changes

  • #28011 00c057bdd71 - Removes spacing-raw & typography-raw entrypoints in favor of tokens-raw

0.12.0

Minor Changes

  • #28041 5892d12b125 - Refactors token artifact generation via style-dictionary. The tokens package no longer outputs redundant files on a per theme basis and instead consolidates schema-focused outputs into individual files where possible.

0.11.6

Patch Changes

  • #27880 3d46e550157 - Fixes a bug with the tokens-babel-plugin where it was transforming token functions which were imported from modules other than the @atlaskit/tokens package.

0.11.5

Patch Changes

  • #27885 bcef9745338 - useThemeObserver now exclusively watches data-theme instead of data-color-mode to ensure all changes to the theme attr trigger an event. Previously, if a theme moved from light theme, which had a mode="light", to another theme such as legacy-light with the same mode, no event will be triggered.

0.11.4

Patch Changes

0.11.3

Patch Changes

0.11.2

Patch Changes

  • #27482 81e34736aa0 - [ux] Introduces additional token set space.*. These tokens match the behavior of spacing.scale.*. Also introduces two additional base tokens, Space800 and Space1000.

0.11.1

Patch Changes

  • #27449 9307ebb86d8 - Revert addition of init entry point in favor of an upcoming solution.

0.11.0

Minor Changes

  • #26991 65222c75362 - - Adds experimental typography tokens for font size, font weight, font family, and line height. These are not intended for public consumption yet.
    • Adds a new init entry point for easily importing all theme CSS files (currently light, dark, spacing, and typography).
    • Spacing and typography tokens are now added to the :root rather than requiring a data-theme attribute.
    • Removes 'spacing' from the default theme.

0.10.35

Patch Changes

0.10.34

Patch Changes

0.10.33

Patch Changes

0.10.32

Patch Changes

  • #26624 c8bd8ee1920 - Adds new shadow tokens, elevation.shadow.overflow.spread and elevation.shadow.overflow.perimeter, that can be applied in combination to replicate the overflow shadow when elevation.shadow.overflow is not technically feasible to implement.

0.10.31

Patch Changes

  • #25860 e35fc41dc33 - Internal change to use updated primtive spacing prop values. No expected behaviour change.
  • 92ee7c98d1a - Fixes a number of neutral palette colors which were being generated without their alphas in the legacy palette.
  • 7e491389968 - Adds experimental spacing tokens, currently for internal use only. These are not ready for widespread consumption yet and a lint rule will raise issues if you try to use them.

0.10.30

Patch Changes

  • #26186 d9173fbdc13 - Added some more experimental spacing tokens for internal testing and validation. These are not intended for public consumption yet.

0.10.29

Patch Changes

  • #26128 41dad8915d7 - ✨ Color modes

    Color modes are now attached to the DOM with the data-theme attr:

    <html data-theme="dark" data-color-mode="auto"></html>

    ✨ Multi-theme

    We now allow multiple active themes:

    <html data-theme="dark spacing"></html>

    ✨ System preferences

    We also output @media (prefers-color-scheme: dark) media selectors for color themes

    @media (prefers-color-scheme: dark) {
      html[data-color-mode='auto'] {
        ...;
      }
    }

    This allows Product themes to be toggled by the OS-level setting.

    ✨ Setting theme state

    setGlobalTheme now allows you to set auto color scheme via an additional boolean arg

    setGlobalTheme(themeState, true); // data-color-mode="auto"

    ✨ Source of truth for themes

    All theme configuration now exists in a single object as a source of truth

    const themeConfig: Record<Themes, ThemeConfig> = {
      'atlassian-light': {
        id: 'light',
        displayName: 'Light Theme',
        palette: 'defaultPalette',
        attributes: {
          type: 'color',
          mode: 'light',
        },
      },
      ...
    };

0.10.28

Patch Changes

  • #26165 52ee11d5b3c - Adds an additional entrypoint for the @atlaskit/tokens package to support tooling.

0.10.27

Patch Changes

  • #26111 56b107f0989 - Adds experimental spacing tokens, currently for internal use only. These are not ready for widespread consumption yet and a lint rule will raise issues if you try to use them.

0.10.26

Patch Changes

0.10.25

Patch Changes

  • #25841 2e2ac6d3091 - Add new entrypoint @atlaskit/tokens/tokens-raw which provides access to raw token data. This enables the Atlassian Design Tokens Figma plugin to import required token information:wq

0.10.24

Patch Changes

0.10.23

Patch Changes

  • #25673 264f928f021 - Fix ignored entrypoint to allow correct access to babel-plugin

0.10.22

Patch Changes

  • #22827 8e324bc208f - Source files for tokens chrome extension has been moved out and into its own pacakge

0.10.21

Patch Changes

0.10.20

Patch Changes

  • #25211 9f6aa1d7cdc - Introduces new interaction states to a number of existing elevation tokens:

    • elevation.surface.hovered
    • elevation.surface.pressed
    • elevation.surface.raised.hovered
    • elevation.surface.raised.pressed
    • elevation.surface.overlay.hovered
    • elevation.surface.overlay.pressed

0.10.19

Patch Changes

  • #24502 efe09ca1159 - Adds new opacity tokens, opacity.disabled and opacity.loading, that can be applied to elements to indicate loading and disabled states.

0.10.18

Patch Changes

  • #24004 7101fb6a895 - Updates @emotion/core to @emotion/react; v10 to v11. There is no expected behavior change.

0.10.17

Patch Changes

  • #24390 e6dc2779c94 - Adds support for two new themes "Atlassian-legacy-light" & "Atlassian-legacy-dark". These are compatibility themes, utilising colors from the legacy color palette.

0.10.16

Patch Changes

0.10.15

Patch Changes

  • #24188 50299267c2e - Refactors style-dictionary to support multiple palettes.

    • Adds legacy-palette containing colours from @atlaskit/theme.
    • Palettes are processed as their own 'themes' (functionally) and now have their own configuration via style-dictionary.
    • formatters + transformers were renamed and moved to match best practices
    • Types were updated to allow multi-palette values (base tokens)

0.10.14

Patch Changes

  • #24077 e3377246ebc - Moves the following deprecated tokens to the sunset phase. Please ensure that all sunset tokens are removed from your application, they will be completely removed in the next major version:

    • 'color.interaction.inverse.hovered' => 'color.background.inverse.subtle.hovered'
    • 'color.interaction.inverse.pressed' => 'color.background.inverse.subtle.pressed'

    If you have configured the design token eslint rules, running eslint --fix will resolve these changes automatically.

0.10.13

Patch Changes

  • #23579 39a56a3c4e7 - Update disabled tokens to use alpha base tokens:

    • color.text.disabled
    • color.icon.disabled
    • color.background.disabled

0.10.12

Patch Changes

  • #22642 83c253f28bd - [ux] - Correct 'color.interaction.hovered' and 'color.interaction.pressed' token values, which were mistakenly mapped inversely in light and dark mode. The token values have now been swapped.

    • Deprecate 'color.interaction.inverse.hovered' which has been replaced with 'color.background.inverse.subtle.hovered'.
    • Deprecate 'color.interaction.inverse.pressed' which has been replaced with 'color.background.inverse.subtle.pressed'.

0.10.11

Patch Changes

  • #23027 d9d18df130f - [ux] Tweaked the values of the DN500 and DN500A base tokens to improve color contrast when paired with text:

    • DN500 has changed from #5C6C7A to #596773
    • DN500A has changed from #A9C5DF7A to #9BB4CA80

    This changes the values in dark mode for the following tokens:

    (active):

    • color.text.disabled
    • color.icon.disabled
    • color.background.accent.gray.subtle

    (deprecated):

    • color.overlay.pressed

0.10.10

Patch Changes

0.10.9

Patch Changes

  • Updated dependencies

0.10.8

Patch Changes

0.10.7

Patch Changes

  • #22107 cb8723a7974 - Introduces a new set of neutral accent tokens:

    • color.background.accent.gray.bolder
    • color.background.accent.gray.subtle
    • color.background.accent.gray.subtler
    • color.background.accent.gray.subtlest
    • color.border.accent.gray
    • color.icon.accent.gray
    • color.text.accent.gray
    • color.text.accent.gray.bolder

0.10.6

Patch Changes

0.10.5

Patch Changes

  • #22060 1124fa435ed - Moves the following deprecated tokens to the sunset phase. Please ensure that all sunset tokens are removed from your application, they will be completely removed in the next major version:

    • color.background.brand.hovered => color.background.selected.hovered
    • color.background.brand.pressed => color.background.selected.pressed
    • color.background.brand => color.background.selected
    • color.background.inverse => color.background.inverse.subtle
    • color.background.selected.hover => color.background.selected.hovered
    • color.background.selected.resting => color.background.selected
    • color.background.subtleBrand.hover => color.background.selected.hovered
    • color.background.subtleBrand.pressed => color.background.selected.pressed
    • color.background.subtleBrand.resting => color.background.selected

    If you have configured the design token eslint rules, running eslint --fix will resolve these changes automatically.

0.10.4

Patch Changes

0.10.3

Patch Changes

  • #21650 acbd8d5576a - Added a color-contrast test for our color pairs in the Tokens package.

0.10.2

Patch Changes

  • #21920 5b8212f08b0 - The current theme can now be accessed and monitored for changes using new exports.

    • useThemeObserver React hook
    • ThemeMutationObserver Mutation Observer

0.10.1

Patch Changes

  • #21813 7267d0aad7c - Update group name metadata for light and dark neutral palette tokens

0.10.0

Minor Changes

  • #21484 aa06bcc3c48 - Removes the :root selector from the light theme, which allows the light theme to be turned off once the css is mounted. This is to support our migration efforts, but we will ultimately reintroduce this behaviour once tokens are the default experience

0.9.5

Patch Changes

  • #21487 4942487a9f6 - Fixes internal representation of CSS entrypoints for themes. This is an internal change only and does not effect public APIs.

0.9.4

Patch Changes

  • #21543 1dad88929cd - Adds the @atlassian/codegen package that is designed to be used in concert with packages that utilise built assets in their source. Initial release adds an integrity header to assets from @atlaskit/tokens.

0.9.3

Patch Changes

  • #20579 ae9eab2df7d - Fixing blanket selected and danger tokens that were 80% instead of 8% opacity

0.9.2

Patch Changes

  • #20895 c1de986e861 - Added new entrypoint @atlaskit/tokens/palettes-raw for raw palette token data (used in documentation)

0.9.1

Patch Changes

0.9.0

Minor Changes

  • #20033 54180abbf55 - [ux] Add a new color.border.inverse token. Use for borders on bold backgrounds

0.8.3

Patch Changes

  • #20065 530455156a8 - Deprecating color.background.inverse in favour of the new color.background.inverse.subtle token instead. Also introduced color.background.inverse.subtle.hovered and color.background.inverse.subtle.pressed tokens to supplement it.

0.8.2

Patch Changes

  • #20082 b170565a618 - [ux] Update to input token colors: color.background.input, color.background.input.hovered, color.background.input.pressed.

0.8.1

Patch Changes

  • #19900 a66253fc6a5 - Export token ID utility functions with new entrypoint @atlaskit/tokens/token-ids

0.8.0

Minor Changes

  • #19618 1fb52fef1a8 - [ux] New Skeleton color tokens color.skeleton.subtle and color.skeleton.subtlest. Use for skeleton loading states

Patch Changes

  • ac9343c3ed4 - Replaces usage of deprecated design tokens. No visual or functional changes
  • 308db322b04 - The following tokens have been moved from the deprecated to deleted state in their lifecycles. These tokens will continue to exist, however tooling will begin to error wherever they're used. If you haven't already, please run yarn eslint --fix or similar to automate your migration.

    • color.background.blanket => color.blanket
    • color.background.boldBrand.resting => color.background.brand.bold
    • color.background.boldBrand.hover => color.background.brand.bold.hovered
    • color.background.boldBrand.pressed => color.background.brand.bold.pressed
    • color.background.boldDanger.resting => color.background.danger.bold
    • color.background.boldDanger.hover => color.background.danger.bold.hovered
    • color.background.boldDanger.pressed => color.background.danger.bold.pressed
    • color.background.boldDiscovery.resting => color.background.discovery.bold
    • color.background.boldDiscovery.hover => color.background.discovery.bold.hovered
    • color.background.boldDiscovery.pressed => color.background.discovery.bold.pressed
    • color.background.boldNeutral.resting => color.background.neutral.bold
    • color.background.boldNeutral.hover => color.background.neutral.bold.hovered
    • color.background.boldNeutral.pressed => color.background.neutral.bold.pressed
    • color.background.boldSuccess.resting => color.background.success.bold
    • color.background.boldSuccess.hover => color.background.success.bold.hovered
    • color.background.boldSuccess.pressed => color.background.success.bold.pressed
    • color.background.boldWarning.resting => color.background.warning.bold
    • color.background.boldWarning.hover => color.background.warning.bold.hovered
    • color.background.boldWarning.pressed => color.background.warning.bold.pressed
    • color.background.default => elevation.surface
    • color.background.card => elevation.surface.raised
    • color.background.overlay => elevation.surface.overlay
    • color.background.selected.resting => color.background.selected
    • color.background.selected.hover => color.background.selected.hovered
    • color.background.subtleBorderedNeutral.resting => color.background.input
    • color.background.subtleBorderedNeutral.pressed => color.background.input.pressed
    • color.background.subtleBrand.resting => color.background.brand
    • color.background.subtleBrand.hover => color.background.brand.hovered
    • color.background.subtleBrand.pressed => color.background.brand.pressed
    • color.background.subtleDanger.resting => color.background.danger
    • color.background.subtleDanger.hover => color.background.danger.hovered
    • color.background.subtleDanger.pressed => color.background.danger.pressed
    • color.background.subtleDiscovery.resting => color.background.discovery
    • color.background.subtleDiscovery.hover => color.background.discovery.hovered
    • color.background.subtleDiscovery.pressed => color.background.discovery.pressed
    • color.background.subtleNeutral.resting => color.background.neutral
    • color.background.subtleNeutral.hover => color.background.neutral.hovered
    • color.background.subtleNeutral.pressed => color.background.neutral.pressed
    • color.background.subtleSuccess.resting => color.background.success
    • color.background.subtleSuccess.hover => color.background.success.hovered
    • color.background.subtleSuccess.pressed => color.background.success.pressed
    • color.background.subtleWarning.resting => color.background.warning
    • color.background.subtleWarning.hover => color.background.warning.hovered
    • color.background.subtleWarning.pressed => color.background.warning.pressed
    • color.background.sunken => elevation.surface.sunken
    • color.background.transparentNeutral.hover => color.background.neutral.subtle.hovered
    • color.background.transparentNeutral.pressed => color.background.neutral.subtle.pressed
    • color.text.highEmphasis => color.text
    • color.text.mediumEmphasis => color.text.subtle
    • color.text.lowEmphasis => color.text.subtlest
    • color.text.link.resting => color.link
    • color.text.link.pressed => color.link.pressed
    • color.text.onBold => color.text.inverse
    • color.text.onBoldWarning => color.text.inverse.warning
    • color.border.focus => color.border.focused
    • color.border.neutral => color.border
    • color.iconBorder.brand => color.icon.brand or color.border.brand
    • color.iconBorder.danger => color.icon.danger or color.border.danger
    • color.iconBorder.warning => color.icon.warning or color.border.warning
    • color.iconBorder.success => color.icon.success or color.border.success
    • color.iconBorder.discovery => color.icon.discovery or color.border.discovery
    • color.overlay.hover => color.interaction.hovered
    • color.overlay.pressed => color.interaction.pressed
    • color.shadow.card => elevation.shadow.raised
    • color.shadow.overlay => elevation.shadow.overlay

0.7.3

Patch Changes

0.7.2

Patch Changes

0.7.1

Patch Changes

  • #19458 5d35c6b1c5f - Adding new tokens for color.blanket.selected and color.blanket.danger

0.7.0

Minor Changes

  • #19019 220aa7f8aab - [ux] Dark Mode token colours changed for the background of elements in a selected state (color.background.brand)

Patch Changes

  • c2ec60d6a1b - [ux] Updating existing 16 background accent colors

    • Rename default to subtler (Light:200 / Dark:900)
    • Rename bold renamed to subtle (Light:400 / Dark:700)
    • Update this ⤴ base token for dark mode from 700 to 800 (so it is now Light:400 / Dark:800)

    16 new accent background colors:

    • color.background.accent.[color].subtlest (Light: 100 / Dark:1000)
    • color.background.accent.[color].bolder (Light: 700 / Dark: 400)

    8 new text accent colors:

    • color.text.accent.[color].bolder (Light:900 / Dark:200)
  • 7b6b994bef5 - Correct shorthand hex code conversion in Figma synchronisation script

  • 91a3f179e8c - Prefix warnings to deprecated tokens in the Figma synchronizer script

0.6.3

Patch Changes

  • #19313 39f4b3b6b48 - Added new base dark mode token DN-100 and modified elevation.surface.token to use it rather than the alpha.

0.6.2

Patch Changes

  • #19072 899fd622557 - Re-introduces the selected and selected.bold tokens:

    • color.text.selected
    • color.icon.selected
    • color.border.selected
    • color.background.selected
    • color.background.selected.hovered
    • color.background.selected.pressed
    • color.background.selected.bold
    • color.background.selected.bold.hovered
    • color.background.selected.bold.pressed

    The following tokens are deprecated:

    • color.background.brand
    • color.background.brand.hovered
    • color.background.brand.pressed

    IMPORTANT (Manual verification required):

    Please ensure all usages of the following tokens are replaced with their selected counterpart, wherever a brand token is used to represent a selected state.

    • color.background.brand.[default|hovered|pressed] => color.background.selected.[default|hovered|pressed]
    • color.background.brand.bold.[default|hovered|pressed] => color.background.selected.bold.[default|hovered|pressed]
    • color.text.brand => color.text.selected
    • color.icon.brand => color.icon.selected
    • color.border.brand => color.border.selected

0.6.1

Patch Changes

  • #16752 3ed3071ee35 - Updates elevation.surface.sunken base token in darkmode to DN-100A
  • Updated dependencies

0.6.0

Minor Changes

  • 19d72473dfb - Various improvements & changes to the tokens build scripts. These changes affect how various artifacts are generated, particularly relating to Figma
  • 19d72473dfb - Adds new tokens which represent the latest taxonomy changes.
  • 19d72473dfb - Introduces the new accent token set from the latest version of the taxonomy

Patch Changes

  • 19d72473dfb - The token() function no longer throws and instead omits an error in the case where the provided token doesn't exist or is not found.

0.5.0

Minor Changes

  • #18168 03a2ceaaabd - Rename mapper entrypoint now outputs migration meta data in array format rather than object.

0.4.2

Patch Changes

0.4.1

Patch Changes

0.4.0

Minor Changes

  • #15998 b46c0681c29 - Adds "MISSING_TOKEN" for instances where a suitable token does not exist
  • d5e751f7236 - Tweaks new palette colors to reflect feedback from the pilot program
  • 2c855cf3bf4 - New internal config change allows this package to be run pre-build by ts-node, allowing access to the babel plugin by repo build tooling

    Removes token-default-values entrypoint

  • 81a0d9b5692 - Pulled tokens babel plugin in and updated the entrypoint from @atlaskit/babel-plugin-tokens to @atlaskit/tokens/babel-plugin

  • 4ec42b57298 - Updates the figma synchroniser to remove theme prefixes from tokens names, incorperate the isPalette flag into the group attribute and space separate interaction states. These changes improve the findability of tokens in figma

Patch Changes

  • a1ad2de440a - Fixes internal types being coerced to implicit any.
  • 286e1d43477 - Updated internal token representation to include state/lifecycle metadata
  • ed086330194 - Internal file restructure for style-dictionary to group it’s inputs /src/tokens and outputs /src/artifacts in dedicated directories
  • 9b1703048e3 - Updates build tooling in preparation for the new taxonomy.

0.3.0

Minor Changes

  • #14777 092e10c6184 - CSS variables generated by the tokens package now have a prefix "ds-" to differentiate them from other CSS variables in an application

0.2.1

Patch Changes

  • #14319 5c1cf4723e4 - typescript-token-name formatter now outputs token names with an indexable Record type
  • 2f9faec5201 - Tokens now provided with descriptions for when they should be used

0.2.0

Minor Changes

  • #13665 18b502b7083 - Added a new export, token-default-values, which maps token names to their value in the default theme (currently the "atlassian-light" theme).

0.1.1

Patch Changes

  • #13864 6f3632e65d4 - Updates README with MVP instructions for usage.
  • c1498cb226e - Removes previous rename map
  • 0936217160c - Add bold accent tokens:

    • color.accent.boldBlue
    • color.accent.boldRed
    • color.accent.boldGreen
    • color.accent.boldOrange
    • color.accent.boldTeal
    • color.accent.boldPurple
  • 6d72bea69a0 - Descriptions and other token metadata is now stored in the "default" theme.

  • addf9436414 - [ux] Introduced a restricted util token for use during the initial token migration. This token is for internal use only and will be removed in a future version of @atlaskit/tokens.

0.1.0

Minor Changes

  • #13302 642f26d0f0c - Adds rename-mapping as an entry point for @atlaskit/tokens. rename-mapping is an object mapping old token names to their new replacements

Patch Changes

  • c784665d01d - Removes color.border.overlay token and replaces it with a third shadow inside shadow.overlay.
  • 76b718b72e1 - [ux] Fixes incorrect values in the palette and token definitions.
  • 855d6afb3d3 - Parsing of alpha hex in the Figma synchronizer is fixed.
  • 8d0cb37bfe0 - Updates: text.link.pressed values to B800/B300 Removes: text.link.hover Combines: border.disabled and background.disabledbackground.disabled Updates: background.disabled token value to N/DN200A Renames: All accents from color.accent.blueSubtlecolor.accent.subtleBlue Renames: background.selected to background.selected.resting Adds: background.selected.hover, background.selected.pressed
  • 53749f08286 - Adds tokens:

    • color.overlay.hover
    • color.overlay.pressed

0.0.18

Patch Changes

0.0.17

Patch Changes

0.0.16

Patch Changes

0.0.15

Patch Changes

  • #12592 e11b3e4e1ee - Restructures tokens into the following format {group}{property}{variant}{state}

0.0.14

Patch Changes

  • #12528 1926dba3536 - Adds, removes & renames tokens

    Adds:

    • color.backgroundSelect

    Renames:

    • color.borderTextHighlighted to color.bordertextSelected
    • elevation.base to evelation.backgroundDefault
    • elevation.flatSecondary to elevation.backgroundSunken
    • elevation.backgroundCard to color.backgroundCard
    • elevation.backgroundOverlay to color.backgroundOverlay
    • elevation.borderOverlay to color.borderOverlay
    • elevation.shadowCard to shadow.card
    • elevation.shadowOverlay to shadow.overlay

    Removes:

    • elevation.boarderFlatPrimary

    Updates:

    • elevation.shadowOverlay value to DN100
    • color.textWarning in light mode to O800
    • color.iconBorderWarning in light mode to O600

0.0.13

Patch Changes

  • #12444 769ea83469c - Moves tokens and eslint-plugin-design-system to the public namespace.

0.0.12

Patch Changes

  • #12123 6cde35b66d9 - Updates the figma synchronizer with the ability to rename tokens

0.0.11

Patch Changes

0.0.10

Patch Changes

0.0.9

Patch Changes

  • #11920 76836669a4c - Global theme CSS custom properties are now scoped to the html element.

0.0.8

Patch Changes

0.0.7

Patch Changes

0.0.6

Patch Changes

0.0.5

Patch Changes

  • #11380 2106cf48ddb - Adds token "getter" to allow users to fetch and use tokens in their components

0.0.4

Patch Changes

  • #11433 202cf0733de - Tokens are now built using style dictionary with three outputs:

    1. CSS
    2. Figma synchronizers
    3. Token name map

0.0.3

Patch Changes

0.0.2

Patch Changes

0.0.1

Patch Changes