tailwindcss 0.0.0-insiders.ca1dfd6 → 0.0.0-insiders.ca7b10e

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 (179) hide show
  1. package/LICENSE +1 -2
  2. package/README.md +18 -11
  3. package/dist/chunk-7MHEDNEU.mjs +1 -0
  4. package/dist/chunk-AZANAYY2.mjs +1 -0
  5. package/dist/chunk-YTVGJJD3.mjs +12 -0
  6. package/dist/colors-b_6i0Oi7.d.ts +295 -0
  7. package/dist/colors.d.mts +295 -0
  8. package/dist/colors.d.ts +5 -0
  9. package/dist/colors.js +1 -0
  10. package/dist/colors.mjs +1 -0
  11. package/dist/default-theme.d.mts +1147 -0
  12. package/dist/default-theme.d.ts +1147 -0
  13. package/dist/default-theme.js +1 -0
  14. package/dist/default-theme.mjs +1 -0
  15. package/dist/flatten-color-palette.d.mts +6 -0
  16. package/dist/flatten-color-palette.d.ts +6 -0
  17. package/dist/flatten-color-palette.js +1 -0
  18. package/dist/flatten-color-palette.mjs +1 -0
  19. package/dist/lib.d.mts +264 -0
  20. package/dist/lib.d.ts +3 -0
  21. package/dist/lib.js +33 -0
  22. package/dist/lib.mjs +22 -0
  23. package/dist/plugin.d.mts +11 -0
  24. package/dist/plugin.d.ts +104 -0
  25. package/dist/plugin.js +1 -0
  26. package/dist/plugin.mjs +1 -0
  27. package/dist/resolve-config-BIFUA2FY.d.ts +29 -0
  28. package/dist/resolve-config-QUZ9b-Gn.d.mts +190 -0
  29. package/dist/types-B254mqw1.d.mts +98 -0
  30. package/index.css +866 -0
  31. package/package.json +73 -100
  32. package/preflight.css +375 -0
  33. package/theme.css +453 -0
  34. package/CHANGELOG.md +0 -1758
  35. package/base.css +0 -1
  36. package/colors.js +0 -1
  37. package/components.css +0 -1
  38. package/defaultConfig.js +0 -1
  39. package/defaultTheme.js +0 -1
  40. package/lib/cli-peer-dependencies.js +0 -15
  41. package/lib/cli.js +0 -707
  42. package/lib/constants.js +0 -37
  43. package/lib/corePluginList.js +0 -169
  44. package/lib/corePlugins.js +0 -3525
  45. package/lib/css/LICENSE +0 -25
  46. package/lib/css/preflight.css +0 -354
  47. package/lib/featureFlags.js +0 -57
  48. package/lib/index.js +0 -32
  49. package/lib/lib/collapseAdjacentRules.js +0 -41
  50. package/lib/lib/detectNesting.js +0 -19
  51. package/lib/lib/evaluateTailwindFunctions.js +0 -167
  52. package/lib/lib/expandApplyAtRules.js +0 -228
  53. package/lib/lib/expandTailwindAtRules.js +0 -257
  54. package/lib/lib/generateRules.js +0 -350
  55. package/lib/lib/getModuleDependencies.js +0 -48
  56. package/lib/lib/normalizeTailwindDirectives.js +0 -75
  57. package/lib/lib/resolveDefaultsAtRules.js +0 -128
  58. package/lib/lib/setupContextUtils.js +0 -791
  59. package/lib/lib/setupTrackingContext.js +0 -170
  60. package/lib/lib/setupWatchingContext.js +0 -284
  61. package/lib/lib/sharedState.js +0 -29
  62. package/lib/lib/substituteScreenAtRules.js +0 -24
  63. package/lib/processTailwindFeatures.js +0 -47
  64. package/lib/public/colors.js +0 -333
  65. package/lib/public/create-plugin.js +0 -13
  66. package/lib/public/default-config.js +0 -14
  67. package/lib/public/default-theme.js +0 -14
  68. package/lib/public/resolve-config.js +0 -19
  69. package/lib/util/bigSign.js +0 -8
  70. package/lib/util/buildMediaQuery.js +0 -31
  71. package/lib/util/cloneDeep.js +0 -19
  72. package/lib/util/cloneNodes.js +0 -14
  73. package/lib/util/color.js +0 -84
  74. package/lib/util/configurePlugins.js +0 -18
  75. package/lib/util/createPlugin.js +0 -30
  76. package/lib/util/createUtilityPlugin.js +0 -53
  77. package/lib/util/dataTypes.js +0 -202
  78. package/lib/util/defaults.js +0 -16
  79. package/lib/util/escapeClassName.js +0 -19
  80. package/lib/util/escapeCommas.js +0 -8
  81. package/lib/util/flattenColorPalette.js +0 -19
  82. package/lib/util/getAllConfigs.js +0 -29
  83. package/lib/util/hashConfig.js +0 -16
  84. package/lib/util/isKeyframeRule.js +0 -8
  85. package/lib/util/isPlainObject.js +0 -12
  86. package/lib/util/log.js +0 -35
  87. package/lib/util/nameClass.js +0 -31
  88. package/lib/util/negateValue.js +0 -17
  89. package/lib/util/parseAnimationValue.js +0 -89
  90. package/lib/util/parseDependency.js +0 -63
  91. package/lib/util/parseObjectStyles.js +0 -31
  92. package/lib/util/pluginUtils.js +0 -282
  93. package/lib/util/prefixSelector.js +0 -23
  94. package/lib/util/resolveConfig.js +0 -293
  95. package/lib/util/resolveConfigPath.js +0 -52
  96. package/lib/util/responsive.js +0 -19
  97. package/lib/util/tap.js +0 -9
  98. package/lib/util/toColorValue.js +0 -9
  99. package/lib/util/toPath.js +0 -9
  100. package/lib/util/transformThemeValue.js +0 -53
  101. package/lib/util/withAlphaVariable.js +0 -67
  102. package/nesting/README.md +0 -42
  103. package/nesting/index.js +0 -12
  104. package/nesting/plugin.js +0 -41
  105. package/peers/index.js +0 -77111
  106. package/plugin.js +0 -1
  107. package/prettier.config.js +0 -19
  108. package/resolveConfig.js +0 -1
  109. package/screens.css +0 -1
  110. package/scripts/create-plugin-list.js +0 -10
  111. package/scripts/install-integrations.js +0 -27
  112. package/scripts/rebuildFixtures.js +0 -68
  113. package/src/cli-peer-dependencies.js +0 -9
  114. package/src/cli.js +0 -762
  115. package/src/constants.js +0 -17
  116. package/src/corePluginList.js +0 -1
  117. package/src/corePlugins.js +0 -2382
  118. package/src/css/LICENSE +0 -25
  119. package/src/css/preflight.css +0 -354
  120. package/src/featureFlags.js +0 -48
  121. package/src/index.js +0 -34
  122. package/src/lib/collapseAdjacentRules.js +0 -39
  123. package/src/lib/detectNesting.js +0 -20
  124. package/src/lib/evaluateTailwindFunctions.js +0 -195
  125. package/src/lib/expandApplyAtRules.js +0 -251
  126. package/src/lib/expandTailwindAtRules.js +0 -266
  127. package/src/lib/generateRules.js +0 -320
  128. package/src/lib/getModuleDependencies.js +0 -39
  129. package/src/lib/normalizeTailwindDirectives.js +0 -77
  130. package/src/lib/resolveDefaultsAtRules.js +0 -125
  131. package/src/lib/setupContextUtils.js +0 -775
  132. package/src/lib/setupTrackingContext.js +0 -184
  133. package/src/lib/setupWatchingContext.js +0 -306
  134. package/src/lib/sharedState.js +0 -13
  135. package/src/lib/substituteScreenAtRules.js +0 -16
  136. package/src/processTailwindFeatures.js +0 -43
  137. package/src/public/colors.js +0 -305
  138. package/src/public/create-plugin.js +0 -2
  139. package/src/public/default-config.js +0 -4
  140. package/src/public/default-theme.js +0 -4
  141. package/src/public/resolve-config.js +0 -7
  142. package/src/util/bigSign.js +0 -3
  143. package/src/util/buildMediaQuery.js +0 -24
  144. package/src/util/cloneDeep.js +0 -11
  145. package/src/util/cloneNodes.js +0 -11
  146. package/src/util/color.js +0 -56
  147. package/src/util/configurePlugins.js +0 -23
  148. package/src/util/createPlugin.js +0 -27
  149. package/src/util/createUtilityPlugin.js +0 -37
  150. package/src/util/dataTypes.js +0 -216
  151. package/src/util/defaults.js +0 -11
  152. package/src/util/escapeClassName.js +0 -8
  153. package/src/util/escapeCommas.js +0 -3
  154. package/src/util/flattenColorPalette.js +0 -13
  155. package/src/util/getAllConfigs.js +0 -19
  156. package/src/util/hashConfig.js +0 -5
  157. package/src/util/isKeyframeRule.js +0 -3
  158. package/src/util/isPlainObject.js +0 -8
  159. package/src/util/log.js +0 -28
  160. package/src/util/nameClass.js +0 -26
  161. package/src/util/negateValue.js +0 -14
  162. package/src/util/parseAnimationValue.js +0 -68
  163. package/src/util/parseDependency.js +0 -49
  164. package/src/util/parseObjectStyles.js +0 -19
  165. package/src/util/pluginUtils.js +0 -288
  166. package/src/util/prefixSelector.js +0 -15
  167. package/src/util/resolveConfig.js +0 -282
  168. package/src/util/resolveConfigPath.js +0 -55
  169. package/src/util/responsive.js +0 -10
  170. package/src/util/tap.js +0 -4
  171. package/src/util/toColorValue.js +0 -3
  172. package/src/util/toPath.js +0 -4
  173. package/src/util/transformThemeValue.js +0 -37
  174. package/src/util/withAlphaVariable.js +0 -49
  175. package/stubs/defaultConfig.stub.js +0 -890
  176. package/stubs/defaultPostCssConfig.stub.js +0 -6
  177. package/stubs/simpleConfig.stub.js +0 -8
  178. package/tailwind.css +0 -5
  179. package/variants.css +0 -1
package/package.json CHANGED
@@ -1,113 +1,86 @@
1
1
  {
2
2
  "name": "tailwindcss",
3
- "version": "0.0.0-insiders.ca1dfd6",
3
+ "version": "0.0.0-insiders.ca7b10e",
4
4
  "description": "A utility-first CSS framework for rapidly building custom user interfaces.",
5
5
  "license": "MIT",
6
- "main": "lib/index.js",
7
- "style": "dist/tailwind.css",
8
- "repository": "https://github.com/tailwindlabs/tailwindcss.git",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/tailwindlabs/tailwindcss.git",
9
+ "directory": "packages/tailwindcss"
10
+ },
9
11
  "bugs": "https://github.com/tailwindlabs/tailwindcss/issues",
10
12
  "homepage": "https://tailwindcss.com",
11
- "bin": {
12
- "tailwind": "lib/cli.js",
13
- "tailwindcss": "lib/cli.js"
13
+ "exports": {
14
+ ".": {
15
+ "types": "./dist/lib.d.mts",
16
+ "style": "./index.css",
17
+ "require": "./dist/lib.js",
18
+ "import": "./dist/lib.mjs"
19
+ },
20
+ "./plugin": {
21
+ "require": "./dist/plugin.js",
22
+ "import": "./dist/plugin.mjs"
23
+ },
24
+ "./plugin.js": {
25
+ "require": "./dist/plugin.js",
26
+ "import": "./dist/plugin.mjs"
27
+ },
28
+ "./defaultTheme": {
29
+ "require": "./dist/default-theme.js",
30
+ "import": "./dist/default-theme.mjs"
31
+ },
32
+ "./defaultTheme.js": {
33
+ "require": "./dist/default-theme.js",
34
+ "import": "./dist/default-theme.mjs"
35
+ },
36
+ "./colors": {
37
+ "require": "./dist/colors.js",
38
+ "import": "./dist/colors.mjs"
39
+ },
40
+ "./colors.js": {
41
+ "require": "./dist/colors.js",
42
+ "import": "./dist/colors.mjs"
43
+ },
44
+ "./lib/util/flattenColorPalette": {
45
+ "require": "./dist/flatten-color-palette.js",
46
+ "import": "./dist/flatten-color-palette.mjs"
47
+ },
48
+ "./lib/util/flattenColorPalette.js": {
49
+ "require": "./dist/flatten-color-palette.js",
50
+ "import": "./dist/flatten-color-palette.mjs"
51
+ },
52
+ "./package.json": "./package.json",
53
+ "./index.css": "./index.css",
54
+ "./index": "./index.css",
55
+ "./preflight.css": "./preflight.css",
56
+ "./preflight": "./preflight.css",
57
+ "./theme.css": "./theme.css",
58
+ "./theme": "./theme.css",
59
+ "./utilities.css": "./utilities.css",
60
+ "./utilities": "./utilities.css"
14
61
  },
15
- "contributors": [
16
- "Adam Wathan <adam.wathan@gmail.com>",
17
- "Jonathan Reinink <jonathan@reinink.ca>",
18
- "David Hemphill <davidlee.hemphill@gmail.com>"
19
- ],
20
- "scripts": {
21
- "preswcify": "npm run generate:plugin-list && rimraf lib",
22
- "swcify": "swc src --out-dir lib --copy-files",
23
- "postswcify": "esbuild lib/cli-peer-dependencies.js --bundle --platform=node --outfile=peers/index.js",
24
- "rebuild-fixtures": "npm run swcify && node -r @swc/register scripts/rebuildFixtures.js",
25
- "prepublishOnly": "npm install --force && npm run swcify",
26
- "style": "eslint .",
27
- "pretest": "npm run generate:plugin-list",
28
- "test": "cross-env TAILWIND_MODE=build jest",
29
- "test:integrations": "npm run test --prefix ./integrations",
30
- "install:integrations": "node scripts/install-integrations.js",
31
- "posttest": "npm run style",
32
- "generate:plugin-list": "node -r @swc/register scripts/create-plugin-list.js"
62
+ "publishConfig": {
63
+ "provenance": true,
64
+ "access": "public"
33
65
  },
66
+ "style": "index.css",
34
67
  "files": [
35
- "src/*",
36
- "cli/*",
37
- "lib/*",
38
- "peers/*",
39
- "scripts/*.js",
40
- "stubs/*.stub.js",
41
- "nesting/*",
42
- "*.css",
43
- "*.js"
68
+ "dist",
69
+ "index.css",
70
+ "preflight.css",
71
+ "theme.css",
72
+ "utilities.css"
44
73
  ],
45
74
  "devDependencies": {
46
- "@swc/cli": "^0.1.50",
47
- "@swc/core": "^1.2.90",
48
- "@swc/jest": "^0.1.5",
49
- "@swc/register": "^0.1.7",
50
- "autoprefixer": "^10.3.3",
51
- "cross-env": "^7.0.3",
52
- "cssnano": "^5.0.8",
53
- "esbuild": "^0.13.2",
54
- "eslint": "^7.32.0",
55
- "eslint-config-prettier": "^8.3.0",
56
- "eslint-plugin-prettier": "^4.0.0",
57
- "jest": "^27.1.0",
58
- "jest-diff": "^27.2.0",
59
- "postcss": "^8.3.8",
60
- "postcss-cli": "^8.3.1",
61
- "prettier": "^2.4.1",
62
- "rimraf": "^3.0.0"
63
- },
64
- "peerDependencies": {
65
- "autoprefixer": "^10.0.2",
66
- "postcss": "^8.0.9"
75
+ "@types/node": "^20.14.8",
76
+ "lightningcss": "1.29.2",
77
+ "dedent": "1.5.3",
78
+ "@tailwindcss/oxide": "0.0.0-insiders.ca7b10e"
67
79
  },
68
- "dependencies": {
69
- "arg": "^5.0.1",
70
- "chalk": "^4.1.2",
71
- "chokidar": "^3.5.2",
72
- "color-name": "^1.1.4",
73
- "cosmiconfig": "^7.0.1",
74
- "detective": "^5.2.0",
75
- "didyoumean": "^1.2.2",
76
- "dlv": "^1.1.3",
77
- "fast-glob": "^3.2.7",
78
- "glob-parent": "^6.0.1",
79
- "is-glob": "^4.0.1",
80
- "normalize-path": "^3.0.0",
81
- "object-hash": "^2.2.0",
82
- "postcss-js": "^3.0.3",
83
- "postcss-load-config": "^3.1.0",
84
- "postcss-nested": "5.0.6",
85
- "postcss-selector-parser": "^6.0.6",
86
- "postcss-value-parser": "^4.1.0",
87
- "quick-lru": "^5.1.1",
88
- "resolve": "^1.20.0",
89
- "tmp": "^0.2.1"
90
- },
91
- "browserslist": [
92
- "> 1%",
93
- "not edge <= 18",
94
- "not ie 11",
95
- "not op_mini all"
96
- ],
97
- "jest": {
98
- "testTimeout": 30000,
99
- "setupFilesAfterEnv": [
100
- "<rootDir>/jest/customMatchers.js"
101
- ],
102
- "testPathIgnorePatterns": [
103
- "/node_modules/",
104
- "/integrations/"
105
- ],
106
- "transform": {
107
- "\\.js$": "@swc/jest"
108
- }
109
- },
110
- "engines": {
111
- "node": ">=12.13.0"
80
+ "scripts": {
81
+ "lint": "tsc --noEmit",
82
+ "build": "tsup-node --env.NODE_ENV production",
83
+ "dev": "tsup-node --env.NODE_ENV development --watch",
84
+ "test:ui": "playwright test"
112
85
  }
113
- }
86
+ }
package/preflight.css ADDED
@@ -0,0 +1,375 @@
1
+ /*
2
+ 1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
3
+ 2. Remove default margins and padding
4
+ 3. Reset all borders.
5
+ */
6
+
7
+ *,
8
+ ::after,
9
+ ::before,
10
+ ::backdrop,
11
+ ::file-selector-button {
12
+ box-sizing: border-box; /* 1 */
13
+ margin: 0; /* 2 */
14
+ padding: 0; /* 2 */
15
+ border: 0 solid; /* 3 */
16
+ }
17
+
18
+ /*
19
+ 1. Use a consistent sensible line-height in all browsers.
20
+ 2. Prevent adjustments of font size after orientation changes in iOS.
21
+ 3. Use a more readable tab size.
22
+ 4. Use the user's configured `sans` font-family by default.
23
+ 5. Use the user's configured `sans` font-feature-settings by default.
24
+ 6. Use the user's configured `sans` font-variation-settings by default.
25
+ 7. Disable tap highlights on iOS.
26
+ */
27
+
28
+ html,
29
+ :host {
30
+ line-height: 1.5; /* 1 */
31
+ -webkit-text-size-adjust: 100%; /* 2 */
32
+ tab-size: 4; /* 3 */
33
+ font-family: --theme(
34
+ --default-font-family,
35
+ ui-sans-serif,
36
+ system-ui,
37
+ sans-serif,
38
+ 'Apple Color Emoji',
39
+ 'Segoe UI Emoji',
40
+ 'Segoe UI Symbol',
41
+ 'Noto Color Emoji'
42
+ ); /* 4 */
43
+ font-feature-settings: --theme(--default-font-feature-settings, normal); /* 5 */
44
+ font-variation-settings: --theme(--default-font-variation-settings, normal); /* 6 */
45
+ -webkit-tap-highlight-color: transparent; /* 7 */
46
+ }
47
+
48
+ /*
49
+ 1. Add the correct height in Firefox.
50
+ 2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
51
+ 3. Reset the default border style to a 1px solid border.
52
+ */
53
+
54
+ hr {
55
+ height: 0; /* 1 */
56
+ color: inherit; /* 2 */
57
+ border-top-width: 1px; /* 3 */
58
+ }
59
+
60
+ /*
61
+ Add the correct text decoration in Chrome, Edge, and Safari.
62
+ */
63
+
64
+ abbr:where([title]) {
65
+ -webkit-text-decoration: underline dotted;
66
+ text-decoration: underline dotted;
67
+ }
68
+
69
+ /*
70
+ Remove the default font size and weight for headings.
71
+ */
72
+
73
+ h1,
74
+ h2,
75
+ h3,
76
+ h4,
77
+ h5,
78
+ h6 {
79
+ font-size: inherit;
80
+ font-weight: inherit;
81
+ }
82
+
83
+ /*
84
+ Reset links to optimize for opt-in styling instead of opt-out.
85
+ */
86
+
87
+ a {
88
+ color: inherit;
89
+ -webkit-text-decoration: inherit;
90
+ text-decoration: inherit;
91
+ }
92
+
93
+ /*
94
+ Add the correct font weight in Edge and Safari.
95
+ */
96
+
97
+ b,
98
+ strong {
99
+ font-weight: bolder;
100
+ }
101
+
102
+ /*
103
+ 1. Use the user's configured `mono` font-family by default.
104
+ 2. Use the user's configured `mono` font-feature-settings by default.
105
+ 3. Use the user's configured `mono` font-variation-settings by default.
106
+ 4. Correct the odd `em` font sizing in all browsers.
107
+ */
108
+
109
+ code,
110
+ kbd,
111
+ samp,
112
+ pre {
113
+ font-family: --theme(
114
+ --default-mono-font-family,
115
+ ui-monospace,
116
+ SFMono-Regular,
117
+ Menlo,
118
+ Monaco,
119
+ Consolas,
120
+ 'Liberation Mono',
121
+ 'Courier New',
122
+ monospace
123
+ ); /* 1 */
124
+ font-feature-settings: --theme(--default-mono-font-feature-settings, normal); /* 2 */
125
+ font-variation-settings: --theme(--default-mono-font-variation-settings, normal); /* 3 */
126
+ font-size: 1em; /* 4 */
127
+ }
128
+
129
+ /*
130
+ Add the correct font size in all browsers.
131
+ */
132
+
133
+ small {
134
+ font-size: 80%;
135
+ }
136
+
137
+ /*
138
+ Prevent `sub` and `sup` elements from affecting the line height in all browsers.
139
+ */
140
+
141
+ sub,
142
+ sup {
143
+ font-size: 75%;
144
+ line-height: 0;
145
+ position: relative;
146
+ vertical-align: baseline;
147
+ }
148
+
149
+ sub {
150
+ bottom: -0.25em;
151
+ }
152
+
153
+ sup {
154
+ top: -0.5em;
155
+ }
156
+
157
+ /*
158
+ 1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
159
+ 2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
160
+ 3. Remove gaps between table borders by default.
161
+ */
162
+
163
+ table {
164
+ text-indent: 0; /* 1 */
165
+ border-color: inherit; /* 2 */
166
+ border-collapse: collapse; /* 3 */
167
+ }
168
+
169
+ /*
170
+ Use the modern Firefox focus style for all focusable elements.
171
+ */
172
+
173
+ :-moz-focusring {
174
+ outline: auto;
175
+ }
176
+
177
+ /*
178
+ Add the correct vertical alignment in Chrome and Firefox.
179
+ */
180
+
181
+ progress {
182
+ vertical-align: baseline;
183
+ }
184
+
185
+ /*
186
+ Add the correct display in Chrome and Safari.
187
+ */
188
+
189
+ summary {
190
+ display: list-item;
191
+ }
192
+
193
+ /*
194
+ Make lists unstyled by default.
195
+ */
196
+
197
+ ol,
198
+ ul,
199
+ menu {
200
+ list-style: none;
201
+ }
202
+
203
+ /*
204
+ 1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
205
+ 2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
206
+ This can trigger a poorly considered lint error in some tools but is included by design.
207
+ */
208
+
209
+ img,
210
+ svg,
211
+ video,
212
+ canvas,
213
+ audio,
214
+ iframe,
215
+ embed,
216
+ object {
217
+ display: block; /* 1 */
218
+ vertical-align: middle; /* 2 */
219
+ }
220
+
221
+ /*
222
+ Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
223
+ */
224
+
225
+ img,
226
+ video {
227
+ max-width: 100%;
228
+ height: auto;
229
+ }
230
+
231
+ /*
232
+ 1. Inherit font styles in all browsers.
233
+ 2. Remove border radius in all browsers.
234
+ 3. Remove background color in all browsers.
235
+ 4. Ensure consistent opacity for disabled states in all browsers.
236
+ */
237
+
238
+ button,
239
+ input,
240
+ select,
241
+ optgroup,
242
+ textarea,
243
+ ::file-selector-button {
244
+ font: inherit; /* 1 */
245
+ font-feature-settings: inherit; /* 1 */
246
+ font-variation-settings: inherit; /* 1 */
247
+ letter-spacing: inherit; /* 1 */
248
+ color: inherit; /* 1 */
249
+ border-radius: 0; /* 2 */
250
+ background-color: transparent; /* 3 */
251
+ opacity: 1; /* 4 */
252
+ }
253
+
254
+ /*
255
+ Restore default font weight.
256
+ */
257
+
258
+ :where(select:is([multiple], [size])) optgroup {
259
+ font-weight: bolder;
260
+ }
261
+
262
+ /*
263
+ Restore indentation.
264
+ */
265
+
266
+ :where(select:is([multiple], [size])) optgroup option {
267
+ padding-inline-start: 20px;
268
+ }
269
+
270
+ /*
271
+ Restore space after button.
272
+ */
273
+
274
+ ::file-selector-button {
275
+ margin-inline-end: 4px;
276
+ }
277
+
278
+ /*
279
+ 1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
280
+ 2. Set the default placeholder color to a semi-transparent version of the current text color. We use the `oklab(…)` function to work around an issue in Safari 16.4 and 16.5. (https://github.com/tailwindlabs/tailwindcss/issues/17194)
281
+ */
282
+
283
+ ::placeholder {
284
+ opacity: 1; /* 1 */
285
+ color: oklab(from currentColor l a b / 50%); /* 2 */
286
+ }
287
+
288
+ /*
289
+ Prevent resizing textareas horizontally by default.
290
+ */
291
+
292
+ textarea {
293
+ resize: vertical;
294
+ }
295
+
296
+ /*
297
+ Remove the inner padding in Chrome and Safari on macOS.
298
+ */
299
+
300
+ ::-webkit-search-decoration {
301
+ -webkit-appearance: none;
302
+ }
303
+
304
+ /*
305
+ 1. Ensure date/time inputs have the same height when empty in iOS Safari.
306
+ 2. Ensure text alignment can be changed on date/time inputs in iOS Safari.
307
+ */
308
+
309
+ ::-webkit-date-and-time-value {
310
+ min-height: 1lh; /* 1 */
311
+ text-align: inherit; /* 2 */
312
+ }
313
+
314
+ /*
315
+ Prevent height from changing on date/time inputs in macOS Safari when the input is set to `display: block`.
316
+ */
317
+
318
+ ::-webkit-datetime-edit {
319
+ display: inline-flex;
320
+ }
321
+
322
+ /*
323
+ Remove excess padding from pseudo-elements in date/time inputs to ensure consistent height across browsers.
324
+ */
325
+
326
+ ::-webkit-datetime-edit-fields-wrapper {
327
+ padding: 0;
328
+ }
329
+
330
+ ::-webkit-datetime-edit,
331
+ ::-webkit-datetime-edit-year-field,
332
+ ::-webkit-datetime-edit-month-field,
333
+ ::-webkit-datetime-edit-day-field,
334
+ ::-webkit-datetime-edit-hour-field,
335
+ ::-webkit-datetime-edit-minute-field,
336
+ ::-webkit-datetime-edit-second-field,
337
+ ::-webkit-datetime-edit-millisecond-field,
338
+ ::-webkit-datetime-edit-meridiem-field {
339
+ padding-block: 0;
340
+ }
341
+
342
+ /*
343
+ Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
344
+ */
345
+
346
+ :-moz-ui-invalid {
347
+ box-shadow: none;
348
+ }
349
+
350
+ /*
351
+ Correct the inability to style the border radius in iOS Safari.
352
+ */
353
+
354
+ button,
355
+ input:where([type='button'], [type='reset'], [type='submit']),
356
+ ::file-selector-button {
357
+ appearance: button;
358
+ }
359
+
360
+ /*
361
+ Correct the cursor style of increment and decrement buttons in Safari.
362
+ */
363
+
364
+ ::-webkit-inner-spin-button,
365
+ ::-webkit-outer-spin-button {
366
+ height: auto;
367
+ }
368
+
369
+ /*
370
+ Make elements with the HTML hidden attribute stay hidden by default.
371
+ */
372
+
373
+ [hidden]:where(:not([hidden='until-found'])) {
374
+ display: none !important;
375
+ }