summaryrefslogtreecommitdiffstats
path: root/src/objects/_text-field.vars.scss
blob: 3d0ef2db8f2617609f34dd4875c6ae8f746f0c03 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
@use 'sass:map';
@use '../props';
@use '../core.vars' as core;

$line-height:  props.def(--o-text-field--line-height, 1.4) !default;
$pad-i:        props.def(--o-text-field--pad-i, props.get(core.$size--125)) !default;
$pad-b:        props.def(--o-text-field--pad-b, props.get(core.$size--125)) !default;
$border-width: props.def(--o-text-field--border-width, props.get(core.$border-width--thin)) !default;
$rounding:     props.def(--o-text-field--rounding, props.get(core.$rounding)) !default;

$extended--pad: props.def(--o-text-field--extended--pad, props.get(core.$size--50)) !default;

$focus--border-width: props.def(--o-text-field--focus--border-width, props.get(core.$border-width--medium)) !default;

$key-focus--border-width: props.def(--o-text-field--focus--border-width, props.get(core.$key-focus--outline-width)) !default;

$bg-color:          props.def(--o-text-field--bg-color, props.get(core.$theme, --bg)) !default;
$placeholder-color: props.def(--o-text-field--placeholder-color, props.get(core.$theme, --text-mute-more)) !default;
$text-color:        props.def(--o-text-field--text-color, props.get(core.$theme, --text)) !default;
$border-color:      props.def(--o-text-field--border-color, props.get(core.$theme, --border-strong)) !default;

$hover--border-color: props.def(--o-text-field--hover--border-color, props.get(core.$theme, --text-mute-more)) !default;

$focus--border-color: props.def(--o-text-field--focus--border-color, props.get(core.$theme, --focus, --border)) !default;

$key-focus--border-color:  props.def(--o-text-field--key-focus--border-color, props.get(core.$theme, --focus, --border)) !default;
$key-focus--outline-color: props.def(--o-text-field--key-focus--outline-color, props.get(core.$theme, --focus, --outline)) !default;

$error--border-color: props.def(--o-text-field--error--border-color, props.get(core.$theme, --negative, --700)) !default;

$error--hover--border-color: props.def(--o-text-field--error--hover--border-color, props.get(core.$theme, --negative, --900)) !default;

$error--focus--border-color: props.def(--o-text-field--error--focus--border-color, props.get(core.$theme, --negative, --900)) !default;

$disabled--bg-color:          props.def(--o-text-field--disabled--bg-color, props.get(core.$theme, --border-mute)) !default;
$disabled--placeholder-color: props.def(--o-text-field--disabled--placeholder-color, props.get(core.$theme, --text-disabled)) !default;
$disabled--text-color:        props.def(--o-text-field--disabled--text-color, props.get(core.$theme, --text-disabled)) !default;
$disabled--border-color:      props.def(--o-text-field--disabled--border-color, props.get(core.$theme, --border-mute)) !default;