tailwindcss 0.0.0-insiders.4919cbf → 0.0.0-insiders.4e21639

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. package/CHANGELOG.md +132 -10
  2. package/README.md +1 -1
  3. package/colors.js +1 -300
  4. package/defaultConfig.js +1 -4
  5. package/defaultTheme.js +1 -4
  6. package/lib/cli-peer-dependencies.js +4 -9
  7. package/lib/cli.js +646 -704
  8. package/lib/constants.js +15 -15
  9. package/lib/corePluginList.js +171 -4
  10. package/lib/corePlugins.js +3562 -2921
  11. package/lib/css/preflight.css +12 -0
  12. package/lib/featureFlags.js +44 -44
  13. package/lib/index.js +25 -24
  14. package/lib/lib/collapseAdjacentRules.js +33 -35
  15. package/lib/lib/collapseDuplicateDeclarations.js +29 -0
  16. package/lib/lib/detectNesting.js +34 -0
  17. package/lib/lib/evaluateTailwindFunctions.js +130 -155
  18. package/lib/lib/expandApplyAtRules.js +183 -200
  19. package/lib/lib/expandTailwindAtRules.js +217 -232
  20. package/lib/lib/generateRules.js +442 -311
  21. package/lib/lib/getModuleDependencies.js +36 -41
  22. package/lib/lib/normalizeTailwindDirectives.js +66 -58
  23. package/lib/lib/resolveDefaultsAtRules.js +110 -90
  24. package/lib/lib/setupContextUtils.js +787 -573
  25. package/lib/lib/setupTrackingContext.js +142 -162
  26. package/lib/lib/setupWatchingContext.js +235 -278
  27. package/lib/lib/sharedState.js +7 -17
  28. package/lib/lib/substituteScreenAtRules.js +19 -26
  29. package/lib/processTailwindFeatures.js +38 -44
  30. package/lib/public/colors.js +329 -0
  31. package/lib/public/create-plugin.js +13 -0
  32. package/lib/public/default-config.js +14 -0
  33. package/lib/public/default-theme.js +14 -0
  34. package/lib/public/resolve-config.js +19 -0
  35. package/lib/util/bigSign.js +3 -5
  36. package/lib/util/buildMediaQuery.js +25 -30
  37. package/lib/util/cloneDeep.js +14 -13
  38. package/lib/util/cloneNodes.js +9 -13
  39. package/lib/util/color.js +69 -59
  40. package/lib/util/configurePlugins.js +13 -14
  41. package/lib/util/createPlugin.js +21 -24
  42. package/lib/util/createUtilityPlugin.js +47 -47
  43. package/lib/util/dataTypes.js +222 -0
  44. package/lib/util/defaults.js +10 -14
  45. package/lib/util/escapeClassName.js +12 -14
  46. package/lib/util/escapeCommas.js +3 -5
  47. package/lib/util/flattenColorPalette.js +14 -10
  48. package/lib/util/formatVariantSelector.js +102 -0
  49. package/lib/util/getAllConfigs.js +23 -16
  50. package/lib/util/hashConfig.js +10 -10
  51. package/lib/util/isKeyframeRule.js +3 -5
  52. package/lib/util/isPlainObject.js +7 -10
  53. package/lib/util/log.js +39 -30
  54. package/lib/util/nameClass.js +22 -23
  55. package/lib/util/negateValue.js +14 -15
  56. package/lib/util/normalizeConfig.js +208 -0
  57. package/lib/util/parseAnimationValue.js +82 -53
  58. package/lib/util/parseBoxShadowValue.js +77 -0
  59. package/lib/util/parseDependency.js +49 -60
  60. package/lib/util/parseObjectStyles.js +23 -20
  61. package/lib/util/pluginUtils.js +152 -298
  62. package/lib/util/prefixSelector.js +14 -16
  63. package/lib/util/resolveConfig.js +191 -349
  64. package/lib/util/resolveConfigPath.js +38 -45
  65. package/lib/util/responsive.js +12 -11
  66. package/lib/util/tap.js +4 -6
  67. package/lib/util/toColorValue.js +4 -5
  68. package/lib/util/toPath.js +4 -6
  69. package/lib/util/transformThemeValue.js +58 -17
  70. package/lib/util/withAlphaVariable.js +56 -54
  71. package/package.json +26 -36
  72. package/peers/index.js +73054 -84341
  73. package/plugin.js +1 -3
  74. package/resolveConfig.js +1 -7
  75. package/scripts/create-plugin-list.js +2 -2
  76. package/src/cli.js +28 -18
  77. package/src/corePluginList.js +1 -1
  78. package/src/corePlugins.js +2071 -1952
  79. package/src/css/preflight.css +12 -0
  80. package/src/featureFlags.js +12 -6
  81. package/src/lib/collapseDuplicateDeclarations.js +28 -0
  82. package/src/lib/detectNesting.js +39 -0
  83. package/src/lib/expandTailwindAtRules.js +22 -32
  84. package/src/lib/generateRules.js +196 -20
  85. package/src/lib/normalizeTailwindDirectives.js +3 -2
  86. package/src/lib/resolveDefaultsAtRules.js +46 -30
  87. package/src/lib/setupContextUtils.js +272 -61
  88. package/src/lib/setupTrackingContext.js +9 -8
  89. package/src/lib/setupWatchingContext.js +12 -7
  90. package/src/lib/sharedState.js +1 -4
  91. package/src/processTailwindFeatures.js +8 -1
  92. package/src/public/colors.js +300 -0
  93. package/src/public/create-plugin.js +2 -0
  94. package/src/public/default-config.js +4 -0
  95. package/src/public/default-theme.js +4 -0
  96. package/src/public/resolve-config.js +7 -0
  97. package/src/util/createUtilityPlugin.js +3 -14
  98. package/src/util/dataTypes.js +243 -0
  99. package/src/util/formatVariantSelector.js +105 -0
  100. package/src/util/log.js +18 -21
  101. package/src/util/nameClass.js +9 -5
  102. package/src/util/negateValue.js +4 -2
  103. package/src/util/normalizeConfig.js +249 -0
  104. package/src/util/parseAnimationValue.js +7 -1
  105. package/src/util/parseBoxShadowValue.js +71 -0
  106. package/src/util/parseDependency.js +4 -0
  107. package/src/util/pluginUtils.js +101 -218
  108. package/src/util/prefixSelector.js +1 -4
  109. package/src/util/resolveConfig.js +12 -159
  110. package/src/util/transformThemeValue.js +28 -5
  111. package/src/util/withAlphaVariable.js +13 -8
  112. package/stubs/defaultConfig.stub.js +146 -97
  113. package/stubs/simpleConfig.stub.js +0 -1
