tailwindcss 0.0.0-insiders.f4635e0 → 0.0.0-insiders.f4a2ccd

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 (238) 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 +52 -0
  11. package/lib/cli/build/plugin.js +376 -0
  12. package/lib/cli/build/utils.js +78 -0
  13. package/lib/cli/build/watching.js +180 -0
  14. package/lib/cli/help/index.js +71 -0
  15. package/lib/cli/index.js +230 -0
  16. package/lib/cli/init/index.js +61 -0
  17. package/lib/cli-peer-dependencies.js +22 -14
  18. package/lib/cli.js +4 -762
  19. package/lib/corePluginList.js +182 -5
  20. package/lib/corePlugins.js +4109 -2952
  21. package/lib/css/preflight.css +24 -9
  22. package/lib/featureFlags.js +68 -50
  23. package/lib/index.js +5 -30
  24. package/lib/lib/cacheInvalidation.js +90 -0
  25. package/lib/lib/collapseAdjacentRules.js +52 -36
  26. package/lib/lib/collapseDuplicateDeclarations.js +83 -0
  27. package/lib/lib/content.js +177 -0
  28. package/lib/lib/defaultExtractor.js +241 -0
  29. package/lib/lib/detectNesting.js +39 -17
  30. package/lib/lib/evaluateTailwindFunctions.js +203 -161
  31. package/lib/lib/expandApplyAtRules.js +503 -221
  32. package/lib/lib/expandTailwindAtRules.js +255 -243
  33. package/lib/lib/findAtConfigPath.js +44 -0
  34. package/lib/lib/generateRules.js +831 -317
  35. package/lib/lib/getModuleDependencies.js +93 -49
  36. package/lib/lib/load-config.js +36 -0
  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 +1197 -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 +51 -0
  49. package/lib/oxide/cli/build/plugin.js +373 -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 +214 -0
  54. package/lib/oxide/cli/init/index.js +50 -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 +353 -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/load-config.js +10 -0
  67. package/lib/public/resolve-config.js +22 -0
  68. package/lib/util/applyImportantSelector.js +22 -0
  69. package/lib/util/bigSign.js +7 -6
  70. package/lib/util/buildMediaQuery.js +21 -32
  71. package/lib/util/cloneDeep.js +16 -14
  72. package/lib/util/cloneNodes.js +29 -15
  73. package/lib/util/color.js +104 -66
  74. package/lib/util/configurePlugins.js +17 -15
  75. package/lib/util/createPlugin.js +23 -26
  76. package/lib/util/createUtilityPlugin.js +46 -46
  77. package/lib/util/dataTypes.js +266 -0
  78. package/lib/util/defaults.js +20 -15
  79. package/lib/util/escapeClassName.js +18 -17
  80. package/lib/util/escapeCommas.js +7 -6
  81. package/lib/util/flattenColorPalette.js +13 -12
  82. package/lib/util/formatVariantSelector.js +341 -0
  83. package/lib/util/getAllConfigs.js +44 -18
  84. package/lib/util/hashConfig.js +15 -12
  85. package/lib/util/isKeyframeRule.js +7 -6
  86. package/lib/util/isPlainObject.js +11 -11
  87. package/lib/util/isSyntacticallyValidPropertyValue.js +72 -0
  88. package/lib/util/log.js +52 -33
  89. package/lib/util/nameClass.js +35 -29
  90. package/lib/util/negateValue.js +31 -17
  91. package/lib/util/normalizeConfig.js +294 -0
  92. package/lib/util/normalizeScreens.js +170 -0
  93. package/lib/util/parseAnimationValue.js +85 -54
  94. package/lib/util/parseBoxShadowValue.js +84 -0
  95. package/lib/util/parseDependency.js +41 -70
  96. package/lib/util/parseGlob.js +34 -0
  97. package/lib/util/parseObjectStyles.js +30 -24
  98. package/lib/util/pluginUtils.js +234 -288
  99. package/lib/util/prefixSelector.js +33 -19
  100. package/lib/util/removeAlphaVariables.js +29 -0
  101. package/lib/util/resolveConfig.js +221 -256
  102. package/lib/util/resolveConfigPath.js +55 -48
  103. package/lib/util/responsive.js +18 -14
  104. package/lib/util/splitAtTopLevelOnly.js +49 -0
  105. package/lib/util/tap.js +8 -7
  106. package/lib/util/toColorValue.js +7 -6
  107. package/lib/util/toPath.js +27 -8
  108. package/lib/util/transformThemeValue.js +67 -28
  109. package/lib/util/validateConfig.js +24 -0
  110. package/lib/util/validateFormalSyntax.js +24 -0
  111. package/lib/util/withAlphaVariable.js +67 -57
  112. package/loadConfig.d.ts +4 -0
  113. package/loadConfig.js +2 -0
  114. package/nesting/index.js +2 -12
  115. package/package.json +69 -66
  116. package/peers/index.js +76328 -84169
  117. package/plugin.d.ts +11 -0
  118. package/plugin.js +1 -2
  119. package/resolveConfig.d.ts +12 -0
  120. package/resolveConfig.js +2 -7
  121. package/scripts/create-plugin-list.js +2 -2
  122. package/scripts/generate-types.js +105 -0
  123. package/scripts/release-channel.js +18 -0
  124. package/scripts/release-notes.js +21 -0
  125. package/scripts/swap-engines.js +40 -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 +444 -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 +4 -756
  137. package/src/corePluginList.js +1 -1
  138. package/src/corePlugins.js +2526 -1956
  139. package/src/css/preflight.css +24 -9
  140. package/src/featureFlags.js +33 -10
  141. package/src/index.js +4 -33
  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 +208 -0
  146. package/src/lib/defaultExtractor.js +217 -0
  147. package/src/lib/detectNesting.js +30 -3
  148. package/src/lib/evaluateTailwindFunctions.js +84 -10
  149. package/src/lib/expandApplyAtRules.js +509 -153
  150. package/src/lib/expandTailwindAtRules.js +125 -104
  151. package/src/lib/findAtConfigPath.js +48 -0
  152. package/src/lib/generateRules.js +678 -70
  153. package/src/lib/getModuleDependencies.js +70 -30
  154. package/src/lib/load-config.ts +27 -0
  155. package/src/lib/normalizeTailwindDirectives.js +10 -3
  156. package/src/lib/offsets.js +373 -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 +105 -47
  161. package/src/lib/setupContextUtils.js +848 -247
  162. package/src/lib/setupTrackingContext.js +53 -64
  163. package/src/lib/sharedState.js +60 -6
  164. package/src/lib/substituteScreenAtRules.js +6 -3
  165. package/src/oxide/cli/build/deps.ts +91 -0
  166. package/src/oxide/cli/build/index.ts +47 -0
  167. package/src/oxide/cli/build/plugin.ts +442 -0
  168. package/src/oxide/cli/build/utils.ts +74 -0
  169. package/src/oxide/cli/build/watching.ts +225 -0
  170. package/src/oxide/cli/help/index.ts +69 -0
  171. package/src/oxide/cli/index.ts +204 -0
  172. package/src/oxide/cli/init/index.ts +59 -0
  173. package/src/oxide/cli.ts +1 -0
  174. package/src/oxide/postcss-plugin.ts +1 -0
  175. package/src/plugin.js +107 -0
  176. package/src/postcss-plugins/nesting/README.md +42 -0
  177. package/src/postcss-plugins/nesting/index.js +13 -0
  178. package/src/postcss-plugins/nesting/plugin.js +80 -0
  179. package/src/processTailwindFeatures.js +18 -3
  180. package/src/public/colors.js +322 -0
  181. package/src/public/create-plugin.js +2 -0
  182. package/src/public/default-config.js +4 -0
  183. package/src/public/default-theme.js +4 -0
  184. package/src/public/load-config.js +2 -0
  185. package/src/public/resolve-config.js +7 -0
  186. package/src/util/applyImportantSelector.js +19 -0
  187. package/src/util/buildMediaQuery.js +14 -16
  188. package/src/util/cloneNodes.js +19 -2
  189. package/src/util/color.js +43 -11
  190. package/src/util/createUtilityPlugin.js +2 -11
  191. package/src/util/dataTypes.js +281 -0
  192. package/src/util/defaults.js +6 -0
  193. package/src/util/formatVariantSelector.js +412 -0
  194. package/src/util/getAllConfigs.js +21 -2
  195. package/src/util/isSyntacticallyValidPropertyValue.js +61 -0
  196. package/src/util/log.js +23 -22
  197. package/src/util/nameClass.js +6 -2
  198. package/src/util/negateValue.js +15 -5
  199. package/src/util/normalizeConfig.js +318 -0
  200. package/src/util/normalizeScreens.js +140 -0
  201. package/src/util/parseAnimationValue.js +7 -1
  202. package/src/util/parseBoxShadowValue.js +72 -0
  203. package/src/util/parseDependency.js +37 -38
  204. package/src/util/parseGlob.js +24 -0
  205. package/src/util/pluginUtils.js +219 -219
  206. package/src/util/prefixSelector.js +30 -13
  207. package/src/util/removeAlphaVariables.js +24 -0
  208. package/src/util/resolveConfig.js +86 -91
  209. package/src/util/resolveConfigPath.js +12 -1
  210. package/src/util/splitAtTopLevelOnly.js +52 -0
  211. package/src/util/toPath.js +23 -1
  212. package/src/util/transformThemeValue.js +33 -8
  213. package/src/util/validateConfig.js +13 -0
  214. package/src/util/validateFormalSyntax.js +34 -0
  215. package/src/util/withAlphaVariable.js +14 -9
  216. package/stubs/.gitignore +1 -0
  217. package/stubs/.prettierrc.json +6 -0
  218. package/stubs/{defaultConfig.stub.js → config.full.js} +332 -249
  219. package/stubs/{simpleConfig.stub.js → config.simple.js} +0 -1
  220. package/stubs/postcss.config.js +6 -0
  221. package/stubs/tailwind.config.cjs +2 -0
  222. package/stubs/tailwind.config.js +2 -0
  223. package/stubs/tailwind.config.ts +3 -0
  224. package/types/config.d.ts +373 -0
  225. package/types/generated/.gitkeep +0 -0
  226. package/types/generated/colors.d.ts +298 -0
  227. package/types/generated/corePluginList.d.ts +1 -0
  228. package/types/generated/default-theme.d.ts +347 -0
  229. package/types/index.d.ts +7 -0
  230. package/CHANGELOG.md +0 -1742
  231. package/lib/constants.js +0 -37
  232. package/lib/lib/setupWatchingContext.js +0 -331
  233. package/nesting/plugin.js +0 -41
  234. package/scripts/install-integrations.js +0 -27
  235. package/scripts/rebuildFixtures.js +0 -68
  236. package/src/constants.js +0 -17
  237. package/src/lib/setupWatchingContext.js +0 -307
  238. /package/stubs/{defaultPostCssConfig.stub.js → postcss.config.cjs} +0 -0
@@ -1,60 +1,62 @@
1
1
  "use strict";
2
-
3
2
  Object.defineProperty(exports, "__esModule", {
4
- value: true
3
+ value: true
5
4
  });
6
- exports.default = processTailwindFeatures;
7
-
8
- var _normalizeTailwindDirectives = _interopRequireDefault(require("./lib/normalizeTailwindDirectives"));
9
-
10
- var _expandTailwindAtRules = _interopRequireDefault(require("./lib/expandTailwindAtRules"));
11
-
12
- var _expandApplyAtRules = _interopRequireDefault(require("./lib/expandApplyAtRules"));
13
-
14
- var _evaluateTailwindFunctions = _interopRequireDefault(require("./lib/evaluateTailwindFunctions"));
15
-
16
- var _substituteScreenAtRules = _interopRequireDefault(require("./lib/substituteScreenAtRules"));
17
-
18
- var _resolveDefaultsAtRules = _interopRequireDefault(require("./lib/resolveDefaultsAtRules"));
19
-
20
- var _collapseAdjacentRules = _interopRequireDefault(require("./lib/collapseAdjacentRules"));
21
-
22
- var _detectNesting = _interopRequireDefault(require("./lib/detectNesting"));
23
-
24
- var _setupContextUtils = require("./lib/setupContextUtils");
25
-
26
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
27
-
5
+ Object.defineProperty(exports, "default", {
6
+ enumerable: true,
7
+ get: ()=>processTailwindFeatures
8
+ });
9
+ const _normalizeTailwindDirectives = /*#__PURE__*/ _interopRequireDefault(require("./lib/normalizeTailwindDirectives"));
10
+ const _expandTailwindAtRules = /*#__PURE__*/ _interopRequireDefault(require("./lib/expandTailwindAtRules"));
11
+ const _expandApplyAtRules = /*#__PURE__*/ _interopRequireDefault(require("./lib/expandApplyAtRules"));
12
+ const _evaluateTailwindFunctions = /*#__PURE__*/ _interopRequireDefault(require("./lib/evaluateTailwindFunctions"));
13
+ const _substituteScreenAtRules = /*#__PURE__*/ _interopRequireDefault(require("./lib/substituteScreenAtRules"));
14
+ const _resolveDefaultsAtRules = /*#__PURE__*/ _interopRequireDefault(require("./lib/resolveDefaultsAtRules"));
15
+ const _collapseAdjacentRules = /*#__PURE__*/ _interopRequireDefault(require("./lib/collapseAdjacentRules"));
16
+ const _collapseDuplicateDeclarations = /*#__PURE__*/ _interopRequireDefault(require("./lib/collapseDuplicateDeclarations"));
17
+ const _partitionApplyAtRules = /*#__PURE__*/ _interopRequireDefault(require("./lib/partitionApplyAtRules"));
18
+ const _detectNesting = /*#__PURE__*/ _interopRequireDefault(require("./lib/detectNesting"));
19
+ const _setupContextUtils = require("./lib/setupContextUtils");
20
+ const _featureFlags = require("./featureFlags");
21
+ function _interopRequireDefault(obj) {
22
+ return obj && obj.__esModule ? obj : {
23
+ default: obj
24
+ };
25
+ }
28
26
  function processTailwindFeatures(setupContext) {
29
- return function (root, result) {
30
- let tailwindDirectives = (0, _normalizeTailwindDirectives.default)(root);
31
- let context = setupContext({
32
- tailwindDirectives,
33
-
34
- registerDependency(dependency) {
35
- result.messages.push({
36
- plugin: 'tailwindcss',
37
- parent: result.opts.from,
38
- ...dependency
39
- });
40
- },
41
-
42
- createContext(tailwindConfig, changedContent) {
43
- return (0, _setupContextUtils.createContext)(tailwindConfig, changedContent, tailwindDirectives, root);
44
- }
45
-
46
- })(root, result);
47
-
48
- if (context.tailwindConfig.separator === '-') {
49
- throw new Error("The '-' character cannot be used as a custom separator in JIT mode due to parsing ambiguity. Please use another character like '_' instead.");
50
- }
51
-
52
- (0, _detectNesting.default)(context)(root, result);
53
- (0, _expandTailwindAtRules.default)(context)(root, result);
54
- (0, _expandApplyAtRules.default)(context)(root, result);
55
- (0, _evaluateTailwindFunctions.default)(context)(root, result);
56
- (0, _substituteScreenAtRules.default)(context)(root, result);
57
- (0, _resolveDefaultsAtRules.default)(context)(root, result);
58
- (0, _collapseAdjacentRules.default)(context)(root, result);
59
- };
60
- }
27
+ return function(root, result) {
28
+ let { tailwindDirectives , applyDirectives } = (0, _normalizeTailwindDirectives.default)(root);
29
+ (0, _detectNesting.default)()(root, result);
30
+ // Partition apply rules that are found in the css
31
+ // itself.
32
+ (0, _partitionApplyAtRules.default)()(root, result);
33
+ let context = setupContext({
34
+ tailwindDirectives,
35
+ applyDirectives,
36
+ registerDependency (dependency) {
37
+ result.messages.push({
38
+ plugin: "tailwindcss",
39
+ parent: result.opts.from,
40
+ ...dependency
41
+ });
42
+ },
43
+ createContext (tailwindConfig, changedContent) {
44
+ return (0, _setupContextUtils.createContext)(tailwindConfig, changedContent, root);
45
+ }
46
+ })(root, result);
47
+ if (context.tailwindConfig.separator === "-") {
48
+ throw new Error("The '-' character cannot be used as a custom separator in JIT mode due to parsing ambiguity. Please use another character like '_' instead.");
49
+ }
50
+ (0, _featureFlags.issueFlagNotices)(context.tailwindConfig);
51
+ (0, _expandTailwindAtRules.default)(context)(root, result);
52
+ // Partition apply rules that are generated by
53
+ // addComponents, addUtilities and so on.
54
+ (0, _partitionApplyAtRules.default)()(root, result);
55
+ (0, _expandApplyAtRules.default)(context)(root, result);
56
+ (0, _evaluateTailwindFunctions.default)(context)(root, result);
57
+ (0, _substituteScreenAtRules.default)(context)(root, result);
58
+ (0, _resolveDefaultsAtRules.default)(context)(root, result);
59
+ (0, _collapseAdjacentRules.default)(context)(root, result);
60
+ (0, _collapseDuplicateDeclarations.default)(context)(root, result);
61
+ };
62
+ }
@@ -0,0 +1,353 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "default", {
6
+ enumerable: true,
7
+ get: ()=>_default
8
+ });
9
+ const _log = /*#__PURE__*/ _interopRequireDefault(require("../util/log"));
10
+ function _interopRequireDefault(obj) {
11
+ return obj && obj.__esModule ? obj : {
12
+ default: obj
13
+ };
14
+ }
15
+ function warn({ version , from , to }) {
16
+ _log.default.warn(`${from}-color-renamed`, [
17
+ `As of Tailwind CSS ${version}, \`${from}\` has been renamed to \`${to}\`.`,
18
+ "Update your configuration file to silence this warning."
19
+ ]);
20
+ }
21
+ const _default = {
22
+ inherit: "inherit",
23
+ current: "currentColor",
24
+ transparent: "transparent",
25
+ black: "#000",
26
+ white: "#fff",
27
+ slate: {
28
+ 50: "#f8fafc",
29
+ 100: "#f1f5f9",
30
+ 200: "#e2e8f0",
31
+ 300: "#cbd5e1",
32
+ 400: "#94a3b8",
33
+ 500: "#64748b",
34
+ 600: "#475569",
35
+ 700: "#334155",
36
+ 800: "#1e293b",
37
+ 900: "#0f172a",
38
+ 950: "#020617"
39
+ },
40
+ gray: {
41
+ 50: "#f9fafb",
42
+ 100: "#f3f4f6",
43
+ 200: "#e5e7eb",
44
+ 300: "#d1d5db",
45
+ 400: "#9ca3af",
46
+ 500: "#6b7280",
47
+ 600: "#4b5563",
48
+ 700: "#374151",
49
+ 800: "#1f2937",
50
+ 900: "#111827",
51
+ 950: "#030712"
52
+ },
53
+ zinc: {
54
+ 50: "#fafafa",
55
+ 100: "#f4f4f5",
56
+ 200: "#e4e4e7",
57
+ 300: "#d4d4d8",
58
+ 400: "#a1a1aa",
59
+ 500: "#71717a",
60
+ 600: "#52525b",
61
+ 700: "#3f3f46",
62
+ 800: "#27272a",
63
+ 900: "#18181b",
64
+ 950: "#09090b"
65
+ },
66
+ neutral: {
67
+ 50: "#fafafa",
68
+ 100: "#f5f5f5",
69
+ 200: "#e5e5e5",
70
+ 300: "#d4d4d4",
71
+ 400: "#a3a3a3",
72
+ 500: "#737373",
73
+ 600: "#525252",
74
+ 700: "#404040",
75
+ 800: "#262626",
76
+ 900: "#171717",
77
+ 950: "#0a0a0a"
78
+ },
79
+ stone: {
80
+ 50: "#fafaf9",
81
+ 100: "#f5f5f4",
82
+ 200: "#e7e5e4",
83
+ 300: "#d6d3d1",
84
+ 400: "#a8a29e",
85
+ 500: "#78716c",
86
+ 600: "#57534e",
87
+ 700: "#44403c",
88
+ 800: "#292524",
89
+ 900: "#1c1917",
90
+ 950: "#0c0a09"
91
+ },
92
+ red: {
93
+ 50: "#fef2f2",
94
+ 100: "#fee2e2",
95
+ 200: "#fecaca",
96
+ 300: "#fca5a5",
97
+ 400: "#f87171",
98
+ 500: "#ef4444",
99
+ 600: "#dc2626",
100
+ 700: "#b91c1c",
101
+ 800: "#991b1b",
102
+ 900: "#7f1d1d",
103
+ 950: "#450a0a"
104
+ },
105
+ orange: {
106
+ 50: "#fff7ed",
107
+ 100: "#ffedd5",
108
+ 200: "#fed7aa",
109
+ 300: "#fdba74",
110
+ 400: "#fb923c",
111
+ 500: "#f97316",
112
+ 600: "#ea580c",
113
+ 700: "#c2410c",
114
+ 800: "#9a3412",
115
+ 900: "#7c2d12",
116
+ 950: "#431407"
117
+ },
118
+ amber: {
119
+ 50: "#fffbeb",
120
+ 100: "#fef3c7",
121
+ 200: "#fde68a",
122
+ 300: "#fcd34d",
123
+ 400: "#fbbf24",
124
+ 500: "#f59e0b",
125
+ 600: "#d97706",
126
+ 700: "#b45309",
127
+ 800: "#92400e",
128
+ 900: "#78350f",
129
+ 950: "#451a03"
130
+ },
131
+ yellow: {
132
+ 50: "#fefce8",
133
+ 100: "#fef9c3",
134
+ 200: "#fef08a",
135
+ 300: "#fde047",
136
+ 400: "#facc15",
137
+ 500: "#eab308",
138
+ 600: "#ca8a04",
139
+ 700: "#a16207",
140
+ 800: "#854d0e",
141
+ 900: "#713f12",
142
+ 950: "#422006"
143
+ },
144
+ lime: {
145
+ 50: "#f7fee7",
146
+ 100: "#ecfccb",
147
+ 200: "#d9f99d",
148
+ 300: "#bef264",
149
+ 400: "#a3e635",
150
+ 500: "#84cc16",
151
+ 600: "#65a30d",
152
+ 700: "#4d7c0f",
153
+ 800: "#3f6212",
154
+ 900: "#365314",
155
+ 950: "#1a2e05"
156
+ },
157
+ green: {
158
+ 50: "#f0fdf4",
159
+ 100: "#dcfce7",
160
+ 200: "#bbf7d0",
161
+ 300: "#86efac",
162
+ 400: "#4ade80",
163
+ 500: "#22c55e",
164
+ 600: "#16a34a",
165
+ 700: "#15803d",
166
+ 800: "#166534",
167
+ 900: "#14532d",
168
+ 950: "#052e16"
169
+ },
170
+ emerald: {
171
+ 50: "#ecfdf5",
172
+ 100: "#d1fae5",
173
+ 200: "#a7f3d0",
174
+ 300: "#6ee7b7",
175
+ 400: "#34d399",
176
+ 500: "#10b981",
177
+ 600: "#059669",
178
+ 700: "#047857",
179
+ 800: "#065f46",
180
+ 900: "#064e3b",
181
+ 950: "#022c22"
182
+ },
183
+ teal: {
184
+ 50: "#f0fdfa",
185
+ 100: "#ccfbf1",
186
+ 200: "#99f6e4",
187
+ 300: "#5eead4",
188
+ 400: "#2dd4bf",
189
+ 500: "#14b8a6",
190
+ 600: "#0d9488",
191
+ 700: "#0f766e",
192
+ 800: "#115e59",
193
+ 900: "#134e4a",
194
+ 950: "#042f2e"
195
+ },
196
+ cyan: {
197
+ 50: "#ecfeff",
198
+ 100: "#cffafe",
199
+ 200: "#a5f3fc",
200
+ 300: "#67e8f9",
201
+ 400: "#22d3ee",
202
+ 500: "#06b6d4",
203
+ 600: "#0891b2",
204
+ 700: "#0e7490",
205
+ 800: "#155e75",
206
+ 900: "#164e63",
207
+ 950: "#083344"
208
+ },
209
+ sky: {
210
+ 50: "#f0f9ff",
211
+ 100: "#e0f2fe",
212
+ 200: "#bae6fd",
213
+ 300: "#7dd3fc",
214
+ 400: "#38bdf8",
215
+ 500: "#0ea5e9",
216
+ 600: "#0284c7",
217
+ 700: "#0369a1",
218
+ 800: "#075985",
219
+ 900: "#0c4a6e",
220
+ 950: "#082f49"
221
+ },
222
+ blue: {
223
+ 50: "#eff6ff",
224
+ 100: "#dbeafe",
225
+ 200: "#bfdbfe",
226
+ 300: "#93c5fd",
227
+ 400: "#60a5fa",
228
+ 500: "#3b82f6",
229
+ 600: "#2563eb",
230
+ 700: "#1d4ed8",
231
+ 800: "#1e40af",
232
+ 900: "#1e3a8a",
233
+ 950: "#172554"
234
+ },
235
+ indigo: {
236
+ 50: "#eef2ff",
237
+ 100: "#e0e7ff",
238
+ 200: "#c7d2fe",
239
+ 300: "#a5b4fc",
240
+ 400: "#818cf8",
241
+ 500: "#6366f1",
242
+ 600: "#4f46e5",
243
+ 700: "#4338ca",
244
+ 800: "#3730a3",
245
+ 900: "#312e81",
246
+ 950: "#1e1b4b"
247
+ },
248
+ violet: {
249
+ 50: "#f5f3ff",
250
+ 100: "#ede9fe",
251
+ 200: "#ddd6fe",
252
+ 300: "#c4b5fd",
253
+ 400: "#a78bfa",
254
+ 500: "#8b5cf6",
255
+ 600: "#7c3aed",
256
+ 700: "#6d28d9",
257
+ 800: "#5b21b6",
258
+ 900: "#4c1d95",
259
+ 950: "#2e1065"
260
+ },
261
+ purple: {
262
+ 50: "#faf5ff",
263
+ 100: "#f3e8ff",
264
+ 200: "#e9d5ff",
265
+ 300: "#d8b4fe",
266
+ 400: "#c084fc",
267
+ 500: "#a855f7",
268
+ 600: "#9333ea",
269
+ 700: "#7e22ce",
270
+ 800: "#6b21a8",
271
+ 900: "#581c87",
272
+ 950: "#3b0764"
273
+ },
274
+ fuchsia: {
275
+ 50: "#fdf4ff",
276
+ 100: "#fae8ff",
277
+ 200: "#f5d0fe",
278
+ 300: "#f0abfc",
279
+ 400: "#e879f9",
280
+ 500: "#d946ef",
281
+ 600: "#c026d3",
282
+ 700: "#a21caf",
283
+ 800: "#86198f",
284
+ 900: "#701a75",
285
+ 950: "#4a044e"
286
+ },
287
+ pink: {
288
+ 50: "#fdf2f8",
289
+ 100: "#fce7f3",
290
+ 200: "#fbcfe8",
291
+ 300: "#f9a8d4",
292
+ 400: "#f472b6",
293
+ 500: "#ec4899",
294
+ 600: "#db2777",
295
+ 700: "#be185d",
296
+ 800: "#9d174d",
297
+ 900: "#831843",
298
+ 950: "#500724"
299
+ },
300
+ rose: {
301
+ 50: "#fff1f2",
302
+ 100: "#ffe4e6",
303
+ 200: "#fecdd3",
304
+ 300: "#fda4af",
305
+ 400: "#fb7185",
306
+ 500: "#f43f5e",
307
+ 600: "#e11d48",
308
+ 700: "#be123c",
309
+ 800: "#9f1239",
310
+ 900: "#881337",
311
+ 950: "#4c0519"
312
+ },
313
+ get lightBlue () {
314
+ warn({
315
+ version: "v2.2",
316
+ from: "lightBlue",
317
+ to: "sky"
318
+ });
319
+ return this.sky;
320
+ },
321
+ get warmGray () {
322
+ warn({
323
+ version: "v3.0",
324
+ from: "warmGray",
325
+ to: "stone"
326
+ });
327
+ return this.stone;
328
+ },
329
+ get trueGray () {
330
+ warn({
331
+ version: "v3.0",
332
+ from: "trueGray",
333
+ to: "neutral"
334
+ });
335
+ return this.neutral;
336
+ },
337
+ get coolGray () {
338
+ warn({
339
+ version: "v3.0",
340
+ from: "coolGray",
341
+ to: "gray"
342
+ });
343
+ return this.gray;
344
+ },
345
+ get blueGray () {
346
+ warn({
347
+ version: "v3.0",
348
+ from: "blueGray",
349
+ to: "slate"
350
+ });
351
+ return this.slate;
352
+ }
353
+ };
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "default", {
6
+ enumerable: true,
7
+ get: ()=>_default
8
+ });
9
+ const _createPlugin = /*#__PURE__*/ _interopRequireDefault(require("../util/createPlugin"));
10
+ function _interopRequireDefault(obj) {
11
+ return obj && obj.__esModule ? obj : {
12
+ default: obj
13
+ };
14
+ }
15
+ const _default = _createPlugin.default;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "default", {
6
+ enumerable: true,
7
+ get: ()=>_default
8
+ });
9
+ const _cloneDeep = require("../util/cloneDeep");
10
+ const _configFull = /*#__PURE__*/ _interopRequireDefault(require("../../stubs/config.full"));
11
+ function _interopRequireDefault(obj) {
12
+ return obj && obj.__esModule ? obj : {
13
+ default: obj
14
+ };
15
+ }
16
+ const _default = (0, _cloneDeep.cloneDeep)(_configFull.default);
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "default", {
6
+ enumerable: true,
7
+ get: ()=>_default
8
+ });
9
+ const _cloneDeep = require("../util/cloneDeep");
10
+ const _configFull = /*#__PURE__*/ _interopRequireDefault(require("../../stubs/config.full"));
11
+ function _interopRequireDefault(obj) {
12
+ return obj && obj.__esModule ? obj : {
13
+ default: obj
14
+ };
15
+ }
16
+ const _default = (0, _cloneDeep.cloneDeep)(_configFull.default.theme);
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "default", {
6
+ enumerable: true,
7
+ get: ()=>_default
8
+ });
9
+ const _loadConfig = require("../lib/load-config");
10
+ const _default = _loadConfig.loadConfig;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "default", {
6
+ enumerable: true,
7
+ get: ()=>resolveConfig
8
+ });
9
+ const _resolveConfig = /*#__PURE__*/ _interopRequireDefault(require("../util/resolveConfig"));
10
+ const _getAllConfigs = /*#__PURE__*/ _interopRequireDefault(require("../util/getAllConfigs"));
11
+ function _interopRequireDefault(obj) {
12
+ return obj && obj.__esModule ? obj : {
13
+ default: obj
14
+ };
15
+ }
16
+ function resolveConfig(...configs) {
17
+ let [, ...defaultConfigs] = (0, _getAllConfigs.default)(configs[0]);
18
+ return (0, _resolveConfig.default)([
19
+ ...configs,
20
+ ...defaultConfigs
21
+ ]);
22
+ }
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "applyImportantSelector", {
6
+ enumerable: true,
7
+ get: ()=>applyImportantSelector
8
+ });
9
+ const _splitAtTopLevelOnly = require("./splitAtTopLevelOnly");
10
+ function applyImportantSelector(selector, important) {
11
+ let matches = /^(.*?)(:before|:after|::[\w-]+)(\)*)$/g.exec(selector);
12
+ if (!matches) return `${important} ${wrapWithIs(selector)}`;
13
+ let [, before, pseudo, brackets] = matches;
14
+ return `${important} ${wrapWithIs(before + brackets)}${pseudo}`;
15
+ }
16
+ function wrapWithIs(selector) {
17
+ let parts = (0, _splitAtTopLevelOnly.splitAtTopLevelOnly)(selector, " ");
18
+ if (parts.length === 1 && parts[0].startsWith(":is(") && parts[0].endsWith(")")) {
19
+ return selector;
20
+ }
21
+ return `:is(${selector})`;
22
+ }
@@ -1,10 +1,11 @@
1
1
  "use strict";
