Skip to content
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

feat: Allow custom syntax #47

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

feat: Allow custom syntax #47

wants to merge 1 commit into from

Conversation

nzakas
Copy link
Member

@nzakas nzakas commented Jan 21, 2025

Prerequisites checklist

What is the purpose of this pull request?

Adds support for custom syntax to the parser.

What changes did you make? (Give an overview)

  • Added languageOptions.customSyntax to CSSLanguage
  • Updated rules to use custom syntax
  • Updated tests for CSSLanguage and rules
  • Updated README
  • Added /syntax entrypoint for common custom syntax like Tailwind

Related Issues

fixes #37

Is there anything you'd like reviewers to focus on?

There is a limitation in CSSTree that prevents custom functions like Tailwind's theme() to work properly, so I left that out:
csstree/csstree#292

When that issue is resolved, we can revisit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Implementing
Development

Successfully merging this pull request may close these issues.

Change Request: Allow configurable CSS features
1 participant