Skip to content

Accessible UI components built on Ankh Studio design tokens — works in any framework

License

Notifications You must be signed in to change notification settings

Ankh-Studio/components

Repository files navigation

@ankh-studio/components

Web Components built with Stencil.js for the Ankh Studio design system.

Built on @ankh-studio/themes - pre-composed CSS themes that include design tokens, reset, and base styles.

Installation

npm install @ankh-studio/components

Quick Start

With a bundler (recommended)

import '@ankh-studio/components';

With a script tag

<script type="module" src="https://unpkg.com/@ankh-studio/components"></script>

Include a theme

Components require a theme from @ankh-studio/themes:

@import '@ankh-studio/themes/default.css';

Available Components

Component Description
<ankh-button> Button with variants: filled, outlined, text, elevated, tonal
<ankh-focus-ring> Focus indicator for keyboard navigation
<ankh-ripple> Material-style ripple effect

Usage

Button

<ankh-button>Default</ankh-button>
<ankh-button variant="filled">Filled</ankh-button>
<ankh-button variant="outlined">Outlined</ankh-button>
<ankh-button variant="text">Text</ankh-button>
<ankh-button variant="elevated">Elevated</ankh-button>
<ankh-button variant="tonal">Tonal</ankh-button>

Button Props

Prop Type Default Description
variant filled | outlined | text | elevated | tonal filled Visual style
size small | medium | large medium Button size
full-width boolean false Take full container width
disabled boolean false Disabled state
type button | submit | reset button Button type attribute

Framework Integration

Components work in any framework. For better DX, use Stencil's output targets:

  • React: @stencil/react-output-target
  • Angular: @stencil/angular-output-target
  • Vue: @stencil/vue-output-target

Browser Support

Requires browsers supporting:

  • Custom Elements v1
  • Shadow DOM v1
  • CSS light-dark() function (via themes)

Supported: Chrome 123+, Safari 17.5+, Firefox 120+

Documentation

Changelog

0.1.0-alpha

  • Initial release with button, focus-ring, ripple components

License

MIT

About

Accessible UI components built on Ankh Studio design tokens — works in any framework

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •