Skip to content

option for locally scoped styles  #113

@jakeburden

Description

@jakeburden

I totally dig this pr in postcss-prefix, I think it makes the API for globals muchhhh cleaner and agree on changes that drop deps.

butttt I wonder if it would be cool to make a new possible option called local for example:

const html = require('choo/html')
const css = require('sheetify')

const styles = css('./component.css', { local: true})

module.exports = (state, prev, send) => html`
  <div class=${styles}>Yo!</div>
`

and the css is ./component.css is scoped to that particular component

whatchya think?

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