@use 'styles/helpers.scss' as *;

$scope: 'input';

$themes: (
  'light': (
    'primary-border': rgb(color('light', 'base-black'), 0.3),
    'primary-background': rgb(color('light', 'base-white'), 0.05),
    'primary-background-focus': rgb(color('light', 'base-white'), 0.1),
    'primary-color': color('light', 'base-black'),
    'primary-placeholder': color('light', 'base-text-secondary'),
    'primary-placeholder-disabled': color('light', 'base-text-disabled'),
    'primary-border-focus': rgb(color('light', 'base-black'), 0.5),
    'primary-icon': color('light', 'base-black'),
    'primary-clear-background': rgb(color('light', 'primary-fill-1'), 0.1),
    'primary-clear-color': color('light', 'base-black'),
    'primary-color-disabled': color('light', 'base-text-disabled'),
    'primary-background-disabled': rgb(color('light', 'base-black'), 0.05),
    'primary-error': color('light', 'base-text-error'),
    'primary-border-error': color('light', 'base-text-error'),
    'primary-background-error': rgb(color('light', 'base-white'), 0.05),
    'primary-error-input-border': color('light', 'base-text-error'),
  ),
  'dark': (
    'primary-border': rgb(color('dark', 'base-white'), 0.2),
    'primary-background': rgb(color('dark', 'base-white'), 0.05),
    'primary-background-focus': rgb(color('dark', 'base-white'), 0.05),
    'primary-color': color('dark', 'base-white'),
    'primary-placeholder': rgb(color('dark', 'base-white'), 0.6),
    'primary-placeholder-disabled': rgb(color('dark', 'base-white'), 0.3),
    'primary-border-focus': rgb(color('dark', 'base-white'), 0.5),
    'primary-icon': color('dark', 'base-white'),
    'primary-clear-background': rgb(color('dark', 'base-black'), 0.3),
    'primary-clear-color': color('dark', 'base-white'),
    'primary-color-disabled': rgb(color('dark', 'base-white'), 0.3),
    'primary-background-disabled': rgb(color('dark', 'base-white'), 0.05),
    'primary-error': color('dark', 'semantic-error-fill-1'),
    'primary-border-error': color('dark', 'semantic-error-fill-2'),
    'primary-background-error': rgb(color('dark', 'base-white'), 0.05),
    'primary-error-input-border': color('dark', 'semantic-error-fill-2'),
  ),
);

@mixin input-theme-modifiers() {
  @include theme-modifiers($scope, $themes);
}

@function input-theme-color($name) {
  @return theme-color($scope, $name);
}
