Wedges provides a Tailwind CSS plugin enabling the use of Wedges design tokens and creation of custom themes in your projects. This plugin is inspired and based on the awesome tw-colors plugin.
Tailwind CSS supports dark mode, but with Wedges, you can create an unlimited number of custom themes. There’s no cap on the themes and colors you can use, and it even supports nested themes for more complex use cases.
Once Tailwind CSS is installed, update your tailwind.config file to add the necessary configuration for Wedges:
Configuration
Plugin Options
The wedgesTW plugin accepts a configuration object allowing you to customize the plugin’s behavior. This is the default structure of the configuration object:
Type
The configuration object type is defined as follows:
API Reference
Option
Value
Default
defaultExtendTheme
"light" | "dark"
"light"
defaultTheme
DefaultThemeType
"light"
fontSmooth
"antialiased" | "inherit"
"antialiased"
prefix
string
"wg"
themes
ConfigThemes
{}
Nested Themes
Wedges supports nested themes, enabling the use of multiple themes within individual sections for flexible styling.