tailwindcss 0.0.0-insiders.f4635e0 → 0.0.0-insiders.f58a43f

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 (222) hide show
  1. package/LICENSE +1 -2
  2. package/README.md +15 -7
  3. package/colors.d.ts +3 -0
  4. package/colors.js +2 -304
  5. package/defaultConfig.d.ts +3 -0
  6. package/defaultConfig.js +2 -4
  7. package/defaultTheme.d.ts +4 -0
  8. package/defaultTheme.js +2 -4
  9. package/lib/cli/build/deps.js +54 -0
  10. package/lib/cli/build/index.js +48 -0
  11. package/lib/cli/build/plugin.js +367 -0
  12. package/lib/cli/build/utils.js +78 -0
  13. package/lib/cli/build/watching.js +178 -0
  14. package/lib/cli/help/index.js +71 -0
  15. package/lib/cli/index.js +239 -0
  16. package/lib/cli/init/index.js +46 -0
  17. package/lib/cli-peer-dependencies.js +22 -14
  18. package/lib/cli.js +4 -762
  19. package/lib/constants.js +41 -34
  20. package/lib/corePluginList.js +179 -5
  21. package/lib/corePlugins.js +4072 -2956
  22. package/lib/css/preflight.css +22 -9
  23. package/lib/featureFlags.js +61 -50
  24. package/lib/index.js +5 -30
  25. package/lib/lib/cacheInvalidation.js +90 -0
  26. package/lib/lib/collapseAdjacentRules.js +52 -36
  27. package/lib/lib/collapseDuplicateDeclarations.js +83 -0
  28. package/lib/lib/content.js +177 -0
  29. package/lib/lib/defaultExtractor.js +241 -0
  30. package/lib/lib/detectNesting.js +39 -17
  31. package/lib/lib/evaluateTailwindFunctions.js +203 -161
  32. package/lib/lib/expandApplyAtRules.js +502 -221
  33. package/lib/lib/expandTailwindAtRules.js +256 -243
  34. package/lib/lib/findAtConfigPath.js +44 -0
  35. package/lib/lib/generateRules.js +827 -317
  36. package/lib/lib/getModuleDependencies.js +44 -46
  37. package/lib/lib/normalizeTailwindDirectives.js +79 -60
  38. package/lib/lib/offsets.js +304 -0
  39. package/lib/lib/partitionApplyAtRules.js +56 -0
  40. package/lib/lib/regex.js +60 -0
  41. package/lib/lib/remap-bitfield.js +87 -0
  42. package/lib/lib/resolveDefaultsAtRules.js +150 -94
  43. package/lib/lib/setupContextUtils.js +1189 -685
  44. package/lib/lib/setupTrackingContext.js +150 -177
  45. package/lib/lib/sharedState.js +70 -21
  46. package/lib/lib/substituteScreenAtRules.js +26 -28
  47. package/lib/oxide/cli/build/deps.js +81 -0
  48. package/lib/oxide/cli/build/index.js +47 -0
  49. package/lib/oxide/cli/build/plugin.js +364 -0
  50. package/lib/oxide/cli/build/utils.js +77 -0
  51. package/lib/oxide/cli/build/watching.js +177 -0
  52. package/lib/oxide/cli/help/index.js +70 -0
  53. package/lib/oxide/cli/index.js +220 -0
  54. package/lib/oxide/cli/init/index.js +35 -0
  55. package/lib/oxide/cli.js +5 -0
  56. package/lib/oxide/postcss-plugin.js +2 -0
  57. package/lib/plugin.js +98 -0
  58. package/{nesting → lib/postcss-plugins/nesting}/README.md +2 -2
  59. package/lib/postcss-plugins/nesting/index.js +19 -0
  60. package/lib/postcss-plugins/nesting/plugin.js +87 -0
  61. package/lib/processTailwindFeatures.js +58 -56
  62. package/lib/public/colors.js +331 -0
  63. package/lib/public/create-plugin.js +15 -0
  64. package/lib/public/default-config.js +16 -0
  65. package/lib/public/default-theme.js +16 -0
  66. package/lib/public/resolve-config.js +22 -0
  67. package/lib/util/bigSign.js +7 -6
  68. package/lib/util/buildMediaQuery.js +21 -32
  69. package/lib/util/cloneDeep.js +16 -14
  70. package/lib/util/cloneNodes.js +29 -15
  71. package/lib/util/color.js +104 -66
  72. package/lib/util/configurePlugins.js +17 -15
  73. package/lib/util/createPlugin.js +23 -26
  74. package/lib/util/createUtilityPlugin.js +46 -46
  75. package/lib/util/dataTypes.js +266 -0
  76. package/lib/util/defaults.js +20 -15
  77. package/lib/util/escapeClassName.js +18 -17
  78. package/lib/util/escapeCommas.js +7 -6
  79. package/lib/util/flattenColorPalette.js +13 -12
  80. package/lib/util/formatVariantSelector.js +351 -0
  81. package/lib/util/getAllConfigs.js +44 -18
  82. package/lib/util/hashConfig.js +15 -12
  83. package/lib/util/isKeyframeRule.js +7 -6
  84. package/lib/util/isPlainObject.js +11 -11
  85. package/lib/util/isSyntacticallyValidPropertyValue.js +72 -0
  86. package/lib/util/log.js +52 -33
  87. package/lib/util/nameClass.js +35 -29
  88. package/lib/util/negateValue.js +31 -17
  89. package/lib/util/normalizeConfig.js +281 -0
  90. package/lib/util/normalizeScreens.js +170 -0
  91. package/lib/util/parseAnimationValue.js +85 -54
  92. package/lib/util/parseBoxShadowValue.js +84 -0
  93. package/lib/util/parseDependency.js +41 -70
  94. package/lib/util/parseGlob.js +34 -0
  95. package/lib/util/parseObjectStyles.js +30 -24
  96. package/lib/util/pluginUtils.js +252 -287
  97. package/lib/util/prefixSelector.js +33 -19
  98. package/lib/util/removeAlphaVariables.js +29 -0
  99. package/lib/util/resolveConfig.js +221 -256
  100. package/lib/util/resolveConfigPath.js +43 -48
  101. package/lib/util/responsive.js +18 -14
  102. package/lib/util/splitAtTopLevelOnly.js +43 -0
  103. package/lib/util/tap.js +8 -7
  104. package/lib/util/toColorValue.js +7 -6
  105. package/lib/util/toPath.js +27 -8
  106. package/lib/util/transformThemeValue.js +67 -28
  107. package/lib/util/validateConfig.js +24 -0
  108. package/lib/util/validateFormalSyntax.js +24 -0
  109. package/lib/util/withAlphaVariable.js +67 -57
  110. package/nesting/index.js +2 -12
  111. package/oxide-node-api-shim/index.js +21 -0
  112. package/oxide-node-api-shim/package.json +5 -0
  113. package/package.json +69 -65
  114. package/peers/index.js +76328 -84169
  115. package/plugin.d.ts +11 -0
  116. package/plugin.js +1 -2
  117. package/resolveConfig.d.ts +12 -0
  118. package/resolveConfig.js +2 -7
  119. package/scripts/create-plugin-list.js +2 -2
  120. package/scripts/generate-types.js +105 -0
  121. package/scripts/release-channel.js +18 -0
  122. package/scripts/release-notes.js +21 -0
  123. package/scripts/swap-engines.js +40 -0
  124. package/scripts/type-utils.js +27 -0
  125. package/src/cli/build/deps.js +56 -0
  126. package/src/cli/build/index.js +49 -0
  127. package/src/cli/build/plugin.js +439 -0
  128. package/src/cli/build/utils.js +76 -0
  129. package/src/cli/build/watching.js +227 -0
  130. package/src/cli/help/index.js +70 -0
  131. package/src/cli/index.js +234 -0
  132. package/src/cli/init/index.js +50 -0
  133. package/src/cli-peer-dependencies.js +7 -1
  134. package/src/cli.js +4 -756
  135. package/src/corePluginList.js +1 -1
  136. package/src/corePlugins.js +2503 -1956
  137. package/src/css/preflight.css +22 -9
  138. package/src/featureFlags.js +26 -10
  139. package/src/index.js +4 -33
  140. package/src/lib/cacheInvalidation.js +52 -0
  141. package/src/lib/collapseAdjacentRules.js +21 -2
  142. package/src/lib/collapseDuplicateDeclarations.js +93 -0
  143. package/src/lib/content.js +208 -0
  144. package/src/lib/defaultExtractor.js +217 -0
  145. package/src/lib/detectNesting.js +30 -3
  146. package/src/lib/evaluateTailwindFunctions.js +84 -10
  147. package/src/lib/expandApplyAtRules.js +508 -153
  148. package/src/lib/expandTailwindAtRules.js +127 -104
  149. package/src/lib/findAtConfigPath.js +48 -0
  150. package/src/lib/generateRules.js +658 -70
  151. package/src/lib/normalizeTailwindDirectives.js +10 -3
  152. package/src/lib/offsets.js +373 -0
  153. package/src/lib/partitionApplyAtRules.js +52 -0
  154. package/src/lib/regex.js +74 -0
  155. package/src/lib/remap-bitfield.js +82 -0
  156. package/src/lib/resolveDefaultsAtRules.js +105 -47
  157. package/src/lib/setupContextUtils.js +841 -247
  158. package/src/lib/setupTrackingContext.js +50 -61
  159. package/src/lib/sharedState.js +60 -6
  160. package/src/lib/substituteScreenAtRules.js +6 -3
  161. package/src/oxide/cli/build/deps.ts +91 -0
  162. package/src/oxide/cli/build/index.ts +47 -0
  163. package/src/oxide/cli/build/plugin.ts +436 -0
  164. package/src/oxide/cli/build/utils.ts +74 -0
  165. package/src/oxide/cli/build/watching.ts +225 -0
  166. package/src/oxide/cli/help/index.ts +69 -0
  167. package/src/oxide/cli/index.ts +212 -0
  168. package/src/oxide/cli/init/index.ts +32 -0
  169. package/src/oxide/cli.ts +1 -0
  170. package/src/oxide/postcss-plugin.ts +1 -0
  171. package/src/plugin.js +107 -0
  172. package/src/postcss-plugins/nesting/README.md +42 -0
  173. package/src/postcss-plugins/nesting/index.js +13 -0
  174. package/src/postcss-plugins/nesting/plugin.js +80 -0
  175. package/src/processTailwindFeatures.js +18 -3
  176. package/src/public/colors.js +300 -0
  177. package/src/public/create-plugin.js +2 -0
  178. package/src/public/default-config.js +4 -0
  179. package/src/public/default-theme.js +4 -0
  180. package/src/public/resolve-config.js +7 -0
  181. package/src/util/buildMediaQuery.js +14 -16
  182. package/src/util/cloneNodes.js +19 -2
  183. package/src/util/color.js +43 -11
  184. package/src/util/createUtilityPlugin.js +2 -11
  185. package/src/util/dataTypes.js +281 -0
  186. package/src/util/defaults.js +6 -0
  187. package/src/util/formatVariantSelector.js +412 -0
  188. package/src/util/getAllConfigs.js +19 -0
  189. package/src/util/isSyntacticallyValidPropertyValue.js +61 -0
  190. package/src/util/log.js +23 -22
  191. package/src/util/nameClass.js +6 -2
  192. package/src/util/negateValue.js +15 -5
  193. package/src/util/normalizeConfig.js +300 -0
  194. package/src/util/normalizeScreens.js +140 -0
  195. package/src/util/parseAnimationValue.js +7 -1
  196. package/src/util/parseBoxShadowValue.js +72 -0
  197. package/src/util/parseDependency.js +37 -38
  198. package/src/util/parseGlob.js +24 -0
  199. package/src/util/pluginUtils.js +216 -197
  200. package/src/util/prefixSelector.js +30 -13
  201. package/src/util/removeAlphaVariables.js +24 -0
  202. package/src/util/resolveConfig.js +86 -91
  203. package/src/util/splitAtTopLevelOnly.js +45 -0
  204. package/src/util/toPath.js +23 -1
  205. package/src/util/transformThemeValue.js +33 -8
  206. package/src/util/validateConfig.js +13 -0
  207. package/src/util/validateFormalSyntax.js +34 -0
  208. package/src/util/withAlphaVariable.js +14 -9
  209. package/stubs/defaultConfig.stub.js +322 -249
  210. package/stubs/simpleConfig.stub.js +1 -1
  211. package/types/config.d.ts +367 -0
  212. package/types/generated/.gitkeep +0 -0
  213. package/types/generated/colors.d.ts +276 -0
  214. package/types/generated/corePluginList.d.ts +1 -0
  215. package/types/generated/default-theme.d.ts +345 -0
  216. package/types/index.d.ts +7 -0
  217. package/CHANGELOG.md +0 -1742
  218. package/lib/lib/setupWatchingContext.js +0 -331
  219. package/nesting/plugin.js +0 -41
  220. package/scripts/install-integrations.js +0 -27
  221. package/scripts/rebuildFixtures.js +0 -68
  222. package/src/lib/setupWatchingContext.js +0 -307
