Deprecated items

Deprecated assetEquivalent asset
cedar-compiled.csscdr-style.css and cdr-reset.css
cedar-full.csscdr-style.css

Text Mixins

Deprecated token/mixinEquivalent token/mixin
cdr-text-header-1cdr-text-heading-serif-1100
cdr-text-header-2cdr-text-heading-serif-900
cdr-text-header-3cdr-text-heading-serif-700
cdr-text-header-4cdr-text-heading-serif-600
cdr-text-header-5cdr-text-heading-sans-500
cdr-text-header-6cdr-text-heading-sans-400
cdr-text-header-7cdr-text-heading-sans-300
redwood-display-70cdr-text-utility-sans-700
redwood-display-60cdr-text-utility-sans-600
redwood-display-50cdr-text-utility-sans-500
redwood-display-40cdr-text-utility-sans-400
redwood-display-30cdr-text-utility-sans-300
redwood-display-20cdr-text-utility-sans-200
redwood-display-10cdr-text-utility-sans-100
redwood-body-40cdr-text-body-500
redwood-body-30cdr-text-body-400
redwood-body-20cdr-text-body-300
redwood-body-10cdr-text-body-300
maple-utility-70cdr-text-utility-sans-700
maple-utility-60cdr-text-utility-sans-600
maple-utility-50cdr-text-utility-sans-500
maple-utility-40cdr-text-utility-sans-400
maple-utility-30cdr-text-utility-sans-300
maple-utility-20cdr-text-utility-sans-200
maple-utility-10cdr-text-utility-sans-100
spruce-display-100cdr-text-heading-serif-strong-1200
spruce-display-90cdr-text-heading-serif-strong-1200
spruce-display-80cdr-text-heading-serif-strong-1200
spruce-display-70cdr-text-heading-serif-strong-1100
spruce-display-60cdr-text-heading-serif-strong-800
spruce-display-50cdr-text-heading-serif-strong-700
spruce-display-40cdr-text-heading-serif-strong-600
spruce-display-30cdr-text-heading-sans-500
spruce-display-20cdr-text-heading-sans-400
spruce-display-10cdr-text-heading-sans-300
spruce-display-00cdr-text-heading-sans-300
spruce-body-30cdr-text-body-300
spruce-body-20cdr-text-body-300
cdr-text-heading-300cdr-text-heading-sans-300
cdr-text-heading-400cdr-text-heading-sans-400
cdr-text-heading-500cdr-text-heading-sans-500
cdr-text-heading-600cdr-text-heading-serif-600
cdr-text-heading-700cdr-text-heading-serif-700
cdr-text-heading-800cdr-text-heading-serif-700
cdr-text-subheading-300cdr-text-subheading-sans-300
cdr-text-subheading-400cdr-text-subheading-sans-400
cdr-text-subheading-500cdr-text-subheading-sans-500
cdr-text-subheading-600cdr-text-subheading-sans-600
cdr-text-display-600cdr-text-heading-serif-strong-600
cdr-text-display-700cdr-text-heading-serif-strong-700
cdr-text-display-800cdr-text-heading-serif-strong-800
cdr-text-display-900cdr-text-heading-serif-strong-900
cdr-text-display-1000cdr-text-heading-serif-strong-1000
cdr-text-display-1100cdr-text-heading-serif-strong-1100
cdr-text-display-1200cdr-text-heading-serif-strong-1200
cdr-text-default-compactcdr-text-utility-sans-200
cdr-text-editorialcdr-text-default
cdr-text-utility-n00cdr-text-utility-sans-n00
cdr-text-utility-strong-n00cdr-text-utility-sans-strong-n00

Color Tokens

