tailwindcss 0.0.0-insiders.ff2c25f → 0.0.0-internal.b2586d4e

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 (248) hide show
  1. package/README.md +5 -6
  2. package/dist/lib.d.mts +339 -0
  3. package/dist/lib.d.ts +339 -0
  4. package/dist/lib.js +17 -0
  5. package/dist/lib.mjs +17 -0
  6. package/index.css +5 -0
  7. package/package.json +36 -107
  8. package/preflight.css +334 -0
  9. package/theme.css +463 -0
  10. package/base.css +0 -1
  11. package/colors.d.ts +0 -3
  12. package/colors.js +0 -2
  13. package/components.css +0 -1
  14. package/defaultConfig.d.ts +0 -3
  15. package/defaultConfig.js +0 -2
  16. package/defaultTheme.d.ts +0 -4
  17. package/defaultTheme.js +0 -2
  18. package/lib/cli/build/deps.js +0 -54
  19. package/lib/cli/build/index.js +0 -48
  20. package/lib/cli/build/plugin.js +0 -367
  21. package/lib/cli/build/utils.js +0 -78
  22. package/lib/cli/build/watching.js +0 -178
  23. package/lib/cli/help/index.js +0 -71
  24. package/lib/cli/index.js +0 -239
  25. package/lib/cli/init/index.js +0 -46
  26. package/lib/cli-peer-dependencies.js +0 -28
  27. package/lib/cli.js +0 -7
  28. package/lib/constants.js +0 -44
  29. package/lib/corePluginList.js +0 -181
  30. package/lib/corePlugins.js +0 -4062
  31. package/lib/css/LICENSE +0 -25
  32. package/lib/css/preflight.css +0 -367
  33. package/lib/featureFlags.js +0 -71
  34. package/lib/index.js +0 -6
  35. package/lib/lib/cacheInvalidation.js +0 -90
  36. package/lib/lib/collapseAdjacentRules.js +0 -59
  37. package/lib/lib/collapseDuplicateDeclarations.js +0 -83
  38. package/lib/lib/content.js +0 -177
  39. package/lib/lib/defaultExtractor.js +0 -241
  40. package/lib/lib/detectNesting.js +0 -43
  41. package/lib/lib/evaluateTailwindFunctions.js +0 -234
  42. package/lib/lib/expandApplyAtRules.js +0 -526
  43. package/lib/lib/expandTailwindAtRules.js +0 -273
  44. package/lib/lib/findAtConfigPath.js +0 -44
  45. package/lib/lib/generateRules.js +0 -866
  46. package/lib/lib/getModuleDependencies.js +0 -51
  47. package/lib/lib/normalizeTailwindDirectives.js +0 -87
  48. package/lib/lib/offsets.js +0 -299
  49. package/lib/lib/partitionApplyAtRules.js +0 -56
  50. package/lib/lib/regex.js +0 -60
  51. package/lib/lib/remap-bitfield.js +0 -87
  52. package/lib/lib/resolveDefaultsAtRules.js +0 -161
  53. package/lib/lib/setupContextUtils.js +0 -1218
  54. package/lib/lib/setupTrackingContext.js +0 -163
  55. package/lib/lib/sharedState.js +0 -78
  56. package/lib/lib/substituteScreenAtRules.js +0 -29
  57. package/lib/oxide/cli/build/deps.js +0 -81
  58. package/lib/oxide/cli/build/index.js +0 -47
  59. package/lib/oxide/cli/build/plugin.js +0 -364
  60. package/lib/oxide/cli/build/utils.js +0 -77
  61. package/lib/oxide/cli/build/watching.js +0 -177
  62. package/lib/oxide/cli/help/index.js +0 -70
  63. package/lib/oxide/cli/index.js +0 -220
  64. package/lib/oxide/cli/init/index.js +0 -35
  65. package/lib/oxide/cli.js +0 -5
  66. package/lib/oxide/postcss-plugin.js +0 -2
  67. package/lib/plugin.js +0 -48
  68. package/lib/postcss-plugins/nesting/README.md +0 -42
  69. package/lib/postcss-plugins/nesting/index.js +0 -19
  70. package/lib/postcss-plugins/nesting/plugin.js +0 -87
  71. package/lib/processTailwindFeatures.js +0 -62
  72. package/lib/public/colors.js +0 -331
  73. package/lib/public/create-plugin.js +0 -15
  74. package/lib/public/default-config.js +0 -16
  75. package/lib/public/default-theme.js +0 -16
  76. package/lib/public/resolve-config.js +0 -22
  77. package/lib/util/bigSign.js +0 -11
  78. package/lib/util/buildMediaQuery.js +0 -25
  79. package/lib/util/cloneDeep.js +0 -20
  80. package/lib/util/cloneNodes.js +0 -32
  81. package/lib/util/color.js +0 -98
  82. package/lib/util/configurePlugins.js +0 -21
  83. package/lib/util/createPlugin.js +0 -30
  84. package/lib/util/createUtilityPlugin.js +0 -51
  85. package/lib/util/dataTypes.js +0 -266
  86. package/lib/util/defaults.js +0 -25
  87. package/lib/util/escapeClassName.js +0 -22
  88. package/lib/util/escapeCommas.js +0 -11
  89. package/lib/util/flattenColorPalette.js +0 -16
  90. package/lib/util/formatVariantSelector.js +0 -351
  91. package/lib/util/getAllConfigs.js +0 -48
  92. package/lib/util/hashConfig.js +0 -19
  93. package/lib/util/isKeyframeRule.js +0 -11
  94. package/lib/util/isPlainObject.js +0 -15
  95. package/lib/util/isSyntacticallyValidPropertyValue.js +0 -72
  96. package/lib/util/log.js +0 -57
  97. package/lib/util/nameClass.js +0 -43
  98. package/lib/util/negateValue.js +0 -34
  99. package/lib/util/normalizeConfig.js +0 -281
  100. package/lib/util/normalizeScreens.js +0 -170
  101. package/lib/util/parseAnimationValue.js +0 -91
  102. package/lib/util/parseBoxShadowValue.js +0 -84
  103. package/lib/util/parseDependency.js +0 -45
  104. package/lib/util/parseGlob.js +0 -34
  105. package/lib/util/parseObjectStyles.js +0 -34
  106. package/lib/util/pluginUtils.js +0 -283
  107. package/lib/util/prefixSelector.js +0 -37
  108. package/lib/util/removeAlphaVariables.js +0 -29
  109. package/lib/util/resolveConfig.js +0 -254
  110. package/lib/util/resolveConfigPath.js +0 -54
  111. package/lib/util/responsive.js +0 -22
  112. package/lib/util/splitAtTopLevelOnly.js +0 -43
  113. package/lib/util/tap.js +0 -12
  114. package/lib/util/toColorValue.js +0 -11
  115. package/lib/util/toPath.js +0 -30
  116. package/lib/util/transformThemeValue.js +0 -71
  117. package/lib/util/validateConfig.js +0 -24
  118. package/lib/util/validateFormalSyntax.js +0 -24
  119. package/lib/util/withAlphaVariable.js +0 -75
  120. package/nesting/index.js +0 -2
  121. package/oxide-node-api-shim/index.js +0 -21
  122. package/oxide-node-api-shim/package.json +0 -5
  123. package/peers/index.js +0 -79461
  124. package/plugin.d.ts +0 -11
  125. package/plugin.js +0 -2
  126. package/prettier.config.js +0 -19
  127. package/resolveConfig.d.ts +0 -12
  128. package/resolveConfig.js +0 -2
  129. package/screens.css +0 -1
  130. package/scripts/create-plugin-list.js +0 -10
  131. package/scripts/generate-types.js +0 -105
  132. package/scripts/release-channel.js +0 -18
  133. package/scripts/release-notes.js +0 -21
  134. package/scripts/swap-engines.js +0 -40
  135. package/scripts/type-utils.js +0 -27
  136. package/src/cli/build/deps.js +0 -56
  137. package/src/cli/build/index.js +0 -49
  138. package/src/cli/build/plugin.js +0 -439
  139. package/src/cli/build/utils.js +0 -76
  140. package/src/cli/build/watching.js +0 -227
  141. package/src/cli/help/index.js +0 -70
  142. package/src/cli/index.js +0 -234
  143. package/src/cli/init/index.js +0 -50
  144. package/src/cli-peer-dependencies.js +0 -15
  145. package/src/cli.js +0 -7
  146. package/src/constants.js +0 -17
  147. package/src/corePluginList.js +0 -1
  148. package/src/corePlugins.js +0 -2744
  149. package/src/css/LICENSE +0 -25
  150. package/src/css/preflight.css +0 -367
  151. package/src/featureFlags.js +0 -64
  152. package/src/index.js +0 -5
  153. package/src/lib/cacheInvalidation.js +0 -52
  154. package/src/lib/collapseAdjacentRules.js +0 -58
  155. package/src/lib/collapseDuplicateDeclarations.js +0 -93
  156. package/src/lib/content.js +0 -208
  157. package/src/lib/defaultExtractor.js +0 -217
  158. package/src/lib/detectNesting.js +0 -47
  159. package/src/lib/evaluateTailwindFunctions.js +0 -269
  160. package/src/lib/expandApplyAtRules.js +0 -606
  161. package/src/lib/expandTailwindAtRules.js +0 -285
  162. package/src/lib/findAtConfigPath.js +0 -48
  163. package/src/lib/generateRules.js +0 -899
  164. package/src/lib/getModuleDependencies.js +0 -39
  165. package/src/lib/normalizeTailwindDirectives.js +0 -84
  166. package/src/lib/offsets.js +0 -367
  167. package/src/lib/partitionApplyAtRules.js +0 -52
  168. package/src/lib/regex.js +0 -74
  169. package/src/lib/remap-bitfield.js +0 -82
  170. package/src/lib/resolveDefaultsAtRules.js +0 -163
  171. package/src/lib/setupContextUtils.js +0 -1308
  172. package/src/lib/setupTrackingContext.js +0 -171
  173. package/src/lib/sharedState.js +0 -67
  174. package/src/lib/substituteScreenAtRules.js +0 -19
  175. package/src/oxide/cli/build/deps.ts +0 -91
  176. package/src/oxide/cli/build/index.ts +0 -47
  177. package/src/oxide/cli/build/plugin.ts +0 -436
  178. package/src/oxide/cli/build/utils.ts +0 -74
  179. package/src/oxide/cli/build/watching.ts +0 -225
  180. package/src/oxide/cli/help/index.ts +0 -69
  181. package/src/oxide/cli/index.ts +0 -212
  182. package/src/oxide/cli/init/index.ts +0 -32
  183. package/src/oxide/cli.ts +0 -1
  184. package/src/oxide/postcss-plugin.ts +0 -1
  185. package/src/plugin.js +0 -47
  186. package/src/postcss-plugins/nesting/README.md +0 -42
  187. package/src/postcss-plugins/nesting/index.js +0 -13
  188. package/src/postcss-plugins/nesting/plugin.js +0 -80
  189. package/src/processTailwindFeatures.js +0 -58
  190. package/src/public/colors.js +0 -300
  191. package/src/public/create-plugin.js +0 -2
  192. package/src/public/default-config.js +0 -4
  193. package/src/public/default-theme.js +0 -4
  194. package/src/public/resolve-config.js +0 -7
  195. package/src/util/bigSign.js +0 -3
  196. package/src/util/buildMediaQuery.js +0 -22
  197. package/src/util/cloneDeep.js +0 -11
  198. package/src/util/cloneNodes.js +0 -28
  199. package/src/util/color.js +0 -73
  200. package/src/util/configurePlugins.js +0 -23
  201. package/src/util/createPlugin.js +0 -27
  202. package/src/util/createUtilityPlugin.js +0 -37
  203. package/src/util/dataTypes.js +0 -281
  204. package/src/util/defaults.js +0 -17
  205. package/src/util/escapeClassName.js +0 -8
  206. package/src/util/escapeCommas.js +0 -3
  207. package/src/util/flattenColorPalette.js +0 -13
  208. package/src/util/formatVariantSelector.js +0 -412
  209. package/src/util/getAllConfigs.js +0 -38
  210. package/src/util/hashConfig.js +0 -5
  211. package/src/util/isKeyframeRule.js +0 -3
  212. package/src/util/isPlainObject.js +0 -8
  213. package/src/util/isSyntacticallyValidPropertyValue.js +0 -61
  214. package/src/util/log.js +0 -29
  215. package/src/util/nameClass.js +0 -30
  216. package/src/util/negateValue.js +0 -24
  217. package/src/util/normalizeConfig.js +0 -300
  218. package/src/util/normalizeScreens.js +0 -140
  219. package/src/util/parseAnimationValue.js +0 -68
  220. package/src/util/parseBoxShadowValue.js +0 -72
  221. package/src/util/parseDependency.js +0 -44
  222. package/src/util/parseGlob.js +0 -24
  223. package/src/util/parseObjectStyles.js +0 -19
  224. package/src/util/pluginUtils.js +0 -314
  225. package/src/util/prefixSelector.js +0 -32
  226. package/src/util/removeAlphaVariables.js +0 -24
  227. package/src/util/resolveConfig.js +0 -277
  228. package/src/util/resolveConfigPath.js +0 -55
  229. package/src/util/responsive.js +0 -10
  230. package/src/util/splitAtTopLevelOnly.js +0 -45
  231. package/src/util/tap.js +0 -4
  232. package/src/util/toColorValue.js +0 -3
  233. package/src/util/toPath.js +0 -26
  234. package/src/util/transformThemeValue.js +0 -62
  235. package/src/util/validateConfig.js +0 -13
  236. package/src/util/validateFormalSyntax.js +0 -34
  237. package/src/util/withAlphaVariable.js +0 -49
  238. package/stubs/defaultConfig.stub.js +0 -956
  239. package/stubs/defaultPostCssConfig.stub.js +0 -6
  240. package/stubs/simpleConfig.stub.js +0 -8
  241. package/tailwind.css +0 -5
  242. package/types/config.d.ts +0 -367
  243. package/types/generated/.gitkeep +0 -0
  244. package/types/generated/colors.d.ts +0 -276
  245. package/types/generated/corePluginList.d.ts +0 -1
  246. package/types/generated/default-theme.d.ts +0 -345
  247. package/types/index.d.ts +0 -7
  248. package/variants.css +0 -1
@@ -1,6 +0,0 @@
1
- module.exports = {
2
- plugins: {
3
- tailwindcss: {},
4
- autoprefixer: {},
5
- },
6
- }
@@ -1,8 +0,0 @@
1
- /** @type {import('tailwindcss').Config} */
2
- module.exports = {
3
- content: [],
4
- theme: {
5
- extend: {},
6
- },
7
- plugins: [],
8
- }
package/tailwind.css DELETED
@@ -1,5 +0,0 @@
1
- @tailwind base;
2
-
3
- @tailwind components;
4
-
5
- @tailwind utilities;
package/types/config.d.ts DELETED
@@ -1,367 +0,0 @@
1
- import type { CorePluginList } from './generated/corePluginList'
2
- import type { DefaultColors } from './generated/colors'
3
-
4
- // Helpers
5
- type Expand<T> = T extends object
6
- ? T extends infer O
7
- ? { [K in keyof O]: Expand<O[K]> }
8
- : never
9
- : T
10
- type KeyValuePair<K extends keyof any = string, V = string> = Record<K, V>
11
- interface RecursiveKeyValuePair<K extends keyof any = string, V = string> {
12
- [key: string]: V | RecursiveKeyValuePair<K, V>
13
- }
14
- export type ResolvableTo<T> = T | ((utils: PluginUtils) => T)
15
- type CSSRuleObject = RecursiveKeyValuePair<string, null | string | string[]>
16
-
17
- interface PluginUtils {
18
- colors: DefaultColors
19
- theme(path: string, defaultValue?: unknown): any
20
- breakpoints<I = Record<string, unknown>, O = I>(arg: I): O
21
- rgb(arg: string): (arg: Partial<{ opacityVariable: string; opacityValue: number }>) => string
22
- hsl(arg: string): (arg: Partial<{ opacityVariable: string; opacityValue: number }>) => string
23
- }
24
-
25
- // Content related config
26
- type FilePath = string
27
- type RawFile = { raw: string; extension?: string }
28
- type ExtractorFn = (content: string) => string[]
29
- type TransformerFn = (content: string) => string
30
- type ContentConfig =
31
- | (FilePath | RawFile)[]
32
- | {
33
- files: (FilePath | RawFile)[]
34
- relative?: boolean
35
- extract?: ExtractorFn | { [extension: string]: ExtractorFn }
36
- transform?: TransformerFn | { [extension: string]: TransformerFn }
37
- }
38
-
39
- // Important related config
40
- type ImportantConfig = boolean | string
41
-
42
- // Prefix related config
43
- type PrefixConfig = string
44
-
45
- // Separator related config
46
- type SeparatorConfig = string
47
-
48
- // Safelist related config
49
- type SafelistConfig =
50
- | string[]
51
- | {
52
- pattern: RegExp
53
- variants?: string[]
54
- }[]
55
-
56
- // Blocklist related config
57
- type BlocklistConfig = string[]
58
-
59
- // Presets related config
60
- type PresetsConfig = Config[]
61
-
62
- // Future related config
63
- type FutureConfigValues =
64
- | 'hoverOnlyWhenSupported'
65
- | 'respectDefaultRingColorOpacity'
66
- | 'disableColorOpacityUtilitiesByDefault'
67
- | 'relativeContentPathsByDefault'
68
- type FutureConfig = Expand<'all' | Partial<Record<FutureConfigValues, boolean>>> | []
69
-
70
- // Experimental related config
71
- type ExperimentalConfigValues = 'optimizeUniversalDefaults' | 'matchVariant'
72
- type ExperimentalConfig = Expand<'all' | Partial<Record<ExperimentalConfigValues, boolean>>> | []
73
-
74
- // DarkMode related config
75
- type DarkModeConfig =
76
- // Use the `media` query strategy.
77
- | 'media'
78
- // Use the `class` strategy, which requires a `.dark` class on the `html`.
79
- | 'class'
80
- // Use the `class` strategy with a custom class instead of `.dark`.
81
- | ['class', string]
82
-
83
- type Screen = { raw: string } | { min: string } | { max: string } | { min: string; max: string }
84
- type ScreensConfig = string[] | KeyValuePair<string, string | Screen | Screen[]>
85
-
86
- // Theme related config
87
- interface ThemeConfig {
88
- // Responsiveness
89
- screens: ResolvableTo<ScreensConfig>
90
- supports: ResolvableTo<Record<string, string>>
91
- data: ResolvableTo<Record<string, string>>
92
-
93
- // Reusable base configs
94
- colors: ResolvableTo<RecursiveKeyValuePair>
95
- spacing: ResolvableTo<KeyValuePair>
96
-
97
- // Components
98
- container: ResolvableTo<
99
- Partial<{
100
- screens: ScreensConfig
101
- center: boolean
102
- padding: string | Record<string, string>
103
- }>
104
- >
105
-
106
- // Utilities
107
- inset: ThemeConfig['spacing']
108
- zIndex: ResolvableTo<KeyValuePair>
109
- order: ResolvableTo<KeyValuePair>
110
- gridColumn: ResolvableTo<KeyValuePair>
111
- gridColumnStart: ResolvableTo<KeyValuePair>
112
- gridColumnEnd: ResolvableTo<KeyValuePair>
113
- gridRow: ResolvableTo<KeyValuePair>
114
- gridRowStart: ResolvableTo<KeyValuePair>
115
- gridRowEnd: ResolvableTo<KeyValuePair>
116
- margin: ThemeConfig['spacing']
117
- aspectRatio: ResolvableTo<KeyValuePair>
118
- height: ThemeConfig['spacing']
119
- maxHeight: ThemeConfig['spacing']
120
- minHeight: ResolvableTo<KeyValuePair>
121
- width: ThemeConfig['spacing']
122
- maxWidth: ResolvableTo<KeyValuePair>
123
- minWidth: ResolvableTo<KeyValuePair>
124
- flex: ResolvableTo<KeyValuePair>
125
- flexShrink: ResolvableTo<KeyValuePair>
126
- flexGrow: ResolvableTo<KeyValuePair>
127
- flexBasis: ThemeConfig['spacing']
128
- borderSpacing: ThemeConfig['spacing']
129
- transformOrigin: ResolvableTo<KeyValuePair>
130
- translate: ThemeConfig['spacing']
131
- rotate: ResolvableTo<KeyValuePair>
132
- skew: ResolvableTo<KeyValuePair>
133
- scale: ResolvableTo<KeyValuePair>
134
- animation: ResolvableTo<KeyValuePair>
135
- keyframes: ResolvableTo<KeyValuePair<string, KeyValuePair<string, KeyValuePair>>>
136
- cursor: ResolvableTo<KeyValuePair>
137
- scrollMargin: ThemeConfig['spacing']
138
- scrollPadding: ThemeConfig['spacing']
139
- listStyleType: ResolvableTo<KeyValuePair>
140
- columns: ResolvableTo<KeyValuePair>
141
- gridAutoColumns: ResolvableTo<KeyValuePair>
142
- gridAutoRows: ResolvableTo<KeyValuePair>
143
- gridTemplateColumns: ResolvableTo<KeyValuePair>
144
- gridTemplateRows: ResolvableTo<KeyValuePair>
145
- gap: ThemeConfig['spacing']
146
- space: ThemeConfig['spacing']
147
- divideWidth: ThemeConfig['borderWidth']
148
- divideColor: ThemeConfig['borderColor']
149
- divideOpacity: ThemeConfig['borderOpacity']
150
- borderRadius: ResolvableTo<KeyValuePair>
151
- borderWidth: ResolvableTo<KeyValuePair>
152
- borderColor: ThemeConfig['colors']
153
- borderOpacity: ThemeConfig['opacity']
154
- backgroundColor: ThemeConfig['colors']
155
- backgroundOpacity: ThemeConfig['opacity']
156
- backgroundImage: ResolvableTo<KeyValuePair>
157
- gradientColorStops: ThemeConfig['colors']
158
- backgroundSize: ResolvableTo<KeyValuePair>
159
- backgroundPosition: ResolvableTo<KeyValuePair>
160
- fill: ThemeConfig['colors']
161
- stroke: ThemeConfig['colors']
162
- strokeWidth: ResolvableTo<KeyValuePair>
163
- objectPosition: ResolvableTo<KeyValuePair>
164
- padding: ThemeConfig['spacing']
165
- textIndent: ThemeConfig['spacing']
166
- fontFamily: ResolvableTo<
167
- KeyValuePair<
168
- string,
169
- | string
170
- | string[]
171
- | [fontFamily: string | string[], configuration: Partial<{ fontFeatureSettings: string }>]
172
- >
173
- >
174
- fontSize: ResolvableTo<
175
- KeyValuePair<
176
- string,
177
- | string
178
- | [fontSize: string, lineHeight: string]
179
- | [
180
- fontSize: string,
181
- configuration: Partial<{
182
- lineHeight: string
183
- letterSpacing: string
184
- fontWeight: string | number
185
- }>
186
- ]
187
- >
188
- >
189
- fontWeight: ResolvableTo<KeyValuePair>
190
- lineHeight: ResolvableTo<KeyValuePair>
191
- letterSpacing: ResolvableTo<KeyValuePair>
192
- textColor: ThemeConfig['colors']
193
- textOpacity: ThemeConfig['opacity']
194
- textDecorationColor: ThemeConfig['colors']
195
- textDecorationThickness: ResolvableTo<KeyValuePair>
196
- textUnderlineOffset: ResolvableTo<KeyValuePair>
197
- placeholderColor: ThemeConfig['colors']
198
- placeholderOpacity: ThemeConfig['opacity']
199
- caretColor: ThemeConfig['colors']
200
- accentColor: ThemeConfig['colors']
201
- opacity: ResolvableTo<KeyValuePair>
202
- boxShadow: ResolvableTo<KeyValuePair>
203
- boxShadowColor: ThemeConfig['colors']
204
- outlineWidth: ResolvableTo<KeyValuePair>
205
- outlineOffset: ResolvableTo<KeyValuePair>
206
- outlineColor: ThemeConfig['colors']
207
- ringWidth: ResolvableTo<KeyValuePair>
208
- ringColor: ThemeConfig['colors']
209
- ringOpacity: ThemeConfig['opacity']
210
- ringOffsetWidth: ResolvableTo<KeyValuePair>
211
- ringOffsetColor: ThemeConfig['colors']
212
- blur: ResolvableTo<KeyValuePair>
213
- brightness: ResolvableTo<KeyValuePair>
214
- contrast: ResolvableTo<KeyValuePair>
215
- dropShadow: ResolvableTo<KeyValuePair<string, string | string[]>>
216
- grayscale: ResolvableTo<KeyValuePair>
217
- hueRotate: ResolvableTo<KeyValuePair>
218
- invert: ResolvableTo<KeyValuePair>
219
- saturate: ResolvableTo<KeyValuePair>
220
- sepia: ResolvableTo<KeyValuePair>
221
- backdropBlur: ThemeConfig['blur']
222
- backdropBrightness: ThemeConfig['brightness']
223
- backdropContrast: ThemeConfig['contrast']
224
- backdropGrayscale: ThemeConfig['grayscale']
225
- backdropHueRotate: ThemeConfig['hueRotate']
226
- backdropInvert: ThemeConfig['invert']
227
- backdropOpacity: ThemeConfig['opacity']
228
- backdropSaturate: ThemeConfig['saturate']
229
- backdropSepia: ThemeConfig['sepia']
230
- transitionProperty: ResolvableTo<KeyValuePair>
231
- transitionTimingFunction: ResolvableTo<KeyValuePair>
232
- transitionDelay: ResolvableTo<KeyValuePair>
233
- transitionDuration: ResolvableTo<KeyValuePair>
234
- willChange: ResolvableTo<KeyValuePair>
235
- content: ResolvableTo<KeyValuePair>
236
-
237
- // Custom
238
- [key: string]: any
239
- }
240
-
241
- // Core plugins related config
242
- type CorePluginsConfig = CorePluginList[] | Expand<Partial<Record<CorePluginList, boolean>>>
243
-
244
- // Plugins related config
245
- type ValueType =
246
- | 'any'
247
- | 'color'
248
- | 'url'
249
- | 'image'
250
- | 'length'
251
- | 'percentage'
252
- | 'position'
253
- | 'lookup'
254
- | 'generic-name'
255
- | 'family-name'
256
- | 'number'
257
- | 'line-width'
258
- | 'absolute-size'
259
- | 'relative-size'
260
- | 'shadow'
261
- export interface PluginAPI {
262
- // for registering new static utility styles
263
- addUtilities(
264
- utilities: CSSRuleObject | CSSRuleObject[],
265
- options?: Partial<{
266
- respectPrefix: boolean
267
- respectImportant: boolean
268
- }>
269
- ): void
270
- // for registering new dynamic utility styles
271
- matchUtilities<T = string, U = string>(
272
- utilities: KeyValuePair<
273
- string,
274
- (value: T | string, extra: { modifier: U | string | null }) => CSSRuleObject | null
275
- >,
276
- options?: Partial<{
277
- respectPrefix: boolean
278
- respectImportant: boolean
279
- type: ValueType | ValueType[]
280
- values: KeyValuePair<string, T>
281
- modifiers: 'any' | KeyValuePair<string, U>
282
- supportsNegativeValues: boolean
283
- }>
284
- ): void
285
- // for registering new static component styles
286
- addComponents(
287
- components: CSSRuleObject | CSSRuleObject[],
288
- options?: Partial<{
289
- respectPrefix: boolean
290
- respectImportant: boolean
291
- }>
292
- ): void
293
- // for registering new dynamic component styles
294
- matchComponents<T = string, U = string>(
295
- components: KeyValuePair<
296
- string,
297
- (value: T | string, extra: { modifier: U | string | null }) => CSSRuleObject | null
298
- >,
299
- options?: Partial<{
300
- respectPrefix: boolean
301
- respectImportant: boolean
302
- type: ValueType | ValueType[]
303
- values: KeyValuePair<string, T>
304
- modifiers: 'any' | KeyValuePair<string, U>
305
- supportsNegativeValues: boolean
306
- }>
307
- ): void
308
- // for registering new base styles
309
- addBase(base: CSSRuleObject | CSSRuleObject[]): void
310
- // for registering custom variants
311
- addVariant(name: string, definition: string | string[] | (() => string) | (() => string)[]): void
312
- matchVariant<T = string>(
313
- name: string,
314
- cb: (value: T | string, extra: { modifier: string | null }) => string | string[],
315
- options?: {
316
- values?: KeyValuePair<string, T>
317
- sort?(
318
- a: { value: T | string; modifier: string | null },
319
- b: { value: T | string; modifier: string | null }
320
- ): number
321
- }
322
- ): void
323
- // for looking up values in the user’s theme configuration
324
- theme: <TDefaultValue = Config['theme']>(
325
- path?: string,
326
- defaultValue?: TDefaultValue
327
- ) => TDefaultValue
328
- // for looking up values in the user’s Tailwind configuration
329
- config: <TDefaultValue = Config>(path?: string, defaultValue?: TDefaultValue) => TDefaultValue
330
- // for checking if a core plugin is enabled
331
- corePlugins(path: string): boolean
332
- // for manually escaping strings meant to be used in class names
333
- e: (className: string) => string
334
- }
335
- export type PluginCreator = (api: PluginAPI) => void
336
- export type PluginsConfig = (
337
- | PluginCreator
338
- | { handler: PluginCreator; config?: Partial<Config> }
339
- | {
340
- (options: any): { handler: PluginCreator; config?: Partial<Config> }
341
- __isOptionsFunction: true
342
- }
343
- )[]
344
-
345
- // Top level config related
346
- interface RequiredConfig {
347
- content: ContentConfig
348
- }
349
-
350
- interface OptionalConfig {
351
- important: Partial<ImportantConfig>
352
- prefix: Partial<PrefixConfig>
353
- separator: Partial<SeparatorConfig>
354
- safelist: Partial<SafelistConfig>
355
- blocklist: Partial<BlocklistConfig>
356
- presets: Partial<PresetsConfig>
357
- future: Partial<FutureConfig>
358
- experimental: Partial<ExperimentalConfig>
359
- darkMode: Partial<DarkModeConfig>
360
- theme: Partial<ThemeConfig & { extend: Partial<ThemeConfig> }>
361
- corePlugins: Partial<CorePluginsConfig>
362
- plugins: Partial<PluginsConfig>
363
- // Custom
364
- [key: string]: any
365
- }
366
-
367
- export type Config = RequiredConfig & Partial<OptionalConfig>
File without changes
@@ -1,276 +0,0 @@
1
- export interface DefaultColors {
2
- inherit: 'inherit'
3
- current: 'currentColor'
4
- transparent: 'transparent'
5
- black: '#000'
6
- white: '#fff'
7
- slate: {
8
- '50': '#f8fafc'
9
- '100': '#f1f5f9'
10
- '200': '#e2e8f0'
11
- '300': '#cbd5e1'
12
- '400': '#94a3b8'
13
- '500': '#64748b'
14
- '600': '#475569'
15
- '700': '#334155'
16
- '800': '#1e293b'
17
- '900': '#0f172a'
18
- }
19
- gray: {
20
- '50': '#f9fafb'
21
- '100': '#f3f4f6'
22
- '200': '#e5e7eb'
23
- '300': '#d1d5db'
24
- '400': '#9ca3af'
25
- '500': '#6b7280'
26
- '600': '#4b5563'
27
- '700': '#374151'
28
- '800': '#1f2937'
29
- '900': '#111827'
30
- }
31
- zinc: {
32
- '50': '#fafafa'
33
- '100': '#f4f4f5'
34
- '200': '#e4e4e7'
35
- '300': '#d4d4d8'
36
- '400': '#a1a1aa'
37
- '500': '#71717a'
38
- '600': '#52525b'
39
- '700': '#3f3f46'
40
- '800': '#27272a'
41
- '900': '#18181b'
42
- }
43
- neutral: {
44
- '50': '#fafafa'
45
- '100': '#f5f5f5'
46
- '200': '#e5e5e5'
47
- '300': '#d4d4d4'
48
- '400': '#a3a3a3'
49
- '500': '#737373'
50
- '600': '#525252'
51
- '700': '#404040'
52
- '800': '#262626'
53
- '900': '#171717'
54
- }
55
- stone: {
56
- '50': '#fafaf9'
57
- '100': '#f5f5f4'
58
- '200': '#e7e5e4'
59
- '300': '#d6d3d1'
60
- '400': '#a8a29e'
61
- '500': '#78716c'
62
- '600': '#57534e'
63
- '700': '#44403c'
64
- '800': '#292524'
65
- '900': '#1c1917'
66
- }
67
- red: {
68
- '50': '#fef2f2'
69
- '100': '#fee2e2'
70
- '200': '#fecaca'
71
- '300': '#fca5a5'
72
- '400': '#f87171'
73
- '500': '#ef4444'
74
- '600': '#dc2626'
75
- '700': '#b91c1c'
76
- '800': '#991b1b'
77
- '900': '#7f1d1d'
78
- }
79
- orange: {
80
- '50': '#fff7ed'
81
- '100': '#ffedd5'
82
- '200': '#fed7aa'
83
- '300': '#fdba74'
84
- '400': '#fb923c'
85
- '500': '#f97316'
86
- '600': '#ea580c'
87
- '700': '#c2410c'
88
- '800': '#9a3412'
89
- '900': '#7c2d12'
90
- }
91
- amber: {
92
- '50': '#fffbeb'
93
- '100': '#fef3c7'
94
- '200': '#fde68a'
95
- '300': '#fcd34d'
96
- '400': '#fbbf24'
97
- '500': '#f59e0b'
98
- '600': '#d97706'
99
- '700': '#b45309'
100
- '800': '#92400e'
101
- '900': '#78350f'
102
- }
103
- yellow: {
104
- '50': '#fefce8'
105
- '100': '#fef9c3'
106
- '200': '#fef08a'
107
- '300': '#fde047'
108
- '400': '#facc15'
109
- '500': '#eab308'
110
- '600': '#ca8a04'
111
- '700': '#a16207'
112
- '800': '#854d0e'
113
- '900': '#713f12'
114
- }
115
- lime: {
116
- '50': '#f7fee7'
117
- '100': '#ecfccb'
118
- '200': '#d9f99d'
119
- '300': '#bef264'
120
- '400': '#a3e635'
121
- '500': '#84cc16'
122
- '600': '#65a30d'
123
- '700': '#4d7c0f'
124
- '800': '#3f6212'
125
- '900': '#365314'
126
- }
127
- green: {
128
- '50': '#f0fdf4'
129
- '100': '#dcfce7'
130
- '200': '#bbf7d0'
131
- '300': '#86efac'
132
- '400': '#4ade80'
133
- '500': '#22c55e'
134
- '600': '#16a34a'
135
- '700': '#15803d'
136
- '800': '#166534'
137
- '900': '#14532d'
138
- }
139
- emerald: {
140
- '50': '#ecfdf5'
141
- '100': '#d1fae5'
142
- '200': '#a7f3d0'
143
- '300': '#6ee7b7'
144
- '400': '#34d399'
145
- '500': '#10b981'
146
- '600': '#059669'
147
- '700': '#047857'
148
- '800': '#065f46'
149
- '900': '#064e3b'
150
- }
151
- teal: {
152
- '50': '#f0fdfa'
153
- '100': '#ccfbf1'
154
- '200': '#99f6e4'
155
- '300': '#5eead4'
156
- '400': '#2dd4bf'
157
- '500': '#14b8a6'
158
- '600': '#0d9488'
159
- '700': '#0f766e'
160
- '800': '#115e59'
161
- '900': '#134e4a'
162
- }
163
- cyan: {
164
- '50': '#ecfeff'
165
- '100': '#cffafe'
166
- '200': '#a5f3fc'
167
- '300': '#67e8f9'
168
- '400': '#22d3ee'
169
- '500': '#06b6d4'
170
- '600': '#0891b2'
171
- '700': '#0e7490'
172
- '800': '#155e75'
173
- '900': '#164e63'
174
- }
175
- sky: {
176
- '50': '#f0f9ff'
177
- '100': '#e0f2fe'
178
- '200': '#bae6fd'
179
- '300': '#7dd3fc'
180
- '400': '#38bdf8'
181
- '500': '#0ea5e9'
182
- '600': '#0284c7'
183
- '700': '#0369a1'
184
- '800': '#075985'
185
- '900': '#0c4a6e'
186
- }
187
- blue: {
188
- '50': '#eff6ff'
189
- '100': '#dbeafe'
190
- '200': '#bfdbfe'
191
- '300': '#93c5fd'
192
- '400': '#60a5fa'
193
- '500': '#3b82f6'
194
- '600': '#2563eb'
195
- '700': '#1d4ed8'
196
- '800': '#1e40af'
197
- '900': '#1e3a8a'
198
- }
199
- indigo: {
200
- '50': '#eef2ff'
201
- '100': '#e0e7ff'
202
- '200': '#c7d2fe'
203
- '300': '#a5b4fc'
204
- '400': '#818cf8'
205
- '500': '#6366f1'
206
- '600': '#4f46e5'
207
- '700': '#4338ca'
208
- '800': '#3730a3'
209
- '900': '#312e81'
210
- }
211
- violet: {
212
- '50': '#f5f3ff'
213
- '100': '#ede9fe'
214
- '200': '#ddd6fe'
215
- '300': '#c4b5fd'
216
- '400': '#a78bfa'
217
- '500': '#8b5cf6'
218
- '600': '#7c3aed'
219
- '700': '#6d28d9'
220
- '800': '#5b21b6'
221
- '900': '#4c1d95'
222
- }
223
- purple: {
224
- '50': '#faf5ff'
225
- '100': '#f3e8ff'
226
- '200': '#e9d5ff'
227
- '300': '#d8b4fe'
228
- '400': '#c084fc'
229
- '500': '#a855f7'
230
- '600': '#9333ea'
231
- '700': '#7e22ce'
232
- '800': '#6b21a8'
233
- '900': '#581c87'
234
- }
235
- fuchsia: {
236
- '50': '#fdf4ff'
237
- '100': '#fae8ff'
238
- '200': '#f5d0fe'
239
- '300': '#f0abfc'
240
- '400': '#e879f9'
241
- '500': '#d946ef'
242
- '600': '#c026d3'
243
- '700': '#a21caf'
244
- '800': '#86198f'
245
- '900': '#701a75'
246
- }
247
- pink: {
248
- '50': '#fdf2f8'
249
- '100': '#fce7f3'
250
- '200': '#fbcfe8'
251
- '300': '#f9a8d4'
252
- '400': '#f472b6'
253
- '500': '#ec4899'
254
- '600': '#db2777'
255
- '700': '#be185d'
256
- '800': '#9d174d'
257
- '900': '#831843'
258
- }
259
- rose: {
260
- '50': '#fff1f2'
261
- '100': '#ffe4e6'
262
- '200': '#fecdd3'
263
- '300': '#fda4af'
264
- '400': '#fb7185'
265
- '500': '#f43f5e'
266
- '600': '#e11d48'
267
- '700': '#be123c'
268
- '800': '#9f1239'
269
- '900': '#881337'
270
- }
271
- /** @deprecated As of Tailwind CSS v2.2, `lightBlue` has been renamed to `sky`. Update your configuration file to silence this warning. */ lightBlue: DefaultColors['sky']
272
- /** @deprecated As of Tailwind CSS v3.0, `warmGray` has been renamed to `stone`. Update your configuration file to silence this warning. */ warmGray: DefaultColors['stone']
273
- /** @deprecated As of Tailwind CSS v3.0, `trueGray` has been renamed to `neutral`. Update your configuration file to silence this warning. */ trueGray: DefaultColors['neutral']
274
- /** @deprecated As of Tailwind CSS v3.0, `coolGray` has been renamed to `gray`. Update your configuration file to silence this warning. */ coolGray: DefaultColors['gray']
275
- /** @deprecated As of Tailwind CSS v3.0, `blueGray` has been renamed to `slate`. Update your configuration file to silence this warning. */ blueGray: DefaultColors['slate']
276
- }
@@ -1 +0,0 @@
1
- export type CorePluginList = 'preflight' | 'container' | 'accessibility' | 'pointerEvents' | 'visibility' | 'position' | 'inset' | 'isolation' | 'zIndex' | 'order' | 'gridColumn' | 'gridColumnStart' | 'gridColumnEnd' | 'gridRow' | 'gridRowStart' | 'gridRowEnd' | 'float' | 'clear' | 'margin' | 'boxSizing' | 'display' | 'aspectRatio' | 'height' | 'maxHeight' | 'minHeight' | 'width' | 'minWidth' | 'maxWidth' | 'flex' | 'flexShrink' | 'flexGrow' | 'flexBasis' | 'tableLayout' | 'borderCollapse' | 'borderSpacing' | 'transformOrigin' | 'translate' | 'rotate' | 'skew' | 'scale' | 'transform' | 'animation' | 'cursor' | 'touchAction' | 'userSelect' | 'resize' | 'scrollSnapType' | 'scrollSnapAlign' | 'scrollSnapStop' | 'scrollMargin' | 'scrollPadding' | 'listStylePosition' | 'listStyleType' | 'appearance' | 'columns' | 'breakBefore' | 'breakInside' | 'breakAfter' | 'gridAutoColumns' | 'gridAutoFlow' | 'gridAutoRows' | 'gridTemplateColumns' | 'gridTemplateRows' | 'flexDirection' | 'flexWrap' | 'placeContent' | 'placeItems' | 'alignContent' | 'alignItems' | 'justifyContent' | 'justifyItems' | 'gap' | 'space' | 'divideWidth' | 'divideStyle' | 'divideColor' | 'divideOpacity' | 'placeSelf' | 'alignSelf' | 'justifySelf' | 'overflow' | 'overscrollBehavior' | 'scrollBehavior' | 'textOverflow' | 'whitespace' | 'wordBreak' | 'borderRadius' | 'borderWidth' | 'borderStyle' | 'borderColor' | 'borderOpacity' | 'backgroundColor' | 'backgroundOpacity' | 'backgroundImage' | 'gradientColorStops' | 'boxDecorationBreak' | 'backgroundSize' | 'backgroundAttachment' | 'backgroundClip' | 'backgroundPosition' | 'backgroundRepeat' | 'backgroundOrigin' | 'fill' | 'stroke' | 'strokeWidth' | 'objectFit' | 'objectPosition' | 'padding' | 'textAlign' | 'textIndent' | 'verticalAlign' | 'fontFamily' | 'fontSize' | 'fontWeight' | 'textTransform' | 'fontStyle' | 'fontVariantNumeric' | 'lineHeight' | 'letterSpacing' | 'textColor' | 'textOpacity' | 'textDecoration' | 'textDecorationColor' | 'textDecorationStyle' | 'textDecorationThickness' | 'textUnderlineOffset' | 'fontSmoothing' | 'placeholderColor' | 'placeholderOpacity' | 'caretColor' | 'accentColor' | 'opacity' | 'backgroundBlendMode' | 'mixBlendMode' | 'boxShadow' | 'boxShadowColor' | 'outlineStyle' | 'outlineWidth' | 'outlineOffset' | 'outlineColor' | 'ringWidth' | 'ringColor' | 'ringOpacity' | 'ringOffsetWidth' | 'ringOffsetColor' | 'blur' | 'brightness' | 'contrast' | 'dropShadow' | 'grayscale' | 'hueRotate' | 'invert' | 'saturate' | 'sepia' | 'filter' | 'backdropBlur' | 'backdropBrightness' | 'backdropContrast' | 'backdropGrayscale' | 'backdropHueRotate' | 'backdropInvert' | 'backdropOpacity' | 'backdropSaturate' | 'backdropSepia' | 'backdropFilter' | 'transitionProperty' | 'transitionDelay' | 'transitionDuration' | 'transitionTimingFunction' | 'willChange' | 'content'