tailwindcss 0.0.0-insiders.b0cf6ed → 0.0.0-insiders.b10b431

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 (239) hide show
  1. package/LICENSE +1 -2
  2. package/README.md +15 -8
  3. package/colors.d.ts +3 -0
  4. package/colors.js +2 -300
  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 +62 -0
  10. package/lib/cli/build/index.js +54 -0
  11. package/lib/cli/build/plugin.js +371 -0
  12. package/lib/cli/build/utils.js +88 -0
  13. package/lib/cli/build/watching.js +182 -0
  14. package/lib/cli/help/index.js +73 -0
  15. package/lib/cli/index.js +230 -0
  16. package/lib/cli/init/index.js +63 -0
  17. package/lib/cli-peer-dependencies.js +30 -14
  18. package/lib/cli.js +1 -763
  19. package/lib/corePluginList.js +188 -5
  20. package/lib/corePlugins.js +4284 -2917
  21. package/lib/css/preflight.css +48 -17
  22. package/lib/featureFlags.js +69 -50
  23. package/lib/index.js +1 -30
  24. package/lib/lib/cacheInvalidation.js +92 -0
  25. package/lib/lib/collapseAdjacentRules.js +54 -36
  26. package/lib/lib/collapseDuplicateDeclarations.js +85 -0
  27. package/lib/lib/content.js +214 -0
  28. package/lib/lib/defaultExtractor.js +251 -0
  29. package/lib/lib/detectNesting.js +45 -0
  30. package/lib/lib/evaluateTailwindFunctions.js +207 -161
  31. package/lib/lib/expandApplyAtRules.js +516 -221
  32. package/lib/lib/expandTailwindAtRules.js +262 -243
  33. package/lib/lib/findAtConfigPath.js +46 -0
  34. package/lib/lib/generateRules.js +859 -317
  35. package/lib/lib/getModuleDependencies.js +95 -49
  36. package/lib/lib/load-config.js +57 -0
  37. package/lib/lib/normalizeTailwindDirectives.js +81 -60
  38. package/lib/lib/offsets.js +355 -0
  39. package/lib/lib/partitionApplyAtRules.js +58 -0
  40. package/lib/lib/regex.js +74 -0
  41. package/lib/lib/remap-bitfield.js +89 -0
  42. package/lib/lib/resolveDefaultsAtRules.js +156 -94
  43. package/lib/lib/setupContextUtils.js +1253 -598
  44. package/lib/lib/setupTrackingContext.js +154 -178
  45. package/lib/lib/sharedState.js +72 -22
  46. package/lib/lib/substituteScreenAtRules.js +28 -28
  47. package/lib/plugin.js +48 -0
  48. package/{nesting → lib/postcss-plugins/nesting}/README.md +2 -2
  49. package/lib/postcss-plugins/nesting/index.js +21 -0
  50. package/lib/postcss-plugins/nesting/plugin.js +89 -0
  51. package/lib/processTailwindFeatures.js +60 -53
  52. package/lib/public/colors.js +355 -0
  53. package/lib/public/create-plugin.js +17 -0
  54. package/lib/public/default-config.js +18 -0
  55. package/lib/public/default-theme.js +18 -0
  56. package/lib/public/load-config.js +12 -0
  57. package/lib/public/resolve-config.js +24 -0
  58. package/lib/util/applyImportantSelector.js +36 -0
  59. package/lib/util/bigSign.js +9 -6
  60. package/lib/util/buildMediaQuery.js +23 -32
  61. package/lib/util/cloneDeep.js +18 -14
  62. package/lib/util/cloneNodes.js +51 -15
  63. package/lib/util/color.js +108 -66
  64. package/lib/util/colorNames.js +752 -0
  65. package/lib/util/configurePlugins.js +19 -15
  66. package/lib/util/createPlugin.js +25 -26
  67. package/lib/util/createUtilityPlugin.js +48 -46
  68. package/lib/util/dataTypes.js +415 -0
  69. package/lib/util/defaults.js +22 -15
  70. package/lib/util/escapeClassName.js +20 -17
  71. package/lib/util/escapeCommas.js +9 -6
  72. package/lib/util/flattenColorPalette.js +15 -12
  73. package/lib/util/formatVariantSelector.js +270 -0
  74. package/lib/util/getAllConfigs.js +46 -18
  75. package/lib/util/hashConfig.js +17 -12
  76. package/lib/util/isKeyframeRule.js +9 -6
  77. package/lib/util/isPlainObject.js +13 -11
  78. package/lib/util/isSyntacticallyValidPropertyValue.js +74 -0
  79. package/lib/util/log.js +56 -33
  80. package/lib/util/nameClass.js +43 -26
  81. package/lib/util/negateValue.js +33 -17
  82. package/lib/util/normalizeConfig.js +282 -0
  83. package/lib/util/normalizeScreens.js +178 -0
  84. package/lib/util/parseAnimationValue.js +87 -54
  85. package/lib/util/parseBoxShadowValue.js +88 -0
  86. package/lib/util/parseDependency.js +43 -70
  87. package/lib/util/parseGlob.js +36 -0
  88. package/lib/util/parseObjectStyles.js +32 -24
  89. package/lib/util/pluginUtils.js +259 -288
  90. package/lib/util/prefixSelector.js +35 -19
  91. package/lib/util/pseudoElements.js +212 -0
  92. package/lib/util/removeAlphaVariables.js +31 -0
  93. package/lib/util/resolveConfig.js +223 -256
  94. package/lib/util/resolveConfigPath.js +59 -48
  95. package/lib/util/responsive.js +20 -14
  96. package/lib/util/splitAtTopLevelOnly.js +51 -0
  97. package/lib/util/tap.js +10 -7
  98. package/lib/util/toColorValue.js +9 -6
  99. package/lib/util/toPath.js +29 -8
  100. package/lib/util/transformThemeValue.js +69 -28
  101. package/lib/util/validateConfig.js +37 -0
  102. package/lib/util/validateFormalSyntax.js +26 -0
  103. package/lib/util/withAlphaVariable.js +71 -57
  104. package/lib/value-parser/LICENSE +22 -0
  105. package/lib/value-parser/README.md +3 -0
  106. package/lib/value-parser/index.d.js +2 -0
  107. package/lib/value-parser/index.js +22 -0
  108. package/lib/value-parser/parse.js +259 -0
  109. package/lib/value-parser/stringify.js +38 -0
  110. package/lib/value-parser/unit.js +86 -0
  111. package/lib/value-parser/walk.js +16 -0
  112. package/loadConfig.d.ts +4 -0
  113. package/loadConfig.js +2 -0
  114. package/nesting/index.d.ts +4 -0
  115. package/nesting/index.js +2 -12
  116. package/package.json +67 -72
  117. package/peers/index.js +93480 -84279
  118. package/plugin.d.ts +11 -0
  119. package/plugin.js +1 -2
  120. package/resolveConfig.d.ts +31 -0
  121. package/resolveConfig.js +2 -7
  122. package/scripts/create-plugin-list.js +2 -2
  123. package/scripts/generate-types.js +104 -0
  124. package/scripts/release-channel.js +18 -0
  125. package/scripts/release-notes.js +21 -0
  126. package/scripts/type-utils.js +27 -0
  127. package/src/cli/build/deps.js +56 -0
  128. package/src/cli/build/index.js +49 -0
  129. package/src/cli/build/plugin.js +437 -0
  130. package/src/cli/build/utils.js +76 -0
  131. package/src/cli/build/watching.js +229 -0
  132. package/src/cli/help/index.js +70 -0
  133. package/src/cli/index.js +216 -0
  134. package/src/cli/init/index.js +79 -0
  135. package/src/cli-peer-dependencies.js +7 -1
  136. package/src/cli.js +1 -757
  137. package/src/corePluginList.js +1 -1
  138. package/src/corePlugins.js +2689 -1933
  139. package/src/css/preflight.css +48 -17
  140. package/src/featureFlags.js +24 -10
  141. package/src/index.js +1 -34
  142. package/src/lib/cacheInvalidation.js +52 -0
  143. package/src/lib/collapseAdjacentRules.js +21 -2
  144. package/src/lib/collapseDuplicateDeclarations.js +93 -0
  145. package/src/lib/content.js +249 -0
  146. package/src/lib/defaultExtractor.js +230 -0
  147. package/src/lib/detectNesting.js +47 -0
  148. package/src/lib/evaluateTailwindFunctions.js +88 -11
  149. package/src/lib/expandApplyAtRules.js +522 -153
  150. package/src/lib/expandTailwindAtRules.js +125 -105
  151. package/src/lib/findAtConfigPath.js +48 -0
  152. package/src/lib/generateRules.js +702 -70
  153. package/src/lib/getModuleDependencies.js +70 -30
  154. package/src/lib/load-config.ts +44 -0
  155. package/src/lib/normalizeTailwindDirectives.js +10 -3
  156. package/src/lib/offsets.js +432 -0
  157. package/src/lib/partitionApplyAtRules.js +52 -0
  158. package/src/lib/regex.js +74 -0
  159. package/src/lib/remap-bitfield.js +82 -0
  160. package/src/lib/resolveDefaultsAtRules.js +109 -47
  161. package/src/lib/setupContextUtils.js +935 -203
  162. package/src/lib/setupTrackingContext.js +55 -67
  163. package/src/lib/sharedState.js +54 -10
  164. package/src/lib/substituteScreenAtRules.js +6 -3
  165. package/src/plugin.js +47 -0
  166. package/src/postcss-plugins/nesting/README.md +42 -0
  167. package/src/postcss-plugins/nesting/index.js +13 -0
  168. package/src/postcss-plugins/nesting/plugin.js +80 -0
  169. package/src/processTailwindFeatures.js +22 -4
  170. package/src/public/colors.js +322 -0
  171. package/src/public/create-plugin.js +2 -0
  172. package/src/public/default-config.js +4 -0
  173. package/src/public/default-theme.js +4 -0
  174. package/src/public/load-config.js +2 -0
  175. package/src/public/resolve-config.js +7 -0
  176. package/src/util/applyImportantSelector.js +27 -0
  177. package/src/util/buildMediaQuery.js +14 -16
  178. package/src/util/cloneNodes.js +40 -2
  179. package/src/util/color.js +44 -12
  180. package/src/util/colorNames.js +150 -0
  181. package/src/util/createUtilityPlugin.js +2 -11
  182. package/src/util/dataTypes.js +406 -0
  183. package/src/util/defaults.js +6 -0
  184. package/src/util/formatVariantSelector.js +324 -0
  185. package/src/util/getAllConfigs.js +21 -2
  186. package/src/util/isPlainObject.js +1 -1
  187. package/src/util/isSyntacticallyValidPropertyValue.js +61 -0
  188. package/src/util/log.js +23 -22
  189. package/src/util/nameClass.js +14 -6
  190. package/src/util/negateValue.js +15 -5
  191. package/src/util/normalizeConfig.js +301 -0
  192. package/src/util/normalizeScreens.js +140 -0
  193. package/src/util/parseAnimationValue.js +7 -1
  194. package/src/util/parseBoxShadowValue.js +72 -0
  195. package/src/util/parseDependency.js +37 -38
  196. package/src/util/parseGlob.js +24 -0
  197. package/src/util/pluginUtils.js +231 -219
  198. package/src/util/prefixSelector.js +31 -13
  199. package/src/util/pseudoElements.js +171 -0
  200. package/src/util/removeAlphaVariables.js +24 -0
  201. package/src/util/resolveConfig.js +86 -91
  202. package/src/util/resolveConfigPath.js +12 -1
  203. package/src/util/splitAtTopLevelOnly.js +52 -0
  204. package/src/util/toPath.js +23 -1
  205. package/src/util/transformThemeValue.js +33 -8
  206. package/src/util/validateConfig.js +26 -0
  207. package/src/util/validateFormalSyntax.js +34 -0
  208. package/src/util/withAlphaVariable.js +14 -9
  209. package/src/value-parser/LICENSE +22 -0
  210. package/src/value-parser/README.md +3 -0
  211. package/src/value-parser/index.d.ts +177 -0
  212. package/src/value-parser/index.js +28 -0
  213. package/src/value-parser/parse.js +303 -0
  214. package/src/value-parser/stringify.js +41 -0
  215. package/src/value-parser/unit.js +118 -0
  216. package/src/value-parser/walk.js +18 -0
  217. package/stubs/.gitignore +1 -0
  218. package/stubs/.prettierrc.json +6 -0
  219. package/stubs/{defaultConfig.stub.js → config.full.js} +440 -262
  220. package/stubs/{simpleConfig.stub.js → config.simple.js} +0 -1
  221. package/stubs/postcss.config.js +6 -0
  222. package/stubs/tailwind.config.cjs +2 -0
  223. package/stubs/tailwind.config.js +2 -0
  224. package/stubs/tailwind.config.ts +3 -0
  225. package/types/config.d.ts +376 -0
  226. package/types/generated/.gitkeep +0 -0
  227. package/types/generated/colors.d.ts +298 -0
  228. package/types/generated/corePluginList.d.ts +1 -0
  229. package/types/generated/default-theme.d.ts +397 -0
  230. package/types/index.d.ts +11 -0
  231. package/CHANGELOG.md +0 -1703
  232. package/lib/constants.js +0 -37
  233. package/lib/lib/setupWatchingContext.js +0 -331
  234. package/nesting/plugin.js +0 -41
  235. package/scripts/install-integrations.js +0 -27
  236. package/scripts/rebuildFixtures.js +0 -68
  237. package/src/constants.js +0 -17
  238. package/src/lib/setupWatchingContext.js +0 -306
  239. /package/stubs/{defaultPostCssConfig.stub.js → postcss.config.cjs} +0 -0
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,18 +1,25 @@
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.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
+ <p align="center">
16
+ <a href="https://github.com/tailwindlabs/tailwindcss/actions"><img src="https://img.shields.io/github/actions/workflow/status/tailwindlabs/tailwindcss/ci.yml?branch=master" alt="Build Status"></a>
10
17
  <a href="https://www.npmjs.com/package/tailwindcss"><img src="https://img.shields.io/npm/dt/tailwindcss.svg" alt="Total Downloads"></a>
