@@ -22,8 +22,8 @@ Then add the plugin to your tailwind.config.js file and do your settings if you'
2222
2323// tailwind.config.js
2424module .exports = {
25- // You can disable the fontSize core plugin if you don't need the defaults .
26- // If you don't disable it, the fluid-type plugin simply overrule the defaults .
25+ // You can disable the fontSize core plugin if you don't need non fluid font sizes .
26+ // If you don't disable it, the fluid-type plugin simply overrule the default font-sizes if the keys are the same .
2727 // Or you can use both alongside when you set an prefix in the settings
2828 corePlugins: {
2929 fontSize: false ,
@@ -52,6 +52,11 @@ Nothing changed here to the default tailwindcss configuration:
5252The plugin comes with a default configuration (see below) but it's possible to customize this config for your project.
5353As default, we use ` rem ` for better accessibility, but you can also use ` px ` .
5454
55+ ---
56+ > ** _ Important Note:_ **
57+ > If you set values you have to set all values that you need for your ` font-sizes ` . There is no value merging here.
58+ ---
59+
5560### Default configuration
5661
5762``` js
@@ -70,7 +75,8 @@ module.exports = {
7075 screenMin: 20 , // 20rem === 320px
7176 screenMax: 96 , // 96rem === 1536px
7277 unit: ' rem' , // default is rem but it's also possible to use 'px'
73- prefix: ' ' // set a prefix to use it alongside the default font sizes
78+ prefix: ' ' , // set a prefix to use it alongside the default font sizes
79+ extendValues: true , // When you set values it will extend the default values. Set this to false to overwrite the values.
7480 },
7581 // Creates the text-xx classes
7682 // This are the default settings and analog to the tailwindcss defaults
0 commit comments