How to use the @pluralsight/ps-design-system-core.type function in @pluralsight/ps-design-system-core

To help you get started, we’ve selected a few @pluralsight/ps-design-system-core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pluralsight / design-system / packages / emptystate / src / css / index.js View on Github external
['.psds-emptystate' + themeClasses[themeDefaultName]]: {
    color: core.colors.white
  },
  ['.psds-emptystate' + themeClasses[themeNames.light]]: {
    color: core.colors.gray06
  },

  // __actions
  '.psds-emptystate__actions': {
    maxWidth: 500
  },

  // __caption
  '.psds-emptystate__caption': {
    marginBottom: core.layout.spacingLarge,
    fontSize: core.type.fontSizeSmall,
    letterSpacing: core.type.letterSpacingSmall,
    lineHeight: core.type.lineHeightStandard,
    maxWidth: 500
  },
  ['.psds-emptystate__caption' + themeClasses[themeDefaultName]]: {
    color: core.colors.gray01
  },
  ['.psds-emptystate__caption' + themeClasses[themeNames.light]]: {
    color: core.colors.gray04
  },

  // __heading,
  '.psds-emptystate__heading': {
    marginBottom: core.layout.spacingLarge,
    letterSpacing: core.type.letterSpacingLarge,
    fontWeight: core.type.fontWeightBook,
github pluralsight / design-system / packages / card / src / css / index.js View on Github external
},

  // __tag
  '.psds-card__tag': {
    display: 'flex',
    alignItems: 'center',
    position: 'absolute',
    top: core.layout.spacingSmall,
    left: 0,
    padding: `${core.layout.spacingXXSmall} ${core.layout.spacingXSmall}`,
    background: transparentize(0.1, core.colors.white),
    borderRadius: '0 2px 2px 0',
    color: core.colors.gray06,
    textTransform: 'uppercase',
    fontSize: core.type.fontSizeXSmall,
    fontWeight: core.type.fontWeightBold,
    lineHeight: '16px',
    boxShadow: `0 1px 4px 0 ${transparentize(0.5, core.colors.black)}`,
    maxWidth: '75%'
  },

  // __tag__icon
  '.psds-card__tag__icon': {
    display: 'flex',
    alignItems: 'center',
    marginRight: core.layout.spacingXSmall
  },
  // __tag__text
  '.psds-card__tag__text': {
    textOverflow: 'ellipsis',
    overflow: 'hidden',
    whiteSpace: 'nowrap'
github pluralsight / design-system / packages / checkbox / src / css / index.js View on Github external
width: '100%',
    fill: core.colors.white
  },

  // __input
  '.psds-checkbox__input': {
    display: 'none'
  },

  // __label
  '.psds-checkbox__label': {
    marginLeft: core.layout.spacingSmall,
    color: core.colors.bone,
    fontSize: core.type.fontSizeSmall,
    lineHeight: core.type.lineHeightStandard,
    fontWeight: core.type.fontWeightMedium
  },
  [`.psds-checkbox__label.psds-theme--${themeNames.light}`]: {
    color: core.colors.gray04
  }
}
github pluralsight / design-system / packages / site / src / ui / switcher.js View on Github external
.option {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: ${cssVars.innerHeight};
  line-height: calc(${cssVars.innerHeight} - 1px);
  font-size: 10px; /* TODO: size not in design system, ok? */
  color: ${core.colors.white};
  padding: 0 13px;
  border: none;
  background: none;
  border-radius: calc(${cssVars.innerHeight} / 2);
  cursor: pointer;
  transition: all .4s;
  font-weight: ${core.type.fontWeightMedium};
}
`

class List extends React.Component {
  constructor(props) {
    super(props)
    this.state = { selectedOption: {} }
    this.handleSelect = this.handleSelect.bind(this)
  }
  setSelectedOption(node) {
    this.setState({
      selectedOption: node
    })
  }
  handleSelect(value, node) {
    this.setSelectedOption(node)
github pluralsight / design-system / packages / site / pages / components / tooltip.js View on Github external
onMouseEnter={_ => setHovered(true)}
        onMouseOut={_ => setHovered(false)}
      >
        Hover me
      
    
  )
}`}

      <style>{`
        .examples {
          display: flex;
          padding: ${core.layout.spacingLarge};
          padding-bottom: 88px;
          color: ${core.colors.gray02};
          font-weight: ${core.type.fontWeightMedium};
          background: ${core.colors.gray06};
        }
        .example {
          margin-right: calc(${core.layout.spacingLarge} * 2);
        }
        .text {
          display: inline-block;
        }
        .example:last-child {
          margin-right: 0;
        }
      `}</style>
    
  )
}
github pluralsight / design-system / packages / verticaltabs / src / css / index.js View on Github external
borderStyle: 'solid'
  },
  [`.psds-verticaltabs__divider.psds-theme--${themeNames.light}`]: {
    borderColor: core.colors.gray01
  },
  [`.psds-verticaltabs__divider.psds-theme--${themeDefaultName}`]: {
    borderColor: core.colors.gray03
  },
  '.psds-verticaltabs__item': {
    boxSizing: 'border-box',
    display: 'flex',
    alignItems: 'center'
  },
  '.psds-verticaltabs__tier1': {
    lineHeight: '24px',
    fontSize: core.type.fontSizeSmall,
    fontWeight: core.type.fontWeightMedium,
    paddingLeft: '20px',
    paddingRight: '24px',
    borderLeftWidth: '4px',
    borderLeftStyle: 'solid',
    borderLeftColor: 'transparent',
    height: '40px'
  },
  [`.psds-verticaltabs__tier1.psds-theme--${themeNames.light}`]: {
    color: core.colors.gray04,
    '&[data-active]': {
      color: core.colors.gray06,
      borderLeftColor: core.colors.gray04
    }
  },
  [`.psds-verticaltabs__tier1.psds-theme--${themeDefaultName}`]: {
github pluralsight / design-system / packages / radio / src / css / index.js View on Github external
height: 'calc(100% - 4px)',
    width: 'calc(100% - 4px)',
    margin: '2px',
    borderRadius: '50%',
    background: core.colors.blue
  },

  '.psds-radio-button__input': {
    display: 'none'
  },

  '.psds-radio-button__label': {
    color: core.colors.bone,
    fontSize: core.type.fontSizeSmall,
    lineHeight: core.type.lineHeightStandard,
    fontWeight: core.type.fontWeightMedium
  },
  [`.psds-radio-button__label.psds-theme--${themeNames.light}`]: {
    color: core.colors.gray04
  }
}
github pluralsight / design-system / packages / site / src / ui / side-nav.js View on Github external
display: flex;
          justify-content: center;
          align-items: center;
          text-decoration: none;
          padding: 72px 0;
        }
        .box:hover {
          text-decoration: none !important;
        }
        .text {
          margin: 0;
        }
        .textCompany {
          display: block;
          letter-spacing: 0.15em;
          font-size: ${core.type.fontSizeXSmall};
          font-weight: ${core.type.fontWeightMedium};
          color: ${core.colors.black};
          font-family: ${core.type.fontFamily};
          text-transform: uppercase;
        }
        .textTitle {
          display: block;
          font-size: 8px;
          color: ${core.colors.gray03};
          font-weight: ${core.type.fontWeightMedium};
          text-transform: uppercase;
        }
      }
    `}
  
)
github pluralsight / design-system / packages / site / pages / roadmap.js View on Github external
Task.Title = props =&gt; (
  <div>
    {props.children}
    <style>{`
      .title {
        margin: 0 0 ${core.layout.spacingSmall} 0;
        font-size: ${core.type.fontSizeMedium};
        font-weight: ${core.type.fontWeightMedium};
      }
    `}</style>
  </div>
)
Task.Title.propTypes = {
github pluralsight / design-system / packages / position / src / react / __stories__ / index.story.js View on Github external
const Box = React.forwardRef((props, forwardedRef) =&gt; {
  const ref = React.useRef()
  React.useImperativeHandle(forwardedRef, () =&gt; ref.current)

  const className = css({
    alignItems: 'center',
    border: `4px dashed ${core.colors.pink}`,
    color: core.colors.pink,
    display: 'flex',
    fontSize: core.type.fontSizeMedium,
    fontWeight: core.type.fontWeightBold,
    height: '200px',
    justifyContent: 'center',
    textAlign: 'center',
    width: '200px'
  })

  return <div>
})
</div>