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

[CLOSED] Extension LESS files can't access Brackets constants & mixins #3248

Open
core-ai-bot opened this issue Aug 29, 2021 · 1 comment
Open

Comments

@core-ai-bot
Copy link
Member

Issue by peterflynn
Tuesday Apr 16, 2013 at 20:16 GMT
Originally opened as adobe/brackets#3459


  1. Create a LESS file like this:
.foo {
    color:`@`bc-yellow;
}
  1. Load it from an extension via ExtensionUtils.loadStyleSheet(module, "foo.less")

Result: LESS throws an exception because @bc-yellow is unrecognized.

Expected: extensions should be able to use Brackets's core LESS constants and macros.

This is probably not super important for third-party extensions yet, but it is definitely a hindrance for core extensions (those in src/extensions/default). We're forced to choose between no code reuse, or dumping styles into the core .less files instead of keeping them with the extension code that uses them. (We currently do an inconsistent mix of both).

@core-ai-bot
Copy link
Member Author

Comment by pthiess
Monday Apr 22, 2013 at 18:19 GMT


Adding this to the Theme support LESS card. Closing in here.

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

No branches or pull requests

1 participant