8000 [Feature Request] Write normal CSS in `stylex.create` · Issue #1088 · facebook/stylex · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[Feature Request] Write normal CSS in stylex.create #1088
Closed
@SukkaW

Description

@SukkaW

Describe the feature request

I am migrating an old CSS Modules-based project to use stylex. So I only have normal CSS instead of style objects. Here is what I am proposing:

import * as stylex from '@stylexjs/stylex';

const styles = stylex.create({
  // `css` is used by some IDE plugin to highlight tagged template,
  // we can re-use this name to improve DX.
  styleA: stylex.css`
    position: absolute;
    z-index: 3;
    width: 175px;
    opacity: 1;
  `
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0