@streetscape.gl/monochrome
Version:
A toolkit of React components for streetscape.gl
105 lines (88 loc) • 3.41 kB
JavaScript
// Copyright (c) 2019 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
import lightPrimitives from './light-theme-primitives';
import darkPrimitives from './dark-theme-primitives';
export const LIGHT_THEME = {
...lightPrimitives,
/* Colors */
background: lightPrimitives.mono100,
backgroundAlt: lightPrimitives.mono200,
backgroundInvert: lightPrimitives.mono1000,
controlColorPrimary: lightPrimitives.mono600,
controlColorSecondary: lightPrimitives.mono500,
controlColorHovered: lightPrimitives.mono900,
controlColorActive: lightPrimitives.primary400,
controlColorDisabled: lightPrimitives.mono400,
textColorPrimary: lightPrimitives.mono900,
textColorSecondary: lightPrimitives.mono600,
textColorInvert: lightPrimitives.mono200,
textColorDisabled: lightPrimitives.mono500,
textColorWarning: lightPrimitives.warning400,
textColorError: lightPrimitives.negative400,
/* Typography */
fontFamily: lightPrimitives.primaryFontFamily,
fontSize: 12,
fontWeight: 'normal',
lineHeight: 1.5,
/* Effects */
transitionDuration: '300ms',
transitionTimingFunction: 'ease',
shadow: '0 2px 4px 0 rgba(0, 0, 0, 0.15)',
/* Layout */
controlSize: 18,
spacingTiny: 4,
spacingSmall: 8,
spacingNormal: 12,
spacingLarge: 24,
spacingHuge: 48
};
export const DARK_THEME = {
...darkPrimitives,
/* Colors */
background: darkPrimitives.mono1000,
backgroundAlt: darkPrimitives.mono800,
backgroundInvert: darkPrimitives.mono100,
controlColorPrimary: darkPrimitives.mono400,
controlColorSecondary: darkPrimitives.mono500,
controlColorHovered: darkPrimitives.mono100,
controlColorActive: darkPrimitives.primary300,
controlColorDisabled: darkPrimitives.mono600,
textColorPrimary: darkPrimitives.mono100,
textColorSecondary: darkPrimitives.mono300,
textColorInvert: darkPrimitives.mono800,
textColorDisabled: darkPrimitives.mono500,
textColorWarning: darkPrimitives.warning300,
textColorError: darkPrimitives.negative300,
/* Typography */
fontFamily: darkPrimitives.primaryFontFamily,
fontSize: 12,
lineHeight: 1.5,
/* Effects */
transitionDuration: '300ms',
transitionTimingFunction: 'ease',
shadow: '0 2px 4px 0 rgba(0, 0, 0, 0.15)',
/* Layout */
controlSize: 18,
spacingTiny: 4,
spacingSmall: 8,
spacingNormal: 12,
spacingLarge: 24,
spacingHuge: 48
};