Skip to content

Add support for @value variables #4

@r0skar

Description

@r0skar

In addition to exporting classNames, we can also export variables in CSS Modules. However, these are not included in the declaration file. Here is a minimal example of what I mean:

/* style.css */
@value bgColor: cadetblue;
/* index.ts */
import styles from './style.css'

// {bgColor: "cadetblue"}
console.log(styles)

Current behaviour:

/* style.css.d.ts */
// empty...

Expected behaviour:

/* style.css.d.ts */
export const bgColor: string

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