@authn-sh/ui
v0.7.1
Published
Design primitives for authn.sh — internal to the @authn-sh React/Vue SDKs.
Readme
@authn-sh/ui
Design primitives for authn.sh — internal to the @authn-sh/sdk-react package and (later) @authn-sh/sdk-vue.
Install
npm install @authn-sh/uiPeer dependency: react (18 or 19).
Imports
| Import | Contents |
| --- | --- |
| @authn-sh/ui | All primitives and types. |
| @authn-sh/ui/tokens | Design-token TS objects + the canonical CSS variable names. |
| @authn-sh/ui/theming | applyAppearance(appearance) + types. |
| @authn-sh/ui/styles.css | Default token block + minimal primitive styling. |
Theming
import { applyAppearance } from '@authn-sh/ui/theming';
const themed = applyAppearance({ variables: { colors: { primary: '#22c55e' } } });
<div className={themed.className} style={themed.style}>
{/* every primitive inside picks up the override */}
</div>License
AGPL-3.0-only — see LICENSE.