2
-
3
2
  Object.defineProperty(exports, "__esModule", {
4
- value: true
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "default", {
6
+ enumerable: true,
7
+ get: ()=>bigSign
5
8
  });
6
- exports.default = bigSign;
7
-
8
9
  function bigSign(bigIntValue) {
9
- return (bigIntValue > 0n) - (bigIntValue < 0n);
10
- }
10
+ return (bigIntValue > 0n) - (bigIntValue < 0n);
11
+ }
@@ -1,36 +1,25 @@
1
1
  "use strict";
2
-
3
2
  Object.defineProperty(exports, "__esModule", {
4
- value: true
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "default", {
6
+ enumerable: true,
7
+ get: ()=>buildMediaQuery
5
8
  });
6
- exports.default = buildMediaQuery;
7
-
8
9
  function buildMediaQuery(screens) {
9
- if (typeof screens === 'string') {
10
- screens = {
11
- min: screens
12
- };
13
- }
14
-
15
- if (!Array.isArray(screens)) {
16
- screens = [screens];
17
- }
18
-
19
- return screens.map(screen => {
20
- var _screen$hasOwnPropert;
21
-
22
- if (screen !== null && screen !== void 0 && (_screen$hasOwnPropert = screen.hasOwnProperty) !== null && _screen$hasOwnPropert !== void 0 && _screen$hasOwnPropert.call(screen, 'raw')) {
23
- return screen.raw;
24
- }
25
-
26
- return Object.entries(screen).map(([feature, value]) => {
27
- var _min$max$feature;
28
-
29
- feature = (_min$max$feature = {
30
- min: 'min-width',
31
- max: 'max-width'
32
- }[feature]) !== null && _min$max$feature !== void 0 ? _min$max$feature : feature;
33
- return `(${feature}: ${value})`;
34
- }).join(' and ');
35
- }).join(', ');
36
- }
10
+ screens = Array.isArray(screens) ? screens : [
11
+ screens
12
+ ];
13
+ return screens.map((screen)=>{
14
+ let values = screen.values.map((screen)=>{
15
+ if (screen.raw !== undefined) {
16
+ return screen.raw;
17
+ }
18
+ return [
19
+ screen.min && `(min-width: ${screen.min})`,
20
+ screen.max && `(max-width: ${screen.max})`
21
+ ].filter(Boolean).join(" and ");
22
+ });
23
+ return screen.not ? `not all and ${values}` : values;
24
+ }).join(", ");
25
+ }