Skip to content
Merged

0.3.2 #306

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/" # Location of package manifests
directory: "/builder/" # Location of package manifests
schedule:
interval: "daily"
- package-ecosystem: "npm"
directory: "/examples/" # Location of package manifests
schedule:
interval: "daily"
4 changes: 3 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
name: Publish package to npmjs
permissions:
contents: read
on:
release:
types: [created]
Expand All @@ -9,7 +11,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
registry-url: "https://registry.npmjs.org"
- run: npm ci
working-directory: ./builder
Expand Down
41 changes: 32 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,36 @@
npm install @digital-go-jp/tailwind-theme-plugin
```

## プラグイン設定方法

### Tailwind CSS v3

`tailwind.config.js` の `plugins` 部分を以下のように設定してください。

```js
{
content: [...],
theme: {
extend: {
...
},
content: [...],
theme: {
extend: {
...
},
plugins: [require('@digital-go-jp/tailwind-theme-plugin')],
},
plugins: [require('@digital-go-jp/tailwind-theme-plugin')],
}
```

### Tailwind CSS v4

Tailwind CSS の設定をしている CSS ファイルで `@plugin` を使って以下のように設定してください。

```css

@import 'tailwindcss';

@plugin '@digital-go-jp/tailwind-theme-plugin';

@theme {
...
}
```

Expand All @@ -33,8 +52,11 @@ npm install @digital-go-jp/tailwind-theme-plugin

| Figma のバージョン | パッケージのバージョン |
| ------------------ | ---------------- |
| 2.4.0 | 0.3.1 |
| 2.3.0 | 0.3.1 |
| 2.6.0 | 0.3.2 |
| 2.5.1 | 0.3.2 |
| 2.5.0 | 0.3.2 |
| 2.4.0 | 0.3.2 |
| 2.3.0 | 0.3.2 |
| 2.2.0 | 0.2.5 |
| 2.1.3 | 0.2.5 |
| 2.1.2 | 0.2.5 |
Expand All @@ -50,4 +72,5 @@ npm install @digital-go-jp/tailwind-theme-plugin

デジタル庁デザインシステムのチームメンバーを募集しています。行政のデジタル環境を支える基盤づくりに、あなたのスキルや経験を活かしてみませんか? 求人ページからご応募ください。

- [プロダクトデザイナー(デザインシステム) - デジタル庁](https://herp.careers/v1/digitalsaiyo/IjQ4ovK9BFPl)
- [プロダクトデザイナー](https://herp.careers/v1/digitalsaiyo/IjQ4ovK9BFPl)
- [プロダクトデザイナー(アソシエイト)](https://herp.careers/v1/digitalsaiyo/yzcCCZJ9UY-f)
8 changes: 3 additions & 5 deletions biome.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"$schema": "https://biomejs.dev/schemas/2.1.3/schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
},
"files": {
"ignore": ["dist", "examples"]
},
"organizeImports": {
"enabled": true
"includes": ["**", "!**/dist"]
},
"assist": { "actions": { "source": { "organizeImports": "on" } } },
"formatter": {
"enabled": true,
"indentWidth": 2,
Expand Down
4 changes: 4 additions & 0 deletions builder/biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"root": false,
"extends": "//"
}
Loading