Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[KnowHow]: Tallstackui + Mary-UI + Daisy-UI #432

Open
cord opened this issue Apr 19, 2024 · 1 comment
Open

[KnowHow]: Tallstackui + Mary-UI + Daisy-UI #432

cord opened this issue Apr 19, 2024 · 1 comment
Labels
feature request Request new features

Comments

@cord
Copy link

cord commented Apr 19, 2024

The Issue

When installing Tallstackui together with Mary-ui the tailwind stylings are overwritten by daisy-ui.

Here is how to fix this (thx to ChatGPT):

The Solution

To prevent the settings from tallstackui defined in vendor/tallstackui/tallstackui/tailwind.config.js from being overwritten by daisyui, you can adjust the configuration to merge the settings rather than completely replacing them. You can achieve this by using the lodash merge function or a similar utility. Here's how you can modify your tailwind.config.js file to achieve this:

const _ = require('lodash');
const tallstackuiConfig = require('vendor/tallstackui/tallstackui/tailwind.config.js');
const daisyui = require('daisyui');

module.exports = {
  mode: 'jit',
  purge: [...],
  theme: {
    extend: _.merge({}, tallstackuiConfig.theme.extend, {
      colors: {
        // Add your custom colors here if needed
      },
      // Add other customizations as needed
    }),
  },
  plugins: [
    daisyui,
    // Add other plugins as needed
  ],
};
@cord cord added the feature request Request new features label Apr 19, 2024
@devajmeireles
Copy link
Member

Thanks. I'll keep this issue open until I doc this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Request new features
Projects
None yet
Development

No branches or pull requests

2 participants