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

Create full extension library support #14

Open
JonHMChan opened this issue Feb 8, 2016 · 0 comments
Open

Create full extension library support #14

JonHMChan opened this issue Feb 8, 2016 · 0 comments

Comments

@JonHMChan
Copy link
Owner

Extensions should be:

  • JavaScript classes
  • Private attributes that describe the library, modifiable at construction
  • Value methods that produce computed values for properties (shorthand for rgba(), modular font-sizes, etc.)
  • Mixins that produce rulesets to be passed as mixins. Methods are prefixed with _
  • A .transform that manipulates the style tree before it is rendered by Descartes. Should take in the style tree as an argument and return a new style tree. This allows for custom rules, rule prefixing, etc.

I've had an initial attempt with Plato.js - you can see that within the src for what this might look like.

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

No branches or pull requests

1 participant