1 contributor
Like
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
and packages in Bit or NPM to the example. any of the 1 million componentstoggle 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