11
18
  <a href="https://github.com/tailwindcss/tailwindcss/releases"><img src="https://img.shields.io/npm/v/tailwindcss.svg" alt="Latest Release"></a>
12
19
  <a href="https://github.com/tailwindcss/tailwindcss/blob/master/LICENSE"><img src="https://img.shields.io/npm/l/tailwindcss.svg" alt="License"></a>
13
20
  </p>
14
21
 
15
- ------
22
+ ---
16
23
 
17
24
  ## Documentation
18
25
 
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,300 +1,2 @@
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
+ 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,62 @@
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: function() {
14
+ return loadPostcss;
15
+ },
16
+ loadPostcssImport: function() {
17
+ return loadPostcssImport;
18
+ },
19
+ loadCssNano: function() {
20
+ return loadCssNano;
21
+ },
22
+ loadAutoprefixer: function() {
23
+ return loadAutoprefixer;
24
+ }
25
+ });
26
+ const _index = require("../../../peers/index.js");
27
+ function loadPostcss() {
28
+ // Try to load a local `postcss` version first
29
+ try {
30
+ return require("postcss");
31
+ } catch {}
32
+ return (0, _index.lazyPostcss)();
33
+ }
34
+ function loadPostcssImport() {
35
+ // Try to load a local `postcss-import` version first
36
+ try {
37
+ return require("postcss-import");
38
+ } catch {}
39
+ return (0, _index.lazyPostcssImport)();
40
+ }
41
+ function loadCssNano() {
42
+ let options = {
43
+ preset: [
44
+ "default",
45
+ {
46
+ cssDeclarationSorter: false
47
+ }
48
+ ]
49
+ };
50
+ // Try to load a local `cssnano` version first
51
+ try {
52
+ return require("cssnano");
53
+ } catch {}
54
+ return (0, _index.lazyCssnano)()(options);
55
+ }
56
+ function loadAutoprefixer() {
57
+ // Try to load a local `autoprefixer` version first
58
+ try {
59
+ return require("autoprefixer");
60
+ } catch {}
61
+ return (0, _index.lazyAutoprefixer)();
62
+ }
@@ -0,0 +1,54 @@
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: function() {
9
+ return build;
10
+ }
11
+ });
12
+ const _fs = /*#__PURE__*/ _interop_require_default(require("fs"));
13
+ const _path = /*#__PURE__*/ _interop_require_default(require("path"));
14
+ const _resolveConfigPath = require("../../util/resolveConfigPath.js");
15
+ const _plugin = require("./plugin.js");
16
+ function _interop_require_default(obj) {
17
+ return obj && obj.__esModule ? obj : {
18
+ default: obj
19
+ };
20
+ }
21
+ async function build(args) {
22
+ let input = args["--input"];
23
+ let shouldWatch = args["--watch"];
24
+ // TODO: Deprecate this in future versions
25
+ if (!input && args["_"][1]) {
26
+ console.error("[deprecation] Running tailwindcss without -i, please provide an input file.");
27
+ input = args["--input"] = args["_"][1];
28
+ }
29
+ if (input && input !== "-" && !_fs.default.existsSync(input = _path.default.resolve(input))) {
30
+ console.error(`Specified input file ${args["--input"]} does not exist.`);
31
+ process.exit(9);
32
+ }
33
+ if (args["--config"] && !_fs.default.existsSync(args["--config"] = _path.default.resolve(args["--config"]))) {
34
+ console.error(`Specified config file ${args["--config"]} does not exist.`);
35
+ process.exit(9);
36
+ }
37
+ // TODO: Reference the @config path here if exists
38
+ let configPath = args["--config"] ? args["--config"] : (0, _resolveConfigPath.resolveDefaultConfigPath)();
39
+ let processor = await (0, _plugin.createProcessor)(args, configPath);
40
+ if (shouldWatch) {
41
+ // Abort the watcher if stdin is closed to avoid zombie processes
42
+ // You can disable this behavior with --watch=always
43
+ if (args["--watch"] !== "always") {
44
+ process.stdin.on("end", ()=>process.exit(0));
45
+ }
46
+ process.stdin.resume();
47
+ await processor.watch();
48
+ } else {
49
+ await processor.build().catch((e)=>{
50
+ console.error(e);
51
+ process.exit(1);
52
+ });
53
+ }
54
+ }