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.
- package/README.md +16 -17
- package/dist/chunk-GFBUASX3.mjs +1 -0
- package/dist/chunk-HTB5LLOP.mjs +1 -0
- package/dist/chunk-KV2PFGBW.mjs +38 -0
- package/dist/colors-b_6i0Oi7.d.ts +295 -0
- package/dist/colors.d.mts +295 -0
- package/dist/colors.d.ts +5 -0
- package/dist/colors.js +1 -0
- package/dist/colors.mjs +1 -0
- package/dist/default-theme.d.mts +1147 -0
- package/dist/default-theme.d.ts +1147 -0
- package/dist/default-theme.js +1 -0
- package/dist/default-theme.mjs +1 -0
- package/dist/flatten-color-palette.d.mts +6 -0
- package/dist/flatten-color-palette.d.ts +6 -0
- package/dist/flatten-color-palette.js +3 -0
- package/dist/flatten-color-palette.mjs +1 -0
- package/dist/lib.d.mts +378 -0
- package/dist/lib.d.ts +3 -0
- package/dist/lib.js +38 -0
- package/dist/lib.mjs +1 -0
- package/dist/plugin.d.mts +11 -0
- package/dist/plugin.d.ts +134 -0
- package/dist/plugin.js +1 -0
- package/dist/plugin.mjs +1 -0
- package/dist/resolve-config-BIFUA2FY.d.ts +29 -0
- package/dist/resolve-config-QUZ9b-Gn.d.mts +190 -0
- package/dist/types-CJYAW1ql.d.mts +128 -0
- package/index.css +896 -0
- package/package.json +76 -100
- package/preflight.css +393 -0
- package/theme.css +462 -0
- package/CHANGELOG.md +0 -2206
- package/base.css +0 -1
- package/colors.d.ts +0 -3
- package/colors.js +0 -2
- package/components.css +0 -1
- package/defaultConfig.d.ts +0 -3
- package/defaultConfig.js +0 -2
- package/defaultTheme.d.ts +0 -4
- package/defaultTheme.js +0 -2
- package/lib/cli-peer-dependencies.js +0 -20
- package/lib/cli.js +0 -805
- package/lib/constants.js +0 -37
- package/lib/corePluginList.js +0 -179
- package/lib/corePlugins.js +0 -3662
- package/lib/css/LICENSE +0 -25
- package/lib/css/preflight.css +0 -360
- package/lib/featureFlags.js +0 -61
- package/lib/index.js +0 -40
- package/lib/lib/cacheInvalidation.js +0 -87
- package/lib/lib/collapseAdjacentRules.js +0 -56
- package/lib/lib/collapseDuplicateDeclarations.js +0 -80
- package/lib/lib/defaultExtractor.js +0 -228
- package/lib/lib/detectNesting.js +0 -34
- package/lib/lib/evaluateTailwindFunctions.js +0 -215
- package/lib/lib/expandApplyAtRules.js +0 -470
- package/lib/lib/expandTailwindAtRules.js +0 -276
- package/lib/lib/generateRules.js +0 -722
- package/lib/lib/getModuleDependencies.js +0 -48
- package/lib/lib/normalizeTailwindDirectives.js +0 -84
- package/lib/lib/partitionApplyAtRules.js +0 -53
- package/lib/lib/regex.js +0 -52
- package/lib/lib/resolveDefaultsAtRules.js +0 -154
- package/lib/lib/setupContextUtils.js +0 -932
- package/lib/lib/setupTrackingContext.js +0 -169
- package/lib/lib/sharedState.js +0 -51
- package/lib/lib/substituteScreenAtRules.js +0 -26
- package/lib/postcss-plugins/nesting/README.md +0 -42
- package/lib/postcss-plugins/nesting/index.js +0 -17
- package/lib/postcss-plugins/nesting/plugin.js +0 -84
- package/lib/processTailwindFeatures.js +0 -59
- package/lib/public/colors.js +0 -329
- package/lib/public/create-plugin.js +0 -13
- package/lib/public/default-config.js +0 -14
- package/lib/public/default-theme.js +0 -14
- package/lib/public/resolve-config.js +0 -19
- package/lib/util/bigSign.js +0 -8
- package/lib/util/buildMediaQuery.js +0 -19
- package/lib/util/cloneDeep.js +0 -17
- package/lib/util/cloneNodes.js +0 -25
- package/lib/util/color.js +0 -90
- package/lib/util/configurePlugins.js +0 -18
- package/lib/util/createPlugin.js +0 -28
- package/lib/util/createUtilityPlugin.js +0 -48
- package/lib/util/dataTypes.js +0 -235
- package/lib/util/defaults.js +0 -22
- package/lib/util/escapeClassName.js +0 -19
- package/lib/util/escapeCommas.js +0 -8
- package/lib/util/flattenColorPalette.js +0 -14
- package/lib/util/formatVariantSelector.js +0 -194
- package/lib/util/getAllConfigs.js +0 -34
- package/lib/util/hashConfig.js +0 -16
- package/lib/util/isKeyframeRule.js +0 -8
- package/lib/util/isPlainObject.js +0 -12
- package/lib/util/isValidArbitraryValue.js +0 -63
- package/lib/util/log.js +0 -50
- package/lib/util/nameClass.js +0 -32
- package/lib/util/negateValue.js +0 -18
- package/lib/util/normalizeConfig.js +0 -250
- package/lib/util/normalizeScreens.js +0 -58
- package/lib/util/parseAnimationValue.js +0 -88
- package/lib/util/parseBoxShadowValue.js +0 -76
- package/lib/util/parseDependency.js +0 -63
- package/lib/util/parseObjectStyles.js +0 -31
- package/lib/util/pluginUtils.js +0 -187
- package/lib/util/prefixSelector.js +0 -20
- package/lib/util/removeAlphaVariables.js +0 -18
- package/lib/util/resolveConfig.js +0 -256
- package/lib/util/resolveConfigPath.js +0 -51
- package/lib/util/responsive.js +0 -19
- package/lib/util/splitAtTopLevelOnly.js +0 -90
- package/lib/util/tap.js +0 -9
- package/lib/util/toColorValue.js +0 -8
- package/lib/util/toPath.js +0 -14
- package/lib/util/transformThemeValue.js +0 -61
- package/lib/util/validateConfig.js +0 -21
- package/lib/util/withAlphaVariable.js +0 -67
- package/nesting/index.js +0 -2
- package/peers/index.js +0 -77956
- package/plugin.d.ts +0 -11
- package/plugin.js +0 -2
- package/prettier.config.js +0 -19
- package/resolveConfig.js +0 -2
- package/screens.css +0 -1
- package/scripts/create-plugin-list.js +0 -10
- package/scripts/generate-types.js +0 -105
- package/scripts/install-integrations.js +0 -27
- package/scripts/rebuildFixtures.js +0 -68
- package/scripts/type-utils.js +0 -27
- package/src/cli-peer-dependencies.js +0 -15
- package/src/cli.js +0 -915
- package/src/constants.js +0 -17
- package/src/corePluginList.js +0 -1
- package/src/corePlugins.js +0 -2442
- package/src/css/LICENSE +0 -25
- package/src/css/preflight.css +0 -360
- package/src/featureFlags.js +0 -54
- package/src/index.js +0 -42
- package/src/lib/cacheInvalidation.js +0 -52
- package/src/lib/collapseAdjacentRules.js +0 -58
- package/src/lib/collapseDuplicateDeclarations.js +0 -93
- package/src/lib/defaultExtractor.js +0 -208
- package/src/lib/detectNesting.js +0 -39
- package/src/lib/evaluateTailwindFunctions.js +0 -248
- package/src/lib/expandApplyAtRules.js +0 -539
- package/src/lib/expandTailwindAtRules.js +0 -292
- package/src/lib/generateRules.js +0 -719
- package/src/lib/getModuleDependencies.js +0 -39
- package/src/lib/normalizeTailwindDirectives.js +0 -84
- package/src/lib/partitionApplyAtRules.js +0 -52
- package/src/lib/regex.js +0 -74
- package/src/lib/resolveDefaultsAtRules.js +0 -163
- package/src/lib/setupContextUtils.js +0 -977
- package/src/lib/setupTrackingContext.js +0 -187
- package/src/lib/sharedState.js +0 -48
- package/src/lib/substituteScreenAtRules.js +0 -19
- package/src/postcss-plugins/nesting/README.md +0 -42
- package/src/postcss-plugins/nesting/index.js +0 -13
- package/src/postcss-plugins/nesting/plugin.js +0 -80
- package/src/processTailwindFeatures.js +0 -58
- package/src/public/colors.js +0 -300
- package/src/public/create-plugin.js +0 -2
- package/src/public/default-config.js +0 -4
- package/src/public/default-theme.js +0 -4
- package/src/public/resolve-config.js +0 -7
- package/src/util/bigSign.js +0 -3
- package/src/util/buildMediaQuery.js +0 -20
- package/src/util/cloneDeep.js +0 -11
- package/src/util/cloneNodes.js +0 -24
- package/src/util/color.js +0 -73
- package/src/util/configurePlugins.js +0 -23
- package/src/util/createPlugin.js +0 -27
- package/src/util/createUtilityPlugin.js +0 -37
- package/src/util/dataTypes.js +0 -254
- package/src/util/defaults.js +0 -17
- package/src/util/escapeClassName.js +0 -8
- package/src/util/escapeCommas.js +0 -3
- package/src/util/flattenColorPalette.js +0 -13
- package/src/util/formatVariantSelector.js +0 -215
- package/src/util/getAllConfigs.js +0 -26
- package/src/util/hashConfig.js +0 -5
- package/src/util/isKeyframeRule.js +0 -3
- package/src/util/isPlainObject.js +0 -8
- package/src/util/isValidArbitraryValue.js +0 -61
- package/src/util/log.js +0 -29
- package/src/util/nameClass.js +0 -26
- package/src/util/negateValue.js +0 -16
- package/src/util/normalizeConfig.js +0 -262
- package/src/util/normalizeScreens.js +0 -45
- package/src/util/parseAnimationValue.js +0 -68
- package/src/util/parseBoxShadowValue.js +0 -72
- package/src/util/parseDependency.js +0 -49
- package/src/util/parseObjectStyles.js +0 -19
- package/src/util/pluginUtils.js +0 -204
- package/src/util/prefixSelector.js +0 -14
- package/src/util/removeAlphaVariables.js +0 -24
- package/src/util/resolveConfig.js +0 -283
- package/src/util/resolveConfigPath.js +0 -55
- package/src/util/responsive.js +0 -10
- package/src/util/splitAtTopLevelOnly.js +0 -71
- package/src/util/tap.js +0 -4
- package/src/util/toColorValue.js +0 -3
- package/src/util/toPath.js +0 -26
- package/src/util/transformThemeValue.js +0 -54
- package/src/util/validateConfig.js +0 -13
- package/src/util/withAlphaVariable.js +0 -49
- package/stubs/defaultConfig.stub.js +0 -954
- package/stubs/defaultPostCssConfig.stub.js +0 -6
- package/stubs/simpleConfig.stub.js +0 -8
- package/tailwind.css +0 -5
- package/types/config.d.ts +0 -327
- package/types/generated/.gitkeep +0 -0
- package/types/generated/colors.d.ts +0 -276
- package/types/generated/corePluginList.d.ts +0 -1
- package/types/generated/default-theme.d.ts +0 -331
- package/types/index.d.ts +0 -7
- package/variants.css +0 -1
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import postcss from 'postcss'
|
|
2
|
-
|
|
3
|
-
export default function transformThemeValue(themeSection) {
|
|
4
|
-
if (['fontSize', 'outline'].includes(themeSection)) {
|
|
5
|
-
return (value) => {
|
|
6
|
-
if (typeof value === 'function') value = value({})
|
|
7
|
-
if (Array.isArray(value)) value = value[0]
|
|
8
|
-
|
|
9
|
-
return value
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
if (
|
|
14
|
-
[
|
|
15
|
-
'fontFamily',
|
|
16
|
-
'boxShadow',
|
|
17
|
-
'transitionProperty',
|
|
18
|
-
'transitionDuration',
|
|
19
|
-
'transitionDelay',
|
|
20
|
-
'transitionTimingFunction',
|
|
21
|
-
'backgroundImage',
|
|
22
|
-
'backgroundSize',
|
|
23
|
-
'backgroundColor',
|
|
24
|
-
'cursor',
|
|
25
|
-
'animation',
|
|
26
|
-
].includes(themeSection)
|
|
27
|
-
) {
|
|
28
|
-
return (value) => {
|
|
29
|
-
if (typeof value === 'function') value = value({})
|
|
30
|
-
if (Array.isArray(value)) value = value.join(', ')
|
|
31
|
-
|
|
32
|
-
return value
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
// For backwards compatibility reasons, before we switched to underscores
|
|
37
|
-
// instead of commas for arbitrary values.
|
|
38
|
-
if (['gridTemplateColumns', 'gridTemplateRows', 'objectPosition'].includes(themeSection)) {
|
|
39
|
-
return (value) => {
|
|
40
|
-
if (typeof value === 'function') value = value({})
|
|
41
|
-
if (typeof value === 'string') value = postcss.list.comma(value).join(' ')
|
|
42
|
-
|
|
43
|
-
return value
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
return (value, opts = {}) => {
|
|
48
|
-
if (typeof value === 'function') {
|
|
49
|
-
value = value(opts)
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
return value
|
|
53
|
-
}
|
|
54
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import log from './log'
|
|
2
|
-
|
|
3
|
-
export function validateConfig(config) {
|
|
4
|
-
if (config.content.files.length === 0) {
|
|
5
|
-
log.warn('content-problems', [
|
|
6
|
-
'The `content` option in your Tailwind CSS configuration is missing or empty.',
|
|
7
|
-
'Configure your content sources or your generated CSS will be missing styles.',
|
|
8
|
-
'https://tailwindcss.com/docs/content-configuration',
|
|
9
|
-
])
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
return config
|
|
13
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { parseColor, formatColor } from './color'
|
|
2
|
-
|
|
3
|
-
export function withAlphaValue(color, alphaValue, defaultValue) {
|
|
4
|
-
if (typeof color === 'function') {
|
|
5
|
-
return color({ opacityValue: alphaValue })
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
let parsed = parseColor(color, { loose: true })
|
|
9
|
-
|
|
10
|
-
if (parsed === null) {
|
|
11
|
-
return defaultValue
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
return formatColor({ ...parsed, alpha: alphaValue })
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export default function withAlphaVariable({ color, property, variable }) {
|
|
18
|
-
let properties = [].concat(property)
|
|
19
|
-
if (typeof color === 'function') {
|
|
20
|
-
return {
|
|
21
|
-
[variable]: '1',
|
|
22
|
-
...Object.fromEntries(
|
|
23
|
-
properties.map((p) => {
|
|
24
|
-
return [p, color({ opacityVariable: variable, opacityValue: `var(${variable})` })]
|
|
25
|
-
})
|
|
26
|
-
),
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
const parsed = parseColor(color)
|
|
31
|
-
|
|
32
|
-
if (parsed === null) {
|
|
33
|
-
return Object.fromEntries(properties.map((p) => [p, color]))
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
if (parsed.alpha !== undefined) {
|
|
37
|
-
// Has an alpha value, return color as-is
|
|
38
|
-
return Object.fromEntries(properties.map((p) => [p, color]))
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
return {
|
|
42
|
-
[variable]: '1',
|
|
43
|
-
...Object.fromEntries(
|
|
44
|
-
properties.map((p) => {
|
|
45
|
-
return [p, formatColor({ ...parsed, alpha: `var(${variable})` })]
|
|
46
|
-
})
|
|
47
|
-
),
|
|
48
|
-
}
|
|
49
|
-
}
|