package/LICENSE CHANGED
@@ -1,7 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) Adam Wathan <adam.wathan@gmail.com>
4
- Copyright (c) Jonathan Reinink <jonathan@reinink.ca>
3
+ Copyright (c) Tailwind Labs, Inc.
5
4
 
6
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
7
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -1,12 +1,20 @@
1
- <p>
2
- <a href="https://tailwindcss.com/" target="_blank">
3
- <img alt="Tailwind CSS" width="350" src="https://refactoringui.nyc3.cdn.digitaloceanspaces.com/tailwind-logo-sticker.svg">
4
- </a><br>
5
- A utility-first CSS framework for rapidly building custom user interfaces.
1
+ <p align="center">
2
+ <a href="https://tailwindcss.com" target="_blank">
3
+ <picture>
4
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/tailwindlabs/tailwindcss/HEAD/.github/logo-dark.svg">
5
+ <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/tailwindlabs/tailwindcss/HEAD/.github/logo-light.svg">
6
+ <img alt="Tailwind CSS" src="https://raw.githubusercontent.com/tailwindlabs/tailwindcss/HEAD/.github/logo-light.svg" width="350" height="70" style="max-width: 100%;">
7
+ </picture>
8
+ </a>
6
9
  </p>
7
10
 
8
- <p>
9
- <a href="https://github.com/tailwindlabs/tailwindcss/actions"><img src="https://img.shields.io/github/workflow/status/tailwindlabs/tailwindcss/Node.js%20CI" alt="Build Status"></a>
11
+ <p align="center">
12
+ A utility-first CSS framework for rapidly building custom user interfaces.
13
+ </p>
14
+
15
+
16
+ <p align="center">
17
+ <a href="https://github.com/tailwindlabs/tailwindcss/actions"><img src="https://img.shields.io/github/actions/workflow/status/tailwindlabs/tailwindcss/ci-stable.yml?branch=master" alt="Build Status"></a>
10
18
  <a href="https://www.npmjs.com/package/tailwindcss"><img src="https://img.shields.io/npm/dt/tailwindcss.svg" alt="Total Downloads"></a>
