Socket
Book a DemoInstallSign in
Socket

@jumpu-ui/tailwindcss

Package Overview
Dependencies
Maintainers
0
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jumpu-ui/tailwindcss

A Tailwind CSS plugin which serve basic components designed by tuqulore inc.

npmnpm
Version
1.0.1
Version published
Weekly downloads
61
-3.17%
Maintainers
0
Weekly downloads
 
Created
Source

@jumpu-ui/tailwindcss

@jumpu-ui/tailwindcss パッケージは Jumpu UI の TailwindCSS プラグインです。

Storybook

https://tuqulore.github.io/jumpu-ui/

Figma

デザインツール Figma でも Jumpu UI が公開されています。

Jumpu UI (Figma 版)

ステータス

現在不安定リリースのみ提供しています。安定リリースまで破壊的な変更が含まれる可能性があります。

使い方

パッケージをプロジェクトにインストールします。

npm i -D @jumpu-ui/tailwindcss

tailwind.config.js に TailwindCSS プラグインとして使用するように設定します。このとき、変数 jumpu は各コンポーネントごとの TailwindCSS プラグインを含んだ配列です。すべて使用したい場合は、スプレッド構文などによって展開してください。

const jumpu = require("@jumpu-ui/tailwindcss");

module.exports = {
  content: ["src/**/*.tsx"],
  theme: {
    extend: {},
  },
  plugins: [...jumpu],
};

一部が使用したい場合は、個別に使用したいプラグインを設定してください。

const button = require("@jumpu-ui/tailwindcss/button");
const outlinedButton = require("@jumpu-ui/tailwindcss/outlinedButton");
const textButton = require("@jumpu-ui/tailwindcss/textButton");

module.exports = {
  content: ["src/**/*.tsx"],
  theme: {
    extend: {},
  },
  plugins: [button, outlinedButton, textButton],
};

primary 以外の Jumpu UI が定義している色は、 tailwindcss/color モジュールと同様に別途導入する必要があります。

const jumpuColors = require("@jumpu-ui/tailwindcss/colors");
const jumpu = require("@jumpu-ui/tailwindcss");

module.exports = {
  content: ["src/**/*.tsx"],
  theme: {
    extend: {
      colors: jumpuColors,
    },
  },
  plugins: [...jumpu],
};

設定

Jumpu UI は theme を拡張しています。拡張した値に対してカスタマイズすることができます。

jumpu.prefix

jumpu.prefix は Jumpu UI コンポーネントクラスの接頭辞を設定します。デフォルトは "jumpu-" です。

接頭辞を取り除きたい場合は、空文字列を設定してください。

theme: {
  extend: {
    jumpu: {
      prefix: "",
    }
  }
}

spacing

rel1 であれば 0.25em となるような相対サイズのスケールを追加しています。

colors

  • primary: UI コンポーネントで用いられるプライマリカラー。デフォルトは require("tailwindcss/colors").blue

borderColors

  • DEFAULT: 境界線で用いられる色。デフォルトは require("tailwindcss/colors").gray[300]

開発

DEVELOPMENT.mdを参照してください。

Keywords

tailwindcss

FAQs

Package last updated on 03 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts