How to use styled-config - 10 common examples

To help you get started, we’ve selected a few styled-config 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 aichbauer / styled-bootstrap-components / packages / styled-form-component / src / components / FormText.js View on Github external
const color = (props) => (
  props.muted &&
  css`
    color: ${getColor(props, 'formText', 'colorMuted')};
  `
);
github aichbauer / styled-bootstrap-components / packages / styled-form-component / src / components / FormCheckInput.js View on Github external
const color = (props) => (
  props.disabled &&
  css`
    color: ${getColor(props, 'formCheckInput', 'colorDisabled')};
    & + label {
      color: ${getColor(props, 'formCheckInput', 'colorDisabledLabel')};
    };
  `
);
github aichbauer / styled-bootstrap-components / packages / styled-form-component / src / components / FormControlPlainText.js View on Github external
const padding = (props) => (
  (props.sm || props.lg) &&
  css`
    padding-right: ${getPadding(props, 'formControlPlainText', 'smRight')};
    padding-left: ${getPadding(props, 'formControlPlainText', 'smLeft')};
  `
);
github aichbauer / styled-bootstrap-components / packages / styled-form-component / src / components / FormCheck.js View on Github external
const paddingLeft = (props) => (
  props.inline &&
  css`
    padding-left: ${getPadding(props, 'formCheck', 'inlineLeft')};
  `
);
github aichbauer / styled-bootstrap-components / packages / styled-navbar-component / src / components / NavbarLink.js View on Github external
const padding = (props) => (
  props.brand &&
  css`
    padding-top: ${getPadding(props, 'navbarLink', 'brandTop')};
    padding-bottom: ${getPadding(props, 'navbarLink', 'brandBottom')};
  `
);
github aichbauer / styled-bootstrap-components / packages / styled-navbar-component / src / components / Navbar.js View on Github external
const backgroundColor = (props) => (
  css`
    background-color: ${getColor(props, 'navbar', 'backgroundColor')} !important;
  `
);
github aichbauer / styled-bootstrap-components / packages / styled-button-component / src / components / Button.js View on Github external
const buttonToggler = (props) => (
  css`
    color: ${getColor(props, 'button', 'toggle', 'color')};
    border-color: ${getColor(props, 'button', 'toggle', 'borderColor')};
    &:hover, &:focus {
      color: ${getColor(props, 'button', 'toggle', 'color')};
      border-color: ${getColor(props, 'button', 'toggle', 'borderColor')};
    }
  `
);
github aichbauer / styled-bootstrap-components / packages / styled-navbar-component / src / components / Navbar.js View on Github external
const borderColor = (props) => (
  css`
    border-color: ${getColor(props, 'navbar', 'borderColor')};
  `
);
github aichbauer / styled-bootstrap-components / packages / styled-navbar-component / src / components / Navbar.js View on Github external
const color = (props) => (
  css`
    color: ${getColor(props, 'navbar', 'color')};
  `
);
github aichbauer / styled-bootstrap-components / packages / styled-button-component / src / components / Button.js View on Github external
const buttonToggler = (props) => (
  css`
    color: ${getColor(props, 'button', 'toggle', 'color')};
    border-color: ${getColor(props, 'button', 'toggle', 'borderColor')};
    &:hover, &:focus {
      color: ${getColor(props, 'button', 'toggle', 'color')};
      border-color: ${getColor(props, 'button', 'toggle', 'borderColor')};
    }
  `
);

styled-config

The configuration for styled-bootstrap-components

MIT
Latest version published 5 years ago

Package Health Score

45 / 100
Full package analysis

Popular styled-config functions