Files
flipper/desktop/themes/dark.less
Michel Weststrate 694d4e0e33 Expose theme from JavaScript
Summary:
This diff fixes two problems when further theming Flipper:

1. All shades of gray where defined in terms of black/white + transparency. Converted all colors to non transparent to make sure they stack well.
2. The color theme defined in less aren't available as javascript colors. It is possible to achieve that through setting up a babel parser that parses the less files and exposes them to JS. But since we have modern stack, figured that exposing all theme variables as CSS variables as well is a much simpler setup.

Reviewed By: passy

Differential Revision: D23756558

fbshipit-source-id: e92be1f66b11c2c9c400fc1622cb8a493cc4c2a5
2020-09-17 04:05:09 -07:00

40 lines
1.2 KiB
Plaintext

@import '../node_modules/antd/lib/style/themes/dark.less';
@import './base.less';
// Based on: https://www.figma.com/file/4e6BMdm2SuZ1L7FSuOPQVC/Flipper?node-id=620%3A84614
// Link Text & Icon
@primary-color: @purple-8;
// Success
@success-color: @green-7;
// Negative
@error-color: @red-6;
// Warning
@warning-color: @gold-6;
// Primary Text & Icon
@text-color-primary: @white;
// Secondary Text & Icon
@text-color-secondary: #999; // white 60%
// Placeholder Text & Icon
@text-color-placeholder: #737373; // white 45%
// Disabled & Icon
@disabled-color: #404040; // white 25%
// Background - default
@background-default: @black;
// Background - Wash
@background-wash: #0d0d0d; // white 5%
// The following variables are not yet defined at this moment,
// as they have / need no mapping to ANT (?)
// @background-wash2: fade(@white, 10%)
// @button-primary-background: @purple6;
// @button-primary-background-hover: @purple7;
// @button-default-background: @fade(@white, 10%)
// @button-default=backgorund-hover: @fade(@white, 15%)
// @button-default-background-disabled: @fade(@white, 10%)
// @button-transparent-background-hover: @fade(@white, 10%)
// @button-background-active: @fade(@white, 8%)
// Divider color
@divider-color: #181818; // white 10%