Metadata-Version: 2.4
Name: answerstyle
Version: 0.1.2
Summary: Shared styles and browser behavior for semantic HTML
License-Expression: Apache-2.0
Project-URL: Repository, https://github.com/AnswerDotAI/answerstyle
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: dev
Requires-Dist: nbdev>=3.3.28; extra == "dev"
Requires-Dist: numpy; extra == "dev"
Requires-Dist: scipy; extra == "dev"
Requires-Dist: matplotlib; extra == "dev"
Requires-Dist: pandas; extra == "dev"
Requires-Dist: python-fasthtml; extra == "dev"
Dynamic: license-file

# AnswerStyle

AnswerStyle provides styles and browser behavior for semantic HTML. Add a named attribute to opt into a component's appearance. Use native elements and state for interaction and accessibility.

```html
<article card stack>
  <h2>Workspace</h2>
  <p>Invite someone to work with you.</p>
  <div cluster>
    <button btn type="button">Invite</button>
    <a btn btn-variant="secondary" href="/members">Members</a>
  </div>
</article>
```

The npm and Python packages are not published yet; see [DEV.md](DEV.md) for local development setup. JavaScript apps import `@answerdotai/answerstyle/styles.css` once. Svelte components emit the same attributes as the HTML above.

In Python, `from answerstyle import assets` gives the package's browser assets. Serve that directory and link `styles.css`. The stylesheet does not need a script. The browser modules `fit.js`, `floating.js`, `interactions.js` and `copy.js` are available separately. Native dropdowns use normal links and controls; tooltips use CSS. Shared controllers add fitting, popover placement, tabs and toolbar focus where needed.

The [notebooks](nbs/) explain the palette, typography, layout and components and include working previews. See [DEV.md](DEV.md) for the source build.