Deprecated token/mixinEquivalent token/mixin
cdr-color-text-primary-lightmodecdr-color-text-primary
cdr-color-text-primary-darkmoden/a
cdr-color-text-secondary-lightmodecdr-color-text-secondary
cdr-color-text-secondary-darkmoden/a
cdr-color-text-disabled-lightmodecdr-color-text-disabled
cdr-color-text-disabled-darkmoden/a
cdr-color-text-link-lightmodecdr-color-text-link-rest
cdr-color-text-link-darkmoden/a
cdr-color-text-error-lightmodecdr-color-text-error
cdr-color-text-error-darkmoden/a
cdr-color-text-form-label-lightmodecdr-color-text-input-label
cdr-color-text-form-label-darkmoden/a
cdr-color-text-form-placeholder-lightmodecdr-color-text-input-placeholder
cdr-color-text-form-placeholder-darkmoden/a
cdr-color-text-form-disabled-lightmodecdr-color-text-input-disabled
cdr-color-text-form-disabled-darkmoden/a
cdr-color-icon-primary-lightmodecdr-color-icon-default
cdr-color-icon-primary-darkmoden/a
cdr-color-icon-emphasis-lightmodecdr-color-icon-emphasis
cdr-color-icon-emphasis-darkmoden/a
cdr-color-background-darkn/a
cdr-color-background-darkern/a
cdr-color-background-lightcdr-color-background-primary
cdr-color-background-lightercdr-color-background-primary
cdr-color-background-lightestcdr-color-background-primary
cdr-color-background-form-lightmodecdr-color-background-primary
cdr-color-background-form-darkmoden/a
cdr-color-background-form-input-lightmodecdr-color-background-input-default
cdr-color-background-form-input-darkmoden/a
cdr-color-border-primary-lightmodecdr-color-border-primary
cdr-color-border-primary-darkmoden/a
cdr-color-border-secondary-lightmodecdr-color-border-secondary
cdr-color-border-secondary-darkmoden/a
cdr-color-border-disabled-lightmodecdr-color-border-input-default-disabled
cdr-color-border-disabled-darkmoden/a
cdr-color-border-error-lightmodecdr-color-border-error
cdr-color-border-selected-lightmodecdr-color-border-input-default-selected
cdr-color-background-successcdr-color-background-message-success
cdr-color-background-warningcdr-color-background-message-warning
cdr-color-background-errorcdr-color-background-message-error
cdr-color-background-infocdr-color-background-message-info
cdr-color-background-salecdr-color-background-message-sale

Media Query Mixins

Deprecated MixinNew Mixin
cdr-xs-mqcdr-xs-mq-up
cdr-sm-mqcdr-sm-mq-up
cdr-md-mqcdr-md-mq-up
cdr-lg-mqcdr-lg-mq-up

CdrCta Tokens

Deprecated TokenEquivalent Token
cdr-color-text-cta-darkcdr-color-text-button-dark
cdr-color-text-cta-dark-hovercdr-color-text-button-dark-hover
cdr-color-text-cta-dark-activecdr-color-text-button-dark-active
cdr-color-text-cta-dark-disabledcdr-color-text-button-dark-disabled
cdr-color-background-cta-dark-restcdr-color-background-button-dark-rest
cdr-color-background-cta-dark-activecdr-color-background-button-dark-active
cdr-color-background-cta-dark-hovercdr-color-background-button-dark-hover
cdr-color-border-cta-dark-restcdr-color-border-button-dark-rest
cdr-color-border-cta-dark-activecdr-color-border-button-dark-active
cdr-color-border-cta-dark-active-insetcdr-color-border-button-dark-active-inset
cdr-color-border-cta-dark-hovercdr-color-border-button-dark-hover
cdr-color-text-cta-lightcdr-color-text-button-secondary
cdr-color-text-cta-light-hovercdr-color-text-button-secondary-hover
cdr-color-text-cta-light-activecdr-color-text-button-secondary-active
cdr-color-text-cta-light-disabledcdr-color-text-button-secondary-disabled
cdr-color-background-cta-light-restcdr-color-background-button-secondary-rest
cdr-color-background-cta-light-activecdr-color-background-button-secondary-active
cdr-color-background-cta-light-hovercdr-color-background-button-secondary-hover
cdr-color-background-cta-light-disabledcdr-color-background-button-secondary-disabled
cdr-color-border-cta-light-restcdr-color-border-button-secondary-rest
cdr-color-border-cta-light-activecdr-color-border-button-secondary-active
cdr-color-border-cta-light-active-insetcdr-color-border-button-secondary-active-inset
cdr-color-text-cta-brandcdr-color-text-button-primary
cdr-color-text-cta-brand-hovercdr-color-text-button-primary-hover
cdr-color-text-cta-brand-activecdr-color-text-button-primary-active
cdr-color-text-cta-brand-disabledcdr-color-text-button-primary-disabled
cdr-color-background-cta-brand-restcdr-color-background-button-primary-rest
cdr-color-background-cta-brand-activecdr-color-background-button-primary-active
cdr-color-background-cta-brand-hovercdr-color-background-button-primary-hover
cdr-color-border-cta-brand-restcdr-color-border-button-primary-rest
cdr-color-border-cta-brand-activecdr-color-border-button-primary-active
cdr-color-border-cta-brand-active-insetcdr-color-border-button-primary-active-inset
cdr-color-border-cta-brand-hovercdr-color-border-button-primary-hover
cdr-color-text-cta-salecdr-color-text-button-sale
cdr-color-text-cta-sale-hovercdr-color-text-button-sale-hover
cdr-color-text-cta-sale-activecdr-color-text-button-sale-active
cdr-color-text-cta-sale-disabledcdr-color-text-button-sale-disabled
cdr-color-background-cta-sale-restcdr-color-background-button-sale-rest
cdr-color-background-cta-sale-activecdr-color-background-button-sale-active
cdr-color-background-cta-sale-hovercdr-color-background-button-sale-hover
cdr-color-border-cta-light-hovercdr-color-border-button-secondary-hover
cdr-color-border-cta-sale-restcdr-color-border-button-sale-rest
cdr-color-border-cta-sale-activecdr-color-border-button-sale-active
cdr-color-border-cta-sale-active-insetcdr-color-border-button-sale-active-inset
cdr-color-border-cta-sale-hovercdr-color-border-button-sale-hover
cdr-color-background-cta-default-disabledcdr-color-background-button-default-disabled
cdr-color-border-cta-default-disabledcdr-color-border-button-default-disabled

Vue2 Cedar component library

Cedar is moving to Vue3! After deprecation removal, Cedar Vue2 assets are available via the "REI-Cedar-Vue2" repo and NPM package.

CdrCta

The functionality of CdrCta is merged into CdrButton.

CdrDataTable

CdrDataTable is replaced by CdrTable.

CdrCheckbox

  • The compact modifier is removed. Use size="small" instead

CdrRadio

  • The compact modifier is removed. Use size="small" instead

CdrInput

  • The helper-text slot in CdrInput is replaced with the helper-text-bottom slot

CdrTabs

  • The tabChange event is replaced with tab-change for consistency

CdrAccordion

  • The label prop for CdrAccordion is replaced with the label slot

CdrBreadcrumb

  • The link scoped slot for CdrBreadcrumb is removed. To add custom link behavior use the navigate event

CdrPagination

  • The link, prevLink and nextLink scoped slots for CdrPagination are removed. To add custom link behavior use the navigate eventß

CdrRow and CdrCol

The flexbox based CdrRow and CdrCol are replaced with the CSS grid based CdrGrid

CdrIcon

Old asset nameNew asset name
warning-stroke.svgerror-stroke.svg
warning-fill.svgerror-fill.svg
warning-tri.svgwarning-fill.svg
Old component nameNew component name
IconWarningStrokeIconErrorStroke
IconWarningFillIconErrorFill
IconWarningTriIconWarningFill

CdrBanner

  • The CdrBanner component variable is removed. Messaging tokens are available to replicate CdrBanner.

NOTE: The Cedar utility classes and CdrText modifier are removed as of Cedar version 9.0.0. These mappings exist purely to guide consumers who may be updating from earlier versions of Cedar. Use Cedar tokens or plain CSS instead to apply these same styles.

CdrText Modifiers

Deprecated modifier nameEquivalent modifier names and breakpoints
displayheading-serif-strong-700 heading-serif-strong-900@md heading-serif-strong-1100@lg
display-staticheading-serif-strong-900
heading-largeheading-serif-600 heading-serif-700@md heading-serif-900@lg
heading-large-staticheading-serif-700
heading-mediumheading-serif-600 heading-serif-700@md heading-serif-700@lg
heading-medium-staticheading-serif-600
heading-smallheading-sans-400 heading-sans-500@md heading-sans-500@lg
heading-small-staticheading-sans-400
subheadingsubheading-sans-300
heading-300heading-sans-300
heading-400heading-sans-400
heading-500heading-sans-500
heading-600heading-serif-600
heading-700heading-serif-700
heading-800heading-serif-700
subheading-300subheading-sans-300
subheading-400subheading-sans-400
subheading-500subheading-sans-500
subheading-600subheading-sans-600
display-600heading-serif-strong-600
display-700heading-serif-strong-700
display-800heading-serif-strong-800
display-900heading-serif-strong-900
display-1000heading-serif-strong-1000
display-1100heading-serif-strong-1100
display-1200heading-serif-strong-1200
utility-n00utility-sans-n00
utility-strong-n00utility-sans-strong-n00

