Skip to content

How to extend grid-template-columns in v4? #18640

Answered by vladbesson
vladbesson asked this question in Help
Discussion options

You must be logged in to vote

Actually this is not working:

@theme inline {
  ...
  --grid-cols-1fr: repeat(1, 1fr);
  --grid-cols-2fr: repeat(2, 1fr);
  --grid-cols-3fr: repeat(3, 1fr);
  --grid-cols-4fr: repeat(4, 1fr);
  --grid-cols-5fr: repeat(5, 1fr);
  --grid-cols-6fr: repeat(6, 1fr);
  --grid-cols-7fr: repeat(7, 1fr);
  --grid-cols-8fr: repeat(8, 1fr);
  --grid-cols-9fr: repeat(9, 1fr);
  --grid-cols-10fr: repeat(10, 1fr);
  --grid-cols-11fr: repeat(11, 1fr);
  --grid-cols-12fr: repeat(12, 1fr);
}

The old ways with extend in js config is still working with v4, all I needed was just safelist them

Replies: 4 comments 11 replies

Comment options

You must be logged in to vote
3 replies
@FragsterAt
Comment options

@vladbesson
Comment options

@FragsterAt
Comment options

Comment options

You must be logged in to vote
6 replies
@FragsterAt
Comment options

@vladbesson
Comment options

@vladbesson
Comment options

@FragsterAt
Comment options

@vladbesson
Comment options

Comment options

You must be logged in to vote
2 replies
@FragsterAt
Comment options

@wongjn
Comment options

wongjn Jul 30, 2025
Collaborator

Answer selected by vladbesson
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants