open-index/open-npm huggingface dataset:
npm package: @kitsu-io-forks/storybook-addon-themes
Description: A storybook addon to switch between different themes for your preview
Author: Kitsu, Inc.
Latest version: 7.1.0

# Storybook Addon Themes

Greatly inspired by [@storybook/addon-backgrounds](https://github.com/storybooks/storybook/tree/next/addons/backgrounds).

This Storybook Theme Decorator can be used to add a custom HTML class or classes to the preview in [Storybook](https://storybook.js.org).

![Demo](media/demo.gif)

## Compatibility

This version is compatible with storybook version `7.0.x`.

## Installation

```sh
npm i -D @kitsu-io-forks/storybook-addon-themes
```

## Getting started

Then activate the addon by adding it to the storybook `main.js` file (located in the Storybook config directory):

```jsx
module.exports = {
  addons: [
    // Maybe other addons here...
    'storybook-addon-themes',
    // Or here...
  ],
};
```

See the [storybook documentation](https://storybook.js.org/docs/addons/using-addons/) for more informations.

## Configuration

The `themes` parameter accepts the following `Config` object:

- `default` (`string` - optional): Value of theme selected by default
- `clearable` (`boolean` - optional - default is `true`): Can the user clear the selected theme ?
- `options` (`Theme[]` - required): The list of themes
- `target` (`string` - optional): Target element selected with `document.querySelector()` to which classes are applied. Defaults to `body`.
- `property` (`string` - optional): The HTML attribute to which the theme value is assigned. Defaults to `class`.

Each `Theme` under `options` is an object with the following properties:

- `name` (`string`): Display name for the theme
- `value` (`string`): Property value for the theme
- `color` (`string`): The color of the badge in the theme selector
- `default` [_deprecated_] (`boolean` - optional): Is the theme selected by default?

You define this in your storybook `preview.js` file:

```jsx
export const parameters = {
  themes: {
    default: 'theme-twt',
    list: [
      { name: 'twitter', value: 'theme-twt', color: '#00aced' },
      { name: 'facebook', value: 'theme-fb', color: '#3b5998' },
    ],
  },
};
```

See the [storybook documentation](https://storybook.js.org/docs/addons/using-addons/#global-configuration) for more information.
npm package: @kitsu-org/cardboard
Description: a wrapper for Misskey! 📦
Author: Kio
Latest version: 2.5.0
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# Cardboard 📦
Cardboard is a module that allows you to easily work with misskey, with a focus on Sharkey. 

No dependencies, strictly typed, and looking quite stylish!

## Example
```js
import { CardboardClient } from '@kitsu-org/cardboard';
const cardboard = new CardboardClient("kitsunes.club", "yourkeyhere");

cardboard.on("ready", async () => {
    cardboard.log("Ready!")
});

cardboard.on("mention", async (msg) => {
    if (
        msg.note.text
            ?.replaceAll(`@${(await cardboard.getSelf()).user.username} `, "")
            .startsWith("hello")
    ) {
        await msg.reply("Cardboard! 📦");
    }
});

cardboard.connect();
```

## installation
Installing cardboard is easy! You can install cardboard by including it into your project, like so!
```bash
# Install the stable version of cardboard
bun add @kitsu-org/cardboard
```

If you want to use the cutting edge version, you can install it through git.
> ⚠️ You should keep in mind that reliability will not be _great_ if you use this method, but you'll get more features.
```bash
# Install the development edition
bun add github:kitsu-org/cardboard
```