@atlaskit/tokens 1.24.0 → 1.25.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +178 -164
- package/dist/cjs/artifacts/atlassian-dark-token-value-for-contrast-check.js +1 -2
- package/dist/cjs/artifacts/atlassian-light-token-value-for-contrast-check.js +1 -2
- package/dist/cjs/artifacts/generated-pairs.js +1 -1
- package/dist/cjs/artifacts/palettes-raw/legacy-palette.js +1 -2
- package/dist/cjs/artifacts/palettes-raw/palette.js +1 -2
- package/dist/cjs/artifacts/palettes-raw/shape-palette.js +1 -2
- package/dist/cjs/artifacts/palettes-raw/spacing-scale.js +1 -2
- package/dist/cjs/artifacts/palettes-raw/typography-palette.js +4 -5
- package/dist/cjs/artifacts/palettes-raw/updated-saturated-palette.js +2257 -0
- package/dist/cjs/artifacts/replacement-mapping.js +1 -2
- package/dist/cjs/artifacts/theme-import-map.js +14 -3
- package/dist/cjs/artifacts/themes/atlassian-dark-new-input-border.js +1 -2
- package/dist/cjs/artifacts/themes/atlassian-dark-saturated-palette-changes.js +12 -0
- package/dist/cjs/artifacts/themes/atlassian-dark.js +1 -2
- package/dist/cjs/artifacts/themes/atlassian-legacy-dark.js +1 -2
- package/dist/cjs/artifacts/themes/atlassian-legacy-light.js +1 -2
- package/dist/cjs/artifacts/themes/atlassian-light-new-input-border.js +1 -2
- package/dist/cjs/artifacts/themes/atlassian-light-saturated-palette-changes.js +12 -0
- package/dist/cjs/artifacts/themes/atlassian-light.js +1 -2
- package/dist/cjs/artifacts/themes/atlassian-shape.js +1 -2
- package/dist/cjs/artifacts/themes/atlassian-spacing.js +1 -2
- package/dist/cjs/artifacts/themes/atlassian-typography-adg3.js +2 -3
- package/dist/cjs/artifacts/themes/atlassian-typography-minor3.js +2 -3
- package/dist/cjs/artifacts/themes/atlassian-typography.js +2 -3
- package/dist/cjs/artifacts/token-default-values.js +14 -15
- package/dist/cjs/artifacts/token-names.js +12 -13
- package/dist/cjs/artifacts/tokens-raw/atlassian-dark-new-input-border.js +1 -2
- package/dist/cjs/artifacts/tokens-raw/atlassian-dark-saturated-palette-changes.js +8683 -0
- package/dist/cjs/artifacts/tokens-raw/atlassian-dark.js +1 -2
- package/dist/cjs/artifacts/tokens-raw/atlassian-legacy-dark.js +1 -2
- package/dist/cjs/artifacts/tokens-raw/atlassian-legacy-light.js +1 -2
- package/dist/cjs/artifacts/tokens-raw/atlassian-light-new-input-border.js +1 -2
- package/dist/cjs/artifacts/tokens-raw/atlassian-light-saturated-palette-changes.js +8645 -0
- package/dist/cjs/artifacts/tokens-raw/atlassian-light.js +1 -2
- package/dist/cjs/artifacts/tokens-raw/atlassian-shape.js +1 -2
- package/dist/cjs/artifacts/tokens-raw/atlassian-spacing.js +1 -2
- package/dist/cjs/artifacts/tokens-raw/atlassian-typography-adg3.js +34 -35
- package/dist/cjs/artifacts/tokens-raw/atlassian-typography-minor3.js +35 -36
- package/dist/cjs/artifacts/tokens-raw/atlassian-typography.js +35 -36
- package/dist/cjs/artifacts/typescript/atlassian-dark-token-names.js +1 -2
- package/dist/cjs/artifacts/typescript/atlassian-light-token-names.js +1 -2
- package/dist/cjs/constants.js +8 -16
- package/dist/cjs/custom-theme.js +2 -3
- package/dist/cjs/enable-global-theme.js +1 -2
- package/dist/cjs/get-global-theme.js +1 -2
- package/dist/cjs/get-ssr-auto-script.js +1 -2
- package/dist/cjs/get-theme-html-attrs.js +1 -2
- package/dist/cjs/get-theme-styles.js +12 -10
- package/dist/cjs/get-token-value.js +2 -3
- package/dist/cjs/get-token.js +2 -3
- package/dist/cjs/load-custom-theme-styles.js +1 -2
- package/dist/cjs/palettes/legacy-palette.js +1 -2
- package/dist/cjs/palettes/palette.js +1 -2
- package/dist/cjs/palettes/shape-palette.js +1 -2
- package/dist/cjs/palettes/spacing-scale.js +1 -2
- package/dist/cjs/palettes/typography-palette.js +2 -3
- package/dist/cjs/palettes/updated-saturated-palette.js +320 -0
- package/dist/cjs/set-global-theme.js +38 -4
- package/dist/cjs/theme-config.js +31 -12
- package/dist/cjs/theme-mutation-observer.js +2 -3
- package/dist/cjs/theme-state-transformer.js +3 -5
- package/dist/cjs/tokens/atlassian-dark/color/accent.js +1 -2
- package/dist/cjs/tokens/atlassian-dark/color/background.js +1 -2
- package/dist/cjs/tokens/atlassian-dark/color/border.js +1 -2
- package/dist/cjs/tokens/atlassian-dark/color/chart.js +1 -2
- package/dist/cjs/tokens/atlassian-dark/color/icon.js +1 -2
- package/dist/cjs/tokens/atlassian-dark/color/interaction.js +1 -2
- package/dist/cjs/tokens/atlassian-dark/color/skeleton.js +1 -2
- package/dist/cjs/tokens/atlassian-dark/color/text.js +1 -2
- package/dist/cjs/tokens/atlassian-dark/elevation/shadow.js +1 -2
- package/dist/cjs/tokens/atlassian-dark/elevation/surface.js +1 -2
- package/dist/cjs/tokens/atlassian-dark/opacity/opacity.js +1 -2
- package/dist/cjs/tokens/atlassian-dark/utility/utility.js +2 -3
- package/dist/cjs/tokens/atlassian-dark-new-input-border/color/border.js +1 -2
- package/dist/cjs/tokens/atlassian-dark-saturated-palette-changes/color/accent.js +21 -0
- package/dist/cjs/tokens/atlassian-dark-saturated-palette-changes/color/background.js +26 -0
- package/dist/cjs/tokens/atlassian-dark-saturated-palette-changes/color/icon.js +18 -0
- package/dist/cjs/tokens/atlassian-legacy-dark/color/accent.js +1 -2
- package/dist/cjs/tokens/atlassian-legacy-dark/color/background.js +1 -2
- package/dist/cjs/tokens/atlassian-legacy-dark/color/border.js +1 -2
- package/dist/cjs/tokens/atlassian-legacy-dark/color/chart.js +1 -2
- package/dist/cjs/tokens/atlassian-legacy-dark/color/icon.js +1 -2
- package/dist/cjs/tokens/atlassian-legacy-dark/color/interaction.js +1 -2
- package/dist/cjs/tokens/atlassian-legacy-dark/color/skeleton.js +1 -2
- package/dist/cjs/tokens/atlassian-legacy-dark/color/text.js +1 -2
- package/dist/cjs/tokens/atlassian-legacy-dark/elevation/shadow.js +1 -2
- package/dist/cjs/tokens/atlassian-legacy-dark/elevation/surface.js +1 -2
- package/dist/cjs/tokens/atlassian-legacy-dark/opacity/opacity.js +1 -2
- package/dist/cjs/tokens/atlassian-legacy-dark/utility/utility.js +2 -3
- package/dist/cjs/tokens/atlassian-legacy-light/color/accent.js +1 -2
- package/dist/cjs/tokens/atlassian-legacy-light/color/background.js +1 -2
- package/dist/cjs/tokens/atlassian-legacy-light/color/border.js +1 -2
- package/dist/cjs/tokens/atlassian-legacy-light/color/chart.js +1 -2
- package/dist/cjs/tokens/atlassian-legacy-light/color/icon.js +1 -2
- package/dist/cjs/tokens/atlassian-legacy-light/color/interaction.js +1 -2
- package/dist/cjs/tokens/atlassian-legacy-light/color/skeleton.js +1 -2
- package/dist/cjs/tokens/atlassian-legacy-light/color/text.js +1 -2
- package/dist/cjs/tokens/atlassian-legacy-light/elevation/shadow.js +1 -2
- package/dist/cjs/tokens/atlassian-legacy-light/elevation/surface.js +1 -2
- package/dist/cjs/tokens/atlassian-legacy-light/opacity/opacity.js +1 -2
- package/dist/cjs/tokens/atlassian-legacy-light/utility/utility.js +2 -3
- package/dist/cjs/tokens/atlassian-light/color/accent.js +1 -2
- package/dist/cjs/tokens/atlassian-light/color/background.js +1 -2
- package/dist/cjs/tokens/atlassian-light/color/border.js +1 -2
- package/dist/cjs/tokens/atlassian-light/color/chart.js +1 -2
- package/dist/cjs/tokens/atlassian-light/color/icon.js +1 -2
- package/dist/cjs/tokens/atlassian-light/color/interaction.js +1 -2
- package/dist/cjs/tokens/atlassian-light/color/skeleton.js +1 -2
- package/dist/cjs/tokens/atlassian-light/color/text.js +1 -2
- package/dist/cjs/tokens/atlassian-light/elevation/shadow.js +1 -2
- package/dist/cjs/tokens/atlassian-light/elevation/surface.js +1 -2
- package/dist/cjs/tokens/atlassian-light/opacity/opacity.js +1 -2
- package/dist/cjs/tokens/atlassian-light/utility/utility.js +2 -3
- package/dist/cjs/tokens/atlassian-light-new-input-border/color/border.js +1 -2
- package/dist/cjs/tokens/atlassian-light-saturated-palette-changes/color/accent.js +35 -0
- package/dist/cjs/tokens/atlassian-light-saturated-palette-changes/color/background.js +26 -0
- package/dist/cjs/tokens/atlassian-light-saturated-palette-changes/color/icon.js +16 -0
- package/dist/cjs/tokens/atlassian-shape/shape.js +1 -2
- package/dist/cjs/tokens/atlassian-spacing/spacing.js +1 -2
- package/dist/cjs/tokens/atlassian-typography/font-family.js +1 -2
- package/dist/cjs/tokens/atlassian-typography/letter-spacing.js +1 -2
- package/dist/cjs/tokens/atlassian-typography/theme.js +11 -12
- package/dist/cjs/tokens/atlassian-typography-adg3/font-family.js +1 -2
- package/dist/cjs/tokens/atlassian-typography-adg3/font-size.js +1 -2
- package/dist/cjs/tokens/atlassian-typography-adg3/font-weight.js +1 -2
- package/dist/cjs/tokens/atlassian-typography-adg3/letter-spacing.js +1 -2
- package/dist/cjs/tokens/atlassian-typography-adg3/line-height.js +1 -2
- package/dist/cjs/tokens/atlassian-typography-adg3/theme.js +12 -13
- package/dist/cjs/tokens/atlassian-typography-minor3/font-family.js +1 -2
- package/dist/cjs/tokens/atlassian-typography-minor3/letter-spacing.js +1 -2
- package/dist/cjs/tokens/atlassian-typography-minor3/theme.js +12 -13
- package/dist/cjs/tokens/default/color/accent.js +1 -2
- package/dist/cjs/tokens/default/color/background.js +1 -2
- package/dist/cjs/tokens/default/color/border.js +1 -2
- package/dist/cjs/tokens/default/color/chart.js +1 -2
- package/dist/cjs/tokens/default/color/icon.js +1 -2
- package/dist/cjs/tokens/default/color/interaction.js +1 -2
- package/dist/cjs/tokens/default/color/skeleton.js +1 -2
- package/dist/cjs/tokens/default/color/text.js +1 -2
- package/dist/cjs/tokens/default/elevation/shadow.js +1 -2
- package/dist/cjs/tokens/default/elevation/surface.js +1 -2
- package/dist/cjs/tokens/default/opacity/opacity.js +1 -2
- package/dist/cjs/tokens/default/shape/shape.js +1 -2
- package/dist/cjs/tokens/default/spacing/spacing.js +1 -2
- package/dist/cjs/tokens/default/typography/font-family.js +1 -2
- package/dist/cjs/tokens/default/typography/font-size.js +1 -2
- package/dist/cjs/tokens/default/typography/font-weight.js +1 -2
- package/dist/cjs/tokens/default/typography/font.js +11 -12
- package/dist/cjs/tokens/default/typography/letter-spacing.js +1 -2
- package/dist/cjs/tokens/default/typography/line-height.js +1 -2
- package/dist/cjs/tokens/default/utility/utility.js +2 -3
- package/dist/cjs/use-theme-observer.js +1 -2
- package/dist/cjs/utils/color-detection.js +3 -5
- package/dist/cjs/utils/color-mode-listeners.js +1 -2
- package/dist/cjs/utils/color-utils.js +1 -2
- package/dist/cjs/utils/custom-theme-token-contrast-check.js +3 -5
- package/dist/cjs/utils/generate-custom-color-ramp.js +5 -9
- package/dist/cjs/utils/get-theme-preferences.js +27 -6
- package/dist/cjs/utils/hash.js +2 -3
- package/dist/cjs/utils/hct-color-utils/contrast.js +2 -3
- package/dist/cjs/utils/hct-color-utils/hct.js +7 -7
- package/dist/cjs/utils/theme-loading.js +3 -6
- package/dist/cjs/utils/token-ids.js +4 -7
- package/dist/cjs/utils/token-order.js +2 -3
- package/dist/es2019/artifacts/palettes-raw/typography-palette.js +3 -3
- package/dist/es2019/artifacts/palettes-raw/updated-saturated-palette.js +2251 -0
- package/dist/es2019/artifacts/theme-import-map.js +5 -1
- package/dist/es2019/artifacts/themes/atlassian-dark-saturated-palette-changes.js +399 -0
- package/dist/es2019/artifacts/themes/atlassian-light-saturated-palette-changes.js +399 -0
- package/dist/es2019/artifacts/themes/atlassian-typography-adg3.js +13 -13
- package/dist/es2019/artifacts/themes/atlassian-typography-minor3.js +14 -14
- package/dist/es2019/artifacts/themes/atlassian-typography.js +14 -14
- package/dist/es2019/artifacts/token-default-values.js +13 -13
- package/dist/es2019/artifacts/token-names.js +11 -11
- package/dist/es2019/artifacts/tokens-raw/atlassian-dark-saturated-palette-changes.js +8677 -0
- package/dist/es2019/artifacts/tokens-raw/atlassian-light-saturated-palette-changes.js +8639 -0
- package/dist/es2019/artifacts/tokens-raw/atlassian-typography-adg3.js +33 -33
- package/dist/es2019/artifacts/tokens-raw/atlassian-typography-minor3.js +34 -34
- package/dist/es2019/artifacts/tokens-raw/atlassian-typography.js +34 -34
- package/dist/es2019/get-theme-styles.js +7 -4
- package/dist/es2019/get-token-value.js +1 -1
- package/dist/es2019/get-token.js +1 -1
- package/dist/es2019/palettes/typography-palette.js +1 -1
- package/dist/es2019/palettes/updated-saturated-palette.js +312 -0
- package/dist/es2019/set-global-theme.js +8 -2
- package/dist/es2019/theme-config.js +25 -1
- package/dist/es2019/tokens/atlassian-dark-saturated-palette-changes/color/accent.js +15 -0
- package/dist/es2019/tokens/atlassian-dark-saturated-palette-changes/color/background.js +20 -0
- package/dist/es2019/tokens/atlassian-dark-saturated-palette-changes/color/icon.js +12 -0
- package/dist/es2019/tokens/atlassian-light-saturated-palette-changes/color/accent.js +29 -0
- package/dist/es2019/tokens/atlassian-light-saturated-palette-changes/color/background.js +20 -0
- package/dist/es2019/tokens/atlassian-light-saturated-palette-changes/color/icon.js +10 -0
- package/dist/es2019/tokens/atlassian-typography/theme.js +10 -10
- package/dist/es2019/tokens/atlassian-typography-adg3/theme.js +10 -10
- package/dist/es2019/tokens/atlassian-typography-minor3/theme.js +10 -10
- package/dist/es2019/tokens/default/typography/font.js +10 -10
- package/dist/es2019/utils/get-theme-preferences.js +26 -2
- package/dist/es2019/utils/hct-color-utils/hct.js +3 -1
- package/dist/esm/artifacts/palettes-raw/typography-palette.js +3 -3
- package/dist/esm/artifacts/palettes-raw/updated-saturated-palette.js +2251 -0
- package/dist/esm/artifacts/theme-import-map.js +9 -1
- package/dist/esm/artifacts/themes/atlassian-dark-saturated-palette-changes.js +6 -0
- package/dist/esm/artifacts/themes/atlassian-light-saturated-palette-changes.js +6 -0
- package/dist/esm/artifacts/themes/atlassian-typography-adg3.js +2 -2
- package/dist/esm/artifacts/themes/atlassian-typography-minor3.js +2 -2
- package/dist/esm/artifacts/themes/atlassian-typography.js +2 -2
- package/dist/esm/artifacts/token-default-values.js +13 -13
- package/dist/esm/artifacts/token-names.js +11 -11
- package/dist/esm/artifacts/tokens-raw/atlassian-dark-saturated-palette-changes.js +8677 -0
- package/dist/esm/artifacts/tokens-raw/atlassian-light-saturated-palette-changes.js +8639 -0
- package/dist/esm/artifacts/tokens-raw/atlassian-typography-adg3.js +33 -33
- package/dist/esm/artifacts/tokens-raw/atlassian-typography-minor3.js +34 -34
- package/dist/esm/artifacts/tokens-raw/atlassian-typography.js +34 -34
- package/dist/esm/custom-theme.js +1 -1
- package/dist/esm/get-theme-styles.js +12 -9
- package/dist/esm/get-token-value.js +1 -1
- package/dist/esm/get-token.js +1 -1
- package/dist/esm/palettes/typography-palette.js +1 -1
- package/dist/esm/palettes/updated-saturated-palette.js +313 -0
- package/dist/esm/set-global-theme.js +38 -3
- package/dist/esm/theme-config.js +25 -1
- package/dist/esm/tokens/atlassian-dark-saturated-palette-changes/color/accent.js +15 -0
- package/dist/esm/tokens/atlassian-dark-saturated-palette-changes/color/background.js +20 -0
- package/dist/esm/tokens/atlassian-dark-saturated-palette-changes/color/icon.js +12 -0
- package/dist/esm/tokens/atlassian-light-saturated-palette-changes/color/accent.js +29 -0
- package/dist/esm/tokens/atlassian-light-saturated-palette-changes/color/background.js +20 -0
- package/dist/esm/tokens/atlassian-light-saturated-palette-changes/color/icon.js +10 -0
- package/dist/esm/tokens/atlassian-typography/theme.js +10 -10
- package/dist/esm/tokens/atlassian-typography-adg3/theme.js +10 -10
- package/dist/esm/tokens/atlassian-typography-minor3/theme.js +10 -10
- package/dist/esm/tokens/default/typography/font.js +10 -10
- package/dist/esm/utils/get-theme-preferences.js +24 -2
- package/dist/esm/utils/hct-color-utils/hct.js +3 -1
- package/dist/types/artifacts/palettes-raw/typography-palette.d.ts +1 -1
- package/dist/types/artifacts/palettes-raw/updated-saturated-palette.d.ts +41 -0
- package/dist/types/artifacts/theme-import-map.d.ts +1 -1
- package/dist/types/artifacts/themes/atlassian-dark-saturated-palette-changes.d.ts +7 -0
- package/dist/types/artifacts/themes/atlassian-light-saturated-palette-changes.d.ts +7 -0
- package/dist/types/artifacts/themes/atlassian-typography-adg3.d.ts +2 -2
- package/dist/types/artifacts/themes/atlassian-typography-minor3.d.ts +2 -2
- package/dist/types/artifacts/themes/atlassian-typography.d.ts +2 -2
- package/dist/types/artifacts/token-default-values.d.ts +13 -13
- package/dist/types/artifacts/token-names.d.ts +21 -21
- package/dist/types/artifacts/tokens-raw/atlassian-dark-saturated-palette-changes.d.ts +109 -0
- package/dist/types/artifacts/tokens-raw/atlassian-light-saturated-palette-changes.d.ts +89 -0
- package/dist/types/artifacts/tokens-raw/atlassian-typography-adg3.d.ts +1 -1
- package/dist/types/artifacts/tokens-raw/atlassian-typography-minor3.d.ts +1 -1
- package/dist/types/artifacts/tokens-raw/atlassian-typography.d.ts +1 -1
- package/dist/types/palettes/palette.d.ts +1 -1
- package/dist/types/palettes/updated-saturated-palette.d.ts +10 -0
- package/dist/types/theme-config.d.ts +8 -4
- package/dist/types/tokens/atlassian-dark/utility/utility.d.ts +1 -1
- package/dist/types/tokens/atlassian-dark-saturated-palette-changes/color/accent.d.ts +4 -0
- package/dist/types/tokens/atlassian-dark-saturated-palette-changes/color/background.d.ts +4 -0
- package/dist/types/tokens/atlassian-dark-saturated-palette-changes/color/icon.d.ts +4 -0
- package/dist/types/tokens/atlassian-light/utility/utility.d.ts +1 -1
- package/dist/types/tokens/atlassian-light-saturated-palette-changes/color/accent.d.ts +4 -0
- package/dist/types/tokens/atlassian-light-saturated-palette-changes/color/background.d.ts +4 -0
- package/dist/types/tokens/atlassian-light-saturated-palette-changes/color/icon.d.ts +4 -0
- package/dist/types/tokens/atlassian-typography-adg3/theme.d.ts +13 -13
- package/dist/types/tokens/atlassian-typography-minor3/theme.d.ts +13 -13
- package/dist/types/tokens/default/utility/utility.d.ts +1 -1
- package/dist/types/types.d.ts +11 -11
- package/dist/types/utils/get-theme-preferences.d.ts +1 -0
- package/dist/types-ts4.5/artifacts/palettes-raw/typography-palette.d.ts +1 -1
- package/dist/types-ts4.5/artifacts/palettes-raw/updated-saturated-palette.d.ts +41 -0
- package/dist/types-ts4.5/artifacts/theme-import-map.d.ts +1 -1
- package/dist/types-ts4.5/artifacts/themes/atlassian-dark-saturated-palette-changes.d.ts +7 -0
- package/dist/types-ts4.5/artifacts/themes/atlassian-light-saturated-palette-changes.d.ts +7 -0
- package/dist/types-ts4.5/artifacts/themes/atlassian-typography-adg3.d.ts +2 -2
- package/dist/types-ts4.5/artifacts/themes/atlassian-typography-minor3.d.ts +2 -2
- package/dist/types-ts4.5/artifacts/themes/atlassian-typography.d.ts +2 -2
- package/dist/types-ts4.5/artifacts/token-default-values.d.ts +13 -13
- package/dist/types-ts4.5/artifacts/token-names.d.ts +21 -21
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark-saturated-palette-changes.d.ts +109 -0
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light-saturated-palette-changes.d.ts +89 -0
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography-adg3.d.ts +1 -1
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography-minor3.d.ts +1 -1
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography.d.ts +1 -1
- package/dist/types-ts4.5/palettes/palette.d.ts +1 -1
- package/dist/types-ts4.5/palettes/updated-saturated-palette.d.ts +10 -0
- package/dist/types-ts4.5/theme-config.d.ts +12 -4
- package/dist/types-ts4.5/tokens/atlassian-dark/utility/utility.d.ts +1 -1
- package/dist/types-ts4.5/tokens/atlassian-dark-saturated-palette-changes/color/accent.d.ts +4 -0
- package/dist/types-ts4.5/tokens/atlassian-dark-saturated-palette-changes/color/background.d.ts +4 -0
- package/dist/types-ts4.5/tokens/atlassian-dark-saturated-palette-changes/color/icon.d.ts +4 -0
- package/dist/types-ts4.5/tokens/atlassian-light/utility/utility.d.ts +1 -1
- package/dist/types-ts4.5/tokens/atlassian-light-saturated-palette-changes/color/accent.d.ts +4 -0
- package/dist/types-ts4.5/tokens/atlassian-light-saturated-palette-changes/color/background.d.ts +4 -0
- package/dist/types-ts4.5/tokens/atlassian-light-saturated-palette-changes/color/icon.d.ts +4 -0
- package/dist/types-ts4.5/tokens/atlassian-typography-adg3/theme.d.ts +13 -13
- package/dist/types-ts4.5/tokens/atlassian-typography-minor3/theme.d.ts +13 -13
- package/dist/types-ts4.5/tokens/default/utility/utility.d.ts +1 -1
- package/dist/types-ts4.5/types.d.ts +11 -11
- package/dist/types-ts4.5/utils/get-theme-preferences.d.ts +1 -0
- package/figma/atlassian-dark-saturated-palette-changes.json +3540 -0
- package/figma/atlassian-light-saturated-palette-changes.json +3519 -0
- package/figma/atlassian-typography-adg3.json +2 -2
- package/figma/atlassian-typography-minor3.json +3 -3
- package/figma/atlassian-typography.json +3 -3
- package/package.json +5 -1
- package/report.api.md +32 -22
- package/tmp/api-report-tmp.d.ts +26 -24
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"introduced": "1.14.0",
|
|
9
9
|
"description": "Helpful guidance goes here"
|
|
10
10
|
},
|
|
11
|
-
"value": "ui-sans-serif, \"Segoe UI\", system-ui,
|
|
11
|
+
"value": "ui-sans-serif, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif"
|
|
12
12
|
},
|
|
13
13
|
"Typography adg3/font.family.code": {
|
|
14
14
|
"attributes": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"introduced": "1.14.0",
|
|
27
27
|
"description": "Helpful guidance goes here"
|
|
28
28
|
},
|
|
29
|
-
"value": "ui-sans-serif, \"Segoe UI\", system-ui,
|
|
29
|
+
"value": "ui-sans-serif, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif"
|
|
30
30
|
},
|
|
31
31
|
"Typography adg3/font.family.monospace": {
|
|
32
32
|
"attributes": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"introduced": "1.14.0",
|
|
9
9
|
"description": "Helpful guidance goes here"
|
|
10
10
|
},
|
|
11
|
-
"value": "ui-sans-serif, \"Segoe UI\", system-ui,
|
|
11
|
+
"value": "ui-sans-serif, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif"
|
|
12
12
|
},
|
|
13
13
|
"Typography minor3/font.family.code": {
|
|
14
14
|
"attributes": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"introduced": "1.14.0",
|
|
27
27
|
"description": "Helpful guidance goes here"
|
|
28
28
|
},
|
|
29
|
-
"value": "ui-sans-serif, \"Segoe UI\", system-ui,
|
|
29
|
+
"value": "ui-sans-serif, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif"
|
|
30
30
|
},
|
|
31
31
|
"Typography minor3/font.family.monospace": {
|
|
32
32
|
"attributes": {
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"introduced": "0.10.33",
|
|
45
45
|
"description": "Helpful guidance goes here"
|
|
46
46
|
},
|
|
47
|
-
"value": "ui-sans-serif, \"Segoe UI\", system-ui,
|
|
47
|
+
"value": "ui-sans-serif, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif"
|
|
48
48
|
},
|
|
49
49
|
"Typography minor3/font.family.brand": {
|
|
50
50
|
"attributes": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"introduced": "1.14.0",
|
|
9
9
|
"description": "Helpful guidance goes here"
|
|
10
10
|
},
|
|
11
|
-
"value": "ui-sans-serif, \"Segoe UI\", system-ui,
|
|
11
|
+
"value": "ui-sans-serif, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif"
|
|
12
12
|
},
|
|
13
13
|
"Typography/font.family.code": {
|
|
14
14
|
"attributes": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"introduced": "1.14.0",
|
|
27
27
|
"description": "Helpful guidance goes here"
|
|
28
28
|
},
|
|
29
|
-
"value": "ui-sans-serif, \"Segoe UI\", system-ui,
|
|
29
|
+
"value": "ui-sans-serif, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif"
|
|
30
30
|
},
|
|
31
31
|
"Typography/font.family.monospace": {
|
|
32
32
|
"attributes": {
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"introduced": "0.10.33",
|
|
45
45
|
"description": "Helpful guidance goes here"
|
|
46
46
|
},
|
|
47
|
-
"value": "ui-sans-serif, \"Segoe UI\", system-ui,
|
|
47
|
+
"value": "ui-sans-serif, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif"
|
|
48
48
|
},
|
|
49
49
|
"Typography/font.family.brand": {
|
|
50
50
|
"attributes": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/tokens",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.25.1",
|
|
4
4
|
"description": "Design tokens are the single source of truth to name and store design decisions.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
"bind-event-listener": "^2.1.1"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
|
+
"@af/design-system-docs-ui": "*",
|
|
44
45
|
"react": "^16.8.0"
|
|
45
46
|
},
|
|
46
47
|
"devDependencies": {
|
|
@@ -112,6 +113,9 @@
|
|
|
112
113
|
"platform-feature-flags": {
|
|
113
114
|
"platform.design-system-team.border-checkbox_nyoiu": {
|
|
114
115
|
"type": "boolean"
|
|
116
|
+
},
|
|
117
|
+
"platform.design-system-team.saturated-palette-changes_asoro": {
|
|
118
|
+
"type": "boolean"
|
|
115
119
|
}
|
|
116
120
|
},
|
|
117
121
|
"homepage": "https://atlassian.design/components/tokens",
|
package/report.api.md
CHANGED
|
@@ -1125,23 +1125,23 @@ type CSSTokenMap = {
|
|
|
1125
1125
|
'space.negative.300': 'var(--ds-space-negative-300)';
|
|
1126
1126
|
'space.negative.400': 'var(--ds-space-negative-400)';
|
|
1127
1127
|
'font.body': 'var(--ds-font-body)';
|
|
1128
|
-
'font.body.
|
|
1129
|
-
'font.body.
|
|
1128
|
+
'font.body.large': 'var(--ds-font-body-large)';
|
|
1129
|
+
'font.body.small': 'var(--ds-font-body-small)';
|
|
1130
1130
|
'font.code': 'var(--ds-font-code)';
|
|
1131
|
-
'font.heading.
|
|
1132
|
-
'font.heading.
|
|
1133
|
-
'font.heading.
|
|
1134
|
-
'font.heading.
|
|
1135
|
-
'font.heading.
|
|
1136
|
-
'font.heading.
|
|
1137
|
-
'font.heading.
|
|
1131
|
+
'font.heading.large': 'var(--ds-font-heading-large)';
|
|
1132
|
+
'font.heading.medium': 'var(--ds-font-heading-medium)';
|
|
1133
|
+
'font.heading.small': 'var(--ds-font-heading-small)';
|
|
1134
|
+
'font.heading.xlarge': 'var(--ds-font-heading-xlarge)';
|
|
1135
|
+
'font.heading.xsmall': 'var(--ds-font-heading-xsmall)';
|
|
1136
|
+
'font.heading.xxlarge': 'var(--ds-font-heading-xxlarge)';
|
|
1137
|
+
'font.heading.xxsmall': 'var(--ds-font-heading-xxsmall)';
|
|
1138
1138
|
'font.letterSpacing.0': 'var(--ds-font-letterSpacing-0)';
|
|
1139
1139
|
'font.letterSpacing.100': 'var(--ds-font-letterSpacing-100)';
|
|
1140
1140
|
'font.letterSpacing.200': 'var(--ds-font-letterSpacing-200)';
|
|
1141
1141
|
'font.letterSpacing.300': 'var(--ds-font-letterSpacing-300)';
|
|
1142
1142
|
'font.letterSpacing.400': 'var(--ds-font-letterSpacing-400)';
|
|
1143
1143
|
'font.ui': 'var(--ds-font-ui)';
|
|
1144
|
-
'font.ui.
|
|
1144
|
+
'font.ui.small': 'var(--ds-font-ui-small)';
|
|
1145
1145
|
'font.family.body': 'var(--ds-font-family-body)';
|
|
1146
1146
|
'font.family.code': 'var(--ds-font-family-code)';
|
|
1147
1147
|
'font.family.heading': 'var(--ds-font-family-heading)';
|
|
@@ -1787,7 +1787,8 @@ type Palettes =
|
|
|
1787
1787
|
| 'legacyPalette'
|
|
1788
1788
|
| 'shapePalette'
|
|
1789
1789
|
| 'spacingScale'
|
|
1790
|
-
| 'typographyPalette'
|
|
1790
|
+
| 'typographyPalette'
|
|
1791
|
+
| 'updatedSaturatedPalette';
|
|
1791
1792
|
|
|
1792
1793
|
// @public (undocumented)
|
|
1793
1794
|
export type RawToken = DesignToken<string, 'raw'>;
|
|
@@ -1862,6 +1863,8 @@ interface ThemeConfig {
|
|
|
1862
1863
|
// (undocumented)
|
|
1863
1864
|
displayName: string;
|
|
1864
1865
|
// (undocumented)
|
|
1866
|
+
extends?: ExtensionThemeId;
|
|
1867
|
+
// (undocumented)
|
|
1865
1868
|
id: ThemeIds | ThemeOverrideIds;
|
|
1866
1869
|
// (undocumented)
|
|
1867
1870
|
override?: ThemeIds;
|
|
@@ -1904,6 +1907,8 @@ const themeIdsWithOverrides: readonly [
|
|
|
1904
1907
|
'typography-minor3',
|
|
1905
1908
|
'light-new-input-border',
|
|
1906
1909
|
'dark-new-input-border',
|
|
1910
|
+
'light-saturated-palette-changes',
|
|
1911
|
+
'dark-saturated-palette-changes',
|
|
1907
1912
|
];
|
|
1908
1913
|
|
|
1909
1914
|
// @public
|
|
@@ -1938,12 +1943,16 @@ type ThemeOverrideIds = (typeof themeOverrideIds)[number];
|
|
|
1938
1943
|
const themeOverrideIds: readonly [
|
|
1939
1944
|
'light-new-input-border',
|
|
1940
1945
|
'dark-new-input-border',
|
|
1946
|
+
'light-saturated-palette-changes',
|
|
1947
|
+
'dark-saturated-palette-changes',
|
|
1941
1948
|
];
|
|
1942
1949
|
|
|
1943
1950
|
// @public
|
|
1944
1951
|
type ThemeOverrides =
|
|
1945
1952
|
| 'atlassian-dark-new-input-border'
|
|
1946
|
-
| 'atlassian-
|
|
1953
|
+
| 'atlassian-dark-saturated-palette-changes'
|
|
1954
|
+
| 'atlassian-light-new-input-border'
|
|
1955
|
+
| 'atlassian-light-saturated-palette-changes';
|
|
1947
1956
|
|
|
1948
1957
|
// @public
|
|
1949
1958
|
export type Themes =
|
|
@@ -2439,23 +2448,23 @@ const tokens: {
|
|
|
2439
2448
|
readonly 'space.negative.300': '--ds-space-negative-300';
|
|
2440
2449
|
readonly 'space.negative.400': '--ds-space-negative-400';
|
|
2441
2450
|
readonly 'font.body': '--ds-font-body';
|
|
2442
|
-
readonly 'font.body.
|
|
2443
|
-
readonly 'font.body.
|
|
2451
|
+
readonly 'font.body.large': '--ds-font-body-large';
|
|
2452
|
+
readonly 'font.body.small': '--ds-font-body-small';
|
|
2444
2453
|
readonly 'font.code': '--ds-font-code';
|
|
2445
|
-
readonly 'font.heading.
|
|
2446
|
-
readonly 'font.heading.
|
|
2447
|
-
readonly 'font.heading.
|
|
2448
|
-
readonly 'font.heading.
|
|
2449
|
-
readonly 'font.heading.
|
|
2450
|
-
readonly 'font.heading.
|
|
2451
|
-
readonly 'font.heading.
|
|
2454
|
+
readonly 'font.heading.large': '--ds-font-heading-large';
|
|
2455
|
+
readonly 'font.heading.medium': '--ds-font-heading-medium';
|
|
2456
|
+
readonly 'font.heading.small': '--ds-font-heading-small';
|
|
2457
|
+
readonly 'font.heading.xlarge': '--ds-font-heading-xlarge';
|
|
2458
|
+
readonly 'font.heading.xsmall': '--ds-font-heading-xsmall';
|
|
2459
|
+
readonly 'font.heading.xxlarge': '--ds-font-heading-xxlarge';
|
|
2460
|
+
readonly 'font.heading.xxsmall': '--ds-font-heading-xxsmall';
|
|
2452
2461
|
readonly 'font.letterSpacing.0': '--ds-font-letterSpacing-0';
|
|
2453
2462
|
readonly 'font.letterSpacing.100': '--ds-font-letterSpacing-100';
|
|
2454
2463
|
readonly 'font.letterSpacing.200': '--ds-font-letterSpacing-200';
|
|
2455
2464
|
readonly 'font.letterSpacing.300': '--ds-font-letterSpacing-300';
|
|
2456
2465
|
readonly 'font.letterSpacing.400': '--ds-font-letterSpacing-400';
|
|
2457
2466
|
readonly 'font.ui': '--ds-font-ui';
|
|
2458
|
-
readonly 'font.ui.
|
|
2467
|
+
readonly 'font.ui.small': '--ds-font-ui-small';
|
|
2459
2468
|
readonly 'font.family.body': '--ds-font-family-body';
|
|
2460
2469
|
readonly 'font.family.code': '--ds-font-family-code';
|
|
2461
2470
|
readonly 'font.family.heading': '--ds-font-family-heading';
|
|
@@ -2528,6 +2537,7 @@ export const useThemeObserver: () => Partial<ActiveThemeState>;
|
|
|
2528
2537
|
|
|
2529
2538
|
```json
|
|
2530
2539
|
{
|
|
2540
|
+
"@af/design-system-docs-ui": "*",
|
|
2531
2541
|
"react": "^16.8.0"
|
|
2532
2542
|
}
|
|
2533
2543
|
```
|
package/tmp/api-report-tmp.d.ts
CHANGED
|
@@ -666,23 +666,23 @@ type CSSTokenMap = {
|
|
|
666
666
|
'space.negative.300': 'var(--ds-space-negative-300)';
|
|
667
667
|
'space.negative.400': 'var(--ds-space-negative-400)';
|
|
668
668
|
'font.body': 'var(--ds-font-body)';
|
|
669
|
-
'font.body.
|
|
670
|
-
'font.body.
|
|
669
|
+
'font.body.large': 'var(--ds-font-body-large)';
|
|
670
|
+
'font.body.small': 'var(--ds-font-body-small)';
|
|
671
671
|
'font.code': 'var(--ds-font-code)';
|
|
672
|
-
'font.heading.
|
|
673
|
-
'font.heading.
|
|
674
|
-
'font.heading.
|
|
675
|
-
'font.heading.
|
|
676
|
-
'font.heading.
|
|
677
|
-
'font.heading.
|
|
678
|
-
'font.heading.
|
|
672
|
+
'font.heading.large': 'var(--ds-font-heading-large)';
|
|
673
|
+
'font.heading.medium': 'var(--ds-font-heading-medium)';
|
|
674
|
+
'font.heading.small': 'var(--ds-font-heading-small)';
|
|
675
|
+
'font.heading.xlarge': 'var(--ds-font-heading-xlarge)';
|
|
676
|
+
'font.heading.xsmall': 'var(--ds-font-heading-xsmall)';
|
|
677
|
+
'font.heading.xxlarge': 'var(--ds-font-heading-xxlarge)';
|
|
678
|
+
'font.heading.xxsmall': 'var(--ds-font-heading-xxsmall)';
|
|
679
679
|
'font.letterSpacing.0': 'var(--ds-font-letterSpacing-0)';
|
|
680
680
|
'font.letterSpacing.100': 'var(--ds-font-letterSpacing-100)';
|
|
681
681
|
'font.letterSpacing.200': 'var(--ds-font-letterSpacing-200)';
|
|
682
682
|
'font.letterSpacing.300': 'var(--ds-font-letterSpacing-300)';
|
|
683
683
|
'font.letterSpacing.400': 'var(--ds-font-letterSpacing-400)';
|
|
684
684
|
'font.ui': 'var(--ds-font-ui)';
|
|
685
|
-
'font.ui.
|
|
685
|
+
'font.ui.small': 'var(--ds-font-ui-small)';
|
|
686
686
|
'font.family.body': 'var(--ds-font-family-body)';
|
|
687
687
|
'font.family.code': 'var(--ds-font-family-code)';
|
|
688
688
|
'font.family.heading': 'var(--ds-font-family-heading)';
|
|
@@ -824,7 +824,7 @@ export type OpacityToken = DesignToken<string, 'opacity'>;
|
|
|
824
824
|
export type PaintToken<BaseToken> = DesignToken<BaseToken, 'paint'>;
|
|
825
825
|
|
|
826
826
|
// @public
|
|
827
|
-
type Palettes = 'defaultPalette' | 'legacyPalette' | 'shapePalette' | 'spacingScale' | 'typographyPalette';
|
|
827
|
+
type Palettes = 'defaultPalette' | 'legacyPalette' | 'shapePalette' | 'spacingScale' | 'typographyPalette' | 'updatedSaturatedPalette';
|
|
828
828
|
|
|
829
829
|
// @public (undocumented)
|
|
830
830
|
export type RawToken = DesignToken<string, 'raw'>;
|
|
@@ -880,6 +880,8 @@ interface ThemeConfig {
|
|
|
880
880
|
// (undocumented)
|
|
881
881
|
displayName: string;
|
|
882
882
|
// (undocumented)
|
|
883
|
+
extends?: ExtensionThemeId;
|
|
884
|
+
// (undocumented)
|
|
883
885
|
id: ThemeIds | ThemeOverrideIds;
|
|
884
886
|
// (undocumented)
|
|
885
887
|
override?: ThemeIds;
|
|
@@ -900,7 +902,7 @@ const themeIds: readonly ["light", "dark", "legacy-light", "legacy-dark", "spaci
|
|
|
900
902
|
type ThemeIdsWithOverrides = (typeof themeIdsWithOverrides)[number];
|
|
901
903
|
|
|
902
904
|
// @public (undocumented)
|
|
903
|
-
const themeIdsWithOverrides: readonly ["light", "dark", "legacy-light", "legacy-dark", "spacing", "typography", "shape", "typography-adg3", "typography-minor3", "light-new-input-border", "dark-new-input-border"];
|
|
905
|
+
const themeIdsWithOverrides: readonly ["light", "dark", "legacy-light", "legacy-dark", "spacing", "typography", "shape", "typography-adg3", "typography-minor3", "light-new-input-border", "dark-new-input-border", "light-saturated-palette-changes", "dark-saturated-palette-changes"];
|
|
904
906
|
|
|
905
907
|
// @public
|
|
906
908
|
type ThemeKinds = 'color' | 'shape' | 'spacing' | 'typography';
|
|
@@ -931,10 +933,10 @@ export interface ThemeOptionsSchema {
|
|
|
931
933
|
type ThemeOverrideIds = (typeof themeOverrideIds)[number];
|
|
932
934
|
|
|
933
935
|
// @public
|
|
934
|
-
const themeOverrideIds: readonly ["light-new-input-border", "dark-new-input-border"];
|
|
936
|
+
const themeOverrideIds: readonly ["light-new-input-border", "dark-new-input-border", "light-saturated-palette-changes", "dark-saturated-palette-changes"];
|
|
935
937
|
|
|
936
938
|
// @public
|
|
937
|
-
type ThemeOverrides = 'atlassian-dark-new-input-border' | 'atlassian-light-new-input-border';
|
|
939
|
+
type ThemeOverrides = 'atlassian-dark-new-input-border' | 'atlassian-dark-saturated-palette-changes' | 'atlassian-light-new-input-border' | 'atlassian-light-saturated-palette-changes';
|
|
938
940
|
|
|
939
941
|
// @public
|
|
940
942
|
export type Themes = 'atlassian-dark' | 'atlassian-legacy-dark' | 'atlassian-legacy-light' | 'atlassian-light' | 'atlassian-shape' | 'atlassian-spacing' | 'atlassian-typography' | 'atlassian-typography-adg3' | 'atlassian-typography-minor3';
|
|
@@ -1415,23 +1417,23 @@ const tokens: {
|
|
|
1415
1417
|
readonly 'space.negative.300': "--ds-space-negative-300";
|
|
1416
1418
|
readonly 'space.negative.400': "--ds-space-negative-400";
|
|
1417
1419
|
readonly 'font.body': "--ds-font-body";
|
|
1418
|
-
readonly 'font.body.
|
|
1419
|
-
readonly 'font.body.
|
|
1420
|
+
readonly 'font.body.large': "--ds-font-body-large";
|
|
1421
|
+
readonly 'font.body.small': "--ds-font-body-small";
|
|
1420
1422
|
readonly 'font.code': "--ds-font-code";
|
|
1421
|
-
readonly 'font.heading.
|
|
1422
|
-
readonly 'font.heading.
|
|
1423
|
-
readonly 'font.heading.
|
|
1424
|
-
readonly 'font.heading.
|
|
1425
|
-
readonly 'font.heading.
|
|
1426
|
-
readonly 'font.heading.
|
|
1427
|
-
readonly 'font.heading.
|
|
1423
|
+
readonly 'font.heading.large': "--ds-font-heading-large";
|
|
1424
|
+
readonly 'font.heading.medium': "--ds-font-heading-medium";
|
|
1425
|
+
readonly 'font.heading.small': "--ds-font-heading-small";
|
|
1426
|
+
readonly 'font.heading.xlarge': "--ds-font-heading-xlarge";
|
|
1427
|
+
readonly 'font.heading.xsmall': "--ds-font-heading-xsmall";
|
|
1428
|
+
readonly 'font.heading.xxlarge': "--ds-font-heading-xxlarge";
|
|
1429
|
+
readonly 'font.heading.xxsmall': "--ds-font-heading-xxsmall";
|
|
1428
1430
|
readonly 'font.letterSpacing.0': "--ds-font-letterSpacing-0";
|
|
1429
1431
|
readonly 'font.letterSpacing.100': "--ds-font-letterSpacing-100";
|
|
1430
1432
|
readonly 'font.letterSpacing.200': "--ds-font-letterSpacing-200";
|
|
1431
1433
|
readonly 'font.letterSpacing.300': "--ds-font-letterSpacing-300";
|
|
1432
1434
|
readonly 'font.letterSpacing.400': "--ds-font-letterSpacing-400";
|
|
1433
1435
|
readonly 'font.ui': "--ds-font-ui";
|
|
1434
|
-
readonly 'font.ui.
|
|
1436
|
+
readonly 'font.ui.small': "--ds-font-ui-small";
|
|
1435
1437
|
readonly 'font.family.body': "--ds-font-family-body";
|
|
1436
1438
|
readonly 'font.family.code': "--ds-font-family-code";
|
|
1437
1439
|
readonly 'font.family.heading': "--ds-font-family-heading";
|