package/CHANGELOG.md CHANGED
@@ -7,22 +7,133 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ Nothing yet!
11
+
12
+ ## [3.0.0-alpha.2] - 2021-11-08
13
+
14
+ ### Changed
15
+
16
+ - Don't use pointer cursor on disabled buttons by default ([#5772](https://github.com/tailwindlabs/tailwindcss/pull/5772))
17
+ - Set default content value in preflight instead of within each before/after utility ([#5820](https://github.com/tailwindlabs/tailwindcss/pull/5820))
18
+ - Remove `prefix` as a function ([#5829](https://github.com/tailwindlabs/tailwindcss/pull/5829))
19
+
20
+ ### Added
21
+
22
+ - Add `flex-basis` utilities ([#5671](https://github.com/tailwindlabs/tailwindcss/pull/5671))
23
+ - Make negative values a first-class feature ([#5709](https://github.com/tailwindlabs/tailwindcss/pull/5709))
24
+ - Add `fit-content` values for `min/max-width/height` utilities ([#5638](https://github.com/tailwindlabs/tailwindcss/pull/5638))
25
+ - Add `min/max-content` values for `min/max-height` utilities ([#5729](https://github.com/tailwindlabs/tailwindcss/pull/5729))
26
+ - Add all standard `cursor-*` values by default ([#5734](https://github.com/tailwindlabs/tailwindcss/pull/5734))
27
+ - Add `grow-*` and `shrink-*` utilities, deprecate `flex-grow-*` and `flex-shrink-*` ([#5733](https://github.com/tailwindlabs/tailwindcss/pull/5733))
28
+ - Add `text-decoration-color` utilities ([#5760](https://github.com/tailwindlabs/tailwindcss/pull/5760))
29
+ - Add new declarative `addVariant` API ([#5809](https://github.com/tailwindlabs/tailwindcss/pull/5809))
30
+ - Add first-class `print` variant for targeting printed media ([#5885](https://github.com/tailwindlabs/tailwindcss/pull/5885))
31
+ - Add full color palette for `fill-*` and `stroke-*` utilities (#5933[](https://github.com/tailwindlabs/tailwindcss/pull/5933))
32
+ - Add composable API for colored box shadows ([#5979](https://github.com/tailwindlabs/tailwindcss/pull/5979))
33
+
34
+ ### Fixed
35
+
36
+ - Configure chokidar's `awaitWriteFinish` setting to avoid occasional stale builds on Windows ([#5774](https://github.com/tailwindlabs/tailwindcss/pull/5774))
37
+ - Fix CLI `--content` option ([#5775](https://github.com/tailwindlabs/tailwindcss/pull/5775))
38
+ - Fix before/after utilities overriding custom content values at larger breakpoints ([#5820](https://github.com/tailwindlabs/tailwindcss/pull/5820))
39
+ - Cleanup duplicate properties ([#5830](https://github.com/tailwindlabs/tailwindcss/pull/5830))
40
+ - Allow `_` inside `url()` when using arbitrary values ([#5853](https://github.com/tailwindlabs/tailwindcss/pull/5853))
41
+ - Prevent crashes when using comments in `@layer` AtRules ([#5854](https://github.com/tailwindlabs/tailwindcss/pull/5854))
42
+ - Handle color transformations properly with `theme(...)` for all relevant plugins ([#4533](https://github.com/tailwindlabs/tailwindcss/pull/4533), [#5871](https://github.com/tailwindlabs/tailwindcss/pull/5871))
43
+ - Ensure `@apply`-ing a utility with multiple definitions works ([#5870](https://github.com/tailwindlabs/tailwindcss/pull/5870))
44
+
45
+ ## [3.0.0-alpha.1] - 2021-10-01
46
+
10
47
  ### Changed
11
48
 
12
49
  - Remove AOT engine, make JIT the default ([#5340](https://github.com/tailwindlabs/tailwindcss/pull/5340))
13
50
  - Throw when trying to `@apply` the `group` class ([#4666](https://github.com/tailwindlabs/tailwindcss/pull/4666))
14
51
  - Remove dependency on `modern-normalize`, inline and consolidate with Preflight ([#5358](https://github.com/tailwindlabs/tailwindcss/pull/5358))
15
52
  - Enable extended color palette by default with updated color names ([#5384](https://github.com/tailwindlabs/tailwindcss/pull/5384))
53
+ - Move `vertical-align` values to config file instead of hard-coding ([#5487](https://github.com/tailwindlabs/tailwindcss/pull/5487))
54
+ - Rename `overflow-clip` to `text-clip` and `overflow-ellipsis` to `text-ellipsis` ([#5630](https://github.com/tailwindlabs/tailwindcss/pull/5630))
16
55
 
17
56
  ### Added
18
57
 
19
58
  - Add native `aspect-ratio` utilities ([#5359](https://github.com/tailwindlabs/tailwindcss/pull/5359))
20
59
  - Unify config callback helpers into single object ([#5382](https://github.com/tailwindlabs/tailwindcss/pull/5382))
21
60
  - Preserve original color format when adding opacity whenever possible ([#5154](https://github.com/tailwindlabs/tailwindcss/pull/5154))
22
- - Support `@apply` for classes defined outside of a `@layer` ([#5378](https://github.com/tailwindlabs/tailwindcss/pull/5378))
23
- - Add `accent-*` utilities for `accent-color` ([#5387](https://github.com/tailwindlabs/tailwindcss/pull/5387))
61
+ - Add `accent-color` utilities ([#5387](https://github.com/tailwindlabs/tailwindcss/pull/5387))
62
+ - Add `scroll-behavior` utilities ([#5388](https://github.com/tailwindlabs/tailwindcss/pull/5388))
24
63
  - Add `will-change` utilities ([#5448](https://github.com/tailwindlabs/tailwindcss/pull/5448))
25
64
  - Add `text-indent` utilities ([#5449](https://github.com/tailwindlabs/tailwindcss/pull/5449))
65
+ - Add `column` utilities ([#5457](https://github.com/tailwindlabs/tailwindcss/pull/5457))
66
+ - Add `border-hidden` utility ([#5485](https://github.com/tailwindlabs/tailwindcss/pull/5485))
67
+ - Add `align-sub` and `align-super` utilities by default ([#5486](https://github.com/tailwindlabs/tailwindcss/pull/5486))
68
+ - Add `break-before`, `break-inside` and `break-after` utilities ([#5530](https://github.com/tailwindlabs/tailwindcss/pull/5530))
69
+ - Add `file` variant for `::file-selector-button` pseudo element ([#4936](https://github.com/tailwindlabs/tailwindcss/pull/4936))
70
+ - Add comprehensive arbitrary value support ([#5568](https://github.com/tailwindlabs/tailwindcss/pull/5568))
71
+ - Add `touch-action` utilities ([#5603](https://github.com/tailwindlabs/tailwindcss/pull/5603))
72
+ - Add `inherit` to default color palette ([#5597](https://github.com/tailwindlabs/tailwindcss/pull/5597))
73
+ - Add `overflow-clip`, `overflow-x-clip` and `overflow-y-clip` utilities ([#5630](https://github.com/tailwindlabs/tailwindcss/pull/5630))
74
+ - Add `[open]` variant ([#5627](https://github.com/tailwindlabs/tailwindcss/pull/5627))
75
+ - Add `scroll-snap` utilities ([#5637](https://github.com/tailwindlabs/tailwindcss/pull/5637))
76
+ - Add `border-x` and `border-y` width and color utilities ([#5639](https://github.com/tailwindlabs/tailwindcss/pull/5639))
77
+
78
+ ### Fixed
79
+
80
+ - Fix defining colors as functions when color opacity plugins are disabled ([#5470](https://github.com/tailwindlabs/tailwindcss/pull/5470))
81
+ - Fix using negated `content` globs ([#5625](https://github.com/tailwindlabs/tailwindcss/pull/5625))
82
+ - Fix using backslashes in `content` globs ([#5628](https://github.com/tailwindlabs/tailwindcss/pull/5628))
83
+
84
+ ## [2.2.19] - 2021-10-29
85
+
86
+ ### Fixed
87
+
88
+ - Ensure `corePlugins` order is consisent in AOT mode ([#5928](https://github.com/tailwindlabs/tailwindcss/pull/5928))
89
+
90
+ ## [2.2.18] - 2021-10-29
91
+
92
+ ### Fixed
93
+
94
+ - Bump versions for security vulnerabilities ([#5924](https://github.com/tailwindlabs/tailwindcss/pull/5924))
95
+
96
+ ## [2.2.17] - 2021-10-13
97
+
98
+ ### Fixed
99
+
100
+ - Configure chokidar's `awaitWriteFinish` setting to avoid occasional stale builds on Windows ([#5758](https://github.com/tailwindlabs/tailwindcss/pull/5758))
101
+
102
+ ## [2.2.16] - 2021-09-26
103
+
104
+ ### Fixed
105
+
106
+ - JIT: Properly handle animations that use CSS custom properties ([#5602](https://github.com/tailwindlabs/tailwindcss/pull/5602))
107
+
108
+ ## [2.2.15] - 2021-09-10
109
+
110
+ ### Fixed
111
+
112
+ - Ensure using CLI without `-i` for input file continues to work even though deprecated ([#5464](https://github.com/tailwindlabs/tailwindcss/pull/5464))
113
+
114
+ ## [2.2.14] - 2021-09-08
115
+
116
+ ### Fixed
117
+
118
+ - Only use `@defaults` in JIT, switch back to `clean-css` in case there's any meaningful differences in the output ([bf248cb](https://github.com/tailwindlabs/tailwindcss/commit/bf248cb0de889d48854fbdd26536f4a492556efd))
119
+
120
+ ## [2.2.13] - 2021-09-08
121
+
122
+ ### Fixed
123
+
124
+ - Replace `clean-css` with `cssnano` for CDN builds to fix minified builds ([75cc3ca](https://github.com/tailwindlabs/tailwindcss/commit/75cc3ca305aedddc8a85f3df1a420fefad3fb5c4))
125
+
126
+ ## [2.2.12] - 2021-09-08
127
+
128
+ ### Fixed
129
+
130
+ - Ensure that divide utilities inject a default border color ([#5438](https://github.com/tailwindlabs/tailwindcss/pull/5438))
131
+
132
+ ## [2.2.11] - 2021-09-07
133
+
134
+ ### Fixed
135
+
136
+ - Rebundle to fix missing CLI peer dependencies
26
137
 
27
138
  ## [2.2.10] - 2021-09-06
28
139
 
@@ -47,13 +158,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
47
158
  ### Fixed
48
159
 
49
160
  - Improve accessibility of default link focus styles in Firefox ([#5082](https://github.com/tailwindlabs/tailwindcss/pull/5082))
50
- - JIT: Fix animation variants corrupting keyframes rules [#5223](https://github.com/tailwindlabs/tailwindcss/pull/5223)
51
- - JIT: Ignore escaped commas when splitting selectors to apply prefixes [#5239](https://github.com/tailwindlabs/tailwindcss/pull/5239/)
52
- - Nesting: Maintain PostCSS node sources when handling `@apply` [#5249](https://github.com/tailwindlabs/tailwindcss/pull/5249)
53
- - JIT: Fix support for animation lists [#5252](https://github.com/tailwindlabs/tailwindcss/pull/5252)
54
- - JIT: Fix arbitrary value support for `object-position` utilities [#5245](https://github.com/tailwindlabs/tailwindcss/pull/5245)
55
- - CLI: Abort watcher if stdin is closed to avoid zombie processes [#4997](https://github.com/tailwindlabs/tailwindcss/pull/4997)
56
- - JIT: Ignore arbitrary values with unbalanced brackets [#5293](https://github.com/tailwindlabs/tailwindcss/pull/5293)
161
+ - JIT: Fix animation variants corrupting keyframes rules ([#5223](https://github.com/tailwindlabs/tailwindcss/pull/5223))
162
+ - JIT: Ignore escaped commas when splitting selectors to apply prefixes ([#5239](https://github.com/tailwindlabs/tailwindcss/pull/5239/))
163
+ - Nesting: Maintain PostCSS node sources when handling `@apply` ([#5249](https://github.com/tailwindlabs/tailwindcss/pull/5249))
164
+ - JIT: Fix support for animation lists ([#5252](https://github.com/tailwindlabs/tailwindcss/pull/5252))
165
+ - JIT: Fix arbitrary value support for `object-position` utilities ([#5245](https://github.com/tailwindlabs/tailwindcss/pull/5245))
166
+ - CLI: Abort watcher if stdin is closed to avoid zombie processes ([#4997](https://github.com/tailwindlabs/tailwindcss/pull/4997))
167
+ - JIT: Ignore arbitrary values with unbalanced brackets ([#5293](https://github.com/tailwindlabs/tailwindcss/pull/5293))
57
168
 
58
169
  ## [2.2.7] - 2021-07-23
59
170
 
@@ -1546,7 +1657,18 @@ No release notes
1546
1657
 
1547
1658
  - Everything!
1548
1659
 
1549
- [unreleased]: https://github.com/tailwindlabs/tailwindcss/compare/v2.2.10...HEAD
1660
+ [unreleased]: https://github.com/tailwindlabs/tailwindcss/compare/v3.0.0-alpha.2...HEAD
1661
+ [3.0.0-alpha.2]: https://github.com/tailwindlabs/tailwindcss/compare/v3.0.0-alpha.1...v3.0.0-alpha.2
1662
+ [3.0.0-alpha.1]: https://github.com/tailwindlabs/tailwindcss/compare/v2.2.19...v3.0.0-alpha.1
1663
+ [2.2.19]: https://github.com/tailwindlabs/tailwindcss/compare/v2.2.18...v2.2.19
1664
+ [2.2.18]: https://github.com/tailwindlabs/tailwindcss/compare/v2.2.17...v2.2.18
1665
+ [2.2.17]: https://github.com/tailwindlabs/tailwindcss/compare/v2.2.16...v2.2.17
1666
+ [2.2.16]: https://github.com/tailwindlabs/tailwindcss/compare/v2.2.15...v2.2.16
1667
+ [2.2.15]: https://github.com/tailwindlabs/tailwindcss/compare/v2.2.14...v2.2.15
1668
+ [2.2.14]: https://github.com/tailwindlabs/tailwindcss/compare/v2.2.13...v2.2.14
1669
+ [2.2.13]: https://github.com/tailwindlabs/tailwindcss/compare/v2.2.12...v2.2.13
1670
+ [2.2.12]: https://github.com/tailwindlabs/tailwindcss/compare/v2.2.11...v2.2.12
1671
+ [2.2.11]: https://github.com/tailwindlabs/tailwindcss/compare/v2.2.10...v2.2.11
1550
1672
  [2.2.10]: https://github.com/tailwindlabs/tailwindcss/compare/v2.2.9...v2.2.10
1551
1673
  [2.2.9]: https://github.com/tailwindlabs/tailwindcss/compare/v2.2.8...v2.2.9
1552
1674
  [2.2.8]: https://github.com/tailwindlabs/tailwindcss/compare/v2.2.7...v2.2.8
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  <p>
2
2
  <a href="https://tailwindcss.com/" target="_blank">
3
- <img alt="Tailwind CSS" width="350" src="https://refactoringui.nyc3.cdn.digitaloceanspaces.com/tailwind-logo.svg">
3
+ <img alt="Tailwind CSS" width="350" src="https://refactoringui.nyc3.cdn.digitaloceanspaces.com/tailwind-logo-sticker.svg">
4
4
  </a><br>
5
5
  A utility-first CSS framework for rapidly building custom user interfaces.
6
6
  </p>
package/colors.js CHANGED
@@ -1,300 +1 @@
1
- let warned = []
2
-
3
- function warn({ version, from, to }) {
4
- if (!warned.includes(from)) {
5
- console.log(`warn - As of Tailwind CSS ${version}, \`${from}\` has been renamed to \`${to}\`.`)
6
- console.log('warn - Please update your color palette to eliminate this warning.')
7
- warned.push(from)
8
- }
9
- }
10
-
11
- module.exports = {
12
- transparent: 'transparent',
13
- current: 'currentColor',
14
- black: '#000',
15
- white: '#fff',
16
- slate: {
17
- 50: '#f8fafc',
18
- 100: '#f1f5f9',
19
- 200: '#e2e8f0',
20
- 300: '#cbd5e1',
21
- 400: '#94a3b8',
22
- 500: '#64748b',
23
- 600: '#475569',
24
- 700: '#334155',
25
- 800: '#1e293b',
26
- 900: '#0f172a',
27
- },
28
- gray: {
29
- 50: '#f9fafb',
30
- 100: '#f3f4f6',
31
- 200: '#e5e7eb',
32
- 300: '#d1d5db',
33
- 400: '#9ca3af',
34
- 500: '#6b7280',
35
- 600: '#4b5563',
36
- 700: '#374151',
37
- 800: '#1f2937',
38
- 900: '#111827',
39
- },
40
- zinc: {
41
- 50: '#fafafa',
42
- 100: '#f4f4f5',
43
- 200: '#e4e4e7',
44
- 300: '#d4d4d8',
45
- 400: '#a1a1aa',
46
- 500: '#71717a',
47
- 600: '#52525b',
48
- 700: '#3f3f46',
49
- 800: '#27272a',
50
- 900: '#18181b',
51
- },
52
- neutral: {
53
- 50: '#fafafa',
54
- 100: '#f5f5f5',
55
- 200: '#e5e5e5',
56
- 300: '#d4d4d4',
57
- 400: '#a3a3a3',
58
- 500: '#737373',
59
- 600: '#525252',
60
- 700: '#404040',
61
- 800: '#262626',
62
- 900: '#171717',
63
- },
64
- stone: {
65
- 50: '#fafaf9',
66
- 100: '#f5f5f4',
67
- 200: '#e7e5e4',
68
- 300: '#d6d3d1',
69
- 400: '#a8a29e',
70
- 500: '#78716c',
71
- 600: '#57534e',
72
- 700: '#44403c',
73
- 800: '#292524',
74
- 900: '#1c1917',
75
- },
76
- red: {
77
- 50: '#fef2f2',
78
- 100: '#fee2e2',
79
- 200: '#fecaca',
80
- 300: '#fca5a5',
81
- 400: '#f87171',
82
- 500: '#ef4444',
83
- 600: '#dc2626',
84
- 700: '#b91c1c',
85
- 800: '#991b1b',
86
- 900: '#7f1d1d',
87
- },
88
- orange: {
89
- 50: '#fff7ed',
90
- 100: '#ffedd5',
91
- 200: '#fed7aa',
92
- 300: '#fdba74',
93
- 400: '#fb923c',
94
- 500: '#f97316',
95
- 600: '#ea580c',
96
- 700: '#c2410c',
97
- 800: '#9a3412',
98
- 900: '#7c2d12',
99
- },
100
- amber: {
101
- 50: '#fffbeb',
102
- 100: '#fef3c7',
103
- 200: '#fde68a',
104
- 300: '#fcd34d',
105
- 400: '#fbbf24',
106
- 500: '#f59e0b',
107
- 600: '#d97706',
108
- 700: '#b45309',
109
- 800: '#92400e',
110
- 900: '#78350f',
111
- },
112
- yellow: {
113
- 50: '#fefce8',
114
- 100: '#fef9c3',
115
- 200: '#fef08a',
116
- 300: '#fde047',
117
- 400: '#facc15',
118
- 500: '#eab308',
119
- 600: '#ca8a04',
120
- 700: '#a16207',
121
- 800: '#854d0e',
122
- 900: '#713f12',
123
- },
124
- lime: {
125
- 50: '#f7fee7',
126
- 100: '#ecfccb',
127
- 200: '#d9f99d',
128
- 300: '#bef264',
129
- 400: '#a3e635',
130
- 500: '#84cc16',
131
- 600: '#65a30d',
132
- 700: '#4d7c0f',
133
- 800: '#3f6212',
134
- 900: '#365314',
135
- },
136
- green: {
137
- 50: '#f0fdf4',
138
- 100: '#dcfce7',
139
- 200: '#bbf7d0',
140
- 300: '#86efac',
141
- 400: '#4ade80',
142
- 500: '#22c55e',
143
- 600: '#16a34a',
144
- 700: '#15803d',
145
- 800: '#166534',
146
- 900: '#14532d',
147
- },
148
- emerald: {
149
- 50: '#ecfdf5',
150
- 100: '#d1fae5',
151
- 200: '#a7f3d0',
152
- 300: '#6ee7b7',
153
- 400: '#34d399',
154
- 500: '#10b981',
155
- 600: '#059669',
156
- 700: '#047857',
157
- 800: '#065f46',
158
- 900: '#064e3b',
159
- },
160
- teal: {
161
- 50: '#f0fdfa',
162
- 100: '#ccfbf1',
163
- 200: '#99f6e4',
164
- 300: '#5eead4',
165
- 400: '#2dd4bf',
166
- 500: '#14b8a6',
167
- 600: '#0d9488',
168
- 700: '#0f766e',
169
- 800: '#115e59',
170
- 900: '#134e4a',
171
- },
172
- cyan: {
173
- 50: '#ecfeff',
174
- 100: '#cffafe',
175
- 200: '#a5f3fc',
176
- 300: '#67e8f9',
177
- 400: '#22d3ee',
178
- 500: '#06b6d4',
179
- 600: '#0891b2',
180
- 700: '#0e7490',
181
- 800: '#155e75',
182
- 900: '#164e63',
183
- },
184
- sky: {
185
- 50: '#f0f9ff',
186
- 100: '#e0f2fe',
187
- 200: '#bae6fd',
188
- 300: '#7dd3fc',
189
- 400: '#38bdf8',
190
- 500: '#0ea5e9',
191
- 600: '#0284c7',
192
- 700: '#0369a1',
193
- 800: '#075985',
194
- 900: '#0c4a6e',
195
- },
196
- blue: {
197
- 50: '#eff6ff',
198
- 100: '#dbeafe',
199
- 200: '#bfdbfe',
200
- 300: '#93c5fd',
201
- 400: '#60a5fa',
202
- 500: '#3b82f6',
203
- 600: '#2563eb',
204
- 700: '#1d4ed8',
205
- 800: '#1e40af',
206
- 900: '#1e3a8a',
207
- },
208
- indigo: {
209
- 50: '#eef2ff',
210
- 100: '#e0e7ff',
211
- 200: '#c7d2fe',
212
- 300: '#a5b4fc',
213
- 400: '#818cf8',
214
- 500: '#6366f1',
215
- 600: '#4f46e5',
216
- 700: '#4338ca',
217
- 800: '#3730a3',
218
- 900: '#312e81',
219
- },
220
- violet: {
221
- 50: '#f5f3ff',
222
- 100: '#ede9fe',
223
- 200: '#ddd6fe',
224
- 300: '#c4b5fd',
225
- 400: '#a78bfa',
226
- 500: '#8b5cf6',
227
- 600: '#7c3aed',
228
- 700: '#6d28d9',
229
- 800: '#5b21b6',
230
- 900: '#4c1d95',
231
- },
232
- purple: {
233
- 50: '#faf5ff',
234
- 100: '#f3e8ff',
235
- 200: '#e9d5ff',
236
- 300: '#d8b4fe',
237
- 400: '#c084fc',
238
- 500: '#a855f7',
239
- 600: '#9333ea',
240
- 700: '#7e22ce',
241
- 800: '#6b21a8',
242
- 900: '#581c87',
243
- },
244
- fuchsia: {
245
- 50: '#fdf4ff',
246
- 100: '#fae8ff',
247
- 200: '#f5d0fe',
248
- 300: '#f0abfc',
249
- 400: '#e879f9',
250
- 500: '#d946ef',
251
- 600: '#c026d3',
252
- 700: '#a21caf',
253
- 800: '#86198f',
254
- 900: '#701a75',
255
- },
256
- pink: {
257
- 50: '#fdf2f8',
258
- 100: '#fce7f3',
259
- 200: '#fbcfe8',
260
- 300: '#f9a8d4',
261
- 400: '#f472b6',
262
- 500: '#ec4899',
263
- 600: '#db2777',
264
- 700: '#be185d',
265
- 800: '#9d174d',
266
- 900: '#831843',
267
- },
268
- rose: {
269
- 50: '#fff1f2',
270
- 100: '#ffe4e6',
271
- 200: '#fecdd3',
272
- 300: '#fda4af',
273
- 400: '#fb7185',
274
- 500: '#f43f5e',
275
- 600: '#e11d48',
276
- 700: '#be123c',
277
- 800: '#9f1239',
278
- 900: '#881337',
279
- },
280
- get lightBlue() {
281
- warn({ version: 'v2.2', from: 'lightBlue', to: 'sky' })
282
- return this.sky
283
- },
284
- get warmGray() {
285
- warn({ version: 'v3.0', from: 'warmGray', to: 'stone' })
286
- return this.stone
287
- },
288
- get trueGray() {
289
- warn({ version: 'v3.0', from: 'trueGray', to: 'neutral' })
290
- return this.neutral
291
- },
292
- get coolGray() {
293
- warn({ version: 'v3.0', from: 'coolGray', to: 'gray' })
294
- return this.gray
295
- },
296
- get blueGray() {
297
- warn({ version: 'v3.0', from: 'blueGray', to: 'slate' })
298
- return this.slate
299
- },
300
- }
1
+ module.exports = require('./lib/public/colors').default
package/defaultConfig.js CHANGED
@@ -1,4 +1 @@
1
- let { cloneDeep } = require('./src/util/cloneDeep')
2
- let defaultConfig = require('./stubs/defaultConfig.stub.js')
3
-
4
- module.exports = cloneDeep(defaultConfig)
1
+ module.exports = require('./lib/public/default-config').default
package/defaultTheme.js CHANGED
@@ -1,4 +1 @@
1
- let { cloneDeep } = require('./src/util/cloneDeep')
2
- let defaultConfig = require('./stubs/defaultConfig.stub.js')
3
-
4
- module.exports = cloneDeep(defaultConfig.theme)
1
+ module.exports = require('./lib/public/default-theme').default
@@ -1,20 +1,15 @@
1
1
  "use strict";
2
-
3
2
  Object.defineProperty(exports, "__esModule", {
4
- value: true
3
+ value: true
5
4
  });
6
5
  exports.lazyAutoprefixer = lazyAutoprefixer;
7
6
  exports.lazyCssnano = lazyCssnano;
8
7
  exports.postcss = void 0;
9
-
10
8
  let postcss = require('postcss');
11
-
12
9
  exports.postcss = postcss;
13
-
14
10
  function lazyAutoprefixer() {
15
- return require('autoprefixer');
11
+ return require('autoprefixer');
16
12
  }
17
-
18
13
  function lazyCssnano() {
19
- return require('cssnano');
20
- }
14
+ return require('cssnano');
15
+ }