Selaa lähdekoodia

Fix ordering of screen breakpoints

Newly add xs breakpoint was not added correctly, causing it to override
the base breakpoints.
ApisNecros 1 vuosi sitten
vanhempi
säilyke
ed70a1d59c
1 muutettua tiedostoa jossa 5 lisäystä ja 4 poistoa
  1. 5 4
      tailwind.config.js

+ 5 - 4
tailwind.config.js

@@ -1,3 +1,5 @@
+const defaultTheme = require('tailwindcss/defaultTheme');
+
 module.exports = {
   purge: {
       content: [
@@ -25,10 +27,9 @@ module.exports = {
       '1-1/3': '1 1 33.3333333%',
       '1-1/2': '1 1 50%',
     },
-    extend: {
-      screens: {
-        'xs': '400px',
-      }
+    screens: {
+      'xs': '400px',
+      ...defaultTheme.screens,
     },
   },
   variants: {