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: add the preview_styles parameter #46

Merged
merged 1 commit into from
Nov 26, 2023
Merged

feat: add the preview_styles parameter #46

merged 1 commit into from
Nov 26, 2023

Conversation

razonyang
Copy link
Member

@razonyang razonyang commented Nov 26, 2023

With the preview_styles parameter, you're able to use prebuilt or external styles.

params:
  decap_cms:
    preview_styles:
      - css/bar.css
      - css/foo.css

@razonyang razonyang merged commit baf7672 into main Nov 26, 2023
2 checks passed
@github-actions github-actions bot mentioned this pull request Nov 26, 2023
@yippyskippy
Copy link
Contributor

@razonyang also clarifying this in your docs is a good idea. Does this relate to the the fix you implemented in #30 and thus registerPreviewStyle.

@razonyang
Copy link
Member Author

also clarifying this in your docs is a good idea.

Agreed, will do if there is enough time.

Does this relate to the the fix you implemented in #30 and thus registerPreviewStyle.

This PR provides a handy way to registerPreviewStyle for prebuilt and external styles.

For SASS/SCSS preview styles, you can using assets/decap-cms/scss/_custom.scss (see #45) or the body-end hook for advanced usage.

@razonyang razonyang deleted the preview-styles branch January 27, 2024 02:40
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

Successfully merging this pull request may close these issues.

2 participants