|
|
|
|
|
by 01brett
1683 days ago
|
|
Absolutely. The Tailwind config makes this really powerful to extend or override. You can reuse the same API for things like spacing with your own values/scale or make your own. The Tailwind docs get into it a bit as you can see here: https://tailwindcss.com/docs/configuration#theme Here is the spacing section in my config where I've extended the default with interstitial values. What's really cool is these propagate to all the spacing utilities (padding, margin, margin between, etc) spacing: {
0.75: '0.1875rem',
1.25: '0.3125rem',
1.75: '0.4375rem',
2.25: '0.5625rem',
2.75: '0.6875rem',
3.25: '0.8125rem',
4.5: '1.125rem',
4.75: '1.1875rem',
}
|
|