The plugin extends the default configuration with a new set of utilities. All variants and breakpoints are supported e.g. dark:sm:hover:bg-primary.
+Class | +Property | +
---|---|
primary-[50-950] | +Primary color palette. | +
surface-[0-950] | +Surface color palette. | +
primary | +Default primary color. | +
primary-contrast | +Default primary contrast color. | +
primary-emphasis | +Default primary emphasis color. | +
border-surface | +Default primary emphasis color. | +
bg-emphasis | +Emphasis background e.g. hovered element. | +
bg-highlight | +Highlight background. | +
bg-highlight-emphasis | +Highlight background with emphasis. | +
rounded-border | +Border radius. | +
text-color | +Text color with emphasis. | +
text-color-emphasis | +Default primary emphasis color. | +
text-muted-color | +Secondary text color. | +
text-muted-color-emphasis | +Secondary text color with emphasis. | +
+ Tailwind CSS is a popular CSS framework with a utility-first approach. The core provides flexible CSS classes with predefined CSS rules to build your own UI elements. For example, instead of an opinionated btn class as in + Bootstrap, Tailwind offers primitive classes like bg-blue-500, rounded and p-4 to apply a button. A set of reusable classes can also be grouped as a Tailwind CSS component and there are even a couple of libraries that + take this approach to build components for Tailwind. +
++ Tailwind is an outstanding library, however it lacks a true comprehensive UI suite specifically when combined with Vue.js, this is where PrimeVue comes in by providing a wide range of highly accessible and feature rich UI component + library. The core of PrimeVue does not depend on Tailwind CSS, instead we provide the necessary integration points such as the primeui tailwind plugin and the presets for the unstyled mode. +
++ The tailwindcss-primeui is an official plugin by PrimeTek to provide first class integration between a Prime UI library like + PrimeVue and Tailwind CSS. It is designed to work both in styled and unstyled modes. In styled mode, for instance the semantic colors such as primary and surfaces are provided as Tailwind utilities e.g. bg-primary, + text-surface-500, text-muted-color. +
+Plugin is available on npm.
+After installation, configure the plugin at your tailwind configuration file.
++ In unstyled mode of PrimeVue, default styling elements like design tokens and css classes are turned off so that you have full control over the component styling with pass-through properties. This feature is quite useful when you'd like + to build your own UI library based on a custom design by wrapping PrimeVue components or simply utilitze Tailwind CSS to style the PrimeVue components. +
++ The unstyled mode also use the preset concept just like the styled mode to define a theme. In styled mode a preset is a set of design tokens implemented with CSS variables whereas in unstyled mode a preset is a Pass-Through + configuration object to inject Tailwind CSS classes into components. If you prefer to ignore the default styled mode theming api and use Tailwind CSS to style the PrimeVue UI components instead, learn more at the standalone + Tailwind CSS Presets project website. +
++ The tailwindcss-primeui is an official plugin by PrimeTek to provide first class integration between a Prime UI library like + PrimeVue and Tailwind CSS. It is designed to work both in styled and unstyled modes. In styled mode, for instance the semantic colors such as primary and surfaces are provided as Tailwind utilities e.g. bg-primary, + text-surface-500, text-muted-color. +
+Plugin is available on npm.
+After installation, configure the plugin at your tailwind configuration file.
+Integration between PrimeVue and Tailwind CSS.
+