Title: TailPress – Tailwind for WordPress
Author: Greg
Published: <strong>2022 年 6 月 9 日</strong>
Last modified: 2023 年 4 月 4 日

---

搜尋外掛

![](https://ps.w.org/tailpress/assets/banner-772x250.png?rev=2836881)

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://ps.w.org/tailpress/assets/icon-256x256.png?rev=2836881)

# TailPress – Tailwind for WordPress

 由 [Greg](https://profiles.wordpress.org/freshbrewedweb/) 開發

[下載](https://downloads.wordpress.org/plugin/tailpress.0.4.4.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/tailpress/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/tailpress/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/tailpress/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/tailpress/#developers)

 [技術支援](https://wordpress.org/support/plugin/tailpress/)

## 外掛說明

[Tailwind CSS](https://tailwindcss.com/) is a great companion to building block 
based sites in WordPress. Unfortunately, it’s been pretty complicated to add Tailwind
CSS to WordPress since it needs to be compiled with Node.js in order to be production
ready.

This plugin takes care of that by adding Tailwind CSS to WordPress in one easy step(
activate the plugin) and at the same time takes care of performance and caching 
so your site remains fast and production ready!

### Who It’s For

This is primarily for developers and users that are familiar with Tailwind CSS and
comfortable styling their site using their utility class framework.

It’s also for those who have struggled to add Tailwind to their workflow without
having to constantly compile their CSS every time the classes in their page content
changes.

### How it Works

 * Extracts classes from pages and compiles them server-side into Tailwind CSS
 * Caches the dynamically generated CSS to avoid performance issues on the frontend
   of your production site.

### Are you affiliated with tailpress.io the theme?

No, we are not! Unfortunately the same name was used for both out of coincidence,
but we are not affiliated and are two different solutions. [Tailpress.io](https://tailpress.io)
is a great starting point for developing custom themes with deep integration of 
Tailwind. I would recommend it for any developer that wants to build a custom theme
that depends heavily on Tailwind.

Tailpress, this plugin, adds Tailwind support to any project as an add-on. It can
be used as much or as little as you need, added to custom themes or pre-existing
ones.

### Can this be used in production?

Yes! Although the styles in the backend get generated on the fly, the CSS on the
frontend gets cached for every page. Changing any classes on the page will bust 
the cache automatically so it’ll still stay up to date with any changes.

### Can this be used outside the block editor?

Yes! This will work anywhere on the backend or front end of your site that uses 
classes to style things.

### Known Issues

### Device Preview Mode in Block Editor

The non-desktop preview modes in the block editor utilize an iframe and [don’t load assets properly](https://github.com/WordPress/gutenberg/issues/38673).
Therefore your Tailwind styles won’t be visible here.

### Page Caching

If you have any page caching on your site, you’ll have to clear your cache for the
best experience.

## 安裝方式

This section describes how to install the plugin and get it working.

 1. Upload `tailpress` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Simply add classes anywhere you would like in your pages, for example under the“
    Additional CSS class(es)” of any of your blocks.
 4. That’s it! It should just work.

Optionally configure your version of Tailwind under Settings > TailPress.

## 使用者評論

![](https://secure.gravatar.com/avatar/f477f0c1ad45592699f2ecd3243f65ed13660fdc8c3b9dc3801bb0188b094a63?
s=60&d=retro&r=g)

### 󠀁[Great plugin to have Tailwind!](https://wordpress.org/support/topic/great-plugin-to-have-tailwind/)󠁿

 [maxbarbul](https://profiles.wordpress.org/maxbarbul/) 2024 年 10 月 16 日

I found myself often wishing to add inline styles in guttenberg editor, then I thought,
how cool would it be to use Tailwind classes in the advanced section of blocks. 
And I found this plugin that worked without any configuration and it seams to do
it with optimizations. From time to time when using a new class you haven’t used
on this site, it doesn’t work. All you need to do is to go to this plugin settings
and clear the cache. Then the class is working. Thanks a lot to the developer! Live
long and prosper!

![](https://secure.gravatar.com/avatar/165547e067aacece959801f52583939a39a5154678dbfc9c7a87a32079ffd712?
s=60&d=retro&r=g)

### 󠀁[Amazing after figuring it out](https://wordpress.org/support/topic/amazing-after-figuring-it-out/)󠁿

 [laufixtwalmer](https://profiles.wordpress.org/laufixtwalmer/) 2024 年 1 月 17 
日

I tried several complicated ways to use tailwind with wp themes without node.js 
on the server. This plugin works and makes it incredibly easy. With the nice addition
of also getting tw in the block editor. I have had some problems with classes not
being recognized, but that seems to be solved by the cache cleaning button in the
tailpress settings. This is also where you can edit the tailwind config, i found
out, which was a bit confusing having to write json instead of js, and the invalid
json just being erased on saving without any explanation. Would be nice to be told
more explicitely that this is where the config is located, how to write it in json,
maybe some example(s) of what/how you can write, and an informative error message
of sorts when not writing valid json, instead of just having it erased. But i figured
it out, and i’m very happy with the plugin.

![](https://secure.gravatar.com/avatar/596d736713502c0785368247b00b98afd01352dcee72aa9aa062e3da1e9af437?
s=60&d=retro&r=g)

### 󠀁[Add @tailwind](https://wordpress.org/support/topic/add-tailwind/)󠁿

 [rozhko](https://profiles.wordpress.org/rozhko/) 2023 年 10 月 13 日

HI! How can i add this example:@tailwind base; @tailwind components; @tailwind utilities;
@layer base { h1 { @apply text-2xl; } h2 { @apply text-xl; }}

![](https://secure.gravatar.com/avatar/dcb0ce3540e60c7d1bbeb95701353689a69253abde3a436aa6bcce28e9d64611?
s=60&d=retro&r=g)

### 󠀁[Awesome plugin!!!](https://wordpress.org/support/topic/awesome-plugin-6839/)󠁿

 [predawnhunter](https://profiles.wordpress.org/predawnhunter/) 2023 年 4 月 2 日

It’s like a dream come tru!

![](https://secure.gravatar.com/avatar/370912c98c677c1fc59253459a541a9160aee659e57a1f226bc39e7622715adf?
s=60&d=retro&r=g)

### 󠀁[Great plugin!](https://wordpress.org/support/topic/great-plugin-36430/)󠁿

 [yarogo](https://profiles.wordpress.org/yarogo/) 2023 年 3 月 19 日

Very useful. Thanks!

![](https://secure.gravatar.com/avatar/1d7156180840ab57059fff2ab0eeef7d4066174a598ca3935af25311bba103b4?
s=60&d=retro&r=g)

### 󠀁[I love it!](https://wordpress.org/support/topic/i-love-it-897/)󠁿

 [adam.plesnik](https://profiles.wordpress.org/webios/) 2023 年 3 月 1 日

Fast, simple and even with custom-[values] support. Splendid!

 [ 閱讀全部 13 則使用者評論 ](https://wordpress.org/support/plugin/tailpress/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈TailPress – Tailwind for WordPress〉的開發相關工作。

參與者

 *   [ Greg ](https://profiles.wordpress.org/freshbrewedweb/)

〈TailPress – Tailwind for WordPress〉外掛目前已有 2 個本地化語言版本。 感謝[全部譯者](https://translate.wordpress.org/projects/wp-plugins/tailpress/contributors)
為這個外掛做出的貢獻。

[將〈TailPress – Tailwind for WordPress〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/tailpress)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/tailpress/)、查看
[SVN 存放庫](https://plugins.svn.wordpress.org/tailpress/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/tailpress/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/tailpress/)。

## 變更記錄

#### 0.4.4

 * Removed Hashing from Twind config
 * Better autoload with **DIR**

#### 0.4.3

 * Compatibility with PHP 7.0

#### 0.4.1

 * Fixed syntax error in Twind init
 * Upgraded Twind CDN library to 1.0.8

#### 0.4.0

 * Added a cleanup plugin data option
 * Better JSON editor
 * Clear the cache when config is updated.

#### 0.3.2

 * Updated Twind script not to include presets

#### 0.3.1

 * Fixed trailing comma in function for better PHP support

#### 0.3.0

 * Added a clear cache button.
 * Use a remote service for compiling CSS.
 * Added disclaimer about tailpress.io

#### 0.2.0

 * Added a settings page to configure Tailwind.

#### 0.1.2

 * Fixed interferance in admin panel

#### 0.1.1

 * Fixed buffer notice

#### 0.1.0

 * First version.

## 中繼資料

 *  版本 **0.4.4**
 *  最後更新 **3 年前**
 *  啟用安裝數 **600+**
 *  WordPress 版本需求 ** 5.2 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.1.10**
 *  PHP 版本需求 ** 7.0 或更新版本 **
 *  語言
 * [Czech](https://cs.wordpress.org/plugins/tailpress/)、[English (US)](https://wordpress.org/plugins/tailpress/)、
   及 [French (France)](https://fr.wordpress.org/plugins/tailpress/).
 *  [將這個外掛本地化為你的母語版本](https://translate.wordpress.org/projects/wp-plugins/tailpress)
 * 標籤
 * [blocks](https://tw.wordpress.org/plugins/tags/blocks/)[css](https://tw.wordpress.org/plugins/tags/css/)
   [gutenberg](https://tw.wordpress.org/plugins/tags/gutenberg/)[tailwind](https://tw.wordpress.org/plugins/tags/tailwind/)
   [utility classes](https://tw.wordpress.org/plugins/tags/utility-classes/)
 *  [進階檢視](https://tw.wordpress.org/plugins/tailpress/advanced/)

## 評分

 5 星，滿分為 5 星

 *  [  13 個 5 星使用者評論     ](https://wordpress.org/support/plugin/tailpress/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/tailpress/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/tailpress/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/tailpress/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/tailpress/reviews/?filter=1)

[新增使用者評論](https://wordpress.org/support/plugin/tailpress/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/tailpress/reviews/)

## 參與者

 *   [ Greg ](https://profiles.wordpress.org/freshbrewedweb/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/tailpress/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](https://greghunt.dev/donate)