v0ltoz/react-datetimepicker

View on GitHub
src/lib/utils/StyleUtils.js

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
export const addFocusStyle = (focused, currentStyle) => {
  let style = JSON.parse(JSON.stringify(currentStyle));
  if (focused) {
    style.outline = 'cornflowerblue';
    style.outlineStyle = 'auto';
  } else {
    style.outlineStyle = '';
  }
  return style;
};

const white = '#FFFFFF';
const black = '#161617';
export const lightTheme = {
  background: white,
  color: black,
};

export const darkTheme = {
  background: black,
  color: white,
};