Summary: Typography on Sandy! The designed typography is [here in Figma](https://www.figma.com/file/4e6BMdm2SuZ1L7FSuOPQVC/Flipper?node-id=238%3A172) Current deflects - cannot find component for 'body - small' and 'meta' - don't know how to set 'link secondary hover' as designed Reviewed By: mweststrate Differential Revision: D23869256 fbshipit-source-id: efb1475749cebad529b502458d1b15bd445bb346
54 lines
1.9 KiB
Plaintext
54 lines
1.9 KiB
Plaintext
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
*/
|
|
@import '../node_modules/antd/dist/antd.less';
|
|
@import './typography.less';
|
|
/* Based on: https://www.figma.com/file/4e6BMdm2SuZ1L7FSuOPQVC/Flipper?node-id=620%3A84636 */
|
|
@background-transparent-hover: rgba(0, 0, 0, 0.1);
|
|
|
|
@border-radius-base: 6px;
|
|
|
|
@font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
|
|
'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji',
|
|
'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
|
|
@code-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier,
|
|
monospace;
|
|
|
|
/**
|
|
This section maps theme base colors as defined in light/dark.less to ANT variables
|
|
(as far as they aren't already)
|
|
*/
|
|
@highlight-color: @error-color;
|
|
@badge-color: @error-color;
|
|
@text-color: @text-color-primary;
|
|
@input-placeholder-color: @text-color-placeholder;
|
|
@body-background: @background-default; // Background color for `<body>`
|
|
@normal-color: @background-wash;
|
|
@tooltip-color: @background-default;
|
|
@tooltip-bg: @text-color-primary;
|
|
|
|
/**
|
|
This section maps theme colors to CSS variables so that they can be
|
|
used in styled components, see theme.tsx
|
|
*/
|
|
|
|
:root {
|
|
--flipper-primary-color: @primary-color;
|
|
--flipper-success-color: @success-color;
|
|
--flipper-error-color: @error-color;
|
|
--flipper-warning-color: @warning-color;
|
|
--flipper-text-color-primary: @text-color-primary;
|
|
--flipper-text-color-secondary: @text-color-secondary;
|
|
--flipper-text-color-placeholder: @text-color-placeholder;
|
|
--flipper-disabled-color: @disabled-color;
|
|
--flipper-background-default: @background-default;
|
|
--flipper-background-wash: @background-wash;
|
|
--flipper-background-transparent-hover: @background-transparent-hover;
|
|
--flipper-divider-color: @divider-color;
|
|
--flipper-border-radius: @border-radius-base;
|
|
}
|