Skip to content

npm install broken, as modules point direclty _varriables.scss instead of 'tachyons' name space.  #38

Description

@bnjmnrsh

While testing this package out as an NPM install, one way to efficiently hoist the framework into a project was to hoist tachyons.scss out of node_modules and into the project itself. We could then adjust paths to modules to include the module name eg:

@use "tachyons-haru-sass/scss/modules/any-module"

The problem here is that it is not possible to change the variables, without messing with files inside the package.

  • A part of the solution is to @forward the variables in tachyons.scss (which we are already doing), but we also need to @use them from the tachyons namespace rather than pointing directly to the @use "/sass/variables .scss" as we currently do.

This should mean that we can then re-declare the variables file to one in a new location, and the project will render as long as the namespace matches.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions