Localize.Inputs.Core

Shared base for the Localize.Inputs family of locale-aware form-input libraries. You usually don't depend on this directly — install one of the sibling packages instead:

This package carries the bits all three depend on:

Installation

def deps do
  [
    {:localize_inputs_core, "~> 0.1"}
  ]
end

This is normally pulled in transitively by one of the sibling input libraries.

Theming

The token set lives in priv/static/localize_inputs_core.css. Override individual tokens in your own stylesheet to retint the whole input family:

@import "../../deps/localize_inputs_core/priv/static/localize_inputs_core.css";

:root {
  --li-accent: theme("colors.indigo.600");
  --li-radius: 0.5rem;
}

The defaults include a dark-mode block that activates on @media (prefers-color-scheme: dark) AND on [data-theme="dark"]. Pass data-theme="light" on <html> to force the light palette regardless of OS preference.