Fix "Unknown at rule @apply (css)" warnings in svelte-check#579
Draft
Copilot wants to merge 2 commits into
Draft
Fix "Unknown at rule @apply (css)" warnings in svelte-check#579Copilot wants to merge 2 commits into
Copilot wants to merge 2 commits into
Conversation
- Add lang="postcss" to RelationViewer.svelte style block so svelte-check skips CSS validation for that block (it doesn't understand Tailwind at-rules) - Add frontend/.vscode/settings.json with css.customData and css.lint.unknownAtRules for VS Code IDE experience - Add frontend/tailwind-css-data.json registering Tailwind CSS v4 at-rules for VS Code's built-in CSS extension Agent-Logs-Url: https://github.com/otoDB/otoDB/sessions/c5435ba9-c8ec-4bbc-9f47-233f79d44244 Co-authored-by: SnO2WMaN <15155608+SnO2WMaN@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix unknown at rule @apply warning in css
Fix "Unknown at rule @apply (css)" warnings in svelte-check
Apr 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
svelte-checkreportsUnknown at rule @apply (css)andUnknown at rule @reference (css)because its embedded CSS language service has no knowledge of Tailwind CSS v4 at-rules.Changes
RelationViewer.svelte: Addlang="postcss"to the<style>block.svelte-checkunconditionally skips CSS validation forpostcss-lang blocks (shouldExcludeValidation('postcss') === true), eliminating the warnings.vitePreprocess()already handles.postcssvia Vite's CSS pipeline so runtime behavior is unchanged.frontend/.vscode/settings.json(new): Workspace-scoped VS Code settings withcss.customData(for built-in CSS extension on standalone.cssfiles) andcss.lint.unknownAtRules: "ignore"(for the Svelte language server in editor mode).frontend/tailwind-css-data.json(new): CSS custom data registering Tailwind v4 at-directives (@apply,@theme,@source,@utility,@variant,@custom-variant,@plugin) so VS Code provides completions and hover info rather than squiggles in.cssfiles.