tailwindcss 0.0.0-insiders.deefbf5 → 0.0.0-insiders.df96ea5

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 (218) hide show
  1. package/README.md +16 -17
  2. package/dist/chunk-GFBUASX3.mjs +1 -0
  3. package/dist/chunk-HTB5LLOP.mjs +1 -0
  4. package/dist/chunk-KV2PFGBW.mjs +38 -0
  5. package/dist/colors-b_6i0Oi7.d.ts +295 -0
  6. package/dist/colors.d.mts +295 -0
  7. package/dist/colors.d.ts +5 -0
  8. package/dist/colors.js +1 -0
  9. package/dist/colors.mjs +1 -0
  10. package/dist/default-theme.d.mts +1147 -0
  11. package/dist/default-theme.d.ts +1147 -0
  12. package/dist/default-theme.js +1 -0
  13. package/dist/default-theme.mjs +1 -0
  14. package/dist/flatten-color-palette.d.mts +6 -0
  15. package/dist/flatten-color-palette.d.ts +6 -0
  16. package/dist/flatten-color-palette.js +3 -0
  17. package/dist/flatten-color-palette.mjs +1 -0
  18. package/dist/lib.d.mts +378 -0
  19. package/dist/lib.d.ts +3 -0
  20. package/dist/lib.js +38 -0
  21. package/dist/lib.mjs +1 -0
  22. package/dist/plugin.d.mts +11 -0
  23. package/dist/plugin.d.ts +134 -0
  24. package/dist/plugin.js +1 -0
  25. package/dist/plugin.mjs +1 -0
  26. package/dist/resolve-config-BIFUA2FY.d.ts +29 -0
  27. package/dist/resolve-config-QUZ9b-Gn.d.mts +190 -0
  28. package/dist/types-CJYAW1ql.d.mts +128 -0
  29. package/index.css +896 -0
  30. package/package.json +76 -100
  31. package/preflight.css +393 -0
  32. package/theme.css +462 -0
  33. package/CHANGELOG.md +0 -2206
  34. package/base.css +0 -1
  35. package/colors.d.ts +0 -3
  36. package/colors.js +0 -2
  37. package/components.css +0 -1
  38. package/defaultConfig.d.ts +0 -3
  39. package/defaultConfig.js +0 -2
  40. package/defaultTheme.d.ts +0 -4
  41. package/defaultTheme.js +0 -2
  42. package/lib/cli-peer-dependencies.js +0 -20
  43. package/lib/cli.js +0 -805
  44. package/lib/constants.js +0 -37
  45. package/lib/corePluginList.js +0 -179
  46. package/lib/corePlugins.js +0 -3662
  47. package/lib/css/LICENSE +0 -25
  48. package/lib/css/preflight.css +0 -360
  49. package/lib/featureFlags.js +0 -61
  50. package/lib/index.js +0 -40
  51. package/lib/lib/cacheInvalidation.js +0 -87
  52. package/lib/lib/collapseAdjacentRules.js +0 -56
  53. package/lib/lib/collapseDuplicateDeclarations.js +0 -80
  54. package/lib/lib/defaultExtractor.js +0 -228
  55. package/lib/lib/detectNesting.js +0 -34
  56. package/lib/lib/evaluateTailwindFunctions.js +0 -215
  57. package/lib/lib/expandApplyAtRules.js +0 -470
  58. package/lib/lib/expandTailwindAtRules.js +0 -276
  59. package/lib/lib/generateRules.js +0 -722
  60. package/lib/lib/getModuleDependencies.js +0 -48
  61. package/lib/lib/normalizeTailwindDirectives.js +0 -84
  62. package/lib/lib/partitionApplyAtRules.js +0 -53
  63. package/lib/lib/regex.js +0 -52
  64. package/lib/lib/resolveDefaultsAtRules.js +0 -154
  65. package/lib/lib/setupContextUtils.js +0 -932
  66. package/lib/lib/setupTrackingContext.js +0 -169
  67. package/lib/lib/sharedState.js +0 -51
  68. package/lib/lib/substituteScreenAtRules.js +0 -26
  69. package/lib/postcss-plugins/nesting/README.md +0 -42
  70. package/lib/postcss-plugins/nesting/index.js +0 -17
  71. package/lib/postcss-plugins/nesting/plugin.js +0 -84
  72. package/lib/processTailwindFeatures.js +0 -59
  73. package/lib/public/colors.js +0 -329
  74. package/lib/public/create-plugin.js +0 -13
  75. package/lib/public/default-config.js +0 -14
  76. package/lib/public/default-theme.js +0 -14
  77. package/lib/public/resolve-config.js +0 -19
  78. package/lib/util/bigSign.js +0 -8
  79. package/lib/util/buildMediaQuery.js +0 -19
  80. package/lib/util/cloneDeep.js +0 -17
  81. package/lib/util/cloneNodes.js +0 -25
  82. package/lib/util/color.js +0 -90
  83. package/lib/util/configurePlugins.js +0 -18
  84. package/lib/util/createPlugin.js +0 -28
  85. package/lib/util/createUtilityPlugin.js +0 -48
  86. package/lib/util/dataTypes.js +0 -235
  87. package/lib/util/defaults.js +0 -22
  88. package/lib/util/escapeClassName.js +0 -19
  89. package/lib/util/escapeCommas.js +0 -8
  90. package/lib/util/flattenColorPalette.js +0 -14
  91. package/lib/util/formatVariantSelector.js +0 -194
  92. package/lib/util/getAllConfigs.js +0 -34
  93. package/lib/util/hashConfig.js +0 -16
  94. package/lib/util/isKeyframeRule.js +0 -8
  95. package/lib/util/isPlainObject.js +0 -12
  96. package/lib/util/isValidArbitraryValue.js +0 -63
  97. package/lib/util/log.js +0 -50
  98. package/lib/util/nameClass.js +0 -32
  99. package/lib/util/negateValue.js +0 -18
  100. package/lib/util/normalizeConfig.js +0 -250
  101. package/lib/util/normalizeScreens.js +0 -58
  102. package/lib/util/parseAnimationValue.js +0 -88
  103. package/lib/util/parseBoxShadowValue.js +0 -76
  104. package/lib/util/parseDependency.js +0 -63
  105. package/lib/util/parseObjectStyles.js +0 -31
  106. package/lib/util/pluginUtils.js +0 -187
  107. package/lib/util/prefixSelector.js +0 -20
  108. package/lib/util/removeAlphaVariables.js +0 -18
  109. package/lib/util/resolveConfig.js +0 -256
  110. package/lib/util/resolveConfigPath.js +0 -51
  111. package/lib/util/responsive.js +0 -19
  112. package/lib/util/splitAtTopLevelOnly.js +0 -90
  113. package/lib/util/tap.js +0 -9
  114. package/lib/util/toColorValue.js +0 -8
  115. package/lib/util/toPath.js +0 -14
  116. package/lib/util/transformThemeValue.js +0 -61
  117. package/lib/util/validateConfig.js +0 -21
  118. package/lib/util/withAlphaVariable.js +0 -67
  119. package/nesting/index.js +0 -2
  120. package/peers/index.js +0 -77956
  121. package/plugin.d.ts +0 -11
  122. package/plugin.js +0 -2
  123. package/prettier.config.js +0 -19
  124. package/resolveConfig.js +0 -2
  125. package/screens.css +0 -1
  126. package/scripts/create-plugin-list.js +0 -10
  127. package/scripts/generate-types.js +0 -105
  128. package/scripts/install-integrations.js +0 -27
  129. package/scripts/rebuildFixtures.js +0 -68
  130. package/scripts/type-utils.js +0 -27
  131. package/src/cli-peer-dependencies.js +0 -15
  132. package/src/cli.js +0 -915
  133. package/src/constants.js +0 -17
  134. package/src/corePluginList.js +0 -1
  135. package/src/corePlugins.js +0 -2442
  136. package/src/css/LICENSE +0 -25
  137. package/src/css/preflight.css +0 -360
  138. package/src/featureFlags.js +0 -54
  139. package/src/index.js +0 -42
  140. package/src/lib/cacheInvalidation.js +0 -52
  141. package/src/lib/collapseAdjacentRules.js +0 -58
  142. package/src/lib/collapseDuplicateDeclarations.js +0 -93
  143. package/src/lib/defaultExtractor.js +0 -208
  144. package/src/lib/detectNesting.js +0 -39
  145. package/src/lib/evaluateTailwindFunctions.js +0 -248
  146. package/src/lib/expandApplyAtRules.js +0 -539
  147. package/src/lib/expandTailwindAtRules.js +0 -292
  148. package/src/lib/generateRules.js +0 -719
  149. package/src/lib/getModuleDependencies.js +0 -39
  150. package/src/lib/normalizeTailwindDirectives.js +0 -84
  151. package/src/lib/partitionApplyAtRules.js +0 -52
  152. package/src/lib/regex.js +0 -74
  153. package/src/lib/resolveDefaultsAtRules.js +0 -163
  154. package/src/lib/setupContextUtils.js +0 -977
  155. package/src/lib/setupTrackingContext.js +0 -187
  156. package/src/lib/sharedState.js +0 -48
  157. package/src/lib/substituteScreenAtRules.js +0 -19
  158. package/src/postcss-plugins/nesting/README.md +0 -42
  159. package/src/postcss-plugins/nesting/index.js +0 -13
  160. package/src/postcss-plugins/nesting/plugin.js +0 -80
  161. package/src/processTailwindFeatures.js +0 -58
  162. package/src/public/colors.js +0 -300
  163. package/src/public/create-plugin.js +0 -2
  164. package/src/public/default-config.js +0 -4
  165. package/src/public/default-theme.js +0 -4
  166. package/src/public/resolve-config.js +0 -7
  167. package/src/util/bigSign.js +0 -3
  168. package/src/util/buildMediaQuery.js +0 -20
  169. package/src/util/cloneDeep.js +0 -11
  170. package/src/util/cloneNodes.js +0 -24
  171. package/src/util/color.js +0 -73
  172. package/src/util/configurePlugins.js +0 -23
  173. package/src/util/createPlugin.js +0 -27
  174. package/src/util/createUtilityPlugin.js +0 -37
  175. package/src/util/dataTypes.js +0 -254
  176. package/src/util/defaults.js +0 -17
  177. package/src/util/escapeClassName.js +0 -8
  178. package/src/util/escapeCommas.js +0 -3
  179. package/src/util/flattenColorPalette.js +0 -13
  180. package/src/util/formatVariantSelector.js +0 -215
  181. package/src/util/getAllConfigs.js +0 -26
  182. package/src/util/hashConfig.js +0 -5
  183. package/src/util/isKeyframeRule.js +0 -3
  184. package/src/util/isPlainObject.js +0 -8
  185. package/src/util/isValidArbitraryValue.js +0 -61
  186. package/src/util/log.js +0 -29
  187. package/src/util/nameClass.js +0 -26
  188. package/src/util/negateValue.js +0 -16
  189. package/src/util/normalizeConfig.js +0 -262
  190. package/src/util/normalizeScreens.js +0 -45
  191. package/src/util/parseAnimationValue.js +0 -68
  192. package/src/util/parseBoxShadowValue.js +0 -72
  193. package/src/util/parseDependency.js +0 -49
  194. package/src/util/parseObjectStyles.js +0 -19
  195. package/src/util/pluginUtils.js +0 -204
  196. package/src/util/prefixSelector.js +0 -14
  197. package/src/util/removeAlphaVariables.js +0 -24
  198. package/src/util/resolveConfig.js +0 -283
  199. package/src/util/resolveConfigPath.js +0 -55
  200. package/src/util/responsive.js +0 -10
  201. package/src/util/splitAtTopLevelOnly.js +0 -71
  202. package/src/util/tap.js +0 -4
  203. package/src/util/toColorValue.js +0 -3
  204. package/src/util/toPath.js +0 -26
  205. package/src/util/transformThemeValue.js +0 -54
  206. package/src/util/validateConfig.js +0 -13
  207. package/src/util/withAlphaVariable.js +0 -49
  208. package/stubs/defaultConfig.stub.js +0 -954
  209. package/stubs/defaultPostCssConfig.stub.js +0 -6
  210. package/stubs/simpleConfig.stub.js +0 -8
  211. package/tailwind.css +0 -5
  212. package/types/config.d.ts +0 -327
  213. package/types/generated/.gitkeep +0 -0
  214. package/types/generated/colors.d.ts +0 -276
  215. package/types/generated/corePluginList.d.ts +0 -1
  216. package/types/generated/default-theme.d.ts +0 -331
  217. package/types/index.d.ts +0 -7
  218. 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,327 +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
