Skip to content

Way to easily Use LESS/SASS Variables in component LESS/SASS Files #3535

Closed

Description

@jongunter

Apologies if I'm posting this question in the wrong place, but I'm using a global style sheet, written in LESS. I have angular-cli configured to use LESS style sheets for each component, rather than CSS. Is there a way for the CLI to generate components with my variables.less auto imported so I don't have to import them manually every time I want to use variables in a component's styles? Same goes for SASS.

Activity

  1. fural commented on Dec 13, 2016

    @fural

    I am facing the same situation, and I think that's the only way.

    In my case I have to generate multiple themes. What I'm doing now is a gulp task that replace my color-variables.sass and execute the the ng build for each theme I have.

  2. filipesilva commented on Dec 30, 2016

    @filipesilva
    Contributor

    Dupe of #1791. Work ongoing in #2747

  3. angular-automatic-lock-bot commented on Sep 6, 2019

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  4. locked and limited conversation to collaborators on Sep 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions