Product Title

Installation

  yarn add @chewy/kib-product-styles

Import

  @use '~@chewy/kib-product-styles/src/kib-product-title/styles' as kib-product-title;

Mixins

title

@mixin title() { ... }@mixin title() { 
  @include typography.style-as('paragraph-2');

  margin-bottom: spacing.get('s2');
  text-decoration: none;

  &,
  &:visited {
    color: settings.$color;
  }

  &:hover {
    cursor: pointer;
    color: settings.$hover-color;
  }
 }
Description

title styles

Parameters

None.

Requires

content

@mixin content() { ... }@mixin content() { 
  margin-top: spacing.get('s2');
  display: inline-block;
  text-decoration: none !important;
 }
Description

additional content that doesn't need underline

Parameters

None.

Requires

title-large

@mixin title-large() { ... }@mixin title-large() { 
  @include typography.style-as('section-2');
 }
Description

large title styles

Parameters

None.

Variables

color

$color: color.get('text', 'primary') !default;
Description

title text color

Type

Color

hover-color

$hover-color: color.get('link', 'hover', 'primary') !default;
Description

title hover text color

Type

Color