lib.accessibility
WCAG compliance utilities and validators
@lssm-tech/lib.accessibilitybun add @lssm-tech/lib.accessibilityManifest declarations describe the current workspace; they do not verify registry publication or runtime execution.
Package guide
Website: https://contractspec.io
WCAG compliance utilities and validators.
What It Provides
- Layer: lib.
- Consumers: design-system, example apps.
- Related ContractSpec packages include
@lssm-tech/lib.design-system,@lssm-tech/lib.ui-kit,@lssm-tech/lib.ui-kit-web,@lssm-tech/tool.bun,@lssm-tech/tool.typescript. - Related ContractSpec packages include
@lssm-tech/lib.design-system,@lssm-tech/lib.ui-kit,@lssm-tech/lib.ui-kit-web,@lssm-tech/tool.bun,@lssm-tech/tool.typescript.
Installation
npm install @lssm-tech/lib.accessibility
or
bun add @lssm-tech/lib.accessibility
Usage
Import the root entrypoint from @lssm-tech/lib.accessibility, or choose a documented subpath when you only need one part of the package surface.
Architecture
src/AccessibilityPanel.tsxis part of the package's public or composition surface.src/AccessibilityProvider.tsxis part of the package's public or composition surface.src/index.tsis the root public barrel and package entrypoint.src/nativewind-env.d.tsis part of the package's public or composition surface.src/next-route-announcer.tsxis part of the package's public or composition surface.src/preferences.tsxis part of the package's public or composition surface.src/styles.cssis part of the package's public or composition surface.
Public Entry Points
- Export
.resolves through./src/index.ts. - Export
./AccessibilityPanelresolves through./src/AccessibilityPanel.tsx. - Export
./AccessibilityProviderresolves through./src/AccessibilityProvider.tsx. - Export
./nativewind-env.dresolves through./src/nativewind-env.d.ts. - Export
./next-route-announcerresolves through./src/next-route-announcer.tsx. - Export
./preferencesresolves through./src/preferences.tsx.
Local Commands
bun run dev— contractspec-bun-build devbun run build— contractspec-bun-build buildbun run lint— bun lint:fixbun run lint:check— biome check .bun run lint:fix— biome check --write --unsafe --only=nursery/useSortedClasses . && biome check --write .bun run typecheck— tsgo --noEmitbun run publish:pkg— bun publish --tolerate-republish --ignore-scripts --verbosebun run publish:pkg:canary— bun publish:pkg --tag canarybun run clean— rimraf dist .turbobun run build:bundle— contractspec-bun-build transpilebun run build:types— contractspec-bun-build typesbun run prebuild— contractspec-bun-build prebuild
Recent Updates
- Replace eslint+prettier by biomejs to optimize speed.
styles.csshonours the OSprefers-reduced-motion: reducesetting by default, including beforeAccessibilityProvidermounts; only an explicitno-preferencechoice opts out.
Notes
- WCAG compliance standards must be preserved; changes affect all UI surfaces.
- Do not weaken or remove existing validators without coordinating with design-system consumers.
Standalone declaration exports keep their existing public subpath names. The shared builder preserves their original declaration suffix and copies checked source declarations into dist, without overwriting emitted implementation types.
Relationships
Arrows point from a package to its direct dependency. Counts are derived from captured workspace manifests.
5 declarations
@lssm-tech/lib.design-systemworkspace:^
Read the package manual ↗@lssm-tech/lib.translation-runtimeworkspace:^
Read the package manual ↗@lssm-tech/lib.ui-kitworkspace:^
Read the package manual ↗@lssm-tech/lib.ui-kit-webworkspace:^
Read the package manual ↗@lssm-tech/lib.contracts-spec-coreworkspace:^
Read the package manual ↗
Declared capabilities
WCAG compliance utilities and validators
Scripts
publish:pkgbun publish --tolerate-republish --ignore-scripts --verbosepublish:pkg:canarybun publish:pkg --tag canarybuildcontractspec-bun-build buildbuild:bundlecontractspec-bun-build transpilebuild:typescontractspec-bun-build typesdevcontractspec-bun-build devcleanrimraf dist .turbolintbun lint:fixlint:fixnode ../../../../scripts/biome.cjs check --write --unsafe --only=nursery/useSortedClasses . && node ../../../../scripts/biome.cjs check --write .lint:checknode ../../../../scripts/biome.cjs check .prebuildcontractspec-bun-build prebuildtypechecktsgo --noEmittestbun test src --pass-with-no-tests