Design tokens enable easy theming for all BlueprintUI components. The base theme and additional built in themes are defined in the @blueprintui/themes
package. BlueprintUI Themes can be used standalone of other BlueprintUI components and utilities.
Installation
npm install @blueprintui/themes
@import '@blueprintui/themes/index.min.css'; // light
@import '@blueprintui/themes/dark/index.min.css'; // dark
@import '@blueprintui/themes/modern/index.min.css'; // modern
@import '@blueprintui/themes/modern-dark/index.min.css'; // modern-dark
@import '@blueprintui/themes/compact/index.min.css'; // compact
To enable the tokens and addon themes add the bp-theme
attribute to the root HTML element.
<html bp-theme="">
Color
--bp-color-scheme
--bp-color-black
--bp-color-white
--bp-color-yellow-100
--bp-color-yellow-200
--bp-color-yellow-300
--bp-color-yellow-400
--bp-color-yellow-500
--bp-color-yellow-600
--bp-color-yellow-700
--bp-color-yellow-800
--bp-color-yellow-900
--bp-color-yellow-1000
--bp-color-violet-100
--bp-color-violet-200
--bp-color-violet-300
--bp-color-violet-400
--bp-color-violet-500
--bp-color-violet-600
--bp-color-violet-700
--bp-color-violet-800
--bp-color-violet-900
--bp-color-violet-1000
--bp-color-blue-100
--bp-color-blue-200
--bp-color-blue-300
--bp-color-blue-400
--bp-color-blue-500
--bp-color-blue-600
--bp-color-blue-700
--bp-color-blue-800
--bp-color-blue-900
--bp-color-blue-1000
--bp-color-green-100
--bp-color-green-200
--bp-color-green-300
--bp-color-green-400
--bp-color-green-500
--bp-color-green-600
--bp-color-green-700
--bp-color-green-800
--bp-color-green-900
--bp-color-green-1000
--bp-color-red-100
--bp-color-red-200
--bp-color-red-300
--bp-color-red-400
--bp-color-red-500
--bp-color-red-600
--bp-color-red-700
--bp-color-red-800
--bp-color-red-900
--bp-color-red-1000
--bp-color-gray-100
--bp-color-gray-200
--bp-color-gray-300
--bp-color-gray-400
--bp-color-gray-500
--bp-color-gray-600
--bp-color-gray-700
--bp-color-gray-800
--bp-color-gray-900
--bp-color-gray-1000
Status
--bp-status-accent-background-100
--bp-status-accent-background-200
--bp-status-accent-background-300
--bp-status-accent-color-100
--bp-status-success-background-100
--bp-status-success-background-200
--bp-status-success-background-300
--bp-status-success-color-100
--bp-status-warning-background-100
--bp-status-warning-background-200
--bp-status-warning-background-300
--bp-status-warning-color-100
--bp-status-danger-background-100
--bp-status-danger-background-200
--bp-status-danger-background-300
--bp-status-danger-color-100
--bp-status-neutral-background-100
--bp-status-neutral-background-200
--bp-status-neutral-background-300
--bp-status-neutral-color-100
--bp-status-disabled-background-100
--bp-status-disabled-background-200
--bp-status-disabled-background-300
--bp-status-disabled-color-100
Object
--bp-object-border-radius-100
--bp-object-border-radius-200
--bp-object-border-radius-300
--bp-object-border-width-100
--bp-object-border-width-200
--bp-object-border-width-300
--bp-object-border-color-100
--bp-object-border-color-200
--bp-object-border-color-300
--bp-object-shadow-100
--bp-object-shadow-200
--bp-object-shadow-300
--bp-object-opacity-100
--bp-object-opacity-200
--bp-object-opacity-300
--bp-object-opacity-400
Layer
--bp-layer-canvas-background
--bp-layer-container-background
--bp-layer-field-color
--bp-layer-field-background-100
--bp-layer-field-background-200
--bp-layer-header-background
--bp-layer-header-color
--bp-layer-popover-background
--bp-layer-popover-color
--bp-layer-popover-backdrop-background
Interaction
--bp-interaction-outline
--bp-interaction-outline-webkit
--bp-interaction-outline-offset
--bp-interaction-touch-target
--bp-interaction-highlight-background
--bp-interaction-accent-background
--bp-interaction-default-offset
--bp-interaction-default-color
--bp-interaction-hover-offset
--bp-interaction-hover-color
--bp-interaction-focused-offset
--bp-interaction-focused-color
--bp-interaction-active-offset
--bp-interaction-active-color
--bp-interaction-selected-offset
--bp-interaction-selected-color
--bp-interaction-disabled-offset
--bp-interaction-disabled-color
Scale
--bp-scale-size
--bp-scale-space
--bp-scale-text
Text
--bp-text-color-100
--bp-text-color-200
--bp-text-color-300
--bp-text-color-400
--bp-text-color-500
--bp-text-color-600
--bp-text-weight-light
300
--bp-text-weight-regular
400
--bp-text-weight-medium
500
--bp-text-weight-semibold
500
--bp-text-weight-bold
600
--bp-text-weight-extrabold
600
--bp-text-size-100
12px
--bp-text-size-200
14px
--bp-text-size-300
16px
--bp-text-size-400
20px
--bp-text-size-500
24px
--bp-text-size-600
32px
--bp-text-size-700
36px
--bp-text-size-800
48px
--bp-text-font
--bp-text-headerFont
--bp-text-monospaceFont
Layout
--bp-layout-grid-cols
--bp-layout-width-xs
--bp-layout-width-sm
--bp-layout-width-md
--bp-layout-width-lg
--bp-layout-width-xl
Size
--bp-size-0
--bp-size-1
--bp-size-2
--bp-size-3
--bp-size-4
--bp-size-5
--bp-size-6
--bp-size-7
--bp-size-8
--bp-size-9
--bp-size-10
--bp-size-11
--bp-size-12
Space
--bp-space-xs
--bp-space-sm
--bp-space-md
--bp-space-lg
--bp-space-xl