- type ResolvableTo<T> = T | ((utils: PluginUtils) => T)
15
- type CSSRuleObject = RecursiveKeyValuePair<string, 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
- extract?: ExtractorFn | { [extension: string]: ExtractorFn }
35
- transform?: TransformerFn | { [extension: string]: TransformerFn }
36
- }
37
-
38
- // Important related config
39
- type ImportantConfig = boolean | string
40
-
41
- // Prefix related config
42
- type PrefixConfig = string
43
-
44
- // Separator related config
45
- type SeparatorConfig = string
46
-
47
- // Safelist related config
48
- type SafelistConfig =
49
- | string[]
50
- | {
51
- pattern: RegExp
52
- variants: string[]
53
- }[]
54
-
55
- // Presets related config
56
- type PresetsConfig = Config[]
57
-
58
- // Future related config
59
- type FutureConfigValues = never // Replace with 'future-feature-1' | 'future-feature-2'
60
- type FutureConfig = Expand<'all' | Partial<Record<FutureConfigValues, boolean>>> | []
61
-
62
- // Experimental related config
63
- type ExperimentalConfigValues = 'optimizeUniversalDefaults' // Replace with 'experimental-feature-1' | 'experimental-feature-2'
64
- type ExperimentalConfig = Expand<'all' | Partial<Record<ExperimentalConfigValues, boolean>>> | []
65
-
66
- // DarkMode related config
67
- type DarkModeConfig =
68
- // Use the `media` query strategy.
69
- | 'media'
70
- // Use the `class` stategy, which requires a `.dark` class on the `html`.
71
- | 'class'
72
- // Use the `class` stategy with a custom class instead of `.dark`.
73
- | ['class', string]
74
-
75
- type Screen = { raw: string } | { min: string } | { max: string } | { min: string; max: string }
76
- type ScreensConfig = string[] | KeyValuePair<string, string | Screen | Screen[]>
77
-
78
- // Theme related config
79
- interface ThemeConfig {
80
- // Responsiveness
81
- screens: ResolvableTo<ScreensConfig>
82
-
83
- // Reusable base configs
84
- colors: ResolvableTo<RecursiveKeyValuePair>
85
- spacing: ResolvableTo<KeyValuePair>
86
-
87
- // Components
88
- container: ResolvableTo<
89
- Partial<{
90
- screens: ScreensConfig
91
- center: boolean
92
- padding: string | Record<string, string>
93
- }>
94
- >
95
-
96
- // Utilities
97
- inset: ThemeConfig['spacing']
98
- zIndex: ResolvableTo<KeyValuePair>
99
- order: ResolvableTo<KeyValuePair>
100
- gridColumn: ResolvableTo<KeyValuePair>
101
- gridColumnStart: ResolvableTo<KeyValuePair>
102
- gridColumnEnd: ResolvableTo<KeyValuePair>
103
- gridRow: ResolvableTo<KeyValuePair>
104
- gridRowStart: ResolvableTo<KeyValuePair>
105
- gridRowEnd: ResolvableTo<KeyValuePair>
106
- margin: ThemeConfig['spacing']
107
- aspectRatio: ResolvableTo<KeyValuePair>
108
- height: ThemeConfig['spacing']
109
- maxHeight: ThemeConfig['spacing']
110
- minHeight: ResolvableTo<KeyValuePair>
111
- width: ThemeConfig['spacing']
112
- maxWidth: ResolvableTo<KeyValuePair>
113
- minWidth: ResolvableTo<KeyValuePair>
114
- flex: ResolvableTo<KeyValuePair>
115
- flexShrink: ResolvableTo<KeyValuePair>
116
- flexGrow: ResolvableTo<KeyValuePair>
117
- flexBasis: ThemeConfig['spacing']
118
- borderSpacing: ThemeConfig['spacing']
119
- transformOrigin: ResolvableTo<KeyValuePair>
120
- translate: ThemeConfig['spacing']
121
- rotate: ResolvableTo<KeyValuePair>
122
- skew: ResolvableTo<KeyValuePair>
123
- scale: ResolvableTo<KeyValuePair>
124
- animation: ResolvableTo<KeyValuePair>
125
- keyframes: ResolvableTo<KeyValuePair<string, KeyValuePair<string, KeyValuePair>>>
126
- cursor: ResolvableTo<KeyValuePair>
127
- scrollMargin: ThemeConfig['spacing']
128
- scrollPadding: ThemeConfig['spacing']
129
- listStyleType: ResolvableTo<KeyValuePair>
130
- columns: ResolvableTo<KeyValuePair>
131
- gridAutoColumns: ResolvableTo<KeyValuePair>
132
- gridAutoRows: ResolvableTo<KeyValuePair>
133
- gridTemplateColumns: ResolvableTo<KeyValuePair>
134
- gridTemplateRows: ResolvableTo<KeyValuePair>
135
- gap: ThemeConfig['spacing']
136
- space: ThemeConfig['spacing']
137
- divideWidth: ThemeConfig['borderWidth']
138
- divideColor: ThemeConfig['borderColor']
139
- divideOpacity: ThemeConfig['borderOpacity']
140
- borderRadius: ResolvableTo<KeyValuePair>
141
- borderWidth: ResolvableTo<KeyValuePair>
142
- borderColor: ThemeConfig['colors']
143
- borderOpacity: ThemeConfig['opacity']
144
- backgroundColor: ThemeConfig['colors']
145
- backgroundOpacity: ThemeConfig['opacity']
146
- backgroundImage: ResolvableTo<KeyValuePair>
147
- gradientColorStops: ThemeConfig['colors']
148
- backgroundSize: ResolvableTo<KeyValuePair>
149
- backgroundPosition: ResolvableTo<KeyValuePair>
150
- fill: ThemeConfig['colors']
151
- stroke: ThemeConfig['colors']
152
- strokeWidth: ResolvableTo<KeyValuePair>
153
- objectPosition: ResolvableTo<KeyValuePair>
154
- padding: ThemeConfig['spacing']
155
- textIndent: ThemeConfig['spacing']
156
- fontFamily: ResolvableTo<KeyValuePair<string, string[]>>
157
- fontSize: ResolvableTo<
158
- KeyValuePair<
159
- string,
160
- | string
161
- | [fontSize: string, lineHeight: string]
162
- | [
163
- fontSize: string,
164
- configuration: Partial<{
165
- lineHeight: string
166
- letterSpacing: string
167
- fontWeight: string | number
168
- }>
169
- ]
170
- >
171
- >
172
- fontWeight: ResolvableTo<KeyValuePair>
173
- lineHeight: ResolvableTo<KeyValuePair>
174
- letterSpacing: ResolvableTo<KeyValuePair>
175
- textColor: ThemeConfig['colors']
176
- textOpacity: ThemeConfig['opacity']
177
- textDecorationColor: ThemeConfig['colors']
178
- textDecorationThickness: ResolvableTo<KeyValuePair>
179
- textUnderlineOffset: ResolvableTo<KeyValuePair>
180
- placeholderColor: ThemeConfig['colors']
181
- placeholderOpacity: ThemeConfig['opacity']
182
- caretColor: ThemeConfig['colors']
183
- accentColor: ThemeConfig['colors']
184
- opacity: ResolvableTo<KeyValuePair>
185
- boxShadow: ResolvableTo<KeyValuePair>
186
- boxShadowColor: ThemeConfig['colors']
187
- outlineWidth: ResolvableTo<KeyValuePair>
188
- outlineOffset: ResolvableTo<KeyValuePair>
189
- outlineColor: ThemeConfig['colors']
190
- ringWidth: ResolvableTo<KeyValuePair>
191
- ringColor: ThemeConfig['colors']
192
- ringOpacity: ThemeConfig['opacity']
193
- ringOffsetWidth: ResolvableTo<KeyValuePair>
194
- ringOffsetColor: ThemeConfig['colors']
195
- blur: ResolvableTo<KeyValuePair>
196
- brightness: ResolvableTo<KeyValuePair>
197
- contrast: ResolvableTo<KeyValuePair>
198
- dropShadow: ResolvableTo<KeyValuePair>
199
- grayscale: ResolvableTo<KeyValuePair>
200
- hueRotate: ResolvableTo<KeyValuePair>
201
- invert: ResolvableTo<KeyValuePair>
202
- saturate: ResolvableTo<KeyValuePair>
203
- sepia: ResolvableTo<KeyValuePair>
204
- backdropBlur: ThemeConfig['blur']
205
- backdropBrightness: ThemeConfig['brightness']
206
- backdropContrast: ThemeConfig['contrast']
207
- backdropGrayscale: ThemeConfig['grayscale']
208
- backdropHueRotate: ThemeConfig['hueRotate']
209
- backdropInvert: ThemeConfig['invert']
210
- backdropOpacity: ThemeConfig['opacity']
211
- backdropSaturate: ThemeConfig['saturate']
212
- backdropSepia: ThemeConfig['sepia']
213
- transitionProperty: ResolvableTo<KeyValuePair>
214
- transitionTimingFunction: ResolvableTo<KeyValuePair>
215
- transitionDelay: ResolvableTo<KeyValuePair>
216
- transitionDuration: ResolvableTo<KeyValuePair>
217
- willChange: ResolvableTo<KeyValuePair>
218
- content: ResolvableTo<KeyValuePair>
219
-
220
- // Custom
221
- [key: string]: any
222
- }
223
-
224
- // Core plugins related config
225
- type CorePluginsConfig = CorePluginList[] | Expand<Partial<Record<CorePluginList, boolean>>>
226
-
227
- // Plugins related config
228
- type ValueType =
229
- | 'any'
230
- | 'color'
231
- | 'url'
232
- | 'image'
233
- | 'length'
234
- | 'percentage'
235
- | 'position'
236
- | 'lookup'
237
- | 'generic-name'
238
- | 'family-name'
239
- | 'number'
240
- | 'line-width'
241
- | 'absolute-size'
242
- | 'relative-size'
243
- | 'shadow'
244
- export interface PluginAPI {
245
- // for registering new static utility styles
246
- addUtilities(
247
- utilities: CSSRuleObject | CSSRuleObject[],
248
- options?: Partial<{
249
- respectPrefix: boolean
250
- respectImportant: boolean
251
- }>
252
- ): void
253
- // for registering new dynamic utility styles
254
- matchUtilities<T>(
255
- utilities: KeyValuePair<string, (value: T) => CSSRuleObject>,
256
- options?: Partial<{
257
- respectPrefix: boolean
258
- respectImportant: boolean
259
- type: ValueType | ValueType[]
260
- values: KeyValuePair<string, T>
261
- supportsNegativeValues: boolean
262
- }>
263
- ): void
264
- // for registering new static component styles
265
- addComponents(
266
- components: CSSRuleObject | CSSRuleObject[],
267
- options?: Partial<{
268
- respectPrefix: boolean
269
- respectImportant: boolean
270
- }>
271
- ): void
272
- // for registering new dynamic component styles
273
- matchComponents<T>(
274
- components: KeyValuePair<string, (value: T) => CSSRuleObject>,
275
- options?: Partial<{
276
- respectPrefix: boolean
277
- respectImportant: boolean
278
- type: ValueType | ValueType[]
279
- values: KeyValuePair<string, T>
280
- supportsNegativeValues: boolean
281
- }>
282
- ): void
283
- // for registering new base styles
284
- addBase(base: CSSRuleObject | CSSRuleObject[]): void
285
- // for registering custom variants
286
- addVariant(name: string, definition: string | string[] | (() => string) | (() => string)[]): void
287
- // for looking up values in the user’s theme configuration
288
- theme: <TDefaultValue = Config['theme']>(
289
- path?: string,
290
- defaultValue?: TDefaultValue
291
- ) => TDefaultValue
292
- // for looking up values in the user’s Tailwind configuration
293
- config: <TDefaultValue = Config>(path?: string, defaultValue?: TDefaultValue) => TDefaultValue
294
- // for checking if a core plugin is enabled
295
- corePlugins(path: string): boolean
296
- // for manually escaping strings meant to be used in class names
297
- e: (className: string) => string
298
- }
299
- export type PluginCreator = (api: PluginAPI) => void
300
- export type PluginsConfig = (
301
- | PluginCreator
302
- | { handler: PluginCreator; config?: Config }
303
- | { (options: any): { handler: PluginCreator; config?: Config }; __isOptionsFunction: true }
304
- )[]
305
-
306
- // Top level config related
307
- interface RequiredConfig {
308
- content: ContentConfig
309
- }
310
-
311
- interface OptionalConfig {
312
- important: Partial<ImportantConfig>
313
- prefix: Partial<PrefixConfig>
314
- separator: Partial<SeparatorConfig>
315
- safelist: Partial<SafelistConfig>
316
- presets: Partial<PresetsConfig>
317
- future: Partial<FutureConfig>
318
- experimental: Partial<ExperimentalConfig>
319
- darkMode: Partial<DarkModeConfig>
320
- theme: Partial<ThemeConfig & { extend: Partial<ThemeConfig> }>
321
- corePlugins: Partial<CorePluginsConfig>
322
- plugins: Partial<PluginsConfig>
323
- // Custom
324
- [key: string]: any
325
- }
326
-
327
- 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'