New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@mantine-tailwind-utils/generator

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mantine-tailwind-utils/generator

A utility package that bridges Mantine UI and Tailwind CSS, making them work seamlessly together with less-efforts.

latest
Source
npmnpm
Version
0.1.11
Version published
Maintainers
1
Created
Source

Mantine Tailwind Generator

A utility package that bridges Mantine UI and Tailwind CSS, making them work seamlessly together with less-efforts.

Features

  • Define component styles using JSDoc-like comments
  • Vite plugin for automatic theme generation
  • More comming...

Installation

npm install @mantine-tailwind-utils/generator

Usage

Vite Plugin

Add the plugin to your vite.config.js or vite.config.ts:

import { defineConfig } from 'vite';
import { mantineTailwindThemePlugin } from '@mantine-tailwind-utils/generator';
import tailwindcss from '@tailwindcss/vite';
// other imports...

export default defineConfig({
  plugins: [
    mantineTailwindThemePlugin({
      themePath: './app/styles/theme.ts',
      outputPath: './app/styles/theme.gen.ts',
    }),
    tailwindcss(),
    // other plugins...
  ],
});

Configuration Options

The mantineTailwindThemePlugin accepts the following options:

  • themePath: Path to your Mantine theme configuration file
  • outputPath: Path where the generated Tailwind-compatible theme will be saved

Tailwind Configuration

In your tailwind.config.js, you can use the generated theme:

import { theme } from './app/styles/theme.gen.ts';

export default {
  // Your Tailwind configuration
  theme: {
    extend: {
      colors: theme.colors,
      // Other theme extensions
    },
  },
  // Rest of your Tailwind config
};

Development

This project uses Nx as a build system.

Building

nx build generator

Running Tests

nx test generator

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT

FAQs

Package last updated on 09 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts