Tailwind CSS Styling Library for Building Modern, Consistent and Accessible Web UIs with Radix UI, Melt UI, and Radix Vue.
Imagine Tailus Themer as a secret style vault for our UI Kits. It uses Tailwind CSS, making it super easy to customize the look and feel of your components. This means you get a consistent design foundation across all these UI Kits, but with the freedom to tweak things to perfectly match your brand.
npm install @tailus/themer
Update your tailwindcss config
Import the themer preset to set default theme and enable data-attributes customizations
import type { Config } from 'tailwindcss'
import { themer, grayColorVariables } from '@tailus/themer'
module.exports = {
content: [
// your other paths
"./node_modules/@tailus/themer/dist/**/*.{js,ts}",
],
theme: {
extend: {
colors: {
gray: grayColorVariables,
},
},
},
presets: [
themer
]
} satisfies Config
Under normal circumstances, it's not necessary to add the gray
color to your Tailwind CSS configuration. However, because Tailwind CSS generates the gray
color from the defaultTheme
object, you must include it in your configuration to prevent any errors.
Use data-attributes
to customize your theme
Use the data-palette
attribute to change the color palette of your theme.
<html data-palette="trust"></html>
[Learn more about palette customization]()
The available palettes are:
trust
romance
passion
nature
energy
mystery
oz
spring
winter
The palette
plugin comes with a variety of palettes built with the tailwindcss default colors. You can effortlessly switch between these palettes or even allow your users to select the palette they prefer.
[Learn more about muilti-theming]()
You can adjust the background and border colors of your theme using the data-shade
attribute. This change is more noticeable in dark mode.
<html data-shade="900"></html>
The available shades are:
800
900
925
950
glassy
[Learn more about the shade plugin]()
You can adjust the border radius of your theme using the data-rounded
attribute.
<html data-rounded="xlarge"></html>
The available rounded values are:
none
default
small
medium
large
xlarge
2xlarge
3xlarge
full
[Learn more about the rounded plugin]()
You can adjust the shadow of your theme using the data-shadow
attribute. ( ⚠️ Not yet available)
<html data-shadow="medium"></html>
The available shadow values are:
[Learn more about the rounded plugin]()
Tailus Themer is an open source project and contributions from the community are always the welcome. If you have any ideas or suggestions for how to improve Tailus Themer, please feel free to open an issue or submit a pull request.
If you have any questions or need help with using Tailus Themer, please feel free to reach out on Twitter.
Tailus Themer is licensed under the MIT license.