Space

Deprecated class nameEquivalent class name
cdr-inline--lgcdr-mr-space-two-x
cdr-inline--smcdr-mr-space-half-x
cdr-inline--xlcdr-mr-space-four-x
cdr-inline--xscdr-mr-space-quarter-x
cdr-inline--xxln/a
cdr-inline--xxscdr-mr-space-eighth-x
cdr-inline-left--lgcdr-mr-space-two-x
cdr-inline-left--smcdr-mr-space-half-x
cdr-inline-left--xlcdr-mr-space-four-x
cdr-inline-left--xscdr-mr-space-quarter-x
cdr-inline-left--xxln/a
cdr-inline-left--xxscdr-mr-space-eighth-x
cdr-inline-leftcdr-mr-space-one-x
cdr-inline-right--lgcdr-ml-space-two-x
cdr-inline-right--smcdr-ml-space-half-x
cdr-inline-right--xlcdr-ml-space-four-x
cdr-inline-right--xscdr-ml-space-quarter-x
cdr-inline-right--xxln/a
cdr-inline-right--xxscdr-ml-space-eighth-x
cdr-inline-rightcdr-ml-space-one-x
cdr-inlinecdr-mr-space-one-x
cdr-inset--lg.cdr-inset--squishcdr-space-inset-four-x-squish
cdr-inset--lg.cdr-inset--stretchcdr-space-inset-two-x-stretch
cdr-inset--lgcdr-space-inset-two-x
cdr-inset--remove-alln/a
cdr-inset--remove-bottomn/a
cdr-inset--remove-leftn/a
cdr-inset--remove-rightn/a
cdr-inset--remove-topn/a
cdr-inset--sm.cdr-inset--squishcdr-space-inset-half-x-squish
cdr-inset--sm.cdr-inset--stretchcdr-space-inset-half-x-stretch
cdr-inset--smcdr-space-inset-half-x
cdr-inset--squishcdr-space-inset-one-x-squish
cdr-inset--stretchcdr-space-inset-one-x-stretch
cdr-inset--xl.cdr-inset--squishcdr-space-inset-two-x-squish
cdr-inset--xl.cdr-inset--stretchcdr-space-inset-four-x-stretch
cdr-inset--xlcdr-space-inset-four-x
cdr-inset--xs.cdr-inset--squishcdr-space-inset-quarter-x-squish
cdr-inset--xs.cdr-inset--stretchcdr-space-inset-quarter-x-stretch
cdr-inset--xscdr-space-inset-quarter-x
cdr-inset--xxs.cdr-inset--squishcdr-space-inset-eighth-x-squish
cdr-inset--xxs.cdr-inset--stretchcdr-space-inset-eighth-x-stretch
cdr-inset--xxscdr-space-inset-eighth-x
cdr-insetcdr-space-inset-one-x
cdr-stack--lgcdr-mb-space-two-x
cdr-stack--smcdr-mb-space-half-x
cdr-stack--xlcdr-mb-space-four-x
cdr-stack--xscdr-mb-space-quarter-x
cdr-stack--xxln/a
cdr-stack--xxscdr-mb-space-eighth-x
cdr-stackcdr-mb-space-one-x

Alignment

Deprecated class nameEquivalent class name
cdr-text-leftcdr-align-text-left
cdr-text-centercdr-align-text-center
cdr-text-rightcdr-align-text-right
cdr-center-blockcdr-align-center-block

Display

The utility visibility and accessibility classes are deprecated and updated to bring them inline with the latest token names. Please see the map below to review the new names.

Deprecated class nameEquivalent class name
cdr-hidecdr-display-none
cdr-showcdr-display-block
cdr-show-inlinecdr-display-inline
cdr-show-inline-blockcdr-display-inline-block
cdr-sr-onlycdr-display-sr-only
cdr-sr-only-focusablecdr-display-sr-focusable

Color

Deprecated utilityEquivalent utility
cdr-bg--lightcdr-color-background-primary
cdr-bg--lightercdr-color-background-primary
cdr-bg--lightestcdr-color-background-primary
cdr-bg--darkn/a
cdr-bg--darkern/a

Migrating CSS utilities to tokens/mixins

The Cedar CSS utility classes are removed due to their negative impact on site performance, code quality/maintainability, and the architectural risk of using global un-scoped shared CSS classes. The examples below outline how to migrate instances of the various utility classes to instead use plain CSS and tokens or mixins from @rei/cdr-tokens.

