Skip to content

Styling

Include the index.css from @databit/filters in either your Typescript or CSS file:

ts
import "@databit/filters/index.css";
css
@import "@databit/filters/index.css";

CSS Properties

PropertyDescription
--dbi-text-font-sizeFont size of textbox, must be in px
--dbi-text-line-heightLine height of textbox, must be in px
--dbi-text-font-familyFont family of textbox
--dbi-borderBorder of whole input e.g. 1px solid #ccc
--dbi-border-radiusBorder radius of whole input
--dbi-marginMargin of whole input
--dbi-paddingPadding of whole input
--dbi-text-caret-colorColor of the caret inside of textbox
--dbi-backgroundBackground of the input
--dbi-text-selection-background-colorSelection color of the textbox
--dbi-text-selection-colorSelection color of the font of the textbox
--dbi-text-colorDefault color of the text in textbox
--dbi-text-placeholder-colorColor of the placeholder

CSS Classes

ClassDescription
dbf-operatorOperators e.g. =, >, etc.
dbf-logic-operatorLogic operator and or
dbf-valueValues e.g. "string" or 9
dbf-parenParentheses ( )
dbf-paren.dbf-level-[X]Nested parentheses, for example in ((x = 9)) the inner parentheses would be dbf-paren.dbf-level-1, currently there are levels 1 to 4
dbf-errorError
dbf-error-messageError message on the bottom of input
dbi-completion-box The completion box
dbi-message-boxThe message box, for example the ones with hovered errors or variable type info