11
19
  <a href="https://github.com/tailwindcss/tailwindcss/releases"><img src="https://img.shields.io/npm/v/tailwindcss.svg" alt="Latest Release"></a>
12
20
  <a href="https://github.com/tailwindcss/tailwindcss/blob/master/LICENSE"><img src="https://img.shields.io/npm/l/tailwindcss.svg" alt="License"></a>
package/colors.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ import type { DefaultColors } from './types/generated/colors'
2
+ declare const colors: DefaultColors
3
+ export = colors
package/colors.js CHANGED
@@ -1,304 +1,2 @@
1
- const log = require('./lib/util/log').default
2
-
3
- let warned = []
4
-
5
- function warn({ version, from, to }) {
6
- if (!warned.includes(from)) {
7
- log.warn([
8
- `As of Tailwind CSS ${version}, \`${from}\` has been renamed to \`${to}\`.`,
9
- 'Please update your color palette to eliminate this warning.',
10
- ])
11
- warned.push(from)
12
- }
13
- }
14
-
15
- module.exports = {
16
- transparent: 'transparent',
17
- current: 'currentColor',
18
- black: '#000',
19
- white: '#fff',
20
- slate: {
21
- 50: '#f8fafc',
22
- 100: '#f1f5f9',
23
- 200: '#e2e8f0',
24
- 300: '#cbd5e1',
25
- 400: '#94a3b8',
26
- 500: '#64748b',
27
- 600: '#475569',
28
- 700: '#334155',
29
- 800: '#1e293b',
30
- 900: '#0f172a',
31
- },
32
- gray: {
33
- 50: '#f9fafb',
34
- 100: '#f3f4f6',
35
- 200: '#e5e7eb',
36
- 300: '#d1d5db',
37
- 400: '#9ca3af',
38
- 500: '#6b7280',
39
- 600: '#4b5563',
40
- 700: '#374151',
41
- 800: '#1f2937',
42
- 900: '#111827',
43
- },
44
- zinc: {
45
- 50: '#fafafa',
46
- 100: '#f4f4f5',
47
- 200: '#e4e4e7',
48
- 300: '#d4d4d8',
49
- 400: '#a1a1aa',
50
- 500: '#71717a',
51
- 600: '#52525b',
52
- 700: '#3f3f46',
53
- 800: '#27272a',
54
- 900: '#18181b',
55
- },
56
- neutral: {
57
- 50: '#fafafa',
58
- 100: '#f5f5f5',
59
- 200: '#e5e5e5',
60
- 300: '#d4d4d4',
61
- 400: '#a3a3a3',
62
- 500: '#737373',
63
- 600: '#525252',
64
- 700: '#404040',
65
- 800: '#262626',
66
- 900: '#171717',
67
- },
68
- stone: {
69
- 50: '#fafaf9',
70
- 100: '#f5f5f4',
71
- 200: '#e7e5e4',
72
- 300: '#d6d3d1',
73
- 400: '#a8a29e',
74
- 500: '#78716c',
75
- 600: '#57534e',
76
- 700: '#44403c',
77
- 800: '#292524',
78
- 900: '#1c1917',
79
- },
80
- red: {
81
- 50: '#fef2f2',
82
- 100: '#fee2e2',
83
- 200: '#fecaca',
84
- 300: '#fca5a5',
85
- 400: '#f87171',
86
- 500: '#ef4444',
87
- 600: '#dc2626',
88
- 700: '#b91c1c',
89
- 800: '#991b1b',
90
- 900: '#7f1d1d',
91
- },
92
- orange: {
93
- 50: '#fff7ed',
94
- 100: '#ffedd5',
95
- 200: '#fed7aa',
96
- 300: '#fdba74',
97
- 400: '#fb923c',
98
- 500: '#f97316',
99
- 600: '#ea580c',
100
- 700: '#c2410c',
101
- 800: '#9a3412',
102
- 900: '#7c2d12',
103
- },
104
- amber: {
105
- 50: '#fffbeb',
106
- 100: '#fef3c7',
107
- 200: '#fde68a',
108
- 300: '#fcd34d',
109
- 400: '#fbbf24',
110
- 500: '#f59e0b',
111
- 600: '#d97706',
112
- 700: '#b45309',
113
- 800: '#92400e',
114
- 900: '#78350f',
115
- },
116
- yellow: {
117
- 50: '#fefce8',
118
- 100: '#fef9c3',
119
- 200: '#fef08a',
120
- 300: '#fde047',
121
- 400: '#facc15',
122
- 500: '#eab308',
123
- 600: '#ca8a04',
124
- 700: '#a16207',
125
- 800: '#854d0e',
126
- 900: '#713f12',
127
- },
128
- lime: {
129
- 50: '#f7fee7',
130
- 100: '#ecfccb',
131
- 200: '#d9f99d',
132
- 300: '#bef264',
133
- 400: '#a3e635',
134
- 500: '#84cc16',
135
- 600: '#65a30d',
136
- 700: '#4d7c0f',
137
- 800: '#3f6212',
138
- 900: '#365314',
139
- },
140
- green: {
141
- 50: '#f0fdf4',
142
- 100: '#dcfce7',
143
- 200: '#bbf7d0',
144
- 300: '#86efac',
145
- 400: '#4ade80',
146
- 500: '#22c55e',
147
- 600: '#16a34a',
148
- 700: '#15803d',
149
- 800: '#166534',
150
- 900: '#14532d',
151
- },
152
- emerald: {
153
- 50: '#ecfdf5',
154
- 100: '#d1fae5',
155
- 200: '#a7f3d0',
156
- 300: '#6ee7b7',
157
- 400: '#34d399',
158
- 500: '#10b981',
159
- 600: '#059669',
160
- 700: '#047857',
161
- 800: '#065f46',
162
- 900: '#064e3b',
163
- },
164
- teal: {
165
- 50: '#f0fdfa',
166
- 100: '#ccfbf1',
167
- 200: '#99f6e4',
168
- 300: '#5eead4',
169
- 400: '#2dd4bf',
170
- 500: '#14b8a6',
171
- 600: '#0d9488',
172
- 700: '#0f766e',
173
- 800: '#115e59',
174
- 900: '#134e4a',
175
- },
176
- cyan: {
177
- 50: '#ecfeff',
178
- 100: '#cffafe',
179
- 200: '#a5f3fc',
180
- 300: '#67e8f9',
181
- 400: '#22d3ee',
182
- 500: '#06b6d4',
183
- 600: '#0891b2',
184
- 700: '#0e7490',
185
- 800: '#155e75',
186
- 900: '#164e63',
187
- },
188
- sky: {
189
- 50: '#f0f9ff',
190
- 100: '#e0f2fe',
191
- 200: '#bae6fd',
192
- 300: '#7dd3fc',
193
- 400: '#38bdf8',
194
- 500: '#0ea5e9',
195
- 600: '#0284c7',
196
- 700: '#0369a1',
197
- 800: '#075985',
198
- 900: '#0c4a6e',
199
- },
200
- blue: {
201
- 50: '#eff6ff',
202
- 100: '#dbeafe',
203
- 200: '#bfdbfe',
204
- 300: '#93c5fd',
205
- 400: '#60a5fa',
206
- 500: '#3b82f6',
207
- 600: '#2563eb',
208
- 700: '#1d4ed8',
209
- 800: '#1e40af',
210
- 900: '#1e3a8a',
211
- },
212
- indigo: {
213
- 50: '#eef2ff',
214
- 100: '#e0e7ff',
215
- 200: '#c7d2fe',
216
- 300: '#a5b4fc',
217
- 400: '#818cf8',
218
- 500: '#6366f1',
219
- 600: '#4f46e5',
220
- 700: '#4338ca',
221
- 800: '#3730a3',
222
- 900: '#312e81',
223
- },
224
- violet: {
225
- 50: '#f5f3ff',
226
- 100: '#ede9fe',
227
- 200: '#ddd6fe',
228
- 300: '#c4b5fd',
229
- 400: '#a78bfa',
230
- 500: '#8b5cf6',
231
- 600: '#7c3aed',
232
- 700: '#6d28d9',
233
- 800: '#5b21b6',
234
- 900: '#4c1d95',
235
- },
236
- purple: {
237
- 50: '#faf5ff',
238
- 100: '#f3e8ff',
239
- 200: '#e9d5ff',
240
- 300: '#d8b4fe',
241
- 400: '#c084fc',
242
- 500: '#a855f7',
243
- 600: '#9333ea',
244
- 700: '#7e22ce',
245
- 800: '#6b21a8',
246
- 900: '#581c87',
247
- },
248
- fuchsia: {
249
- 50: '#fdf4ff',
250
- 100: '#fae8ff',
251
- 200: '#f5d0fe',
252
- 300: '#f0abfc',
253
- 400: '#e879f9',
254
- 500: '#d946ef',
255
- 600: '#c026d3',
256
- 700: '#a21caf',
257
- 800: '#86198f',
258
- 900: '#701a75',
259
- },
260
- pink: {
261
- 50: '#fdf2f8',
262
- 100: '#fce7f3',
263
- 200: '#fbcfe8',
264
- 300: '#f9a8d4',
265
- 400: '#f472b6',
266
- 500: '#ec4899',
267
- 600: '#db2777',
268
- 700: '#be185d',
269
- 800: '#9d174d',
270
- 900: '#831843',
271
- },
272
- rose: {
273
- 50: '#fff1f2',
274
- 100: '#ffe4e6',
275
- 200: '#fecdd3',
276
- 300: '#fda4af',
277
- 400: '#fb7185',
278
- 500: '#f43f5e',
279
- 600: '#e11d48',
280
- 700: '#be123c',
281
- 800: '#9f1239',
282
- 900: '#881337',
283
- },
284
- get lightBlue() {
285
- warn({ version: 'v2.2', from: 'lightBlue', to: 'sky' })
286
- return this.sky
287
- },
288
- get warmGray() {
289
- warn({ version: 'v3.0', from: 'warmGray', to: 'stone' })
290
- return this.stone
291
- },
292
- get trueGray() {
293
- warn({ version: 'v3.0', from: 'trueGray', to: 'neutral' })
294
- return this.neutral
295
- },
296
- get coolGray() {
297
- warn({ version: 'v3.0', from: 'coolGray', to: 'gray' })
298
- return this.gray
299
- },
300
- get blueGray() {
301
- warn({ version: 'v3.0', from: 'blueGray', to: 'slate' })
302
- return this.slate
303
- },
304
- }
1
+ let colors = require('./lib/public/colors')
2
+ module.exports = (colors.__esModule ? colors : { default: colors }).default
@@ -0,0 +1,3 @@
1
+ import type { Config } from './types/config'
2
+ declare const config: Config
3
+ export = config
package/defaultConfig.js CHANGED
@@ -1,4 +1,2 @@
1
- let { cloneDeep } = require('./src/util/cloneDeep')
2
- let defaultConfig = require('./stubs/defaultConfig.stub.js')
3
-
4
- module.exports = cloneDeep(defaultConfig)
1
+ let defaultConfig = require('./lib/public/default-config')
2
+ module.exports = (defaultConfig.__esModule ? defaultConfig : { default: defaultConfig }).default
@@ -0,0 +1,4 @@
1
+ import type { Config } from './types/config'
2
+ import { DefaultTheme } from './types/generated/default-theme'
3
+ declare const theme: Config['theme'] & DefaultTheme
4
+ export = theme
package/defaultTheme.js CHANGED
@@ -1,4 +1,2 @@
1
- let { cloneDeep } = require('./src/util/cloneDeep')
2
- let defaultConfig = require('./stubs/defaultConfig.stub.js')
3
-
4
- module.exports = cloneDeep(defaultConfig.theme)
1
+ let defaultTheme = require('./lib/public/default-theme')
2
+ module.exports = (defaultTheme.__esModule ? defaultTheme : { default: defaultTheme }).default
@@ -0,0 +1,54 @@
1
+ // @ts-check
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ function _export(target, all) {
7
+ for(var name in all)Object.defineProperty(target, name, {
8
+ enumerable: true,
9
+ get: all[name]
10
+ });
11
+ }
12
+ _export(exports, {
13
+ loadPostcss: ()=>loadPostcss,
14
+ loadPostcssImport: ()=>loadPostcssImport,
15
+ loadCssNano: ()=>loadCssNano,
16
+ loadAutoprefixer: ()=>loadAutoprefixer
17
+ });
18
+ const _indexJs = require("../../../peers/index.js");
19
+ function loadPostcss() {
20
+ // Try to load a local `postcss` version first
21
+ try {
22
+ return require("postcss");
23
+ } catch {}
24
+ return (0, _indexJs.lazyPostcss)();
25
+ }
26
+ function loadPostcssImport() {
27
+ // Try to load a local `postcss-import` version first
28
+ try {
29
+ return require("postcss-import");
30
+ } catch {}
31
+ return (0, _indexJs.lazyPostcssImport)();
32
+ }
33
+ function loadCssNano() {
34
+ let options = {
35
+ preset: [
36
+ "default",
37
+ {
38
+ cssDeclarationSorter: false
39
+ }
40
+ ]
41
+ };
42
+ // Try to load a local `cssnano` version first
43
+ try {
44
+ return require("cssnano");
45
+ } catch {}
46
+ return (0, _indexJs.lazyCssnano)()(options);
47
+ }
48
+ function loadAutoprefixer() {
49
+ // Try to load a local `autoprefixer` version first
50
+ try {
51
+ return require("autoprefixer");
52
+ } catch {}
53
+ return (0, _indexJs.lazyAutoprefixer)();
54
+ }
@@ -0,0 +1,48 @@
1
+ // @ts-check
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "build", {
7
+ enumerable: true,
8
+ get: ()=>build
9
+ });
10
+ const _fs = /*#__PURE__*/ _interopRequireDefault(require("fs"));
11
+ const _path = /*#__PURE__*/ _interopRequireDefault(require("path"));
12
+ const _pluginJs = require("./plugin.js");
13
+ function _interopRequireDefault(obj) {
14
+ return obj && obj.__esModule ? obj : {
15
+ default: obj
16
+ };
17
+ }
18
+ async function build(args, configs) {
19
+ let input = args["--input"];
20
+ let shouldWatch = args["--watch"];
21
+ // TODO: Deprecate this in future versions
22
+ if (!input && args["_"][1]) {
23
+ console.error("[deprecation] Running tailwindcss without -i, please provide an input file.");
24
+ input = args["--input"] = args["_"][1];
25
+ }
26
+ if (input && input !== "-" && !_fs.default.existsSync(input = _path.default.resolve(input))) {
27
+ console.error(`Specified input file ${args["--input"]} does not exist.`);
28
+ process.exit(9);
29
+ }
30
+ if (args["--config"] && !_fs.default.existsSync(args["--config"] = _path.default.resolve(args["--config"]))) {
31
+ console.error(`Specified config file ${args["--config"]} does not exist.`);
32
+ process.exit(9);
33
+ }
34
+ // TODO: Reference the @config path here if exists
35
+ let configPath = args["--config"] ? args["--config"] : ((defaultPath)=>_fs.default.existsSync(defaultPath) ? defaultPath : null)(_path.default.resolve(`./${configs.tailwind}`));
36
+ let processor = await (0, _pluginJs.createProcessor)(args, configPath);
37
+ if (shouldWatch) {
38
+ // Abort the watcher if stdin is closed to avoid zombie processes
39
+ // You can disable this behavior with --watch=always
40
+ if (args["--watch"] !== "always") {
41
+ process.stdin.on("end", ()=>process.exit(0));
42
+ }
43
+ process.stdin.resume();
44
+ await processor.watch();
45
+ } else {
46
+ await processor.build();
47
+ }
48
+ }