@hypothesis/frontend-shared
v10.3.2
Published
Shared components, styles and utilities for Hypothesis projects
Keywords
Readme
@hypothesis/frontend-shared
UI components for Hypothesis front-end applications.
Installation
Your project must have preact and tailwindcss as dependencies.
$ yarn add preact tailwindcss @tailwindcss/postcss
$ yarn add @hypothesis/frontend-sharedIn your project's CSS entry point, add a @source for the frontend-shared
package and import the Tailwind theme:
@import 'tailwindcss' source(none);
/* Configure source files to scan for Tailwind classes. */
@source './node_modules/@hypothesis/frontend-shared/lib/**/*.js';
/* Import theme and utilities from shared package. */
@import '@hypothesis/frontend-shared/tailwind-config.css';Documentation
Full documentation is available in this project's web-based pattern library.
- Run the local web server:
$ make dev - Visit http://localhost:4001/ in a browser
Usage
import { Link } from '@hypothesis/frontend-shared';