Align utils

Replace alignment utilities with the equivalent plain CSS.

<div class="cdr-align-text-center">
  Deprecated utility
</div>
<template>
  <div class="your-custom-alignment-class">
    Using plain CSS
  </div>
</template>
<style lang="scss">
  .your-custom-alignment-class {
    text-align: center;
  }
</style>

Color utils

Replace color utilities with the equivalent value from @rei/cdr-tokens targeting either background-color, color or fill as appropriate.

<div class="cdr-color-background-primary">
  Deprecated background color utility
</div>

<div class="cdr-color-text-primary">
  Deprecated text color utility
</div>
<template>
  <div class="your-custom-background-color-class">
    Using plain CSS/tokens for background color
  </div>

  <div class="your-custom-text-color-class">
    Using plain CSS/tokens for text color
  </div>
</template>
<style lang="scss">
  @import '~@rei/cdr-tokens/dist/rei-dot-com/scss/cdr-tokens';

  .your-custom-background-color-class {
    background-color: $cdr-color-background-primary;
  }

  .your-custom-text-color-class {
    color: $cdr-color-text-primary;
  }
</style>

Container utils

Replace the cdr-container and cdr-container-fluid utility classes with either the CdrContainer component or the equivalent mixin from @rei/cdr-tokens. See the Responsive article for more information on general container usage.

<div class="cdr-container">
  Deprecated utility
</div>
<template>
  <div>
    <cdr-container>
      Using the CdrContainer component
    </cdr-container>

    <div class="your-custom-container-class">
      Using plain CSS/tokens
    </div>

  </div>
</template>
<style lang="scss">
  @import '~@rei/cdr-tokens/dist/rei-dot-com/scss/cdr-tokens';

  .your-custom-container-class {
    @include cdr-container;
  }
</style>

Display utils

Replace display utilities with the equivalent plain CSS.

<div class="cdr-display-none">
  Deprecated utility
</div>
<template>
  <div class="your-custom-display-class">
    Using plain CSS
  </div>
</template>
<style lang="scss">
  .your-custom-display-class {
    display: none;
  }
</style>

Space utils

Space utility classes were a combination of the targeted property and a Cedar spacing token.

PrefixProperty
insetpadding
plpadding-left
ptpadding-top
prpadding-right
pbpadding-bottom
pxpadding-left and padding-right
pypadding-top and padding-bottom
mlmargin-left
mtmargin-top
mrmargin-right
mbmargin-bottom
mxmargin-left and margin-right
mymargin-top and margin-bottom
<div class="cdr-space-inset-half-x">
  Deprecated utility
</div>
<template>
  <div class="your-custom-space-class">
    Using plain CSS/tokens
  </div>
</template>
<style lang="scss">
  @import '~@rei/cdr-tokens/dist/rei-dot-com/scss/cdr-tokens';

  .your-custom-space-class {
    padding: $cdr-space-half-x;
  }
</style>

Text utils

Note that the text utility classes were available both as CSS utility classes and via the cdr-text modifier prop. The migration path is the same for both patterns.

<p class="cdr-text--utility-sans-strong-300">
  Deprecated utility
</p>

<cdr-text modifier="utility-sans-strong-300" tag="p">
  Deprecated modifier
</cdr-text>
<template>
  <p class="your-custom-type-class">
    Using plain CSS/tokens
  </p>
</template>
<style lang="scss">
  @import '~@rei/cdr-tokens/dist/rei-dot-com/scss/cdr-tokens';

  .your-custom-type-class {
    @include cdr-text-utility-sans-strong-300;
  }
</style>

Responsive utilities

The align, display, space and text utility classes supported breakpoint modifiers as a suffix which would only activate the utility class at the given breakpoint. Those instances should be migrated as described above but additionally use a breakpoint mixin from @rei/cdr-tokens.

<div class="cdr-mb-space-quarter-x\@md">
  Deprecated responsive utility
</div>
<template>
  <div class="your-custom-responsive-space-class">
    Using plain CSS/tokens
  </div>
</template>
<style lang="scss">
  @import '~@rei/cdr-tokens/dist/rei-dot-com/scss/cdr-tokens';

  @include cdr-md-mq-only {
    .your-custom-responsive-space-class {
      margin-bottom: $cdr-space-quarter-x;
    }
  }

</style>