This repository has been archived on 2022-08-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
outline/shared/styles/theme.js
Tom Moor da7fdfef0a Improved search filtering (#940)
* Filter search by collectionId

* Improve spec, remove recursive import

* Add userId filter for documents.search

* 💚

* Search filter UI

* WIP UI

* Date filtering
Prevent dupe menu

* Refactor

* button

* Added year option, improved hover states

* Add new indexes

* Remove manual string interpolation in SQL construction

* Move dateFilter validation to controller

* Fixes: Double query when changing filter
Fixes: Visual jump between filters in dropdown

* Add option to clear filters

* More clearly define dropdowns in dark mode

* Checkbox -> Checkmark
2019-04-23 07:31:20 -07:00

146 lines
3.7 KiB
JavaScript

// @flow
import { darken, lighten } from 'polished';
const colors = {
almostBlack: '#111319',
lightBlack: '#2F3336',
almostWhite: '#E6E6E6',
slate: '#9BA6B2',
slateLight: '#DAE1E9',
slateDark: '#4E5C6E',
smoke: '#F4F7FA',
smokeLight: '#F9FBFC',
smokeDark: '#E8EBED',
white: '#FFF',
white10: 'rgba(255, 255, 255, 0.1)',
black: '#000',
black05: 'rgba(0, 0, 0, 0.05)',
black10: 'rgba(0, 0, 0, 0.1)',
black50: 'rgba(0, 0, 0, 0.50)',
primary: '#1AB6FF',
yellow: '#FBCA04',
danger: '#D0021B',
warning: '#f08a24',
success: '#2f3336',
info: '#a0d3e8',
};
const spacing = {
padding: '1.5vw 1.875vw',
vpadding: '1.5vw',
hpadding: '1.875vw',
sidebarWidth: '280px',
sidebarMinWidth: '250px',
sidebarMaxWidth: '350px',
};
export const base = {
...colors,
...spacing,
fontFamily:
"-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen, Ubuntu,Cantarell,'Open Sans','Helvetica Neue',sans-serif",
fontWeight: 400,
link: colors.primary,
backgroundTransition: 'background 100ms ease-in-out',
};
export const light = {
...base,
background: colors.white,
text: colors.almostBlack,
textSecondary: colors.slateDark,
textTertiary: colors.slate,
placeholder: '#B1BECC',
sidebarBackground: 'rgb(244, 247, 250)',
sidebarItemBackground: colors.black05,
sidebarText: 'rgb(78, 92, 110)',
menuBackground: colors.white,
menuShadow:
'0 0 0 1px rgba(0, 0, 0, 0.05), 0 4px 8px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.08)',
divider: colors.slateLight,
inputBorder: colors.slateLight,
inputBorderFocused: colors.slate,
listItemHoverBackground: colors.smoke,
listItemHoverBorder: colors.smokeDark,
toolbarBackground: colors.lightBlack,
toolbarInput: colors.white10,
toolbarItem: colors.white,
buttonBackground: colors.lightBlack,
buttonText: colors.white,
buttonNeutralBackground: colors.white,
buttonNeutralText: colors.almostBlack,
tooltipBackground: colors.almostBlack,
tooltipText: colors.white,
blockToolbarBackground: colors.smoke,
blockToolbarTrigger: colors.slate,
blockToolbarTriggerIcon: colors.white,
blockToolbarItem: colors.almostBlack,
quote: colors.slateLight,
codeBackground: colors.smoke,
codeBorder: colors.smokeDark,
embedBorder: '#DDD #DDD #CCC',
horizontalRule: colors.smokeDark,
};
export const dark = {
...base,
background: colors.almostBlack,
text: colors.almostWhite,
textSecondary: lighten(0.2, colors.slate),
textTertiary: colors.slate,
placeholder: darken(0.5, '#B1BECC'),
sidebarBackground: colors.black50,
sidebarItemBackground: colors.black50,
sidebarText: colors.slate,
menuBackground: lighten(0.015, colors.almostBlack),
menuShadow:
'0 0 0 1px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.08), inset 0 0 1px rgba(255,255,255,.2)',
divider: darken(0.2, colors.slate),
inputBorder: colors.slateDark,
inputBorderFocused: colors.slate,
listItemHoverBackground: colors.black50,
listItemHoverBorder: colors.black50,
toolbarBackground: colors.white,
toolbarInput: colors.black10,
toolbarItem: colors.lightBlack,
buttonBackground: colors.white,
buttonText: colors.lightBlack,
buttonNeutralBackground: colors.almostBlack,
buttonNeutralText: colors.white,
tooltipBackground: colors.white,
tooltipText: colors.lightBlack,
blockToolbarBackground: colors.white,
blockToolbarTrigger: colors.almostWhite,
blockToolbarTriggerIcon: colors.almostBlack,
blockToolbarItem: colors.lightBlack,
quote: colors.almostWhite,
codeBackground: colors.almostBlack,
codeBorder: colors.black50,
embedBorder: colors.black50,
horizontalRule: darken(0.2, colors.slate),
};
export default light;