color-definition

v2.1.3arrow_drop_down
v2.1.3
v2.1.2
v2.1.1
v2.1.0
v2.0.1
v2.0.0
v1.1.1
v1.1.0
v1.0.6
v1.0.5
v1.0.4
v1.0.4
v1.0.3
v1.0.3
v1.0.2
v1.0.2
v1.0.1
v1.0.1
v1.0.0
v1.0.0
STATUS
Passing
DOWNLOADS
5,322
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
4 years ago
SIZE
3 KB
CSS colors and variables for the app.
1 contributor
Install color-definition as a package?
Copied
npm i @bit/bit.base-ui.theme.color-definition
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
toggle layout
chevron_left
chevron_right
theme/colorDefinition ()

CSS colors and variables for the app.

  • Sets default text color
  • --base-color - default color (cta color, etc)
  • --base-highlight - default color for highlight (cta hover, etc)
  • --border-color
  • --bg-color - background color
  • --separator-color

backgrounds:

As elements stacks closer to the user, its color changes. their color change.
This is especially noticeable in dark mode (higher elements are lighter).

We created 4 levels of possible backgrounds, from bottom to top:

  • --bg-bedrock - i.e. background
  • --bg-base - e.g. navigation elements and wireframes
  • --bg-layer - workspaces, e.g. card. (may be sub-divided in the future)
  • --bg-crust - overlay ui, e.g. tooltip.
  • --bg-topping - “bumps” on top level surfaces e.g. button, input, etc
Help and resources