Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

elm-stylesheets

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

elm-stylesheets

Elm-based CSS Preprocessor

  • 0.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

elm-stylesheets

Isn't it a pain when you want to rename a CSS class or ID, but can't be sure that the rename wouldn't break things?
Or when it turns out the reason something wasn't displaying as expected was that you had a typo in the class name?

Wouldn't it be sweet if those problems went away?

This is a proof of concept for a CSS preprocessor written in Elm, which outputs .css stylesheets while letting you:

  1. Share code between your render logic and your CSS stylesheets, so you can easily keep names synchronized
  2. Use union types instead of strings for class names and IDs, so typos will result in compile errors instead of bugs
  3. Assemble your stylesheets by writing normal Elm code, so you have access to your full suite of programming logic tools instead of the limited set that typical preprocessors ship with.

Here's a sketch of the current proof of concept. It's far from complete, but if you try to do something that would result in invalid CSS, it will probably give you a compiler error instead of silently generating broken CSS.

screen shot 2015-09-20 at 11 59 14 am

Keywords

FAQs

Package last updated on 08 Nov 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc