How to use the @arch-ui/theme.colors.N30 function in @arch-ui/theme

To help you get started, we’ve selected a few @arch-ui/theme 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 keystonejs / keystone / packages / arch / packages / controls / src / control.js View on Github external
const Icon = styled.div(({ checked, isDisabled, isFocus, isActive, isHover }) => {
  // background
  let bg = colors.N10;
  if (isDisabled && checked) {
    bg = colors.N30;
  } else if (isActive) {
    bg = checked ? colors.B.D10 : colors.N20;
  } else if ((isFocus || isHover) && !checked) {
    bg = colors.N15;
  } else if (checked) {
    bg = colors.B.base;
  }

  // fill
  let fill = 'white';
  if (isDisabled && checked) {
    fill = colors.N70;
  } else if (!checked) {
    fill = 'transparent';
  }
github keystonejs / keystone / packages / app-admin-ui / client / components / NoResults.js View on Github external
const NoResultsWrapper = ({ children, ...props }) => (
  <div>
    
    {children}
  </div>
);
github keystonejs / keystone / packages / arch / packages / input / src / Input.js View on Github external
export const inputStyles = (props = {}) => ({
  ...uniformHeight,
  backgroundColor: props.disabled ? colors.N10 : 'white',
  borderColor: colors.N20,
  color: 'inherit',
  width: '100%',

  ':hover': {
    borderColor: colors.N30,
    outline: 0,
  },

  ':focus': {
    borderColor: colors.primary,
    outline: 0,
  },

  '&[disabled]': {
    borderColor: colors.N15,
    backgroundColor: colors.N05,
  },

  ...(props.isMultiline
    ? {
        lineHeight: 'inherit',
github keystonejs / keystone / packages / app-admin-ui / client / pages / List / Search.js View on Github external
<input type="text" value="{value}" name="item-search" placeholder="Search" id="{id}" autocomplete="off" autocapitalize="off">
      <div>
        {isFetching ? (</div>
github keystonejs / keystone / packages / app-admin-ui / client / pages / Item / Search.js View on Github external
<input type="text" value="{value}" name="item-search" placeholder="Search" id="{id}" autocomplete="off" autocapitalize="off">
      <div>
        </div>
github keystonejs / keystone / packages / arch / packages / select / src / index.js View on Github external
const focusStyles = isFocused
      ? {
          borderColor: colors.primary,
          boxShadow: `inset 0 1px 1px rgba(0, 0, 0, 0.075),
      0 0 0 3px ${colors.B.A20}`,
          outline: 0,
        }
      : null;
    return {
      ...provided,
      backgroundColor: 'white',
      borderColor: colors.N20,
      fontSize: '1rem',
      minHeight: 35,
      minWidth: '200px',
      ':hover': { borderColor: colors.N30 },
      ...focusStyles,
    };
  },
  clearIndicator: indicatorStyles,
github keystonejs / keystone / packages / app-admin-ui / client / components / PageError.js View on Github external
export default function PageError({ children, Icon, ...props }) {
  return (
    
      <div>
        
        {children}
      </div>
    
  );
}
PageError.defaultProps = {