Skip to content

Theme extend arrays are not merged #2798

@flybayer

Description

@flybayer

Describe the problem:

v2 now deeply merges theme extensions, so I also expected arrays to be merged.

I.e. I want the below to keep the default fontFamily.sans config but add Inter Var to the beginning.

module.exports = {
  theme: {
    extend: {
      fontFamily: {
        sans: ["Inter var"],
      },
    },
  },
}

Link to a minimal reproduction:

https://play.tailwindcss.com/VWhUl3yiv2?file=config

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions