Skip to content

Style guide specific styles (like syntax highlighting) shouldn't be included in the normal site styles #2

@stubbornella

Description

@stubbornella

In the docs, it looks like you are suggesting including stylesheets specific to the style guide like syntax highlighting and docs styles in application.scss. I think it would be better to isolate those styles and only include them in the layout if the current page is the style guide itself:

# application.scss
@import 'hologram_rails/github';
@import 'hologram_rails/docs';

On my project, we have:

# styleguide.scss
@import 'hologram_rails/github';
@import 'hologram_rails/docs';

And we conditionally include it if the current page is the style guide. What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions