Coder Social home page Coder Social logo

activeguild / css-to-vanilla-extract Goto Github PK

View Code? Open in Web Editor NEW
66.0 5.0 2.0 1.4 MB

Generate vanilla-extract typescript file from the CSS (SCSS/SASS) file.

Home Page: https://css-to-vanilla-extract.netlify.app

License: MIT License

JavaScript 0.09% Rust 11.52% TypeScript 70.68% CSS 0.75% HTML 16.97%
css scss convert sass typescript vanilla-extract generate

css-to-vanilla-extract's Introduction

css-to-vanilla-extract's People

Contributors

activeguild avatar xxkeefer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

xxkeefer bitwhys

css-to-vanilla-extract's Issues

selector overridden by error

The same css selector with non-conflicting styles applied, but only the one written at the end is converted correctly during the conversion
screenshot of using the online app
styles of L1-L11 doesnβ€˜t appear in the results

Incorrectly formats string for grid template areas

Hey, love this tool, just noticed this.

This css:

.container {
  display: grid; 
  grid-auto-columns: 1fr; 
  grid-template-columns: 1fr 1fr 0.2fr 1.8fr; 
  grid-template-rows: 1fr 1fr 1fr 1fr 1fr; 
  gap: 0px 0px; 
  grid-template-areas: 
    "lorem ipsum dolor sit"
    "lorem ipsum dolor sit"
    "lorem ipsum dolor sit"
    "lorem ipsum dolor sit"
    "lorem ipsum dolor sit"; 
}

converts too:

export const container = style({
    display: 'grid',
    gridTemplateColumns: '1fr 1fr 0.2fr 1.8fr',
    gridTemplateRows: '1fr 1fr 1fr 1fr 1fr',
    gridAutoColumns: '1fr',
    gap: '0px 0px',
    gridAutoFlow: 'row',
    gridTemplateAreas:
        'lorem ipsum dolor sit lorem ipsum dolor sit lorem ipsum dolor sit lorem ipsum dolor sit lorem ipsum dolor sit',
});

the property gridTemplateAreas needs to include double quotes to break them up. should look like this:

export const container = style({
    display: 'grid',
    gridTemplateColumns: '1fr 1fr 0.2fr 1.8fr',
    gridTemplateRows: '1fr 1fr 1fr 1fr 1fr',
    gridAutoColumns: '1fr',
    gap: '0px 0px',
    gridAutoFlow: 'row',
    gridTemplateAreas:
        '"lorem ipsum dolor sit" "lorem ipsum dolor sit"  "lorem ipsum dolor sit" "lorem ipsum dolor sit" "lorem ipsum dolor sit"',
});

I would love to help out with a PR if you could point me in the right direction, i am not very familiar with Rust but have been looking for a reason to learn. <3

stress test: bootstrap grid css converting to vanilla-extract

Steps:

Expected: convert all styles
Result: most of the styles with @media converted badly. !important missed, etc.

bootstrap-grid.css.txt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.