leeoniya / leeoniya/dropcss

output a css structure object

Open
#7 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
HTML
Stars
2.1k
Forks
64
PR merge metrics
No merged PRs in 30d

Description

personally, i author static stylesheets as js objects and use https://github.com/cssobj/cssobj to compile them (which handles a basic level of optimizations). since DropCSS already tokenizes the css (besides properties), it would be useful to expose the tokens to allow the build-out of a small post-processor which completes the parsing of props and creates a js object that can be fed into cssobj for final optimizations & compression.

probably the only actionable thing for this lib is to return the css tokens alongside the generated css.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by examining DropCSS's tokenizer and the path that returns generated CSS. Determine how to expose the existing CSS tokens alongside that output; done means callers can receive both without changing the generated CSS.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.