Adam Wathan
4d2e4119fd
Add experimental default line heights
2020-08-07 14:42:43 -04:00
Adam Wathan
30980063e8
Add experimental extended spacing scale
2020-08-07 11:25:22 -04:00
Adam Wathan
61635f4884
Co-locate feature flag utilities
2020-08-06 16:02:09 -04:00
Adam Wathan
1ac5874732
Add scaffolding for future/experimental flags, with WIP new color palette as example
2020-08-05 14:02:43 -04:00
Adam Wathan
5b18ef475a
Silence jest warnings about mutating require cache
2020-04-29 16:37:03 -04:00
Adam Wathan
53dff626a7
Fix style
2019-10-12 13:41:28 -04:00
Adam Wathan
65d45689ae
Allow plugins to provide their own config object
2019-10-12 13:40:00 -04:00
Adam Wathan
4c25ca5ed6
Apply config modifications to default config, before resolving config
2019-10-12 13:05:08 -04:00
Adam Wathan
e130771c32
Allow plugins to modify the config
2019-10-12 13:04:02 -04:00
Serhii Pashchenko
4a15678abb
Make dependencies of config watchable
2019-08-11 12:32:46 +03:00
Adam Wathan
0bf8495b96
Support passing config object under config key
2019-08-02 08:31:46 -04:00
Adam Wathan
5cad3910fd
Support passing empty object to signal 'use default config path'
2019-08-02 08:14:07 -04:00
Adam Wathan
649fb8f21e
Support passing config path via object
2019-08-02 08:07:42 -04:00
Adam Wathan
93184084c6
Rename formatNodes to formatCSS
2019-04-17 08:07:42 -04:00
Adam Wathan
c98cc12d35
Remove dependency on perfectionist, implement simple formatting from scratch
2019-04-16 11:43:17 -04:00
Matt Stypa
6c461706c6
Moved constants and used it for hardcoded paths
2019-03-15 07:08:34 -05:00
Matt Stypa
9e4f54a17f
Merging in changes from upstream
2019-03-14 18:07:29 -05:00
mattstypa
92b3b0c0a1
Updated CLI init commend
2019-03-14 15:51:21 -05:00
Adam Wathan
8fa379a995
Remove super old deprecation error
2019-03-14 15:20:06 -04:00
Adam Wathan
6a592930a4
Simplify ternary to or statement
2019-03-05 07:41:26 -05:00
Adam Wathan
7ade6ea744
Load tailwind.config.js automatically if present
2019-03-04 16:27: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
d82a7556c0
Preserve units for zero value properties
2018-08-14 13:37:08 -04:00
Adam Wathan
7201c4f51b
Rename lazyConfig to getConfig
2018-07-16 08:37:23 -04:00
Adam Wathan
9b22ff3513
Only process plugins once
2018-06-26 13:44:47 -04:00
Adam Wathan
b21d258f63
Wrap Tailwind plugins in new plugin to only unwrap config once
2018-06-26 13:44:47 -04:00
Benoît Rouleau
46058cf6c8
accept config as a js object
2018-06-22 21:01:18 -04:00
Adam Wathan
5f77aa0ec3
Implement basic plugin system
2018-03-05 09:58:35 -05:00
Adam Wathan
f4c905fcef
Tweak Perfectionist configuration
2018-01-22 10:01:22 -05:00
Keith Damiani
eea8b54dfe
Run perfectionist at end of PostCSS chain in place of stylefmt
2018-01-19 14:39:56 -05:00
Adam Wathan
704396b892
Remove hoverable and focusable at-rules in favor of variants at-rule
2017-11-24 15:11:16 -05:00
Adam Wathan
f84507457f
Extract mergeConfigWithDefaults for easier testability
2017-11-24 12:34:09 -05:00
Adam Wathan
8171ca79ff
Rename substitutePreflight to substituteTailwindPreflight
2017-11-23 15:04:21 -05:00
Adam Wathan
62a9894a53
Rename generateUtilities to substituteTailwindUtilitiesAtRules
2017-11-23 15:02:55 -05:00
Adam Wathan
0a6c4cc5c6
Use @variants to generate variants specified in config
...
...instead of using variant generators directly.
2017-11-23 12:01:04 -05:00
Adam Wathan
9202ecf104
Merge user config with default config
...
Not recursively so values won't get combined, but missing keys will get
their default values which makes upgrading a non-breaking change if we
add new options.
2017-11-23 11:16:44 -05:00
Adam Wathan
fc0e99e598
Fix style errors
2017-11-17 10:50:14 -05:00
Adam Wathan
8f3e80e961
Throw error when trying to access defaultConfig the deprecated way to be nice guys
2017-11-17 10:37:57 -05:00
Jonathan Reinink
1faabc82b1
Switch to separate config import
...
Import default config from separate path (require('tailwindcss/defaultConfig')) to allow importing the default config without importing all of Tailwind, which causes errors with Webpack due to a dynamic require.
2017-11-14 08:03:31 -05:00
David Hemphill
79a2bb39e5
Reformat files
2017-11-06 15:02:02 -05:00
David Hemphill
9dbf5881cd
fix eslint issues
2017-11-06 15:00:55 -05:00
David Hemphill
ec607968cf
Add ESLinting and Prettier formatting and run an initial format on the codebase
2017-11-06 15:00:00 -05:00
Adam Wathan
b2b95d5738
Register config file with Webpack for watching
...
This change tells Webpack (for those using it) that the config file
used should be tracked as a dependency and that the CSS should be
re-compiled if that config file changes.
It's careful to make sure the config file is loaded fresh every single
time to avoid weird caching issues.
2017-11-03 09:54:15 -04:00
Jonathan Reinink
2b1a6959d3
Rename "reset" to "preflight"
2017-10-31 17:05:10 -04:00
Jonathan Reinink
f26833c2a3
Fix defaultConfig() method (add return)
2017-10-26 10:21:13 -04:00
Jonathan Reinink
24199b140f
Lazy load default config
2017-10-26 09:29:52 -04:00
Adam Wathan
4478b04090
Don't do any merging of config values at all
...
Leave this up to the user; their config file is a JS file and we give
them access to the default config, so they can do as much merging of
defaults as they like.
2017-10-24 12:13:25 -04:00
Adam Wathan
fcee129eb8
Merge pull request #205 from nothingworksinc/export-config
...
Add default config to module.exports
2017-10-24 08:53:22 -04:00
Adam Wathan
244d7c09c9
Move defaultConfig to root so it's not processed by Babel
2017-10-24 07:39:09 -04:00
Adam Wathan
8f3ad0f8e4
Add default config to module.exports
2017-10-24 07:33:24 -04:00