Commit graph

696 commits

Author SHA1 Message Date
Adam Wathan
4754d225af Remove need for without function 2019-02-14 07:47:32 -05:00
Adam Wathan
d95d28eec8 Fix code style 2019-02-13 14:25:37 -05:00
Adam Wathan
2342d72c5e Use existing parameter 2019-02-13 14:22:45 -05:00
Adam Wathan
8ff2b59096 Add first class support for extending the default theme 2019-02-13 13:07:41 -05:00
Adam Wathan
32fd2151c8 Depend on normalize.css properly 2019-02-11 15:49:12 -05:00
Adam Wathan
f6e40afb28 Build base instead of preflight 2019-02-11 12:46:19 -05:00
Adam Wathan
9a3eee5afc Don't handle preflight separately in corePlugins
If we do, we have to handle disabling/custom configuration separately too, which we don't want.

This really suggests I should prioritize adding a more black-box level test for this part of the codebase.
2019-02-07 15:31:11 -05:00
Adam Wathan
a9a0cf03e5 Move preflight CSS into plugins directory 2019-02-07 15:27:17 -05:00
Adam Wathan
690c7f2d52 Convert preflight to plugin 2019-02-07 15:19:54 -05:00
Adam Wathan
76c40e4394 Fix style 2019-02-07 15:13:17 -05:00
Adam Wathan
4a505be390 Load plugin base styles at @tailwind base 2019-02-07 15:09:18 -05:00
Adam Wathan
1d0b4cd31c Test plugins can add base styles with object syntax 2019-02-07 14:05:00 -05:00
Adam Wathan
b8f965179c Finish merge of master 2019-02-07 13:58:47 -05:00
Adam Wathan
0de9df3de9 Use correct variant config for backgroundSize plugin 2019-02-07 09:12:24 -05:00
Adam Wathan
f69e02cf2f Fix conflicts 2019-02-07 09:10:20 -05:00
Adam Wathan
8aabccb8d4 Fix code style 2019-02-06 14:29:05 -05:00
Adam Wathan
b544febfcb Use root instead of array to unify code paths 2019-02-06 14:23:38 -05:00
Adam Wathan
04e1274e86 Rename mergeConfig to resolveConfig
Accept configs to resolve as an array to allow reuse when only resolving from a single config, update processTailwindFeatures to use resolveConfig even when no config is provided, update defaultTheme to self-reference colors.
2019-02-05 20:36:54 -05:00
Adam Wathan
40413690a2 Add support for lazy values in theme 2019-02-05 20:18:19 -05:00
Adam Wathan
44bccca3d0 Fix code style 2019-02-05 13:37:05 -05:00
Adam Wathan
ef833125e6 Use configurePlugins when loading core plugins 2019-02-05 13:36:41 -05:00
Adam Wathan
4afb9e45e6 Test core plugins fall back to a default config 2019-02-05 10:58:56 -05:00
Adam Wathan
c84b188626 Fix code style 2019-02-05 10:54:35 -05:00
Adam Wathan
ed20e59ba1 Test that setting a plugin to false in corePlugins disables it 2019-02-05 10:41:33 -05:00
Justin Anastos
40bb6c619d Add nested atRule support to substituteResponsiveAtRules 2019-02-05 10:15:59 -05:00
Adam Wathan
083ab97e12 Fix code style 2019-02-01 12:32:50 -05:00
Adam Wathan
ffdc2b01c5 Intelligently deep merge user's config 2019-02-01 12:32:50 -05:00
Adam Wathan
b036cac4b5 Fix code style 2019-02-01 12:32:50 -05:00
Adam Wathan
ec1bdd27ec Move screens into theme config 2019-02-01 12:32:50 -05:00
Adam Wathan
efc7927078 Rename styles to theme 2019-02-01 12:32:50 -05:00
Adam Wathan
3fbd6b300a Disable plugins using corePlugins instead of variants 2019-02-01 12:32:50 -05:00
Adam Wathan
d98e97f3ec Rename modules to variants 2019-02-01 12:32:50 -05:00
Adam Wathan
c56ae6c6b4 Move modules outside of styles to top level key 2019-02-01 12:32:50 -05:00
Adam Wathan
95bb283a69 Rename defaultPlugins to corePlugins 2019-02-01 12:32:50 -05:00
Adam Wathan
fd22dea5ad Always load core plugins by default 2019-02-01 12:32:50 -05:00
Adam Wathan
f10f1825ef Remove special "modules" merge behavior
Modules key no longer actually exists in the config so this is pointless.
2019-02-01 12:32:50 -05:00
Adam Wathan
3d2a598c0e Don't test for presence of defaultConfig in defaultConfig 2019-02-01 12:32:50 -05:00
Adam Wathan
2f9172cf8d Update every plugin to accept its config as a parameter 2019-02-01 12:32:50 -05:00
Adam Wathan
326f35a72a Remove options key from config 2019-02-01 12:32:50 -05:00
Adam Wathan
e8d16fcdb5 Move separator to top level config option 2019-02-01 12:32:50 -05:00
Adam Wathan
1a46f6b47d Move important to top level option 2019-02-01 12:32:50 -05:00
Adam Wathan
664f923312 Move prefix option to top-level in config 2019-02-01 12:32:16 -05:00
Adam Wathan
ffae87148d Revert "Allow plugins to register new config variables" 2019-02-01 12:32:04 -05:00
Adam Wathan
5ea8bbe798 Allow plugins to register new config variables 2019-02-01 12:32:04 -05:00
Adam Wathan
e120f59ed4 Simplify defaultPlugins module 2019-01-14 19:24:51 -05:00
Adam Wathan
057b4ea767 More dead code discovered and deleted 2019-01-14 15:43:12 -05:00
Adam Wathan
adc5d2597c Remove unnecessary parameter 2019-01-14 15:43:12 -05:00
Adam Wathan
b948c25499 Delete possibly last remnants of dead code 2019-01-14 15:43:12 -05:00
Adam Wathan
d255978d03 Delete even more dead code 2019-01-14 15:43:12 -05:00
Adam Wathan
fe1b30b2d2 Remove prefixTree, update relevant tests 2019-01-14 15:43:12 -05:00