-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
Add PostCSS import theme plugin #24
Conversation
According to the CSS specification, So we can parse |
OK, we are ready to use the theme import feature!
To get along with CSS preprocessors like Sass, we provide alternative syntax /* @theme wide */
@import-theme 'base';
section {
width: 1280px;
} Sass's We must write a section about Remaining
|
This PR will add PostCSS import theme plugin. It recognizes
@import 'theme';
rule in theme and could import the other plugin that is added to ThemeSet instance.themeSet.pack('wide')
returns the imported style when these themes are added to theThemeSet
instance. In this case, you can see the slide for widescreen.We might prepare another syntax
@import-theme
to avoid preprocessing by Sass.ToDo
[ ] Fix section size plugin to recognize the slide size defined in a finalsection
rule after importedThemeSet#getThemeProp
to fallback into imported themes