Skip to content

Is it possible create a custom theme using another custom theme as a basis? #2641

Closed Answered by saadeghi
stefanobartoletti asked this question in Q&A
Discussion options

You must be logged in to vote

You can do something like this:
https://play.tailwindcss.com/0dpuiBpKEl?file=config

const mytheme = {
  primary: '#e400ff',
  secondary: '#0074ff',
  accent: '#00f18e',
  neutral: '#171103',
  'base-100': '#f8fbff',
}

module.exports = {
  plugins: [require('daisyui')],
  daisyui: {
    themes: [
      {
        theme1: mytheme,
        theme2: {
          ...mytheme,
          primary: 'indigo',
        },
      },
    ],
  },
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@stefanobartoletti
Comment options

Answer selected by saadeghi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants