-
Notifications
You must be signed in to change notification settings - Fork 136
chore: upgrade to tailwind v4 #360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
d750f66
d74f3df
8813901
db294c5
dc8670d
01809f5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| /* .vitepress/theme/custom.css */ | ||
| @layer theme, base, components, utilities; | ||
|
|
||
| @custom-variant dark (&:where(.dark, .dark *)); | ||
|
|
||
| @import 'tailwindcss/theme.css' layer(theme) source(none); | ||
| @import 'tailwindcss/utilities.css'; | ||
|
Comment on lines
+6
to
+7
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Verification agent ❓ Verification inconclusiveRevisit the Positioning of @import Statements. Action Required: Reorder @import Rules for CSS Spec Compliance Please adjust their position accordingly and verify that the overall styling behaves as expected. 🧰 Tools🪛 Biome (1.9.4)[error] 6-6: expected Remove ( (parse) [error] 6-6: This @import is in the wrong position. Any @import rules must precede all other valid at-rules and style rules in a stylesheet (ignoring @charset and @layer), or else the @import rule is invalid. (lint/correctness/noInvalidPositionAtImportRule) [error] 6-6: Don't use unknown media feature names. Unexpected unknown media feature name. (lint/correctness/noUnknownMediaFeatureName) [error] 7-7: This @import is in the wrong position. Any @import rules must precede all other valid at-rules and style rules in a stylesheet (ignoring @charset and @layer), or else the @import rule is invalid. (lint/correctness/noInvalidPositionAtImportRule) |
||
|
|
||
| @source '../../../'; | ||
|
|
||
| @import './clear.css'; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| import DefaultTheme from 'vitepress/theme' | ||
| import './custom.css' | ||
| import '../../../src/style.css' | ||
|
|
||
| export default DefaultTheme |
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Verification agent
❓ Verification inconclusive
Fix Syntax of @import Rule on Line 6.
Static analysis reports a syntax error in the statement:
It appears that the parser expected a comma before the parenthesis. Please review the intended syntax—if this is an experimental feature or a Tailwind v4 update, confirm that the syntax is correct or adjust it to match the latest Tailwind and CSS specifications.
Action Required: Correct the @import Syntax on Line 6 of docs/.vitepress/theme/custom.css
The static analysis indicates that the current statement:
is causing a syntax error—the parser appears to expect a comma to separate the descriptors. To align with the parser’s expectations (and assuming no alternative experimental behavior is intended), please update the code as follows:
Ensure that this change is consistent with the latest Tailwind v4 (or experimental CSS features) specifications. If this syntax is intended to be experimental, double-check that your compiler or build tool fully supports it.
🧰 Tools
🪛 Biome (1.9.4)
[error] 6-6: expected
,but instead found(Remove (
(parse)
[error] 6-6: This @import is in the wrong position.
Any @import rules must precede all other valid at-rules and style rules in a stylesheet (ignoring @charset and @layer), or else the @import rule is invalid.
Consider moving import position.
(lint/correctness/noInvalidPositionAtImportRule)
[error] 6-6: Don't use unknown media feature names.
Unexpected unknown media feature name.
You should use media feature names defined in the CSS Specifications.
(lint/correctness/noUnknownMediaFeatureName)